mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
enableUiEnhancements button
This commit is contained in:
parent
b89fa254fc
commit
5061792cce
@ -90,6 +90,8 @@
|
||||
"vcmi.systemOptions.framerateButton.help" : "{Show FPS}\n\nToggle the visibility of the Frames Per Second counter in the corner of the game window.",
|
||||
"vcmi.systemOptions.hapticFeedbackButton.hover" : "Haptic feedback",
|
||||
"vcmi.systemOptions.hapticFeedbackButton.help" : "{Haptic feedback}\n\nToggle the haptic feedback on touch inputs.",
|
||||
"vcmi.systemOptions.enableUiEnhancementsButton.hover" : "Interface Enhancements",
|
||||
"vcmi.systemOptions.enableUiEnhancementsButton.help" : "{Interface Enhancements}\n\nToggle various quality of life interface improvements.",
|
||||
|
||||
"vcmi.adventureOptions.infoBarPick.hover" : "Show Messages in Info Panel",
|
||||
"vcmi.adventureOptions.infoBarPick.help" : "{Show Messages in Info Panel}\n\nWhenever possible, game messages from visiting map objects will be shown in the info panel, instead of popping up in a separate window.",
|
||||
|
@ -89,6 +89,8 @@
|
||||
"vcmi.systemOptions.framerateButton.help" : "{FPS anzeigen}\n\n Schaltet die Sichtbarkeit des Zählers für die Bilder pro Sekunde in der Ecke des Spielfensters um.",
|
||||
"vcmi.systemOptions.hapticFeedbackButton.hover" : "Haptisches Feedback",
|
||||
"vcmi.systemOptions.hapticFeedbackButton.help" : "{Haptisches Feedback}\n\nHaptisches Feedback bei Touch-Eingaben.",
|
||||
"vcmi.systemOptions.enableUiEnhancementsButton.hover" : "Interface Verbesserungen",
|
||||
"vcmi.systemOptions.enableUiEnhancementsButton.help" : "{Interface Verbesserungen}\n\nSchaltet verschiedene Interface Verbesserungen um.",
|
||||
|
||||
"vcmi.adventureOptions.infoBarPick.hover" : "Meldungen im Infobereich anzeigen",
|
||||
"vcmi.adventureOptions.infoBarPick.help" : "{Meldungen im Infobereich anzeigen}\n\nWann immer möglich, werden Spielnachrichten von besuchten Kartenobjekten in der Infoleiste angezeigt, anstatt als Popup-Fenster zu erscheinen",
|
||||
|
@ -157,6 +157,10 @@ GeneralOptionsTab::GeneralOptionsTab()
|
||||
{
|
||||
setBoolSetting("general", "hapticFeedback", value);
|
||||
});
|
||||
addCallback("enableUiEnhancementsChanged", [](bool value)
|
||||
{
|
||||
setBoolSetting("general", "enableUiEnhancements", value);
|
||||
});
|
||||
|
||||
//moved from "other" tab that is disabled for now to avoid excessible tabs with barely any content
|
||||
addCallback("availableCreaturesAsDwellingChanged", [=](int value)
|
||||
@ -198,6 +202,10 @@ GeneralOptionsTab::GeneralOptionsTab()
|
||||
if (hapticFeedbackCheckbox)
|
||||
hapticFeedbackCheckbox->setSelected(settings["general"]["hapticFeedback"].Bool());
|
||||
|
||||
std::shared_ptr<CToggleButton> enableUiEnhancementsCheckbox = widget<CToggleButton>("enableUiEnhancementsCheckbox");
|
||||
if (enableUiEnhancementsCheckbox)
|
||||
enableUiEnhancementsCheckbox->setSelected(settings["general"]["enableUiEnhancements"].Bool());
|
||||
|
||||
std::shared_ptr<CSlider> musicSlider = widget<CSlider>("musicSlider");
|
||||
musicSlider->scrollTo(CCS->musich->getVolume());
|
||||
|
||||
|
@ -61,6 +61,9 @@
|
||||
{
|
||||
"text": "vcmi.systemOptions.hapticFeedbackButton.hover",
|
||||
"created" : "mobile"
|
||||
},
|
||||
{
|
||||
"text": "vcmi.systemOptions.enableUiEnhancementsButton.hover"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -116,6 +119,11 @@
|
||||
"help": "vcmi.systemOptions.hapticFeedbackButton",
|
||||
"callback": "hapticFeedbackChanged",
|
||||
"created" : "mobile"
|
||||
},
|
||||
{
|
||||
"name": "enableUiEnhancementsCheckbox",
|
||||
"help": "vcmi.systemOptions.enableUiEnhancementsButton",
|
||||
"callback": "enableUiEnhancementsChanged"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user