mirror of
https://github.com/OTCv8/otclientv8.git
synced 2025-10-20 06:33:26 +02:00
Version 2.3 - cooldowns in action bar, more advanced bot, new cavebot, bug fixes
This commit is contained in:
@@ -38,7 +38,13 @@ function show(itemWidget)
|
||||
itemWidget:setItem(Item.create(window.item:getItemId(), window.item:getItemCount()))
|
||||
destroy()
|
||||
end
|
||||
|
||||
local clearFunc = function()
|
||||
window.item:setItemId(0)
|
||||
window.item:setItemCount(0)
|
||||
doneFunc()
|
||||
end
|
||||
|
||||
window.clearButton.onClick = clearFunc
|
||||
window.okButton.onClick = doneFunc
|
||||
window.cancelButton.onClick = destroy
|
||||
window.onEnter = doneFunc
|
||||
|
@@ -49,6 +49,13 @@ ItemSelectorWindow < MainWindow
|
||||
text-align: center
|
||||
!text: tr("Count / SubType")
|
||||
|
||||
Button
|
||||
id: clearButton
|
||||
!text: tr('Clear')
|
||||
anchors.bottom: parent.bottom
|
||||
anchors.left: parent.left
|
||||
width: 60
|
||||
|
||||
Button
|
||||
id: okButton
|
||||
!text: tr('Ok')
|
||||
|
Reference in New Issue
Block a user