Home Forum Downloads My Favorites Register FAQ Mark Forums Read

Go Back   EQInterface Forums > General Discussion > Request
User Name
Password

Reply
 
Thread Tools Display Modes
Old 04-06-2012, 04:19 AM   #1
Stice
A Snow Griffin
 
Join Date: Feb 2003
Posts: 55
Interface Author - Click to view interfaces
Default Frame size

I just started to tweek others UI they have made to make them look good for me. I took SparxxUI EQMain Button and changed the border to WDT_Inner like on a lot of my other windows so i could drag them, but when i did it to this one the frame doesn't stay with the button it gets larger( well not larger I guess it stays the same as the WDT_RoundedNoTitle border. how do I just change the Frame to the size of the button? Sorry if its listed here on how to BUT i have looked for days and could not find out how. the only part i changd i made in bold text here.

thanks in advance for any help with this at all

<?xml version="1.0" encoding="us-ascii"?>
<XML ID="EQInterfaceDefinitionLanguage">
<Schema xmlns="EverQuestData" xmlns:dt="EverQuestDataTypes" />
<TextureInfo item="menuicons01.tga">
<Size>
<CX>256</CX>
<CY>256</CY>
</Size>
</TextureInfo>
<Ui2DAnimation item="A_MenuIcons">
<Cycle>false</Cycle>
<Grid>true</Grid>
<Vertical>true</Vertical>
<CellHeight>24</CellHeight>
<CellWidth>24</CellWidth>
<Frames>
<Texture>menuicons01.tga</Texture>
<Location>
<X>0</X>
<Y>0</Y>
</Location>
<Size>
<CX>256</CX>
<CY>256</CY>
</Size>
<Hotspot>
<X>0</X>
<Y>0</Y>
</Hotspot>
<Duration>1000</Duration>
</Frames>
</Ui2DAnimation>
<Ui2DAnimation item="A_CascadeMenuSeparator">
<Frames>
<Texture>window_pieces01.tga</Texture>
<Location>
<X>80</X>
<Y>175</Y>
</Location>
<Size>
<CX>4</CX>
<CY>4</CY>
</Size>
</Frames>
</Ui2DAnimation>
<Ui2DAnimation item="A_CascadeSubmenuIndicator">
<Frames>
<Texture>window_pieces05.tga</Texture>
<Location>
<X>164</X>
<Y>0</Y>
</Location>
<Size>
<CX>10</CX>
<CY>11</CY>
</Size>
</Frames>
</Ui2DAnimation>
<Ui2DAnimation item="A_EQBtnNormal">
<Cycle>true</Cycle>
<Frames>
<Texture>window_pieces05.tga</Texture>
<Location>
<X>60</X>
<Y>26</Y>
</Location>
<Size>
<CX>44</CX>
<CY>44</CY>
</Size>
<Hotspot>
<X>0</X>
<Y>0</Y>
</Hotspot>
<Duration>1000</Duration>
</Frames>
</Ui2DAnimation>
<Ui2DAnimation item="A_EQBtnFlyby">
<Cycle>true</Cycle>
<Frames>
<Texture>window_pieces05.tga</Texture>
<Location>
<X>102</X>
<Y>26</Y>
</Location>
<Size>
<CX>44</CX>
<CY>44</CY>
</Size>
<Hotspot>
<X>0</X>
<Y>0</Y>
</Hotspot>
<Duration>1000</Duration>
</Frames>
</Ui2DAnimation>
<Ui2DAnimation item="A_EQBtnPressed">
<Cycle>true</Cycle>
<Frames>
<Texture>window_pieces05.tga</Texture>
<Location>
<X>144</X>
<Y>26</Y>
</Location>
<Size>
<CX>44</CX>
<CY>44</CY>
</Size>
<Hotspot>
<X>0</X>
<Y>0</Y>
</Hotspot>
<Duration>1000</Duration>
</Frames>
</Ui2DAnimation>
<Ui2DAnimation item="A_EQBtnPressedFlyby">
<Cycle>true</Cycle>
<Frames>
<Texture>window_pieces05.tga</Texture>
<Location>
<X>186</X>
<Y>26</Y>
</Location>
<Size>
<CX>44</CX>
<CY>44</CY>
</Size>
<Hotspot>
<X>0</X>
<Y>0</Y>
</Hotspot>
<Duration>1000</Duration>
</Frames>
</Ui2DAnimation>
<Ui2DAnimation item="A_EQBtnDisabled">
<Cycle>true</Cycle>
<Frames>
<Texture>window_pieces05.tga</Texture>
<Location>
<X>60</X>
<Y>68</Y>
</Location>
<Size>
<CX>44</CX>
<CY>44</CY>
</Size>
<Hotspot>
<X>0</X>
<Y>0</Y>
</Hotspot>
<Duration>1000</Duration>
</Frames>
</Ui2DAnimation>
<Button item="CSepIW_Button">
<ScreenID>Button</ScreenID>
<!--<Font>3</Font>-->
<RelativePosition>true</RelativePosition>
<AutoStretch>true</AutoStretch>
<TopAnchorToTop>true</TopAnchorToTop>
<BottomAnchorToTop>false</BottomAnchorToTop>
<LeftAnchorToLeft>true</LeftAnchorToLeft>
<RightAnchorToLeft>false</RightAnchorToLeft>
<LeftAnchorOffset>0</LeftAnchorOffset>
<TopAnchorOffset>2</TopAnchorOffset>
<RightAnchorOffset>0</RightAnchorOffset>
<BottomAnchorOffset>2</BottomAnchorOffset>
<Style_VScroll>false</Style_VScroll>
<Style_HScroll>false</Style_HScroll>
<Style_Transparent>true</Style_Transparent>
<Style_Checkbox>false</Style_Checkbox>
<ButtonDrawTemplate>
<Normal>A_CascadeMenuSeparator</Normal>
<NormalDecal />
</ButtonDrawTemplate>
</Button>
<Screen item="CascadeSeparatorItemWnd">
<ScreenID />
<RelativePosition>true</RelativePosition>
<Location>
<X>20</X>
<Y>600</Y>
</Location>
<Size>
<CX>190</CX>
<CY>6</CY>
</Size>
<Text />
<Style_VScroll>false</Style_VScroll>
<Style_HScroll>false</Style_HScroll>
<Style_Transparent>true</Style_Transparent>
<TooltipReference />
<DrawTemplate>WDT_RoundedNoTitle</DrawTemplate>
<Style_Titlebar>false</Style_Titlebar>
<Style_Closebox>false</Style_Closebox>
<Style_Minimizebox>false</Style_Minimizebox>
<Style_Border>false</Style_Border>
<Style_Sizable>false</Style_Sizable>
<Pieces>CSepIW_Button</Pieces>
</Screen>
<Button item="CSubIW_Button">
<ScreenID>Button</ScreenID>
<!--<Font>3</Font>-->
<RelativePosition>true</RelativePosition>
<AutoStretch>true</AutoStretch>
<TopAnchorToTop>true</TopAnchorToTop>
<BottomAnchorToTop>false</BottomAnchorToTop>
<LeftAnchorToLeft>true</LeftAnchorToLeft>
<RightAnchorToLeft>false</RightAnchorToLeft>
<LeftAnchorOffset>0</LeftAnchorOffset>
<TopAnchorOffset>0</TopAnchorOffset>
<RightAnchorOffset>0</RightAnchorOffset>
<BottomAnchorOffset>0</BottomAnchorOffset>
<Style_VScroll>false</Style_VScroll>
<Style_HScroll>false</Style_HScroll>
<Style_Transparent>false</Style_Transparent>
<Style_Checkbox>false</Style_Checkbox>
<Text>Test Text</Text>
<TextColor>
<R>255</R>
<G>255</G>
<B>255</B>
</TextColor>
<ButtonDrawTemplate>
<Normal />
<NormalDecal>A_MenuIcons</NormalDecal>
</ButtonDrawTemplate>
<DecalOffset>
<X>0</X>
<Y>0</Y>
</DecalOffset>
<DecalSize>
<CX>24</CX>
<CY>24</CY>
</DecalSize>
</Button>
<Button item="CSubIW_Arrow">
<ScreenID>Arrow</ScreenID>
<!--<Font>3</Font>-->
<RelativePosition>true</RelativePosition>
<Location>
<X>180</X>
<Y>6</Y>
</Location>
<Size>
<CX>10</CX>
<CY>11</CY>
</Size>
<Style_VScroll>false</Style_VScroll>
<Style_HScroll>false</Style_HScroll>
<Style_Transparent>true</Style_Transparent>
<Style_Checkbox>false</Style_Checkbox>
<ButtonDrawTemplate>
<Normal>A_CascadeSubmenuIndicator</Normal>
<NormalDecal />
</ButtonDrawTemplate>
</Button>
<Screen item="CascadeSubmenuItemWnd">
<ScreenID />
<RelativePosition>true</RelativePosition>
<Location>
<X>20</X>
<Y>600</Y>
</Location>
<Size>
<CX>190</CX>
<CY>24</CY>
</Size>
<Text />
<Style_VScroll>false</Style_VScroll>
<Style_HScroll>false</Style_HScroll>
<Style_Transparent>true</Style_Transparent>
<TooltipReference />
<DrawTemplate>WDT_RoundedNoTitle</DrawTemplate>
<Style_Titlebar>false</Style_Titlebar>
<Style_Closebox>false</Style_Closebox>
<Style_Minimizebox>false</Style_Minimizebox>
<Style_Border>false</Style_Border>
<Style_Sizable>false</Style_Sizable>
<Pieces>CSubIW_Arrow</Pieces>
<Pieces>CSubIW_Button</Pieces>
</Screen>
<Button item="CCmdIW_Button">
<ScreenID>Button</ScreenID>
<!--<Font>3</Font>-->
<RelativePosition>true</RelativePosition>
<AutoStretch>true</AutoStretch>
<TopAnchorToTop>true</TopAnchorToTop>
<BottomAnchorToTop>false</BottomAnchorToTop>
<LeftAnchorToLeft>true</LeftAnchorToLeft>
<RightAnchorToLeft>false</RightAnchorToLeft>
<LeftAnchorOffset>0</LeftAnchorOffset>
<TopAnchorOffset>0</TopAnchorOffset>
<RightAnchorOffset>0</RightAnchorOffset>
<BottomAnchorOffset>0</BottomAnchorOffset>
<Style_VScroll>false</Style_VScroll>
<Style_HScroll>false</Style_HScroll>
<Style_Transparent>false</Style_Transparent>
<Style_Checkbox>false</Style_Checkbox>
<Text>Test Text</Text>
<TextColor>
<R>255</R>
<G>255</G>
<B>255</B>
</TextColor>
<ButtonDrawTemplate>
<Normal />
<NormalDecal>A_MenuIcons</NormalDecal>
</ButtonDrawTemplate>
<DecalOffset>
<X>0</X>
<Y>0</Y>
</DecalOffset>
<DecalSize>
<CX>24</CX>
<CY>24</CY>
</DecalSize>
</Button>
<Screen item="CascadeCommandItemWnd">
<ScreenID />
<RelativePosition>true</RelativePosition>
<Location>
<X>20</X>
<Y>600</Y>
</Location>
<Size>
<CX>180</CX>
<CY>24</CY>
</Size>
<Text />
<Style_VScroll>false</Style_VScroll>
<Style_HScroll>false</Style_HScroll>
<Style_Transparent>true</Style_Transparent>
<TooltipReference />
<DrawTemplate>WDT_RoundedNoTitle</DrawTemplate>
<Style_Titlebar>false</Style_Titlebar>
<Style_Closebox>false</Style_Closebox>
<Style_Minimizebox>false</Style_Minimizebox>
<Style_Border>false</Style_Border>
<Style_Sizable>false</Style_Sizable>
<Pieces>CCmdIW_Button</Pieces>
</Screen>
<Screen item="CascadeSubWnd">
<ScreenID />
<RelativePosition>false</RelativePosition>
<Location>
<X>20</X>
<Y>600</Y>
</Location>
<Size>
<CX>150</CX>
<CY>100</CY>
</Size>
<Text />
<Style_VScroll>false</Style_VScroll>
<Style_HScroll>false</Style_HScroll>
<Style_Transparent>false</Style_Transparent>
<TooltipReference />
<DrawTemplate>WDT_RoundedNoTitle</DrawTemplate>
<Style_Titlebar>false</Style_Titlebar>
<Style_Closebox>false</Style_Closebox>
<Style_Minimizebox>false</Style_Minimizebox>
<Style_Border>true</Style_Border>
<Style_Sizable>false</Style_Sizable>
</Screen>
<Screen item="CascadeTopWnd">
<ScreenID />
<RelativePosition>false</RelativePosition>
<Location>
<X>20</X>
<Y>600</Y>
</Location>
<Size>
<CX>150</CX>
<CY>100</CY>
</Size>
<Text />
<Style_VScroll>false</Style_VScroll>
<Style_HScroll>false</Style_HScroll>
<Style_Transparent>false</Style_Transparent>
<TooltipReference />
<DrawTemplate>WDT_RoundedNoTitle</DrawTemplate>
<Style_Titlebar>false</Style_Titlebar>
<Style_Closebox>false</Style_Closebox>
<Style_Minimizebox>false</Style_Minimizebox>
<Style_Border>true</Style_Border>
<Style_Sizable>false</Style_Sizable>
</Screen>
<Button item="EQM_EQButton">
<ScreenID>EQButton</ScreenID>
<!--<Font>3</Font>-->
<RelativePosition>true</RelativePosition>
<Location>
<X>0</X>
<Y>0</Y>
</Location>
<Size>
<CX>30</CX>
<CY>31</CY>
</Size>
<Style_VScroll>false</Style_VScroll>
<Style_HScroll>false</Style_HScroll>
<Style_Transparent>false</Style_Transparent>
<Style_Checkbox>true</Style_Checkbox>
<Text />
<TextColor>
<R>255</R>
<G>255</G>
<B>255</B>
</TextColor>
<ButtonDrawTemplate>
<Normal>A_EQBtnNormal</Normal>
<Pressed>A_EQBtnPressed</Pressed>
<Flyby>A_EQBtnFlyby</Flyby>
<Disabled>A_EQBtnDisabled</Disabled>
<PressedFlyby>A_EQBtnPressedFlyby</PressedFlyby>
</ButtonDrawTemplate>
<Font>2</Font>
</Button>
<Button item="EQM_SCButton">
<ScreenID>SCButton</ScreenID>
<RelativePosition>true</RelativePosition>
<Location>
<X>53</X>
<Y>-3</Y>
</Location>
<Size>
<CX>44</CX>
<CY>44</CY>
</Size>
<TooltipReference>Click this to open the Marketplace</TooltipReference>
<TextColor>
<R>255</R>
<G>255</G>
<B>255</B>
</TextColor>
<Template>BDT_SCBtn</Template>
</Button>
<Screen item="EQMainWnd">
<ScreenID />
<RelativePosition>false</RelativePosition>
<Location>
<X>0</X>
<Y>550</Y>
</Location>
<Size>
<CX>40</CX>
<CY>40</CY>
</Size>
<Text />
<Style_VScroll>false</Style_VScroll>
<Style_HScroll>false</Style_HScroll>
<Style_Transparent>false</Style_Transparent>
<TooltipReference />
<DrawTemplate>WDT_Inner</DrawTemplate>
<Style_Titlebar>false</Style_Titlebar>
<Style_Closebox>false</Style_Closebox>
<Style_Minimizebox>false</Style_Minimizebox>
<Style_Border>true</Style_Border>
<Style_Sizable>false</Style_Sizable>
<Pieces>EQM_EQButton</Pieces>
<Pieces>EQM_SCButton</Pieces>
</Screen>
</XML>
Stice is offline   Reply With Quote
Old 04-06-2012, 09:24 AM   #2
valaury3169
Enhanced Imperial Golem
 
Join Date: Jun 2008
Posts: 204
Interface Author - Click to view interfaces
Default

You'll need to change the <CX> to 32 and the <CY> to 33 in the screen definition (near where you bolded). The size of the EQ button is defined as 30,31. Positioning stuff within a window (in this case, the EQ button is set to 0,0) does not add in the border. So, 0,0 is the first pixel below and to the right of whatever border you set it to have. However, the window (<screen>) size does include the borders. The original border was 4 pixels wide (5 or 6 for the top I think), so the window size had to be bigger. The WDT_Inner template is only 2 pixels all around.

Hopefully that made sense. Either way, in the <Screen> tag at the bottom (where you changed the template) replace:

<Size>
<CX>40</CX>
<CY>40</CY>
</Size>

with:

<Size>
<CX>32</CX>
<CY>33</CY>
</Size>


By the way, when you post code, especially large blocks of it, remember to use the tags of (code)(/code) tags (use square brackets instead of parenthesis). That way the code is packaged into a scrollable box in the middle of you post. It is easier to read and easier to copy/paste if need be.
valaury3169 is offline   Reply With Quote
Old 04-06-2012, 09:38 AM   #3
Savok
On tour since '99
 
Join Date: Sep 2002
Server: Innoruuk forever!
Posts: 473
Interface Author - Click to view interfaces
Default

Quote:
Originally Posted by valaury3169
By the way, when you post code, especially large blocks of it, remember to use the tags of (code)(/code) tags (use square brackets instead of parenthesis). That way the code is packaged into a scrollable box in the middle of you post. It is easier to read and easier to copy/paste if need be.


Excellent advice. I try to help out when I can but lines of squashed text makes it hard on the eyes!
__________________
Gold: 03/16/99 - 03/15/12 Silver: 03/16/12 - 03/15/18 Done:03/16/18
And with a heavy heart I bid adieu to Everquest Live.
Savok is offline   Reply With Quote
Old 04-06-2012, 12:59 PM   #4
Stice
A Snow Griffin
 
Join Date: Feb 2003
Posts: 55
Interface Author - Click to view interfaces
Default

Thank you so much got it all sized up now, even got to slightly tweek others that were a little big.
Stice is offline   Reply With Quote
Reply



Thread Tools
Display Modes

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 01:27 PM.


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