View Single Post
Old 10-11-2008, 08:15 AM   #7
Halelen
Lord Doljonijiarnimorinar
 
Join Date: Jan 2003
Server: Povar
Posts: 1,047
Interface Author - Click to view interfaces
Default

ok since now the guages are stretchable you no longer need thex100 gauge backgrounds so remove all of those from there, then for the parts that did use the x100 gauge set the actuall x size to 10000 minus whatever there offset is. then set there locs to 0,0 and place them into a container to get the actual size you are wanting and location, here is an example

<Gauge item="PW_Gauge1A">
<RelativePosition>true</RelativePosition>
- <Location>
<X>0</X>
<Y>0</Y>
</Location>
- <Size>
<CX>8000</CX>
<CY>10</CY>
</Size>
<GaugeOffsetX>-2000</GaugeOffsetX>
<GaugeOffsetY>0</GaugeOffsetY>
<Text />
<TextOffsetY>8000</TextOffsetY>
<Style_VScroll>false</Style_VScroll>
<Style_HScroll>false</Style_HScroll>
<Style_Transparent>false</Style_Transparent>
- <!-- <TooltipReference/>
-->
- <FillTint>
<R>240</R>
<G>0</G>
<B>180</B>
</FillTint>
- <LinesFillTint>
<R>0</R>
<G>0</G>
<B>0</B>
</LinesFillTint>
<DrawLinesFill>false</DrawLinesFill>
<EQType>1</EQType>
- <GaugeDrawTemplate>
<Fill>A_GaugeFill1_PW</Fill>
</GaugeDrawTemplate>
</Gauge>
- <Screen item="PW_Gauge1A_X">
<RelativePosition>true</RelativePosition>
- <Location>
<X>69</X>
<Y>22</Y>
</Location>
- <Size>
<CX>20</CX>
<CY>10</CY>
</Size>
<Style_Transparent>true</Style_Transparent>
<Pieces>PW_Gauge1A</Pieces>
</Screen>
- <Gauge item="PW_Gauge1B">
<RelativePosition>true</RelativePosition>
- <Location>
<X>89</X>
<Y>22</Y>
</Location>
- <Size>
<CX>80</CX>
<CY>10</CY>
</Size>
<GaugeOffsetX>-20</GaugeOffsetX>
<GaugeOffsetY>0</GaugeOffsetY>
<Text />
<TextOffsetY>8000</TextOffsetY>
<Style_VScroll>false</Style_VScroll>
<Style_HScroll>false</Style_HScroll>
<Style_Transparent>false</Style_Transparent>
- <!-- <TooltipReference/>
-->

All credit for code goes to Enok

Hal
Halelen is offline   Reply With Quote