mirror of
https://github.com/OTCv8/otclientv8.git
synced 2025-10-22 23:45:55 +02:00
Version 2.3 - cooldowns in action bar, more advanced bot, new cavebot, bug fixes
This commit is contained in:
@@ -8,5 +8,17 @@ UI.createWidget = function(name, parent)
|
||||
if parent == nil then
|
||||
parent = context.panel
|
||||
end
|
||||
return g_ui.createWidget(name, parent)
|
||||
local widget = g_ui.createWidget(name, parent)
|
||||
widget.botWidget = true
|
||||
return widget
|
||||
end
|
||||
|
||||
UI.createWindow = function(name)
|
||||
local widget = g_ui.createWidget(name, g_ui.getRootWidget())
|
||||
widget.botWidget = true
|
||||
widget:show()
|
||||
widget:raise()
|
||||
widget:focus()
|
||||
return widget
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user