Make progress bar close to vanilla

pull/541/head
Andrei Kortunov 6 years ago
parent c36a22653f
commit 6e7bdfe329

@ -19,43 +19,43 @@
</Resource> </Resource>
<!-- Progress bar track, various colors --> <!-- Progress bar track, various colors -->
<Resource type="AutoSizedResourceSkin" name="MW_BarTrack_Red" texture="textures\menu_bar_gray.dds" > <Resource type="ResourceSkin" name="MW_BarTrack_Red" size="16 8" texture="textures\menu_bar_gray.dds" >
<Property key="Colour" value="#{fontcolour=health}"/> <Property key="Colour" value="#{fontcolour=health}"/>
<BasisSkin type="MainSkin" align="Stretch"> <BasisSkin type="MainSkin" offset="0 0 16 8" align="Stretch">
<State name="normal"/> <State name="normal" offset="0 0 16 8"/>
</BasisSkin> </BasisSkin>
</Resource> </Resource>
<Resource type="AutoSizedResourceSkin" name="MW_BarTrack_Green" texture="textures\menu_bar_gray.dds" > <Resource type="ResourceSkin" name="MW_BarTrack_Green" size="16 8" texture="textures\menu_bar_gray.dds" >
<Property key="Colour" value="#{fontcolour=fatigue}"/> <Property key="Colour" value="#{fontcolour=fatigue}"/>
<BasisSkin type="MainSkin" align="Stretch"> <BasisSkin type="MainSkin" offset="0 0 16 8" align="Stretch">
<State name="normal"/> <State name="normal" offset="0 0 16 8"/>
</BasisSkin> </BasisSkin>
</Resource> </Resource>
<Resource type="AutoSizedResourceSkin" name="MW_BarTrack_Blue" texture="textures\menu_bar_gray.dds" > <Resource type="ResourceSkin" name="MW_BarTrack_Blue" size="16 8" texture="textures\menu_bar_gray.dds" >
<Property key="Colour" value="#{fontcolour=magic}"/> <Property key="Colour" value="#{fontcolour=magic}"/>
<BasisSkin type="MainSkin" align="Stretch"> <BasisSkin type="MainSkin" offset="0 0 16 8" align="Stretch">
<State name="normal"/> <State name="normal" offset="0 0 16 8"/>
</BasisSkin> </BasisSkin>
</Resource> </Resource>
<Resource type="AutoSizedResourceSkin" name="MW_BarTrack_Yellow" texture="textures\menu_bar_gray.dds" > <Resource type="ResourceSkin" name="MW_BarTrack_Yellow" size="16 8" texture="textures\menu_bar_gray.dds" >
<Property key="Colour" value="1 1 0"/> <Property key="Colour" value="1 1 0"/>
<BasisSkin type="MainSkin" align="Stretch"> <BasisSkin type="MainSkin" offset="0 0 16 8" align="Stretch">
<State name="normal"/> <State name="normal" offset="0 0 16 8"/>
</BasisSkin> </BasisSkin>
</Resource> </Resource>
<Resource type="AutoSizedResourceSkin" name="MW_BarTrack_Magic" texture="textures\menu_bar_gray.dds" > <Resource type="ResourceSkin" name="MW_BarTrack_Magic" size="16 2" texture="textures\menu_bar_gray.dds" >
<Property key="Colour" value="#{fontcolour=magic_fill}"/> <Property key="Colour" value="#{fontcolour=magic_fill}"/>
<BasisSkin type="MainSkin" align="Stretch"> <BasisSkin type="MainSkin" offset="0 0 16 2" align="Stretch">
<State name="normal"/> <State name="normal" offset="0 0 16 2"/>
</BasisSkin> </BasisSkin>
</Resource> </Resource>
<Resource type="AutoSizedResourceSkin" name="MW_BarTrack_Weapon" texture="textures\menu_bar_gray.dds" > <Resource type="ResourceSkin" name="MW_BarTrack_Weapon" size="16 2" texture="textures\menu_bar_gray.dds" >
<Property key="Colour" value="#{fontcolour=weapon_fill}"/> <Property key="Colour" value="#{fontcolour=weapon_fill}"/>
<BasisSkin type="MainSkin" align="Stretch"> <BasisSkin type="MainSkin" offset="0 0 16 2" align="Stretch">
<State name="normal"/> <State name="normal" offset="0 0 16 2"/>
</BasisSkin> </BasisSkin>
</Resource> </Resource>

@ -2,59 +2,40 @@
<MyGUI type="Resource" version="1.1"> <MyGUI type="Resource" version="1.1">
<!-- Progress bar track, various colors --> <!-- Progress bar track, various colors -->
<Resource type="AutoSizedResourceSkin" name="MW_Track_Red" texture="textures\menu_bar_gray.dds" > <Resource type="ResourceSkin" name="MW_Track_Red" size="2 14" texture="textures\menu_bar_gray.dds" >
<Property key="Colour" value="#{fontcolour=health}"/> <Property key="Colour" value="#{fontcolour=health}"/>
<BasisSkin type="MainSkin" align="Stretch"> <BasisSkin type="MainSkin" offset="0 0 16 16" align="Stretch">
<State name="normal"/> <State name="normal" offset="0 0 16 16"/>
</BasisSkin> </BasisSkin>
</Resource> </Resource>
<Resource type="AutoSizedResourceSkin" name="MW_Track_Blue" texture="textures\menu_bar_gray.dds" > <Resource type="ResourceSkin" name="MW_Track_Blue" size="2 14" texture="textures\menu_bar_gray.dds" >
<Property key="Colour" value="#{fontcolour=magic}"/> <Property key="Colour" value="#{fontcolour=magic}"/>
<BasisSkin type="MainSkin" align="Stretch"> <BasisSkin type="MainSkin" offset="0 0 16 16">
<State name="normal"/> <State name="normal" offset="0 0 16 16"/>
</BasisSkin> </BasisSkin>
</Resource> </Resource>
<Resource type="AutoSizedResourceSkin" name="MW_Track_Green" texture="textures\menu_bar_gray.dds" > <Resource type="ResourceSkin" name="MW_Track_Green" size="2 14" texture="textures\menu_bar_gray.dds" >
<Property key="Colour" value="#{fontcolour=fatigue}"/> <Property key="Colour" value="#{fontcolour=fatigue}"/>
<BasisSkin type="MainSkin" align="Stretch"> <BasisSkin type="MainSkin" offset="0 0 16 16" align="Stretch">
<State name="normal"/> <State name="normal" offset="0 0 16 16"/>
</BasisSkin> </BasisSkin>
</Resource> </Resource>
<!-- Lighter variants (only uses top half of the gradient) --> <Resource type="ResourceSkin" name="MW_Progress_Drowning_Full_Small" size="16 2" texture="textures\menu_bar_gray.dds" >
<Resource type="AutoSizedResourceSkin" name="MW_BigTrack_Progress_Red_Small" texture="textures\menu_bar_gray.dds" > <Property key="Colour" value="0.235 0.745 0.745"/>
<Property key="Colour" value="1 0 0"/> <BasisSkin type="MainSkin" offset="0 0 16 2" align="Stretch">
<BasisSkin type="MainSkin" align="Stretch"> <State name="normal" offset="0 0 16 2"/>
<State name="normal"/>
</BasisSkin>
</Resource>
<Resource type="AutoSizedResourceSkin" name="MW_BigTrack_Progress_Blue_Small" size="16 8" texture="textures\menu_bar_gray.dds" >
<Property key="Colour" value="0.3 0.3 1"/>
<BasisSkin type="MainSkin" align="Stretch">
<State name="normal"/>
</BasisSkin>
</Resource>
<Resource type="AutoSizedResourceSkin" name="MW_BigTrack_Progress_Green_Small" texture="textures\menu_bar_gray.dds" >
<Property key="Colour" value="0.298 0.784 0.780"/>
<BasisSkin type="MainSkin" align="Stretch">
<State name="normal"/>
</BasisSkin>
</Resource>
<Resource type="ResourceSkin" name="MW_Progress_Drowning_Full_Small" size="16 8" texture="white" >
<Property key="Colour" value="0.035 0.545 0.545"/>
<BasisSkin type="MainSkin" offset="0 0 16 8" align="Stretch">
<State name="normal" offset="0 0 16 8"/>
</BasisSkin> </BasisSkin>
</Resource> </Resource>
<Resource type="ResourceSkin" name="MW_Progress_Drowning_Small" size="16 8" texture="white" > <Resource type="ResourceSkin" name="MW_Progress_Drowning_Small" size="16 2" texture="textures\menu_bar_gray.dds" >
<Property key="Colour" value="0.785 0 0"/> <Property key="Colour" value="1 0 0"/>
<BasisSkin type="MainSkin" offset="0 0 16 8" align="Stretch"> <BasisSkin type="MainSkin" offset="0 0 16 2" align="Stretch">
<State name="normal" offset="0 0 16 8"/> <State name="normal" offset="0 0 16 2"/>
</BasisSkin> </BasisSkin>
</Resource> </Resource>
<Resource type="ResourceSkin" name="MW_Progress_Loading_Small" size="16 8" texture="white" > <Resource type="ResourceSkin" name="MW_Progress_Loading_Small" size="16 2" texture="textures\menu_bar_gray.dds" >
<Property key="Colour" value="0 0.615 0.620"/> <Property key="Colour" value="0 0.815 0.820"/>
<BasisSkin type="MainSkin" offset="0 0 16 8" align="Stretch"> <BasisSkin type="MainSkin" offset="0 0 16 2" align="Stretch">
<State name="normal" offset="0 0 16 8"/> <State name="normal" offset="0 0 16 2"/>
</BasisSkin> </BasisSkin>
</Resource> </Resource>
<Resource type="ResourceSkin" name="ProgressText" size="16 16"> <Resource type="ResourceSkin" name="ProgressText" size="16 16">

Loading…
Cancel
Save