mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-09-13 06:15:36 -04:00
In controller mode, make focused spell blue to match other menus
This commit is contained in:
parent
1e3ddee291
commit
e01b8d372c
@ -113,7 +113,9 @@ namespace MWGui
|
||||
curType = spell.mType;
|
||||
}
|
||||
|
||||
const std::string skin = spell.mActive ? "SandTextButton" : "SpellTextUnequipped";
|
||||
std::string skin = spell.mActive ? "SandTextButton" : "SpellTextUnequipped";
|
||||
if (Settings::gui().mControllerMenus)
|
||||
skin = spell.mActive ? "SpellTextEquippedController" : "SpellTextUnequippedController";
|
||||
const std::string captionSuffix = MWGui::ToolTips::getCountString(spell.mCount);
|
||||
|
||||
Gui::SharedStateButton* t = mScrollView->createWidget<Gui::SharedStateButton>(
|
||||
|
@ -120,6 +120,38 @@ color_misc=0,205,205 # ????
|
||||
</BasisSkin>
|
||||
</Resource>
|
||||
|
||||
<Resource type="ResourceSkin" name="SpellTextEquippedController" size="16 16">
|
||||
<Property key="FontName" value="Default"/>
|
||||
<Property key="TextAlign" value="Left Bottom"/>
|
||||
<Property key="NeedKey" value="true"/>
|
||||
<BasisSkin type="SimpleText" offset="0 0 16 16" align="Stretch">
|
||||
<State name="disabled" colour="#{fontcolour=disabled}" shift="0"/>
|
||||
<State name="normal" colour="#{fontcolour=normal}" shift="0"/>
|
||||
<State name="highlighted" colour="#{fontcolour=active}" shift="0"/>
|
||||
<State name="pushed" colour="#{fontcolour=normal_pressed}" shift="0"/>
|
||||
<State name="disabled_checked" colour="#{fontcolour=disabled}" shift="0"/>
|
||||
<State name="normal_checked" colour="#{fontcolour=active_over}" shift="0"/>
|
||||
<State name="highlighted_checked" colour="#{fontcolour=active}" shift="0"/>
|
||||
<State name="pushed_checked" colour="#{fontcolour=active_pressed}" shift="0"/>
|
||||
</BasisSkin>
|
||||
</Resource>
|
||||
|
||||
<Resource type="ResourceSkin" name="SpellTextUnequippedController" size="16 16">
|
||||
<Property key="FontName" value="Default"/>
|
||||
<Property key="NeedKey" value="true"/>
|
||||
<Property key="TextAlign" value="Left Bottom"/>
|
||||
<BasisSkin type="SimpleText" offset="0 0 16 16" align="Stretch">
|
||||
<State name="disabled" colour="#{fontcolour=disabled}" shift="0"/>
|
||||
<State name="normal" colour="#{fontcolour=disabled}" shift="0"/>
|
||||
<State name="highlighted" colour="#{fontcolour=active}" shift="0"/>
|
||||
<State name="pushed" colour="#{fontcolour=disabled_pressed}" shift="0"/>
|
||||
<State name="disabled_checked" colour="#{fontcolour=disabled}" shift="0"/>
|
||||
<State name="normal_checked" colour="#{fontcolour=active_over}" shift="0"/>
|
||||
<State name="highlighted_checked" colour="#{fontcolour=active}" shift="0"/>
|
||||
<State name="pushed_checked" colour="#{fontcolour=active_pressed}" shift="0"/>
|
||||
</BasisSkin>
|
||||
</Resource>
|
||||
|
||||
<Resource type="ResourceSkin" name="MW_StatNameButtonC" size="200 18">
|
||||
<Child type="Button" skin="SandTextButtonC" offset="0 0 200 18" align="Left HStretch" name="StatNameButton"/>
|
||||
</Resource>
|
||||
|
Loading…
x
Reference in New Issue
Block a user