EQInterface Forums

EQInterface Forums (http://www.eqinterface.com/forums/index.php)
-   Graphics modification help. (http://www.eqinterface.com/forums/forumdisplay.php?f=31)
-   -   How do I slim down my code for an item? (http://www.eqinterface.com/forums/showthread.php?t=14664)

anjilek 07-27-2004 12:03 PM

How do I slim down my code for an item?
 
Whats the bare minimum code for calling up a graphic as an item?

Here is what I have as an item.
Code:
<Ui2DAnimation item = "CornerUL"> <Cycle>true</Cycle> <Frames> <Texture>dj_pw.tga</Texture> <Location> <X>0</X> <Y>0</Y> </Location> <Size> <CX>6</CX> <CY>6</CY> </Size> <Hotspot> <X>0</X> <Y>0</Y> </Hotspot> <Duration>1000</Duration> </Frames> </Ui2DAnimation>


No I am curious, I was going to use a cut an paste like -

Code:
<Label item="CornerUL"> <ScreenID>PW_CornerUL</ScreenID> <RelativePosition>true</RelativePosition> <Location> <X>0</X> <Y>0</Y> </Location> <Size> <CX>6</CX> <CY>6</CY> </Size> <Text>.</Text> <TextColor> <R>255</R> <G>255</G> <B>255</B> </TextColor> <NoWrap>true</NoWrap> <AlignCenter>True</AlignCenter> </Label>


What in here is extra?Seems to me like I could just use-
Code:
<Label item="CornerUL"> <ScreenID>PW_CornerUL</ScreenID> <RelativePosition>true</RelativePosition> <Location> <X>0</X> <Y>0</Y> </Location> <Size> <CX>6</CX> <CY>6</CY> </Size> <AlignCenter>True</AlignCenter> </Label>


Would this work? I am using a 6*6 corner piece located at 0/0. Do I even need the <AlignCenter>? I am trying to minimize the code as much as possible and this would help a ton.

kenney 07-27-2004 12:41 PM

Try it and see? if not just put it back the way it was..

Taleisin 07-27-2004 01:08 PM

a coder after my own heart :p

I've come up with a new way to write a ful XML document, it really saves room on the harddrive and ram without sacraficing code

buff window original size 26.6Kbs
compressed buff window size 22.5Kbs

*full buff window code*

Code:
<?xml version="1.0" encoding="us-ascii"?> <XML ID="EQInterfaceDefinitionLanguage"> <Schema xmlns="EverQuestData" xmlns:dt="EverQuestDataTypes" /> <!-- Powered by: ( Lunix-SpitFire v10.2 [modX format] ) --> <Ui2DAnimation item="BlueIconBackground"><Cycle>true</Cycle><Frames><Texture>IW.png</Texture><Location><X>184</X><Y>209</Y></Location><Size><CX>1</CX><CY>1</CY></Size><Hotspot><X>0</X><Y>0</Y></Hotspot><Duration>1000</Duration></Frames></Ui2DAnimation> <Ui2DAnimation item="RedIconBackground"><Cycle>true</Cycle><Frames><Texture>IW.png</Texture><Location><X>181</X><Y>209</Y></Location><Size><CX>1</CX><CY>1</CY></Size><Hotspot><X>0</X><Y>0</Y></Hotspot><Duration>1000</Duration></Frames></Ui2DAnimation> <Label item="Buff1_No"><ScreenID>Buff1_No</ScreenID><Font>6</Font><RelativePosition>true</RelativePosition><Location><X>1</X><Y>1</Y></Location><Size><CX>30</CX><CY>40</CY></Size><Text>1</Text><TextColor><R>25</R><G>255</G><B>25</B></TextColor><NoWrap>true</NoWrap><AlignCenter>true</AlignCenter><AlignRight>false</AlignRight></Label> <Label item="Buff2_No"><ScreenID>Buff2_No</ScreenID><Font>6</Font><RelativePosition>true</RelativePosition><Location><X>0</X><Y>21</Y></Location><Size><CX>30</CX><CY>40</CY></Size><Text>2</Text><TextColor><R>25</R><G>255</G><B>25</B></TextColor><NoWrap>true</NoWrap><AlignCenter>true</AlignCenter><AlignRight>false</AlignRight></Label> <Label item="Buff3_No"><ScreenID>Buff3_No</ScreenID><Font>6</Font><RelativePosition>true</RelativePosition><Location><X>0</X><Y>42</Y></Location><Size><CX>30</CX><CY>40</CY></Size><Text>3</Text><TextColor><R>25</R><G>255</G><B>25</B></TextColor><NoWrap>true</NoWrap><AlignCenter>true</AlignCenter><AlignRight>false</AlignRight></Label> <Label item="Buff4_No"><ScreenID>Buff4_No</ScreenID><Font>6</Font><RelativePosition>true</RelativePosition><Location><X>0</X><Y>63</Y></Location><Size><CX>30</CX><CY>40</CY></Size><Text>4</Text><TextColor><R>25</R><G>255</G><B>25</B></TextColor><NoWrap>true</NoWrap><AlignCenter>true</AlignCenter><AlignRight>false</AlignRight></Label> <Label item="Buff5_No"><ScreenID>Buff5_No</ScreenID><Font>6</Font><RelativePosition>true</RelativePosition><Location><X>0</X><Y>84</Y></Location><Size><CX>30</CX><CY>40</CY></Size><Text>5</Text><TextColor><R>25</R><G>255</G><B>25</B></TextColor><NoWrap>true</NoWrap><AlignCenter>true</AlignCenter><AlignRight>false</AlignRight></Label> <Label item="Buff6_No"><ScreenID>Buff6_No</ScreenID><Font>6</Font><RelativePosition>true</RelativePosition><Location><X>0</X><Y>105</Y></Location><Size><CX>30</CX><CY>40</CY></Size><Text>6</Text><TextColor><R>25</R><G>255</G><B>25</B></TextColor><NoWrap>true</NoWrap><AlignCenter>true</AlignCenter><AlignRight>false</AlignRight></Label> <Label item="Buff7_No"><ScreenID>Buff7_No</ScreenID><Font>6</Font><RelativePosition>true</RelativePosition><Location><X>0</X><Y>126</Y></Location><Size><CX>30</CX><CY>40</CY></Size><Text>7</Text><TextColor><R>25</R><G>255</G><B>25</B></TextColor><NoWrap>true</NoWrap><AlignCenter>true</AlignCenter><AlignRight>false</AlignRight></Label> <Label item="Buff8_No"><ScreenID>Buff8_No</ScreenID><Font>6</Font><RelativePosition>true</RelativePosition><Location><X>0</X><Y>147</Y></Location><Size><CX>30</CX><CY>40</CY></Size><Text>8</Text><TextColor><R>25</R><G>255</G><B>25</B></TextColor><NoWrap>true</NoWrap><AlignCenter>true</AlignCenter><AlignRight>false</AlignRight></Label> <Label item="Buff9_No"><ScreenID>Buff9_No</ScreenID><Font>6</Font><RelativePosition>true</RelativePosition><Location><X>0</X><Y>168</Y></Location><Size><CX>30</CX><CY>40</CY></Size><Text>9</Text><TextColor><R>25</R><G>255</G><B>25</B></TextColor><NoWrap>true</NoWrap><AlignCenter>true</AlignCenter><AlignRight>false</AlignRight></Label> <Label item="Buff10_No"><ScreenID>Buff10_No</ScreenID><Font>6</Font><RelativePosition>true</RelativePosition><Location><X>0</X><Y>189</Y></Location><Size><CX>30</CX><CY>40</CY></Size><Text>10</Text><TextColor><R>25</R><G>255</G><B>25</B></TextColor><NoWrap>true</NoWrap><AlignCenter>true</AlignCenter><AlignRight>false</AlignRight></Label> <Label item="Buff11_No"><ScreenID>Buff11_No</ScreenID><Font>6</Font><RelativePosition>true</RelativePosition><Location><X>0</X><Y>210</Y></Location><Size><CX>30</CX><CY>40</CY></Size><Text>11</Text><TextColor><R>25</R><G>255</G><B>25</B></TextColor><NoWrap>true</NoWrap><AlignCenter>true</AlignCenter><AlignRight>false</AlignRight></Label> <Label item="Buff12_No"><ScreenID>Buff12_No</ScreenID><Font>6</Font><RelativePosition>true</RelativePosition><Location><X>0</X><Y>231</Y></Location><Size><CX>30</CX><CY>40</CY></Size><Text>12</Text><TextColor><R>25</R><G>255</G><B>25</B></TextColor><NoWrap>true</NoWrap><AlignCenter>true</AlignCenter><AlignRight>false</AlignRight></Label> <Label item="Buff13_No"><ScreenID>Buff13_No</ScreenID><Font>6</Font><RelativePosition>true</RelativePosition><Location><X>0</X><Y>252</Y></Location><Size><CX>30</CX><CY>40</CY></Size><Text>13</Text><TextColor><R>25</R><G>255</G><B>25</B></TextColor><NoWrap>true</NoWrap><AlignCenter>true</AlignCenter><AlignRight>false</AlignRight></Label> <Label item="Buff14_No"><ScreenID>Buff14_No</ScreenID><Font>6</Font><RelativePosition>true</RelativePosition><Location><X>0</X><Y>273</Y></Location><Size><CX>30</CX><CY>40</CY></Size><Text>14</Text><TextColor><R>25</R><G>255</G><B>25</B></TextColor><NoWrap>true</NoWrap><AlignCenter>true</AlignCenter><AlignRight>false</AlignRight></Label> <Label item="Buff15_No"><ScreenID>Buff15_No</ScreenID><Font>6</Font><RelativePosition>true</RelativePosition><Location><X>0</X><Y>293</Y></Location><Size><CX>30</CX><CY>40</CY></Size><Text>15</Text><TextColor><R>25</R><G>255</G><B>25</B></TextColor><NoWrap>true</NoWrap><AlignCenter>true</AlignCenter><AlignRight>false</AlignRight></Label> <!-- New Graphics --> <TextureInfo item="CS3.png"><Size><CX>256</CX><CY>256</CY></Size></TextureInfo> <Ui2DAnimation item="TTS_BuffBar01"><Frames><Texture>CS3.png</Texture><Location><X>235</X><Y>1</Y></Location><Size><CX>20</CX><CY>167</CY></Size><Hotspot><X>0</X><Y>0</Y></Hotspot></Frames></Ui2DAnimation> <Ui2DAnimation item="TTS_BuffBar02"><Frames><Texture>CS3.png</Texture><Location><X>235</X><Y>1</Y></Location><Size><CX>20</CX><CY>146</CY></Size><Hotspot><X>0</X><Y>0</Y></Hotspot></Frames></Ui2DAnimation> <Ui2DAnimation item="TTS_BuffBarMove"><Frames><Texture>CS3.png</Texture><Location><X>108</X><Y>235</Y></Location><Size><CX>23</CX><CY>17</CY></Size><Hotspot><X>0</X><Y>0</Y></Hotspot></Frames></Ui2DAnimation> <StaticAnimation item="Buff_Back0"><ScreenID>Buff_Back0</ScreenID><RelativePosition>true</RelativePosition><Location><X>121</X><Y>1</Y></Location><Size><CX>20</CX><CY>167</CY></Size><Animation>TTS_BuffBar01</Animation></StaticAnimation> <StaticAnimation item="Buff_Back1"><ScreenID>Buff_Back1</ScreenID><RelativePosition>true</RelativePosition><Location><X>121</X><Y>169</Y></Location><Size><CX>20</CX><CY>146</CY></Size><Animation>TTS_BuffBar02</Animation></StaticAnimation> <StaticAnimation item="Buff_BackMove"><ScreenID>Buff_Back1</ScreenID><RelativePosition>true</RelativePosition><Location><X>118</X><Y>316</Y></Location><Size><CX>23</CX><CY>17</CY></Size><Animation>TTS_BuffBarMove</Animation></StaticAnimation> <Screen item="NumberModeWindow3"><RelativePosition>true</RelativePosition><Location><X>116</X><Y>-1</Y></Location><Size><CX>30</CX><CY>314</CY></Size><Style_Transparent>true</Style_Transparent><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>Buff1_No</Pieces><Pieces>Buff2_No</Pieces><Pieces>Buff3_No</Pieces><Pieces>Buff4_No</Pieces><Pieces>Buff5_No</Pieces><Pieces>Buff6_No</Pieces><Pieces>Buff7_No</Pieces><Pieces>Buff8_No</Pieces><Pieces>Buff9_No</Pieces><Pieces>Buff10_No</Pieces><Pieces>Buff11_No</Pieces><Pieces>Buff12_No</Pieces><Pieces>Buff13_No</Pieces><Pieces>Buff14_No</Pieces><Pieces>Buff15_No</Pieces></Screen> <Button item="BW_Buff0_Button"><ScreenID>Buff0</ScreenID><RelativePosition>true</RelativePosition><Location><X>1</X><Y>1</Y></Location><Size><CX>140</CX><CY>20</CY></Size><Style_VScroll>false</Style_VScroll><Style_HScroll>false</Style_HScroll><Style_Transparent>false</Style_Transparent><TooltipReference>None</TooltipReference><Style_Checkbox>false</Style_Checkbox><ButtonDrawTemplate><Normal>BlueIconBackground</Normal><NormalDecal>BuffIcons</NormalDecal></ButtonDrawTemplate><DecalOffset><X>120</X><Y>0</Y></DecalOffset><DecalSize><CX>20</CX><CY>20</CY></DecalSize></Button> <Label item="Buff0_Label"><ScreenID>Buff0_Label</ScreenID><EQType>45</EQType><Font>1</Font><RelativePosition>true</RelativePosition><Location><X>1</X><Y>1</Y></Location><Size><CX>120</CX><CY>20</CY></Size><TextColor><R>20</R><G>255</G><B>0</B></TextColor><NoWrap>true</NoWrap><AlignCenter>false</AlignCenter><AlignRight>false</AlignRight></Label> <Button item="BW_Buff1_Button"><ScreenID>Buff1</ScreenID><RelativePosition>true</RelativePosition><Location><X>1</X><Y>22</Y></Location><Size><CX>140</CX><CY>20</CY></Size><Style_VScroll>false</Style_VScroll><Style_HScroll>false</Style_HScroll><Style_Transparent>false</Style_Transparent><Style_Checkbox>false</Style_Checkbox><RadioGroup /><ButtonDrawTemplate><Normal>RedIconBackground</Normal><NormalDecal>BuffIcons</NormalDecal></ButtonDrawTemplate><DecalOffset><X>120</X><Y>0</Y></DecalOffset><DecalSize><CX>20</CX><CY>20</CY></DecalSize></Button> <Label item="Buff1_Label"><ScreenID>Buff1_Label</ScreenID><EQType>46</EQType><Font>1</Font><RelativePosition>true</RelativePosition><Location><X>1</X><Y>22</Y></Location><Size><CX>120</CX><CY>20</CY></Size><TextColor><R>0</R><G>255</G><B>0</B></TextColor><NoWrap>true</NoWrap><AlignCenter>false</AlignCenter><AlignRight>false</AlignRight></Label> <Button item="BW_Buff2_Button"><ScreenID>Buff2</ScreenID><RelativePosition>true</RelativePosition><Location><X>1</X><Y>43</Y></Location><Size><CX>140</CX><CY>20</CY></Size><Style_VScroll>false</Style_VScroll><Style_HScroll>false</Style_HScroll><Style_Transparent>false</Style_Transparent><Style_Checkbox>false</Style_Checkbox><RadioGroup /><ButtonDrawTemplate><Normal>RedIconBackground</Normal><NormalDecal>BuffIcons</NormalDecal></ButtonDrawTemplate><DecalOffset><X>120</X><Y>0</Y></DecalOffset><DecalSize><CX>20</CX><CY>20</CY></DecalSize></Button> <Label item="Buff2_Label"><ScreenID>Buff2_Label</ScreenID><EQType>47</EQType><Font>1</Font><RelativePosition>true</RelativePosition><Location><X>1</X><Y>43</Y></Location><Size><CX>120</CX><CY>20</CY></Size><TextColor><R>0</R><G>255</G><B>0</B></TextColor><NoWrap>true</NoWrap><AlignCenter>false</AlignCenter><AlignRight>false</AlignRight></Label> <Button item="BW_Buff3_Button"><ScreenID>Buff3</ScreenID><RelativePosition>true</RelativePosition><Location><X>1</X><Y>64</Y></Location><Size><CX>140</CX><CY>20</CY></Size><Style_VScroll>false</Style_VScroll><Style_HScroll>false</Style_HScroll><Style_Transparent>false</Style_Transparent><Style_Checkbox>false</Style_Checkbox><RadioGroup /><ButtonDrawTemplate><Normal>BlueIconBackground</Normal><NormalDecal>BuffIcons</NormalDecal></ButtonDrawTemplate><DecalOffset><X>120</X><Y>0</Y></DecalOffset><DecalSize><CX>20</CX><CY>20</CY></DecalSize></Button> <Label item="Buff3_Label"><ScreenID>Buff3_Label</ScreenID><EQType>48</EQType><Font>1</Font><RelativePosition>true</RelativePosition><Location><X>1</X><Y>64</Y></Location><Size><CX>120</CX><CY>20</CY></Size><TextColor><R>0</R><G>255</G><B>0</B></TextColor><NoWrap>true</NoWrap><AlignCenter>false</AlignCenter><AlignRight>false</AlignRight></Label> <Button item="BW_Buff4_Button"><ScreenID>Buff4</ScreenID><RelativePosition>true</RelativePosition><Location><X>1</X><Y>85</Y></Location><Size><CX>140</CX><CY>20</CY></Size><Style_VScroll>false</Style_VScroll><Style_HScroll>false</Style_HScroll><Style_Transparent>false</Style_Transparent><TooltipReference /><Style_Checkbox>false</Style_Checkbox><ButtonDrawTemplate><Normal>RedIconBackground</Normal><NormalDecal>BuffIcons</NormalDecal></ButtonDrawTemplate><DecalOffset><X>120</X><Y>0</Y></DecalOffset><DecalSize><CX>20</CX><CY>20</CY></DecalSize></Button> <Label item="Buff4_Label"><ScreenID>Buff4_Label</ScreenID><EQType>49</EQType><Font>1</Font><RelativePosition>true</RelativePosition><Location><X>1</X><Y>85</Y></Location><Size><CX>120</CX><CY>20</CY></Size><TextColor><R>0</R><G>255</G><B>0</B></TextColor><NoWrap>true</NoWrap><AlignCenter>false</AlignCenter><AlignRight>false</AlignRight></Label> <Button item="BW_Buff5_Button"><ScreenID>Buff5</ScreenID><RelativePosition>true</RelativePosition><Location><X>1</X><Y>106</Y></Location><Size><CX>140</CX><CY>20</CY></Size><Style_VScroll>false</Style_VScroll><Style_HScroll>false</Style_HScroll><Style_Transparent>false</Style_Transparent><Style_Checkbox>false</Style_Checkbox><ButtonDrawTemplate><Normal>RedIconBackground</Normal><NormalDecal>BuffIcons</NormalDecal></ButtonDrawTemplate><DecalOffset><X>120</X><Y>0</Y></DecalOffset><DecalSize><CX>20</CX><CY>20</CY></DecalSize></Button> <Label item="Buff5_Label"><ScreenID>Buff5_Label</ScreenID><EQType>50</EQType><Font>1</Font><RelativePosition>true</RelativePosition><Location><X>1</X><Y>106</Y></Location><Size><CX>120</CX><CY>20</CY></Size><TextColor><R>0</R><G>255</G><B>0</B></TextColor><NoWrap>true</NoWrap><AlignCenter>false</AlignCenter><AlignRight>false</AlignRight></Label> <Button item="BW_Buff6_Button"><ScreenID>Buff6</ScreenID><RelativePosition>true</RelativePosition><Location><X>1</X><Y>127</Y></Location><Size><CX>140</CX><CY>20</CY></Size><Style_VScroll>false</Style_VScroll><Style_HScroll>false</Style_HScroll><Style_Transparent>false</Style_Transparent><Style_Checkbox>false</Style_Checkbox><ButtonDrawTemplate><Normal>BlueIconBackground</Normal><NormalDecal>BuffIcons</NormalDecal></ButtonDrawTemplate><DecalOffset><X>120</X><Y>0</Y></DecalOffset><DecalSize><CX>20</CX><CY>20</CY></DecalSize></Button> <Label item="Buff6_Label"><ScreenID>Buff6_Label</ScreenID><EQType>51</EQType><Font>1</Font><RelativePosition>true</RelativePosition><Location><X>1</X><Y>127</Y></Location><Size><CX>120</CX><CY>20</CY></Size><TextColor><R>0</R><G>255</G><B>0</B></TextColor><NoWrap>true</NoWrap><AlignCenter>false</AlignCenter><AlignRight>false</AlignRight></Label> <Button item="BW_Buff7_Button"><ScreenID>Buff7</ScreenID><RelativePosition>true</RelativePosition><Location><X>1</X><Y>148</Y></Location><Size><CX>140</CX><CY>20</CY></Size><Style_VScroll>false</Style_VScroll><Style_HScroll>false</Style_HScroll><Style_Transparent>false</Style_Transparent><Style_Checkbox>false</Style_Checkbox><ButtonDrawTemplate><Normal>RedIconBackground</Normal><NormalDecal>BuffIcons</NormalDecal></ButtonDrawTemplate><DecalOffset><X>120</X><Y>0</Y></DecalOffset><DecalSize><CX>20</CX><CY>20</CY></DecalSize></Button> <Label item="Buff7_Label"><ScreenID>Buff7_Label</ScreenID><EQType>52</EQType><Font>1</Font><RelativePosition>true</RelativePosition><Location><X>1</X><Y>148</Y></Location><Size><CX>120</CX><CY>20</CY></Size><TextColor><R>0</R><G>255</G><B>0</B></TextColor><NoWrap>true</NoWrap><AlignCenter>false</AlignCenter><AlignRight>false</AlignRight></Label> <Button item="BW_Buff8_Button"><ScreenID>Buff8</ScreenID><RelativePosition>true</RelativePosition><Location><X>1</X><Y>169</Y></Location><Size><CX>140</CX><CY>20</CY></Size><Style_VScroll>false</Style_VScroll><Style_HScroll>false</Style_HScroll><Style_Transparent>false</Style_Transparent><Style_Checkbox>false</Style_Checkbox><ButtonDrawTemplate><Normal>RedIconBackground</Normal><NormalDecal>BuffIcons</NormalDecal></ButtonDrawTemplate><DecalOffset><X>120</X><Y>0</Y></DecalOffset><DecalSize><CX>20</CX><CY>20</CY></DecalSize></Button> <Label item="Buff8_Label"><ScreenID>Buff8_Label</ScreenID><EQType>53</EQType><Font>1</Font><RelativePosition>true</RelativePosition><Location><X>1</X><Y>169</Y></Location><Size><CX>120</CX><CY>20</CY></Size><TextColor><R>0</R><G>255</G><B>0</B></TextColor><NoWrap>true</NoWrap><AlignCenter>false</AlignCenter><AlignRight>false</AlignRight></Label> <Button item="BW_Buff9_Button"><ScreenID>Buff9</ScreenID><RelativePosition>true</RelativePosition><Location><X>1</X><Y>190</Y></Location><Size><CX>140</CX><CY>20</CY></Size><Style_VScroll>false</Style_VScroll><Style_HScroll>false</Style_HScroll><Style_Transparent>false</Style_Transparent><Style_Checkbox>false</Style_Checkbox><ButtonDrawTemplate><Normal>BlueIconBackground</Normal><NormalDecal>BuffIcons</NormalDecal></ButtonDrawTemplate><DecalOffset><X>120</X><Y>0</Y></DecalOffset><DecalSize><CX>20</CX><CY>20</CY></DecalSize></Button> <Label item="Buff9_Label"><ScreenID>Buff9_Label</ScreenID><EQType>54</EQType><Font>1</Font><RelativePosition>true</RelativePosition><Location><X>1</X><Y>190</Y></Location><Size><CX>120</CX><CY>20</CY></Size><TextColor><R>0</R><G>255</G><B>0</B></TextColor><NoWrap>true</NoWrap><AlignCenter>false</AlignCenter><AlignRight>false</AlignRight></Label> <Button item="BW_Buff10_Button"><ScreenID>Buff10</ScreenID><RelativePosition>true</RelativePosition><Location><X>1</X><Y>211</Y></Location><Size><CX>140</CX><CY>20</CY></Size><Style_VScroll>false</Style_VScroll><Style_HScroll>false</Style_HScroll><Style_Transparent>false</Style_Transparent><Style_Checkbox>false</Style_Checkbox><ButtonDrawTemplate><Normal>RedIconBackground</Normal><NormalDecal>BuffIcons</NormalDecal></ButtonDrawTemplate><DecalOffset><X>120</X><Y>0</Y></DecalOffset><DecalSize><CX>20</CX><CY>20</CY></DecalSize></Button> <Label item="Buff10_Label"><ScreenID>Buff10_Label</ScreenID><EQType>55</EQType><Font>1</Font><RelativePosition>true</RelativePosition><Location><X>1</X><Y>211</Y></Location><Size><CX>120</CX><CY>20</CY></Size><TextColor><R>0</R><G>255</G><B>0</B></TextColor><NoWrap>true</NoWrap><AlignCenter>false</AlignCenter><AlignRight>false</AlignRight></Label> <Button item="BW_Buff11_Button"><ScreenID>Buff11</ScreenID><RelativePosition>true</RelativePosition><Location><X>1</X><Y>232</Y></Location><Size><CX>140</CX><CY>20</CY></Size><Style_VScroll>false</Style_VScroll><Style_HScroll>false</Style_HScroll><Style_Transparent>false</Style_Transparent><Style_Checkbox>false</Style_Checkbox><ButtonDrawTemplate><Normal>RedIconBackground</Normal><NormalDecal>BuffIcons</NormalDecal></ButtonDrawTemplate><DecalOffset><X>120</X><Y>0</Y></DecalOffset><DecalSize><CX>20</CX><CY>20</CY></DecalSize></Button> <Label item="Buff11_Label"><ScreenID>Buff11_Label</ScreenID><EQType>56</EQType><Font>1</Font><RelativePosition>true</RelativePosition><Location><X>1</X><Y>232</Y></Location><Size><CX>120</CX><CY>20</CY></Size><TextColor><R>0</R><G>255</G><B>0</B></TextColor><NoWrap>true</NoWrap><AlignCenter>false</AlignCenter><AlignRight>false</AlignRight></Label> <Button item="BW_Buff12_Button"><ScreenID>Buff12</ScreenID><RelativePosition>true</RelativePosition><Location><X>1</X><Y>253</Y></Location><Size><CX>140</CX><CY>20</CY></Size><Style_VScroll>false</Style_VScroll><Style_HScroll>false</Style_HScroll><Style_Transparent>false</Style_Transparent><Style_Checkbox>false</Style_Checkbox><ButtonDrawTemplate><Normal>BlueIconBackground</Normal><NormalDecal>BuffIcons</NormalDecal></ButtonDrawTemplate><DecalOffset><X>120</X><Y>0</Y></DecalOffset><DecalSize><CX>20</CX><CY>20</CY></DecalSize></Button> <Label item="Buff12_Label"><ScreenID>Buff12_Label</ScreenID><EQType>57</EQType><Font>1</Font><RelativePosition>true</RelativePosition><Location><X>1</X><Y>253</Y></Location><Size><CX>120</CX><CY>20</CY></Size><TextColor><R>0</R><G>255</G><B>0</B></TextColor><NoWrap>true</NoWrap><AlignCenter>false</AlignCenter><AlignRight>false</AlignRight></Label> <Button item="BW_Buff13_Button"><ScreenID>Buff13</ScreenID><RelativePosition>true</RelativePosition><Location><X>1</X><Y>274</Y></Location><Size><CX>140</CX><CY>20</CY></Size><Style_VScroll>false</Style_VScroll><Style_HScroll>false</Style_HScroll><Style_Transparent>false</Style_Transparent><Style_Checkbox>false</Style_Checkbox><ButtonDrawTemplate><Normal>RedIconBackground</Normal><NormalDecal>BuffIcons</NormalDecal></ButtonDrawTemplate><DecalOffset><X>120</X><Y>0</Y></DecalOffset><DecalSize><CX>20</CX><CY>20</CY></DecalSize></Button> <Label item="Buff13_Label"><ScreenID>Buff13_Label</ScreenID><EQType>58</EQType><Font>1</Font><RelativePosition>true</RelativePosition><Location><X>1</X><Y>274</Y></Location><Size><CX>120</CX><CY>20</CY></Size><TextColor><R>0</R><G>255</G><B>0</B></TextColor><NoWrap>true</NoWrap><AlignCenter>false</AlignCenter><AlignRight>false</AlignRight></Label> <Button item="BW_Buff14_Button"><ScreenID>Buff14</ScreenID><RelativePosition>true</RelativePosition><Location><X>1</X><Y>295</Y></Location><Size><CX>140</CX><CY>20</CY></Size><Style_VScroll>false</Style_VScroll><Style_HScroll>false</Style_HScroll><Style_Transparent>false</Style_Transparent><Style_Checkbox>false</Style_Checkbox><ButtonDrawTemplate><Normal>RedIconBackground</Normal><NormalDecal>BuffIcons</NormalDecal></ButtonDrawTemplate><DecalOffset><X>120</X><Y>0</Y></DecalOffset><DecalSize><CX>20</CX><CY>20</CY></DecalSize></Button> <Label item="Buff14_Label"><ScreenID>Buff14_Label</ScreenID><EQType>59</EQType><Font>1</Font><RelativePosition>true</RelativePosition><Location><X>1</X><Y>295</Y></Location><Size><CX>120</CX><CY>20</CY></Size><TextColor><R>0</R><G>255</G><B>0</B></TextColor><NoWrap>true</NoWrap><AlignCenter>false</AlignCenter><AlignRight>false</AlignRight></Label> <Screen item="BuffWindow"><RelativePosition>false</RelativePosition><Location><X>488</X><Y>1</Y></Location><Size><CX>142</CX><CY>333</CY></Size><Text>Buffs</Text><Style_VScroll>false</Style_VScroll><Style_HScroll>false</Style_HScroll><Style_Transparent>true</Style_Transparent><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>Buff_Back0</Pieces><Pieces>Buff_Back1</Pieces><Pieces>NumberModeWindow3</Pieces><Pieces>BW_Buff0_Button</Pieces><Pieces>Buff0_Label</Pieces><Pieces>BW_Buff1_Button</Pieces><Pieces>Buff1_Label</Pieces><Pieces>BW_Buff2_Button</Pieces><Pieces>Buff2_Label</Pieces><Pieces>BW_Buff3_Button</Pieces><Pieces>Buff3_Label</Pieces><Pieces>BW_Buff4_Button</Pieces><Pieces>Buff4_Label</Pieces><Pieces>BW_Buff5_Button</Pieces><Pieces>Buff5_Label</Pieces><Pieces>BW_Buff6_Button</Pieces><Pieces>Buff6_Label</Pieces><Pieces>BW_Buff7_Button</Pieces><Pieces>Buff7_Label</Pieces><Pieces>BW_Buff8_Button</Pieces><Pieces>Buff8_Label</Pieces><Pieces>BW_Buff9_Button</Pieces><Pieces>Buff9_Label</Pieces><Pieces>BW_Buff10_Button</Pieces><Pieces>Buff10_Label</Pieces><Pieces>BW_Buff11_Button</Pieces><Pieces>Buff11_Label</Pieces><Pieces>BW_Buff12_Button</Pieces><Pieces>Buff12_Label</Pieces><Pieces>BW_Buff13_Button</Pieces><Pieces>Buff13_Label</Pieces><Pieces>BW_Buff14_Button</Pieces><Pieces>Buff14_Label</Pieces><Pieces>Buff_BackMove</Pieces></Screen> </XML>


now this wont make to much difference in many windows but when you get into the EQUI_Animations file it makes a ton of difference.. took 134.4Kbs out of mine.

anjilek 07-27-2004 01:13 PM

The reason I haven't tried it is because I work on them at wor....I mean I am not at a computer where I can load EQ.

Maybe someone can post a snippet of code they use for the label item for a graphic file? Thats what I need really. A self wrote one without all the extra's. Thanks if ya can.

Taleisin 07-27-2004 01:20 PM

I'm not sure, are you trying to use a graphic as text?

here is the minimum I think you need, if I understand what you are wanting to do

<TextureInfo item="dj_pw.tga">
<Size>
<CX>256</CX>
<CY>256</CY>
</Size>
</TextureInfo>
<Ui2DAnimation item="dj_Window">
<Frames>
<Texture>dj_pw.tga</Texture>
<Location>
<X>0</X>
<Y>0</Y>
</Location>
<Size>
<CX>6</CX>
<CY>6</CY>
</Size>
<Hotspot>
<X>0</X>
<Y>0</Y>
</Hotspot>
</Frames>
</Ui2DAnimation>
<StaticAnimation item="dj_Static"> <--- StaticAnimation not allways needed
<ScreenID>dj_static</ScreenID>
<RelativePosition>true</RelativePosition>
<Location>
<X>0</X>
<Y>0</Y>
</Location>
<Size>
<CX>6</CX>
<CY>6</CY>
</Size>
<Animation>dj_Window</Animation>
</StaticAnimation>

anjilek 07-27-2004 05:12 PM

Could you do something for me?

First show me the code to declare the djpw.tga to be used

then seperate the portion of the code that calls 0/0 and size of 6/6?

I can't seem to get it to work.

Taleisin 07-27-2004 05:22 PM

this declares the texture to be used
Code:
<TextureInfo item="dj_pw.tga"> <Size> <CX>256</CX> <CY>256</CY> </Size> </TextureInfo>


this calls for the location in the texture and the size to be used
Code:
<Ui2DAnimation item="dj_Window"> <Frames> <Texture>dj_pw.tga</Texture> <Location> <X>0</X> <Y>0</Y> </Location> <Size> <CX>6</CX> <CY>6</CY> </Size> <Hotspot> <X>0</X> <Y>0</Y> </Hotspot> </Frames> </Ui2DAnimation>


this is the code you use to actually appear in your UI, it can be used to call for custom buttons, and custom just about everything.
Code:
<StaticAnimation item="dj_Static"> <ScreenID>dj_static</ScreenID> <RelativePosition>true</RelativePosition> <Location> <X>0</X> <Y>0</Y> </Location> <Size> <CX>6</CX> <CY>6</CY> </Size> <Animation>dj_Window</Animation> </StaticAnimation>

anjilek 07-28-2004 08:10 AM

Thanks you so much! I had it all messed up! Your a life saver.

anjilek 07-28-2004 05:47 PM

I can't seem to get it. Here's what I have.
http://webpages.charter.net/dragonriderknights/djpw.zip

I get an error everytime. Where do I find my error log to se what I have done wrong?

Essentially what it is is a border with four corners for the player window.
Any more help is appreciated.

Yelara 07-28-2004 06:51 PM

Quote:
Originally Posted by anjilek
I can't seem to get it. Here's what I have.
http://webpages.charter.net/dragonriderknights/djpw.zip

I get an error everytime. Where do I find my error log to se what I have done wrong?

Essentially what it is is a border with four corners for the player window.
Any more help is appreciated.



UIErrors.Txt updates every time you load the UI and shows whatever went wrong , from using the default files to any errors in a spcific window.

anjilek 07-29-2004 12:31 PM

Man, it looks so easy ROFL.

The only errors I get are that I didn't define playertitle and playerlevel. An accidental cut and paste error.

I delete those altogether from being called up, and I get a player window with no borders. No errors. Nothing.

So here I define the .tga
Code:
<TextureInfo item="dj_pw.tga"> <Size> <CX>256</CX> <CY>256</CY> </Size> </TextureInfo>


Then I define the upper left corner( CornerUL)
Code:
<Ui2DAnimation item="CornerUL"> <Frames> <Texture>dj_pw.tga</Texture> <Location> <X>0</X> <Y>0</Y> </Location> <Size> <CX>6</CX> <CY>6</CY> </Size> <Hotspot> <X>0</X> <Y>0</Y> </Hotspot> <Duration>1000</Duration> </Frames> </Ui2DAnimation>


then I define how to use the upper left corner(CornerUL)

Code:
<StaticAnimation item="CornerUL"> <ScreenID>CornerUL</ScreenID> <RelativePosition>true</RelativePosition> <Location> <X>0</X> <Y>0</Y> </Location> <Size> <CX>6</CX> <CY>6</CY> </Size> <Animation>CornerUL</Animation> </StaticAnimation>


Then I call it in the window

Code:
<Screen item="PlayerWindow"> <!--<ScreenID/>--> <RelativePosition>false</RelativePosition> <Location> <X>1</X> <Y>195</Y> </Location> <Size> <CX>140</CX> <CY>140</CY> </Size> <Text>Player</Text> <Style_VScroll>false</Style_VScroll> <Style_HScroll>false</Style_HScroll> <Style_Transparent>false</Style_Transparent> <TooltipReference>Player Window</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>CornerUL</Pieces> </Screen> </XML>


I obviously am only giving you relevant code I think. Cant get the borders or corners to show up at all. A corner sized 6/6 should be easily visible right? Should be a little less than half my text which is 15 tall. See anything out of place? Does it matter in which order you list your <pieces>?


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

vBulletin Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.