View Single Post
Old 11-02-2003, 04:11 AM   #2
Rykahna
A Snow Cougar
 
Join Date: Sep 2003
Server: Tribunal
Posts: 45
Interface Author - Click to view interfaces
Default Re: Created my first complete UI from scratch, need help tweaking a few things...

Quote:
Originally posted by Rykahna

5) In my quest to make things smaller, I did some fiddling with the spellbook. Though I tend to be minimalist for the constantly visible stuff in my UI, I really like t.king's spellbooks, animations, and gem icons. I was shooting for a spellbook that was less than half the size of the existing spellbook, but still had the background graphic.


Update...

Argh...I am so close on this one. Whatever it is I am missing, I suspect is either in the animations portion of the EQUI_SpellBookWnd.xml code, or is in one of the animations files themselves. Neither of which I am comfortable messing with to any degree. I may know just enough to be dangeous, but at least I am aware of my limitations.

I shrunk down the tga files to the following dimensions:

tkspellbook01.tga - 165x165
tkspellbook02.tga - 105x165
tkspellbook03.tga - 165x67
tkspellbook04.tga - 165x67

Created a .tga file that is nothing but a transparent background to replace tkspellbook05.tga, but the little tab at the bottom is still showing.

Here is the code that concerns me the most. I suspect that whatever is giving me my headache here is in this code. What is really frustrating is that the spell book shows up perfectly in SidlWidl's QuickView feature, but is completely wrong when viewed ingame (see attachment for bitmaps of each one.)

End dimensions of the spellbook in the .xml file are 328x210.

<!-- edited the dimensions in this section, to correspond with dimensions of smaller .tga files I'm using -->

<TextureInfo item="tkspellbook01.tga">
<Size>
<CX>165</CX>
<CY>165</CY>
</Size>
</TextureInfo>
<TextureInfo item="tkspellbook02.tga">
<Size>
<CX>165</CX>
<CY>165</CY>
</Size>
</TextureInfo>
<TextureInfo item="tkspellbook03.tga">
<Size>
<CX>165</CX>
<CY>67</CY>
</Size>
</TextureInfo>
<TextureInfo item="tkspellbook04.tga">
<Size>
<CX>165</CX>
<CY>67</CY>
</Size>
</TextureInfo>
<TextureInfo item="tkspellbook05.tga">
<Size>
<CX>1</CX>
<CY>1</CY>
</Size>
</TextureInfo>
<!-- have edited the dimensions of the spellbook to get rid of the close button graphics at bottom. Would like to get rid of the file altogether, don't know how. Close button is in top center of book ala Remelio. Don't know how graphic is still showing up, as I have replaced the graphic tkspellbook05.tga file with a completely empty, blank, transparent file of the same dimensions. How to get rid of this? -->
<!-- HAVE NOT edited the dimensions here, because whenever I do, the end result in SidlWidl looks like it was thrown together from mismatched jigsaw materials. Possibly this is the problem section? -->

<Ui2DAnimation item="TK_SpellBook1">
<Cycle>false</Cycle>
<Frames>
<Texture>tkspellbook01.tga</Texture>
<Location>
<X>0</X>
<Y>0</Y>
</Location>
<Size>
<CX>256</CX>
<CY>256</CY>
</Size>
</Frames>
</Ui2DAnimation>
<Ui2DAnimation item="TK_SpellBook2">
<Cycle>false</Cycle>
<Frames>
<Texture>tkspellbook02.tga</Texture>
<Location>
<X>1</X>
<Y>0</Y>
</Location>
<Size>
<CX>255</CX>
<CY>256</CY>
</Size>
</Frames>
</Ui2DAnimation>
<Ui2DAnimation item="TK_SpellBook3">
<Cycle>false</Cycle>
<Frames>
<Texture>tkspellbook03.tga</Texture>
<Location>
<X>0</X>
<Y>1</Y>
</Location>
<Size>
<CX>256</CX>
<CY>101</CY>
</Size>
</Frames>
</Ui2DAnimation>
<Ui2DAnimation item="TK_SpellBook4">
<Cycle>false</Cycle>
<Frames>
<Texture>tkspellbook04.tga</Texture>
<Location>
<X>1</X>
<Y>1</Y>
</Location>
<Size>
<CX>255</CX>
<CY>101</CY>
</Size>
</Frames>
</Ui2DAnimation>
<Ui2DAnimation item="TK_SpellBookClose">
<Cycle>false</Cycle>
<Frames>
<Texture>tkspellbook05.tga</Texture>
<Location>
<X>0</X>
<Y>0</Y>
</Location>
<Size>
<CX>96</CX>
<CY>60</CY>
</Size>
</Frames>
</Ui2DAnimation>
<!-- end of t.king graphics -->
<!-- its all cake from here... -->
Attached Files
File Type: zip spellbook pics.zip (151.7 KB, 12 views)
Rykahna is offline   Reply With Quote