From d427560b9849f9bcdcef93aba3bd2add79dc2262 Mon Sep 17 00:00:00 2001 From: Sam Date: Fri, 12 Apr 2013 19:15:28 +0200 Subject: [PATCH] Countwindow Fix [YAH] Fixed typing amount in count window. Should be hidden again. --- modules/game_interface/gameinterface.lua | 2 ++ modules/game_interface/styles/countwindow.otui | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/modules/game_interface/gameinterface.lua b/modules/game_interface/gameinterface.lua index f8a851ed..d2d8cfd3 100644 --- a/modules/game_interface/gameinterface.lua +++ b/modules/game_interface/gameinterface.lua @@ -674,6 +674,8 @@ function moveStackableItem(item, toPos) end g_keyboard.bindKeyPress("Up", function() check() spinbox:up() end, spinbox) g_keyboard.bindKeyPress("Down", function() check() spinbox:down() end, spinbox) + g_keyboard.bindKeyPress("Right", function() check() spinbox:up() end, spinbox) + g_keyboard.bindKeyPress("Left", function() check() spinbox:down() end, spinbox) g_keyboard.bindKeyPress("PageUp", function() check() spinbox:setValue(spinbox:getValue()+10) end, spinbox) g_keyboard.bindKeyPress("PageDown", function() check() spinbox:setValue(spinbox:getValue()-10) end, spinbox) diff --git a/modules/game_interface/styles/countwindow.otui b/modules/game_interface/styles/countwindow.otui index e5c2dbd9..15604604 100644 --- a/modules/game_interface/styles/countwindow.otui +++ b/modules/game_interface/styles/countwindow.otui @@ -6,11 +6,11 @@ CountWindow < MainWindow SpinBox id: spinBox anchors.left: parent.left - anchors.top: parent.bottom - width: 0 - height: 0 + anchors.top: parent.top + width: 1 + height: 1 phantom: true - padding-bottom: -40 + margin-top: 2 focusable: true Item