Well I got the 1st gauge to work correct by doing a math error.
As you told me..
70% of 13800 = the offset 9660 -138= 9522 this didn't work for me for my A_GaugeFill1_PW CX location , it looked like the red does now.
I didn't take 138 off the 9660 I took off by mistake 108 and came up with 9552 and it filled in perfect. Oddly enough the 1a gauge size is
<CX>4140</CX> (30%)and the
<GaugeOffsetX>-9660</GaugeOffsetX>(70%) Still.
The 2nd gauge seems to not follow the same rule, is that because i just want a red cover and with just 1 point of health gone and it goes yellow?
I changed it all to 13800 sized and from what i understand what you have told me how to do this have this.. I also noted from what you just told me my gauge started at 4 not 6 and adjusted it. the gauge looks just the same as before. i also changed the 2nd gauge to be just 1 pixel wide. attached photo to show how it looks now.
it feels like i am getting stuck right now and don't know what to do.
Seems to me that 2b is almost useless if I do not want it to show up. and can i just make the size of the screen to the full gauge so when i get the correct X numbers for 2a and my 2nd offset just one hit and red disappears?
if I set them like below would it just not show up till 100% at all?
<Screen item="PW_Gauge2A_X">
<Size>
<CX>138</CX>
<CY>13</CY>
</Size>
<Pieces>PW_Gauge2A</Pieces>
</Screen>
<Gauge item = "PW_Gauge2B">
<Location>
<X>142</X>
<Y>43</Y>
</Location>
<Size>
<
CX>0</CX>
<CY>13</CY>
</Size>
<GaugeOffsetX>-138</GaugeOffsetX>
Thank you for helping me.
Code:
<Gauge item="Player_HP">
<ScreenID>PlayerHP</ScreenID>
<TextColor>
<R>240</R>
<G>240</G>
<B>240</B>
</TextColor>
<RelativePosition>true</RelativePosition>
<TextOffsetX>-155</TextOffsetX>
<GaugeOffsetY>44</GaugeOffsetY>
<FillTint>
<R>240</R>
<G>240</G>
<B>240</B>
</FillTint>
<EQType>1</EQType>
<GaugeDrawTemplate>
<Background>A_GaugeBackground</Background>
<Fill>A_GaugeFill</Fill>
<!--<Lines>A_GaugeLines</Lines>-->
<EndCapLeft>A_GaugeEndCapLeft</EndCapLeft>
<EndCapRight>A_GaugeEndCapRight</EndCapRight>
</GaugeDrawTemplate>
<AutoStretch>true</AutoStretch>
<TopAnchorOffset>0</TopAnchorOffset>
<BottomAnchorOffset>54</BottomAnchorOffset>
<LeftAnchorOffset>0</LeftAnchorOffset>
<RightAnchorOffset>0</RightAnchorOffset>
<RightAnchorToLeft>false</RightAnchorToLeft>
</Gauge>
<Ui2DAnimation item = "A_GaugeBackground_PW">
<Cycle>true</Cycle>
<Frames>
<Texture>window_pieces01.tga</Texture>
<Location>
<X>108</X>
<Y>7</Y>
</Location>
<Size>
<CX>100</CX>
<CY>10</CY>
</Size>
<Hotspot>
<X>0</X>
<Y>0</Y>
</Hotspot>
<Duration>1000</Duration>
</Frames>
</Ui2DAnimation>
<Ui2DAnimation item="A_GaugeFill0_PW">
<Cycle>true</Cycle>
<Frames>
<Texture>window_pieces01.tga</Texture>
<Location>
<X>108</X>
<Y>18</Y>
</Location>
<Size>
<CX>100</CX>
<CY>10</CY>
</Size>
<Hotspot>
<X>0</X>
<Y>0</Y>
</Hotspot>
<Duration>1000</Duration>
</Frames>
</Ui2DAnimation>
<Ui2DAnimation item = "A_GaugeFill1_PW">
<Cycle>true</Cycle>
<Frames>
<Texture>window_pieces01.tga</Texture>
<Location>
<X>-9552</X>
<Y>18</Y>
</Location>
<Size>
<CX>13800</CX>
<CY>10</CY>
</Size>
<Hotspot>
<X>0</X>
<Y>0</Y>
</Hotspot>
<Duration>1000</Duration>
</Frames>
</Ui2DAnimation>
<Ui2DAnimation item = "A_GaugeFill2_PW">
<Cycle>true</Cycle>
<Frames>
<Texture>window_pieces01.tga</Texture>
<Location>
<X>-13524</X>
<Y>18</Y>
</Location>
<Size>
<CX>13800</CX>
<CY>10</CY>
</Size>
<Hotspot>
<X>0</X>
<Y>0</Y>
</Hotspot>
<Duration>1000</Duration>
</Frames>
</Ui2DAnimation>
<Gauge item = "PW_Gauge1A">
<RelativePosition>true</RelativePosition>
<Location>
<X>0</X>
<Y>0</Y>
</Location>
<Size>
<CX>4140</CX>
<CY>13</CY>
</Size>
<GaugeOffsetX>-9660</GaugeOffsetX>
<GaugeOffsetY>0</GaugeOffsetY>
<Text></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>240</G>
<B>0</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>4</X>
<Y>43</Y>
</Location>
<Size>
<CX>96</CX>
<CY>13</CY>
</Size>
<Style_Transparent>true</Style_Transparent>
<Pieces>PW_Gauge1A</Pieces>
</Screen>
<Gauge item = "PW_Gauge1B">
<RelativePosition>true</RelativePosition>
<Location>
<X>100</X>
<Y>43</Y>
</Location>
<Size>
<CX>42</CX>
<CY>13</CY>
</Size>
<GaugeOffsetX>-96</GaugeOffsetX>
<GaugeOffsetY>0</GaugeOffsetY>
<Text></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>240</G>
<B>0</B>
</FillTint>
<LinesFillTint>
<R>0</R>
<G>0</G>
<B>0</B>
</LinesFillTint>
<DrawLinesFill>false</DrawLinesFill>
<EQType>1</EQType>
<GaugeDrawTemplate>
<Fill>A_GaugeFill</Fill>
</GaugeDrawTemplate>
</Gauge>
<Gauge item = "PW_Gauge2A">
<RelativePosition>true</RelativePosition>
<Location>
<X>0</X>
<Y>0</Y>
</Location>
<Size>
<CX>138</CX>
<CY>13</CY>
</Size>
<GaugeOffsetX>-13662</GaugeOffsetX>
<GaugeOffsetY>0</GaugeOffsetY>
<Text></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>0</B>
</FillTint>
<LinesFillTint>
<R>0</R>
<G>0</G>
<B>0</B>
</LinesFillTint>
<DrawLinesFill>false</DrawLinesFill>
<EQType>1</EQType>
<GaugeDrawTemplate>
<Fill>A_GaugeFill2_PW</Fill>
</GaugeDrawTemplate>
</Gauge>
<Screen item="PW_Gauge2A_X">
<RelativePosition>true</RelativePosition>
<Location>
<X>4</X>
<Y>43</Y>
</Location>
<Size>
<CX>137</CX>
<CY>13</CY>
</Size>
<Style_Transparent>true</Style_Transparent>
<Pieces>PW_Gauge2A</Pieces>
</Screen>
<Gauge item = "PW_Gauge2B">
<RelativePosition>true</RelativePosition>
<Location>
<X>141</X>
<Y>43</Y>
</Location>
<Size>
<CX>1</CX>
<CY>13</CY>
</Size>
<GaugeOffsetX>-137</GaugeOffsetX>
<GaugeOffsetY>0</GaugeOffsetY>
<Text></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>0</B>
</FillTint>
<LinesFillTint>
<R>0</R>
<G>0</G>
<B>0</B>
</LinesFillTint>
<DrawLinesFill>false</DrawLinesFill>
<EQType>1</EQType>
<GaugeDrawTemplate>
<Fill>A_GaugeFill</Fill>
</GaugeDrawTemplate>
</Gauge>
<Gauge item = "PW_Gauge3">
<RelativePosition>true</RelativePosition>
<Location>
<X>4</X>
<Y>43</Y>
</Location>
<Size>
<CX>138</CX>
<CY>13</CY>
</Size>
<GaugeOffsetX>0</GaugeOffsetX>
<GaugeOffsetY>0</GaugeOffsetY>
<Text></Text>
<TextOffsetY>8000</TextOffsetY>
<Style_VScroll>false</Style_VScroll>
<Style_HScroll>false</Style_HScroll>
<Style_Transparent>false</Style_Transparent>
<!--<TooltipReference/>-->
<FillTint>
<R>0</R>
<G>0</G>
<B>0</B>
</FillTint>
<LinesFillTint>
<R>0</R>
<G>0</G>
<B>0</B>
</LinesFillTint>
<DrawLinesFill>false</DrawLinesFill>
<EQType>1</EQType>
<GaugeDrawTemplate>
<Lines>A_GaugeLines</Lines>
</GaugeDrawTemplate>
</Gauge>