02-16-2003, 01:52 AM
|
#1
|
A Shissar Disciple
Join Date: Nov 2002
Posts: 133
|
"Wrapping" Icons
I am working on modifying an existing mod, and it contained a set of icons using a custom tga file. However, the program I have will not retain transparencies in tga format, so I converted the file to a png format, and added a few new icons. However, now when it loads (and everything looks great otherwise), the icons seem to be "wrapping."
What it appears is that the icon is offset so that the left edge is in the center of the icon's space, and the center divides and begins again at the left edge.
Has anyone else experienced this, and if so is there some way to correct it? There is no problem when I load it into SidlWidl, only when loading into EQ. No errors, or changes in "warning" messages since the change either.
Thanks in advance!
|
|
|
02-16-2003, 06:22 PM
|
#2
|
A Shissar Disciple
Join Date: Nov 2002
Posts: 133
|
Ok, I might have lied...
I played around with it a bit, and when I check the UIErrors, there are two lines I may have missed earlier.
[Sun Feb 16 14:50:58 2003] Error: Could not find child StandButton in window PetInfoWindow
[Sun Feb 16 14:50:58 2003] Error: Could not find child TauntButton in window PetInfoWindow
I have not defined StandButton, since the SitButton is a toggle for this, but TauntButton IS defined as:
<Button item="PIW_TauntButton">
<ScreenID>TauntButton</ScreenID>
<!--<Font>3</Font>-->
<RelativePosition>true</RelativePosition>
<Location>
<X>108</X>
<Y>26</Y>
</Location>
<Size>
<CX>18</CX>
<CY>18</CY>
</Size>
<Style_VScroll>false</Style_VScroll>
<Style_HScroll>false</Style_HScroll>
<Style_Transparent>false</Style_Transparent>
<TooltipReference>Pet Taunt</TooltipReference>
<Style_Checkbox>false</Style_Checkbox>
<!--<RadioGroup/>-->
<TextColor>
<R>255</R>
<G>100</G>
<B>100</B>
</TextColor>
<ButtonDrawTemplate>
<Normal>PetWin.TauntR</Normal>
<Pressed>PetWin.TauntP</Pressed>
<Disabled>PetWin.TauntD</Disabled>
<Flyby>PetWin.TauntF</Flyby>
</ButtonDrawTemplate>
<Font>1</Font>
<DecalOffset>
<X>1</X>
<Y>3</Y>
</DecalOffset>
<DecalSize>
<CX>18</CX>
<CY>18</CY>
</DecalSize>
</Button>
I don't know if this has anything to do with it, but there it is.
Basically, this is a modified version of Shadefox's graphical pet window, plus a taunt icon and the character class icon (for a Beastlord). I've played with the Offsets, to no avail, and tried moving the icon themselves over 9 pixels in the png file, which just made them show half of one icon and half of another.
Please give me a hand! If you need the files, I zipped them below (I removed the class animation to try to get the icons working).
|
|
|
02-17-2003, 08:46 AM
|
#3
|
A Shissar Disciple
Join Date: Nov 2002
Posts: 133
|
RE
Ok, nevermind. I read the solution several times on this site and didn't even catch it. I had the image file size wrong, so I corrected to 256x256 and it works beautifully. Only thing now is that the "sit" button highlights even when "disabled" and I'm not sure how to fully disable it.
Other that that, all is good.
|
|
|
02-18-2003, 02:17 PM
|
#4
|
Grimling Code Editor
Join Date: Sep 2002
Server: Xev
Posts: 507
|
not sure, but a button has 4 "states" that it can be
Pressed with Mouse Over it
Pressed with Mouse elsewhere
NotPressed with Mouse Over it
NotPressed with Mouse elsewhere
sounds like one of these states might have coding that it should have.
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|