mirror of
https://github.com/OTCv8/otclientv8.git
synced 2025-10-19 06:03:27 +02:00
Version 1.3 - auto reconnect, better bot (with sound), animated mounts, bug fixes
This commit is contained in:
@@ -318,4 +318,5 @@ SoundChannels = {
|
||||
Music = 1,
|
||||
Ambient = 2,
|
||||
Effect = 3,
|
||||
Bot = 4
|
||||
}
|
||||
|
@@ -166,6 +166,10 @@ function UIMiniWindow:setup()
|
||||
if selfSettings.locked then
|
||||
self:lock(true)
|
||||
end
|
||||
else
|
||||
if not self.forceOpen and self.autoOpen ~= nil and (self.autoOpen == 0 or self.autoOpen == false) then
|
||||
self:close(true)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
@@ -190,6 +190,8 @@ function UIMiniWindowContainer:order()
|
||||
for i=1,#children do
|
||||
if children[i].miniIndex then
|
||||
self:swapInsert(children[i], children[i].miniIndex)
|
||||
elseif children[i].autoOpen then
|
||||
self:swapInsert(children[i], children[i].autoOpen)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@@ -94,7 +94,6 @@ local function updateTabs(tabBar)
|
||||
end
|
||||
updateNavigation(tabBar)
|
||||
updateMargins(tabBar)
|
||||
|
||||
if not tabBar.currentTab and #tabBar.tabs > 0 then
|
||||
tabBar:selectTab(tabBar.tabs[1])
|
||||
end
|
||||
@@ -338,19 +337,18 @@ function UIMoveableTabBar:removeTab(tab)
|
||||
if tabTable == nil then
|
||||
return
|
||||
end
|
||||
|
||||
table.remove(tabTable, index)
|
||||
if self.currentTab == tab then
|
||||
self:selectPrevTab()
|
||||
if #self.tabs == 1 then
|
||||
self.currentTab = nil
|
||||
end
|
||||
end
|
||||
table.remove(tabTable, index)
|
||||
if tab.blinkEvent then
|
||||
removeEvent(tab.blinkEvent)
|
||||
end
|
||||
tab:destroy()
|
||||
updateTabs(self)
|
||||
tab:destroy()
|
||||
end
|
||||
|
||||
function UIMoveableTabBar:getTab(text)
|
||||
|
Reference in New Issue
Block a user