mirror of
https://github.com/overte-org/overte.git
synced 2025-04-19 13:43:49 +02:00
Snap Turn avatar preference. (Still tied to Developer menu item.)
This commit is contained in:
parent
376c23f1a3
commit
7057d5c40c
2 changed files with 5 additions and 2 deletions
|
@ -35,7 +35,6 @@ QtObject {
|
|||
readonly property string centerPlayerInView: "Center Player In View";
|
||||
readonly property string chat: "Chat...";
|
||||
readonly property string collisions: "Collisions";
|
||||
readonly property string comfortMode: "Comfort Mode";
|
||||
readonly property string connexion: "Activate 3D Connexion Devices";
|
||||
readonly property string console_: "Console...";
|
||||
readonly property string controlWithSpeech: "Control With Speech";
|
||||
|
|
|
@ -57,7 +57,11 @@ void setupPreferences() {
|
|||
auto preference = new AvatarPreference(AVATAR_BASICS, "Appearance: ", getter, setter);
|
||||
preferences->addPreference(preference);
|
||||
}
|
||||
|
||||
{
|
||||
auto getter = []()->bool {return Menu::getInstance()->isOptionChecked(MenuOption::ComfortMode); };
|
||||
auto setter = [](bool value) { Menu::getInstance()->setIsOptionChecked(MenuOption::ComfortMode, value); };
|
||||
preferences->addPreference(new CheckPreference(AVATAR_BASICS, "Snap Turn", getter, setter));
|
||||
}
|
||||
{
|
||||
auto getter = []()->QString { return Snapshot::snapshotsLocation.get(); };
|
||||
auto setter = [](const QString& value) { Snapshot::snapshotsLocation.set(value); };
|
||||
|
|
Loading…
Reference in a new issue