diff options
Diffstat (limited to 'src/gui/setup_touch.cpp')
-rw-r--r-- | src/gui/setup_touch.cpp | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/gui/setup_touch.cpp b/src/gui/setup_touch.cpp index e46ff0d73..e311195b8 100644 --- a/src/gui/setup_touch.cpp +++ b/src/gui/setup_touch.cpp @@ -30,7 +30,8 @@ #include "debug.h" Setup_Touch::Setup_Touch(const Widget2 *const widget) : - SetupTabScroll(widget) + SetupTabScroll(widget), + mSizeList(new SetupItemNames) { setName(_("Touch")); @@ -41,12 +42,24 @@ Setup_Touch::Setup_Touch(const Widget2 *const widget) : new SetupItemCheckBox(_("Show on screen buttons"), "", "showScreenButtons", this, "showScreenButtonsEvent"); + mSizeList->push_back(_("Small")); + mSizeList->push_back(_("Normal")); + mSizeList->push_back(_("Medium")); + mSizeList->push_back(_("Large")); + new SetupItemSlider2(_("Buttons size"), "", "screenButtonsSize", this, + "screenButtonsSizeEvent", 0, 3, mSizeList); + new SetupItemCheckBox(_("Show on screen joystick"), "", "showScreenJoystick", this, "showScreenJoystickEvent"); + new SetupItemSlider2(_("Joystick size"), "", "screenJoystickSize", this, + "screenJoystickEvent", 0, 3, mSizeList); + setDimension(gcn::Rectangle(0, 0, 550, 350)); } Setup_Touch::~Setup_Touch() { + delete mSizeList; + mSizeList = nullptr; } |