01-05-2018, 04:51 PM
|
#1
|
Premium Member
Join Date: Sep 2002
Posts: 361
|
Resize spell icon in hotbutton window
Hi,
I'm looking for a little help with resizing the spell icon in the hotbutton window.
I thought it would be as simple as changing the location, size and offset values but that doesn't appear to be the case.
Increasing the size value appears to make the icons smaller.
I'm obviously missing something.
[CODE]
<SpellGem item="HB_SpellGem">
<ScreenID>HB_SpellGem</ScreenID>
<Location>
<X>2</X>
<Y>2</Y>
</Location>
<Size>
<CX>36</CX>
<CY>36</CY>
</Size>
<Font>1</Font>
<TextColor>
<R>255</R>
<G>255</G>
<B>255</B>
</TextColor>
<SpellGemDrawTemplate>
<Holder>A_SpellGemHolder</Holder>
<Background>A_SpellGemBackground</Background>
<Highlight>A_SpellGemHighlight</Highlight>
</SpellGemDrawTemplate>
<SpellIconOffsetX>7</SpellIconOffsetX>
<SpellIconOffsetY>7</SpellIconOffsetY>
</SpellGem>
[CODE]
|
|
|
01-06-2018, 02:43 PM
|
#2
|
A Snow Cougar
Join Date: Jul 2002
Posts: 48
|
Additional changes
You need to resize more than just what you have done. All of these things have to match. Here is a chunk of the Vert hotbutton window code as an example:
<Ui2DAnimation item="HB_SpellGemHolder">
<Frames>
<Texture>spellgems.tga</Texture>
<Location>
<X>0</X>
<Y>0</Y>
</Location>
<Size>
<CX>40</CX>
<CY>40</CY>
</Size>
</Frames>
</Ui2DAnimation>
<Ui2DAnimation item="HB_SpellGemHighlight">
<Frames>
<Texture>spellgems.tga</Texture>
<Location>
<X>0</X>
<Y>40</Y>
</Location>
<Size>
<CX>40</CX>
<CY>40</CY>
</Size>
</Frames>
</Ui2DAnimation>
<Ui2DAnimation item="HB_SpellGemBackground">
<Frames>
<Texture>spellgems.tga</Texture>
<Location>
<X>40</X>
<Y>0</Y>
</Location>
<Size>
<CX>40</CX>
<CY>40</CY>
</Size>
</Frames>
</Ui2DAnimation>
<SpellGem item="HB_SpellGem">
<ScreenID>HB_SpellGem</ScreenID>
<RelativePosition>true</RelativePosition>
<Location>
<X>0</X>
<Y>0</Y>
</Location>
<Size>
<CX>40</CX>
<CY>40</CY>
</Size>
<Font>1</Font>
<TextColor>
<R>255</R>
<G>255</G>
<B>255</B>
</TextColor>
<SpellGemDrawTemplate>
<Holder>HB_SpellGemHolder</Holder>
<Background>HB_SpellGemBackground</Background>
<Highlight>HB_SpellGemHighlight</Highlight>
</SpellGemDrawTemplate>
<SpellIconOffsetX>8</SpellIconOffsetX>
<SpellIconOffsetY>8</SpellIconOffsetY>
</SpellGem>
|
|
|
01-15-2018, 04:39 PM
|
#3
|
Premium Member
Join Date: Sep 2002
Posts: 361
|
Resize
The Holder, Highlight and Background sizes can't change can they ?
Those are the sizes of the graphics being pulled from the spellgems.tga file.
I know it's possible to show the spell icons in different sizes, I have another UI where the spell icons in the buff window are much bigger than in the castbar.
I'll have a poke around in both those files and see if I can figure it out.
Thanks.
|
|
|
05-27-2020, 12:02 AM
|
#4
|
A Ghoul
Join Date: Mar 2019
Posts: 10
|
I mostly messed with the sizes and got mine to work. I did a lot of comparison from other authors work. Hopefully I'm gonna post everything I've gotten done for a 2k resolution ui before launch.
|
|
|
05-27-2020, 12:02 AM
|
#5
|
A Ghoul
Join Date: Mar 2019
Posts: 10
|
Also to note, I had to increase the resolution on the gemicons/spellicons using upscaling via photoshop to get everything to work on a larger hot bar. Not sure if that helps.
|
|
|
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
|
|
|
|