From 351b7cf1ff682026485b0e7a8f7623fe356cdf84 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 9 Dec 2012 19:51:15 +0300 Subject: Add resize options for on screen joystick and buttons. --- src/gui/setup_touch.cpp | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'src/gui/setup_touch.cpp') 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; } -- cgit v1.2.3-60-g2f50