Home Forum Downloads My Favorites Register FAQ

Go Back   EQInterface Forums > Developer Discussion > General authoring help / discussion
User Name
Password

Reply
 
Thread Tools Display Modes
Old 07-17-2006, 11:14 AM   #1
Kavrvnwlf
A Wooly Rhino
 
Kavrvnwlf's Avatar
 
Join Date: Dec 2002
Posts: 77
Interface Author - Click to view interfaces
Default hotbuttons

I was hoping to make two of my hotbuttons be able to stack on-top of each other and make them look like one set.
1 2
3 4
5 6
7 8
9 10
11 12
13 14
15 16
17 18
19 20

now my problem i am having is that all 4 hotbuttons use the same ui2danimations. is there a way i might be able to get each set of hotbuttons to use a different set of animations? i have edited the windowspieces files and saved them as a new image, to reflect the new numbers i want. will keep working on it but would appreciate any help if this is even worth trying.

thanks in advance.
__________________
Warren Dragonsbane
67th season druid,
~~RETIRED~~
Kavrvnwlf is offline   Reply With Quote
Old 07-17-2006, 08:54 PM   #2
firescue17
Premium Member
 
firescue17's Avatar
 
Join Date: Apr 2006
Server: Vox
Posts: 126
Interface Author - Click to view interfaces
Default

Since you mentioned the UI2D files I'm assuming you know about the default templates. Just add this to your hotbutton.xml file:

<TextureInfo item="My_New_Graphics.tga">
<Size>
<CX>256</CX>
<CY>128</CY>
</Size>
</TextureInfo>

<Ui2DAnimation item="My_New_Graphics_Hotbutton_Disabled">
<Frames>
<Texture>My_New_Graphics.tga</Texture>
<Location>
<X>2</X>
<Y>2</Y>
</Location>
<Size>
<CX>40</CX>
<CY>36</CY>
</Size>
</Frames>
</Ui2DAnimation>

<Ui2DAnimation item="My_New_Graphics_Hotbutton_Flyby">
<Frames>
<Texture>My_New_Graphics.tga</Texture>
<Location>
<X>2</X>
<Y>2</Y>
</Location>
<Size>
<CX>40</CX>
<CY>36</CY>
</Size>
</Frames>
</Ui2DAnimation>

<Ui2DAnimation item="My_New_Graphics_Hotbutton_Normal">
<Frames>
<Texture>My_New_Graphics.tga</Texture>
<Location>
<X>42</X>
<Y>2</Y>
</Location>
<Size>
<CX>40</CX>
<CY>36</CY>
</Size>
</Frames>
</Ui2DAnimation>

<Ui2DAnimation item="My_New_Graphics_Hotbutton_Pressed">
<Frames>
<Texture>My_New_Graphics.tga</Texture>
<Location>
<X>82</X>
<Y>2</Y>
</Location>
<Size>
<CX>40</CX>
<CY>36</CY>
</Size>
</Frames>
</Ui2DAnimation>

<Ui2DAnimation item="My_New_Graphics_Hotbutton_Pressed_Flyby">
<Frames>
<Texture>My_New_Graphics.tga</Texture>
<Location>
<X>82</X>
<Y>2</Y>
</Location>
<Size>
<CX>40</CX>
<CY>36</CY>
</Size>
</Frames>
</Ui2DAnimation>


<Button item="My_New_Hotbutton">
<ScreenID>My_New_Hotbutton</ScreenID>
<Location>
<X>120</X>
<Y>0</Y>
</Location>
<Size>
<CX>40</CX>
<CY>36</CY>
</Size>
<DecalSize>
<CX>40</CX>
<CY>36</CY>
</DecalSize>
<Font>1</Font>
<TextColor>
<R>255</R>
<G>255</G>
<B>255</B>
</TextColor>
<ButtonDrawTemplate>
<Disabled>My_New_Graphics_Hotbutton_Disabled</Disabled>
<Flyby>My_New_Graphics_Hotbutton_Flyby</Flyby>
<Normal>My_New_Graphics_Hotbutton_Normal</Normal>
<Pressed>My_New_Graphics_Hotbutton_Pressed</Pressed>
<PressedFlyby>My_New_Graphics_Hotbutton_Pressed_Flyby</PressedFlyby>
</ButtonDrawTemplate>
</Button>

Just change the red text to correspond with the new .tga filename and size, the new button template, and the x, y coordinates of the button images. Any other code in the button template is extraneous junk or default values which doesn't need to be declared.

Note: Apparently this post editor doesn't like tab formatting. Hope it makes sense.
firescue17 is offline   Reply With Quote
Old 07-17-2006, 08:57 PM   #3
firescue17
Premium Member
 
firescue17's Avatar
 
Join Date: Apr 2006
Server: Vox
Posts: 126
Interface Author - Click to view interfaces
Default

If you have the Hotkey #'s embedded in the .tga image similar to the default graphic you will need to declare 10 more Hotbutton Templates, 1 for each number 11 - 20.

Last edited by firescue17 : 09-01-2006 at 02:54 AM.
firescue17 is offline   Reply With Quote
Reply




Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT -5. The time now is 12:52 AM.


vBulletin Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
© MMOUI