From d7d6c0362c88dced9ac9d31f8c3734fd375f4606 Mon Sep 17 00:00:00 2001 From: Xruptor Date: Tue, 24 Jul 2018 18:19:51 -0400 Subject: [PATCH] Major update for Battle for Azeroth 8.0 patch Fixed several bugs that was causing the character list not to show. --- libs/AceAddon-3.0/AceAddon-3.0.lua | 35 +-- libs/AceAddon-3.0/AceAddon-3.0.xml | 2 +- libs/AceConsole-3.0/AceConsole-3.0.xml | 2 +- libs/AceEvent-3.0/AceEvent-3.0.lua | 8 +- libs/AceEvent-3.0/AceEvent-3.0.xml | 2 +- libs/AceGUI-3.0/AceGUI-3.0.lua | 257 +++++++++++++++++--- libs/AceGUI-3.0/widgets/AceGUIContainer-Frame.lua | 9 +- .../widgets/AceGUIContainer-ScrollFrame.lua | 15 +- .../widgets/AceGUIContainer-TabGroup.lua | 4 +- .../widgets/AceGUIContainer-TreeGroup.lua | 25 +- libs/AceGUI-3.0/widgets/AceGUIContainer-Window.lua | 9 +- libs/AceGUI-3.0/widgets/AceGUIWidget-Button.lua | 4 +- libs/AceGUI-3.0/widgets/AceGUIWidget-CheckBox.lua | 9 +- .../widgets/AceGUIWidget-ColorPicker.lua | 8 +- .../widgets/AceGUIWidget-DropDown-Items.lua | 16 +- libs/AceGUI-3.0/widgets/AceGUIWidget-DropDown.lua | 6 +- libs/AceGUI-3.0/widgets/AceGUIWidget-EditBox.lua | 22 +- .../widgets/AceGUIWidget-InteractiveLabel.lua | 2 +- libs/AceGUI-3.0/widgets/AceGUIWidget-Label.lua | 15 +- libs/AceGUI-3.0/widgets/AceGUIWidget-Slider.lua | 4 +- libs/AceLocale-3.0/AceLocale-3.0.xml | 2 +- libs/CallbackHandler-1.0/CallbackHandler-1.0.lua | 46 +--- libs/CallbackHandler-1.0/CallbackHandler-1.0.xml | 2 +- libs/LibStub/LibStub.lua | 27 +- libs/LibStub/LibStub.toc | 2 +- xanOrderHalls.lua | 7 +- xanOrderHalls.toc | 4 +- 27 files changed, 331 insertions(+), 213 deletions(-) diff --git a/libs/AceAddon-3.0/AceAddon-3.0.lua b/libs/AceAddon-3.0/AceAddon-3.0.lua index a7f7279..e9d4154 100644 --- a/libs/AceAddon-3.0/AceAddon-3.0.lua +++ b/libs/AceAddon-3.0/AceAddon-3.0.lua @@ -28,7 +28,7 @@ -- end -- @class file -- @name AceAddon-3.0.lua --- @release $Id: AceAddon-3.0.lua 1084 2013-04-27 20:14:11Z nevcairiel $ +-- @release $Id: AceAddon-3.0.lua 1184 2018-07-21 14:13:14Z nevcairiel $ local MAJOR, MINOR = "AceAddon-3.0", 12 local AceAddon, oldminor = LibStub:NewLibrary(MAJOR, MINOR) @@ -62,43 +62,12 @@ local function errorhandler(err) return geterrorhandler()(err) end -local function CreateDispatcher(argCount) - local code = [[ - local xpcall, eh = ... - local method, ARGS - local function call() return method(ARGS) end - - local function dispatch(func, ...) - method = func - if not method then return end - ARGS = ... - return xpcall(call, eh) - end - - return dispatch - ]] - - local ARGS = {} - for i = 1, argCount do ARGS[i] = "arg"..i end - code = code:gsub("ARGS", tconcat(ARGS, ", ")) - return assert(loadstring(code, "safecall Dispatcher["..argCount.."]"))(xpcall, errorhandler) -end - -local Dispatchers = setmetatable({}, {__index=function(self, argCount) - local dispatcher = CreateDispatcher(argCount) - rawset(self, argCount, dispatcher) - return dispatcher -end}) -Dispatchers[0] = function(func) - return xpcall(func, errorhandler) -end - local function safecall(func, ...) -- we check to see if the func is passed is actually a function here and don't error when it isn't -- this safecall is used for optional functions like OnInitialize OnEnable etc. When they are not -- present execution should continue without hinderance if type(func) == "function" then - return Dispatchers[select('#', ...)](func, ...) + return xpcall(func, errorhandler, ...) end end diff --git a/libs/AceAddon-3.0/AceAddon-3.0.xml b/libs/AceAddon-3.0/AceAddon-3.0.xml index e6ad639..dcf24c7 100644 --- a/libs/AceAddon-3.0/AceAddon-3.0.xml +++ b/libs/AceAddon-3.0/AceAddon-3.0.xml @@ -1,4 +1,4 @@