define crosshair owned colour in openmw_hud_box.skin.xml

sceneinput
Jiří Kuneš 10 years ago
parent 75f5972898
commit cbc44b33ba

@ -52,6 +52,7 @@ Programmers
jeaye jeaye
Jeffrey Haines (Jyby) Jeffrey Haines (Jyby)
Jengerer Jengerer
Jiří Kuneš (kunesj)
Joel Graff (graffy) Joel Graff (graffy)
John Blomberg (fstp) John Blomberg (fstp)
Jordan Ayers Jordan Ayers
@ -59,7 +60,6 @@ Programmers
Julien Voisin (jvoisin/ap0) Julien Voisin (jvoisin/ap0)
Karl-Felix Glatzer (k1ll) Karl-Felix Glatzer (k1ll)
Kevin Poitra (PuppyKevin) Kevin Poitra (PuppyKevin)
kunesj
Lars Söderberg (Lazaroth) Lars Söderberg (Lazaroth)
lazydev lazydev
Leon Saunders (emoose) Leon Saunders (emoose)

@ -521,15 +521,13 @@ namespace MWGui
void HUD::setCrosshairOwned(bool owned) void HUD::setCrosshairOwned(bool owned)
{ {
MyGUI::Colour red = MyGUI::Colour(1.0, 0, 0);
MyGUI::Colour white = MyGUI::Colour(1.0, 1.0, 1.0);
if(owned) if(owned)
{ {
mCrosshair->setColour(red); mCrosshair->changeWidgetSkin("HUD_Crosshair_Owned");
} }
else else
{ {
mCrosshair->setColour(white); mCrosshair->changeWidgetSkin("HUD_Crosshair");
} }
} }

@ -377,7 +377,7 @@ namespace MWGui
{ {
if(checkOwned()) if(checkOwned())
{ {
mDynamicToolTipBox->changeWidgetSkin("HUD_Box_NoTransp_R"); mDynamicToolTipBox->changeWidgetSkin("HUD_Box_NoTransp_Owned");
} }
else else
{ {

@ -122,8 +122,7 @@
</Widget> </Widget>
<!-- Crosshair --> <!-- Crosshair -->
<Widget type="ImageBox" skin="ImageBox" position="0 0 32 32" align="Center Center" name="Crosshair"> <Widget type="ImageBox" skin="HUD_Crosshair" position="0 0 32 32" align="Center Center" name="Crosshair">
<Property key="ImageTexture" value="textures\target.dds"/>
</Widget> </Widget>
<!-- Basic FPSCounter box --> <!-- Basic FPSCounter box -->

@ -32,16 +32,31 @@
</Resource> </Resource>
<Resource type="ResourceSkin" name="HUD_Box_NoTransp_R" size="40 40"> <Resource type="ResourceSkin" name="HUD_Box_NoTransp_Owned" size="40 40">
<!-- The interior of the box --> <!-- The interior of the box -->
<Child type="Widget" skin="DialogBG_R" offset="0 0 40 40" align="Stretch" name="Client"/> <Child type="Widget" skin="DialogBG_Owned" offset="0 0 40 40" align="Stretch" name="Client"/>
<!-- Borders --> <!-- Borders -->
<Child type="Widget" skin="MW_Box" offset="0 0 40 40" align="Left Stretch" name="Client"/> <Child type="Widget" skin="MW_Box" offset="0 0 40 40" align="Left Stretch" name="Client"/>
</Resource> </Resource>
<!-- Defines crosshair color -->
<Resource type="ResourceSkin" name="HUD_Crosshair" size="32 32" texture="textures\target.dds">
<BasisSkin type="MainSkin" offset="0 0 32 32">
<State name="normal" offset="0 0 32 32"/>
</BasisSkin>
</Resource>
<!-- Defines owned crosshair color -->
<Resource type="ResourceSkin" name="HUD_Crosshair_Owned" size="32 32" texture="textures\target.dds">
<Property key="Colour" value="0.9 0 0 1"/>
<BasisSkin type="MainSkin" offset="0 0 32 32">
<State name="normal" offset="0 0 32 32"/>
</BasisSkin>
</Resource>
</MyGUI> </MyGUI>

@ -129,9 +129,10 @@
</BasisSkin> </BasisSkin>
</Resource> </Resource>
<!-- Defines a red background --> <!-- Defines a owned background -->
<Resource type="ResourceSkin" name="DialogBG_R" size="8 8" texture="white"> <Resource type="ResourceSkin" name="DialogBG_Owned" size="8 8" texture="white">
<Property key="Colour" value="0.2 0 0 1"/> <Property key="Colour" value="0.2 0 0 1"/>
<!-- <Property key="Colour" value="#{setting=GUI,color background owned}"/> -->
<BasisSkin type="MainSkin" offset="0 0 8 8"> <BasisSkin type="MainSkin" offset="0 0 8 8">
<State name="normal" offset="0 0 8 8"/> <State name="normal" offset="0 0 8 8"/>
</BasisSkin> </BasisSkin>

Loading…
Cancel
Save