mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-16 15:29:55 +00:00
Use settings values for GUI tags
This commit is contained in:
parent
8f27178a0b
commit
1fa5d2ca98
2 changed files with 3 additions and 5 deletions
|
@ -1100,7 +1100,7 @@ namespace MWGui
|
|||
std::string_view settingSection = tag.substr(0, comma_pos);
|
||||
std::string_view settingTag = tag.substr(comma_pos + 1, tag.length());
|
||||
|
||||
_result = Settings::Manager::getString(settingTag, settingSection);
|
||||
_result = Settings::get<MyGUI::Colour>(settingSection, settingTag).get().print();
|
||||
}
|
||||
else if (tag.starts_with(tokenToFind))
|
||||
{
|
||||
|
|
|
@ -28,10 +28,8 @@ namespace Settings
|
|||
SettingValue<bool> mSubtitles{ mIndex, "GUI", "subtitles" };
|
||||
SettingValue<bool> mHitFader{ mIndex, "GUI", "hit fader" };
|
||||
SettingValue<bool> mWerewolfOverlay{ mIndex, "GUI", "werewolf overlay" };
|
||||
SettingValue<float> mColorBackgroundOwned{ mIndex, "GUI", "color background owned",
|
||||
makeClampSanitizerFloat(0, 1) };
|
||||
SettingValue<float> mColorCrosshairOwned{ mIndex, "GUI", "color crosshair owned",
|
||||
makeClampSanitizerFloat(0, 1) };
|
||||
SettingValue<MyGUI::Colour> mColorBackgroundOwned{ mIndex, "GUI", "color background owned" };
|
||||
SettingValue<MyGUI::Colour> mColorCrosshairOwned{ mIndex, "GUI", "color crosshair owned" };
|
||||
SettingValue<bool> mKeyboardNavigation{ mIndex, "GUI", "keyboard navigation" };
|
||||
SettingValue<bool> mColorTopicEnable{ mIndex, "GUI", "color topic enable" };
|
||||
SettingValue<MyGUI::Colour> mColorTopicSpecific{ mIndex, "GUI", "color topic specific" };
|
||||
|
|
Loading…
Reference in a new issue