mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-29 17:15:34 +00:00
define crosshair owned colour in openmw_hud_box.skin.xml
This commit is contained in:
parent
75f5972898
commit
cbc44b33ba
6 changed files with 25 additions and 12 deletions
|
@ -52,6 +52,7 @@ Programmers
|
|||
jeaye
|
||||
Jeffrey Haines (Jyby)
|
||||
Jengerer
|
||||
Jiří Kuneš (kunesj)
|
||||
Joel Graff (graffy)
|
||||
John Blomberg (fstp)
|
||||
Jordan Ayers
|
||||
|
@ -59,7 +60,6 @@ Programmers
|
|||
Julien Voisin (jvoisin/ap0)
|
||||
Karl-Felix Glatzer (k1ll)
|
||||
Kevin Poitra (PuppyKevin)
|
||||
kunesj
|
||||
Lars Söderberg (Lazaroth)
|
||||
lazydev
|
||||
Leon Saunders (emoose)
|
||||
|
|
|
@ -521,15 +521,13 @@ namespace MWGui
|
|||
|
||||
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)
|
||||
{
|
||||
mCrosshair->setColour(red);
|
||||
mCrosshair->changeWidgetSkin("HUD_Crosshair_Owned");
|
||||
}
|
||||
else
|
||||
{
|
||||
mCrosshair->setColour(white);
|
||||
mCrosshair->changeWidgetSkin("HUD_Crosshair");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -377,7 +377,7 @@ namespace MWGui
|
|||
{
|
||||
if(checkOwned())
|
||||
{
|
||||
mDynamicToolTipBox->changeWidgetSkin("HUD_Box_NoTransp_R");
|
||||
mDynamicToolTipBox->changeWidgetSkin("HUD_Box_NoTransp_Owned");
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -122,8 +122,7 @@
|
|||
</Widget>
|
||||
|
||||
<!-- Crosshair -->
|
||||
<Widget type="ImageBox" skin="ImageBox" position="0 0 32 32" align="Center Center" name="Crosshair">
|
||||
<Property key="ImageTexture" value="textures\target.dds"/>
|
||||
<Widget type="ImageBox" skin="HUD_Crosshair" position="0 0 32 32" align="Center Center" name="Crosshair">
|
||||
</Widget>
|
||||
|
||||
<!-- Basic FPSCounter box -->
|
||||
|
|
|
@ -32,16 +32,31 @@
|
|||
|
||||
</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 -->
|
||||
|
||||
<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 -->
|
||||
|
||||
<Child type="Widget" skin="MW_Box" offset="0 0 40 40" align="Left Stretch" name="Client"/>
|
||||
|
||||
</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>
|
||||
|
|
|
@ -129,9 +129,10 @@
|
|||
</BasisSkin>
|
||||
</Resource>
|
||||
|
||||
<!-- Defines a red background -->
|
||||
<Resource type="ResourceSkin" name="DialogBG_R" size="8 8" texture="white">
|
||||
<!-- Defines a owned background -->
|
||||
<Resource type="ResourceSkin" name="DialogBG_Owned" size="8 8" texture="white">
|
||||
<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">
|
||||
<State name="normal" offset="0 0 8 8"/>
|
||||
</BasisSkin>
|
||||
|
|
Loading…
Reference in a new issue