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:
@@ -1,5 +1,8 @@
|
||||
local context = G.botContext
|
||||
|
||||
-- DO NOT USE THIS CODE.
|
||||
-- IT'S ONLY HERE FOR BACKWARD COMPATIBILITY, MAY BE REMOVED IN THE FUTURE
|
||||
|
||||
context.createWidget = function(name, parent)
|
||||
if parent == nil then
|
||||
parent = context.panel
|
||||
@@ -32,11 +35,11 @@ context.addTab = function(name)
|
||||
return tab.tabPanel.content
|
||||
end
|
||||
|
||||
context.tabs:setOn(true)
|
||||
local smallTabs = #(context.tabs.tabs) >= 5
|
||||
local newTab = context.tabs:addTab(name, g_ui.createWidget('BotPanel')).tabPanel.content
|
||||
if #(context.tabs.tabs) > 5 then
|
||||
context.tabs:setOn(true)
|
||||
if smallTabs then
|
||||
for k,tab in pairs(context.tabs.tabs) do
|
||||
tab:setPadding(3)
|
||||
tab:setFont('small-9px')
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user