mirror of
https://github.com/OTCv8/otclientv8.git
synced 2025-10-19 06:03:27 +02:00
bug fixes for top items, coloured text, action bar and updater
This commit is contained in:
@@ -131,10 +131,10 @@ function setupActionPanel(index, panel)
|
||||
end
|
||||
|
||||
panel.nextButton.onClick = function()
|
||||
panel.tabBar:moveChildToIndex(panel.tabBar:getLastChild(), 1)
|
||||
panel.tabBar:moveChildToIndex(panel.tabBar:getFirstChild(), panel.tabBar:getChildCount())
|
||||
end
|
||||
panel.prevButton.onClick = function()
|
||||
panel.tabBar:moveChildToIndex(panel.tabBar:getFirstChild(), panel.tabBar:getChildCount())
|
||||
panel.tabBar:moveChildToIndex(panel.tabBar:getLastChild(), 1)
|
||||
end
|
||||
end
|
||||
|
||||
|
@@ -14,7 +14,7 @@ UI.Button("Discord", function()
|
||||
end)
|
||||
|
||||
UI.Button("Forum", function()
|
||||
g_platform.openUrl("https://otclient.net/")
|
||||
g_platform.openUrl("http://otclient.net")
|
||||
end)
|
||||
|
||||
UI.Button("Help & Tutorials", function()
|
||||
|
@@ -62,6 +62,7 @@ local function loadModules()
|
||||
end
|
||||
|
||||
local function downloadFiles(url, files, index, retries, doneCallback)
|
||||
if not updaterWindow then return end
|
||||
local entry = files[index]
|
||||
if not entry then -- finished
|
||||
return doneCallback()
|
||||
@@ -101,6 +102,7 @@ local function downloadFiles(url, files, index, retries, doneCallback)
|
||||
end
|
||||
|
||||
local function updateFiles(data, keepCurrentFiles)
|
||||
if not updaterWindow then return end
|
||||
if type(data) ~= "table" then
|
||||
return Updater.error("Invalid data from updater api (not table)")
|
||||
end
|
||||
|
Reference in New Issue
Block a user