Countwindow Fix [YAH]

Fixed typing amount in count window. Should be hidden again.
This commit is contained in:
Sam 2013-04-12 19:15:28 +02:00
parent cc12db0d1f
commit d427560b98
2 changed files with 6 additions and 4 deletions

View File

@ -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)

View File

@ -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