bug fixes for top items, coloured text, action bar and updater

This commit is contained in:
OTCv8
2020-06-11 21:18:35 +02:00
parent 04b9c2590c
commit 8391355c42
12 changed files with 19 additions and 1928 deletions

View File

@@ -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

View File

@@ -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()

View File

@@ -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