mirror of
https://github.com/edubart/otclient.git
synced 2025-11-30 15:26:49 +01:00
fix issue in move window, allow 861 protocols, update todo, remove wrong code from spinbox
This commit is contained in:
@@ -52,14 +52,6 @@ function UISpinBox:onMouseWheel(mousePos, direction)
|
||||
return true
|
||||
end
|
||||
|
||||
function UISpinBox:onStyleApply(styleName, styleNode)
|
||||
if styleNode.options then
|
||||
for k,option in pairs(styleNode.options) do
|
||||
self:addOption(option)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function UISpinBox:onTextChange(text)
|
||||
local number = tonumber(text)
|
||||
if not number or number > self.m_maximum or number < self.m_minimum then
|
||||
|
||||
@@ -1,21 +1,21 @@
|
||||
MainWindow
|
||||
text: Move Item
|
||||
size: 196 112
|
||||
@onEscape: self:getParent():destroy()
|
||||
|
||||
@onEscape: self:destroy()
|
||||
|
||||
Label
|
||||
text: Amount:
|
||||
width: 64
|
||||
anchors.left: parent.left
|
||||
anchors.top: parent.top
|
||||
margin-top: 2
|
||||
|
||||
|
||||
SpinBox
|
||||
id: spinbox
|
||||
anchors.left: prev.right
|
||||
anchors.right: parent.right
|
||||
anchors.top: parent.top
|
||||
|
||||
|
||||
HorizontalSeparator
|
||||
id: separator
|
||||
anchors.left: parent.left
|
||||
|
||||
Reference in New Issue
Block a user