diff options
author | jak1 <mike.wollmann@gmail.com> | 2020-11-04 09:34:16 +0100 |
---|---|---|
committer | jak1 <mike.wollmann@gmail.com> | 2021-03-11 22:17:31 +0000 |
commit | 90b77f4c3939f1da10c7a21a182e913ff0e2ec1d (patch) | |
tree | 37c8a46d366a441eb121de8646b8054e8b6cf851 /src/gui/widgets | |
parent | 7124d95d082d77b7e00447a4ecad094e575e8fa9 (diff) | |
download | manaverse-90b77f4c3939f1da10c7a21a182e913ff0e2ec1d.tar.gz manaverse-90b77f4c3939f1da10c7a21a182e913ff0e2ec1d.tar.bz2 manaverse-90b77f4c3939f1da10c7a21a182e913ff0e2ec1d.tar.xz manaverse-90b77f4c3939f1da10c7a21a182e913ff0e2ec1d.zip |
added desync walkaround
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/checkbox.cpp | 1 | ||||
-rw-r--r-- | src/gui/widgets/label.cpp | 2 | ||||
-rw-r--r-- | src/gui/widgets/tabs/setup_misc.cpp | 12 |
3 files changed, 14 insertions, 1 deletions
diff --git a/src/gui/widgets/checkbox.cpp b/src/gui/widgets/checkbox.cpp index b01a4e679..c57af2eaa 100644 --- a/src/gui/widgets/checkbox.cpp +++ b/src/gui/widgets/checkbox.cpp @@ -161,6 +161,7 @@ CheckBox::~CheckBox() if (theme != nullptr) theme->unload(mSkin); } + removeMouseListener(this); } void CheckBox::draw(Graphics *const graphics) diff --git a/src/gui/widgets/label.cpp b/src/gui/widgets/label.cpp index 9dfa7ce4d..d325e11bd 100644 --- a/src/gui/widgets/label.cpp +++ b/src/gui/widgets/label.cpp @@ -144,7 +144,7 @@ void Label::init() mPadding = mSkin->getPadding(); else mPadding = 0; - setSelectable(false); + setSelectable(true); } void Label::draw(Graphics *const graphics) diff --git a/src/gui/widgets/tabs/setup_misc.cpp b/src/gui/widgets/tabs/setup_misc.cpp index 40276a59e..1a04cbd64 100644 --- a/src/gui/widgets/tabs/setup_misc.cpp +++ b/src/gui/widgets/tabs/setup_misc.cpp @@ -273,6 +273,18 @@ Setup_Misc::Setup_Misc(const Widget2 *const widget) : MainConfig_true); // TRANSLATORS: settings option + new SetupItemIntTextField(_("Increase your effective Walk Delay"), + // TRANSLATORS: settings description + _("Walk slower than your maximum allowed speed.\n" + "This can decrease desync when autonav is used over " + "long distances, and makes it easier for others to " + "autofollow you.\n" + "0 is off, 15~20 is recommended for evol2 servers."), + "playerSpeedAdjustment", + this, "playerSpeedAdjustmentEvent", 0, 100, + MainConfig_false); + + // TRANSLATORS: settings option new SetupItemTextField(_("Crazy move A program"), "", "crazyMoveProgram", this, "crazyMoveProgramEvent", MainConfig_true, UseBase64_false); |