From cd23ce8973aa740977d61ad09778083cb6abe22a Mon Sep 17 00:00:00 2001 From: Steven Jackson Date: Wed, 1 Oct 2014 18:12:34 -0500 Subject: [PATCH] 4.8.0 --- Interface/AddOns/SVUI/SVUI.toc | 2 +- .../LibSuperVillain-1.0/LibSuperVillain-1.0.lua | 12 +- .../Changelog-libdatabroker-1-1-v1.1.4.txt | 33 ---- .../libs/libdatabroker-1.1/LibDataBroker-1.1.lua | 90 ---------- .../SVUI/libs/libdatabroker-1.1/README.textile | 13 -- Interface/AddOns/SVUI/libs/libs.xml | 1 - .../Plugins/oUF_ActionPanel/oUF_ActionPanel.toc | 2 +- .../Plugins/oUF_Afflicted/oUF_Afflicted.toc | 2 +- .../Plugins/oUF_ArcaneCharge/oUF_ArcaneCharge.toc | 2 +- .../Plugins/oUF_Combatant/oUF_Combatant.toc | 2 +- Interface/AddOns/SVUI/packages/stats/SVStats.lua | 174 +++++++++++--------- .../SVUI/packages/stats/stats/experience.lua | 3 +- Interface/AddOns/SVUI/packages/unit/SVUnit.lua | 2 +- .../AddOns/SVUI_ChatOMatic/SVUI_ChatOMatic.lua | 3 +- .../AddOns/SVUI_ChatOMatic/SVUI_ChatOMatic.toc | 2 +- .../AddOns/SVUI_ConfigOMatic/SVUI_ConfigOMatic.toc | 4 +- .../AddOns/SVUI_CraftOMatic/SVUI_CraftOMatic.toc | 2 +- .../AddOns/SVUI_FightOMatic/SVUI_FightOMatic.toc | 4 +- Interface/AddOns/SVUI_LogOMatic/SVUI_LogOMatic.toc | 4 +- .../AddOns/SVUI_StyleOMatic/SVUI_StyleOMatic.toc | 4 +- .../AddOns/SVUI_TrackOMatic/SVUI_TrackOMatic.toc | 4 +- 21 files changed, 124 insertions(+), 241 deletions(-) delete mode 100644 Interface/AddOns/SVUI/libs/libdatabroker-1.1/Changelog-libdatabroker-1-1-v1.1.4.txt delete mode 100644 Interface/AddOns/SVUI/libs/libdatabroker-1.1/LibDataBroker-1.1.lua delete mode 100644 Interface/AddOns/SVUI/libs/libdatabroker-1.1/README.textile diff --git a/Interface/AddOns/SVUI/SVUI.toc b/Interface/AddOns/SVUI/SVUI.toc index 535ac86..4e5264d 100644 --- a/Interface/AddOns/SVUI/SVUI.toc +++ b/Interface/AddOns/SVUI/SVUI.toc @@ -1,6 +1,6 @@ ## Interface: 60000 ## Author: Munglunch -## Version: 4.7 +## Version: 4.8 ## Title: |cffFF9900SVUI|r ## Notes: Supervillain UI [|cff9911FFCore Framework|r]. ## SavedVariables: SVUI_Global diff --git a/Interface/AddOns/SVUI/libs/LibSuperVillain-1.0/LibSuperVillain-1.0.lua b/Interface/AddOns/SVUI/libs/LibSuperVillain-1.0/LibSuperVillain-1.0.lua index 5b72ec7..feddff9 100644 --- a/Interface/AddOns/SVUI/libs/LibSuperVillain-1.0/LibSuperVillain-1.0.lua +++ b/Interface/AddOns/SVUI/libs/LibSuperVillain-1.0/LibSuperVillain-1.0.lua @@ -498,7 +498,7 @@ end function lib:NewCache(index) index = index or CoreObject.Schema - AllowedIndexes.C[index] = true + AllowedIndexes.C[index] = index if(not CACHE_SV[index]) then CACHE_SV[index] = {} end @@ -507,7 +507,7 @@ end function lib:NewGlobal(index) index = index or CoreObject.Schema - AllowedIndexes.G[index] = true + AllowedIndexes.G[index] = index if(not GLOBAL_SV[index]) then GLOBAL_SV[index] = {} end @@ -801,7 +801,7 @@ function lib:NewPlugin(addonName, addonObject) if(not PLUGINS) then PLUGINS = {} end PLUGINS[#PLUGINS+1] = schema - AllowedIndexes.P[schema] = true + AllowedIndexes.P[schema] = schema local infoString = SetPluginString(addonName) local oldString = PluginString @@ -879,7 +879,7 @@ local Core_NewPackage = function(self, schema, header) if(not MODULES) then MODULES = {} end MODULES[#MODULES+1] = schema - AllowedIndexes.P[schema] = true + AllowedIndexes.P[schema] = schema local addonName = ("SVUI [%s]"):format(schema) @@ -993,8 +993,8 @@ function lib:Initialize() GLOBAL_SV.profileKeys[k] = k end - AllowedIndexes.G["profileKeys"] = true - AllowedIndexes.G["profiles"] = true + AllowedIndexes.G["profileKeys"] = "profileKeys" + AllowedIndexes.G["profiles"] = "profiles" --CACHE SAVED VARIABLES if not _G[CACHE_FILENAME] then _G[CACHE_FILENAME] = {} end diff --git a/Interface/AddOns/SVUI/libs/libdatabroker-1.1/Changelog-libdatabroker-1-1-v1.1.4.txt b/Interface/AddOns/SVUI/libs/libdatabroker-1.1/Changelog-libdatabroker-1-1-v1.1.4.txt deleted file mode 100644 index d5b31ed..0000000 --- a/Interface/AddOns/SVUI/libs/libdatabroker-1.1/Changelog-libdatabroker-1-1-v1.1.4.txt +++ /dev/null @@ -1,33 +0,0 @@ -tag v1.1.4 -ddb0519a000c69ddf3a28c3f9fe2e62bb3fd00c5 -Tekkub -2008-11-06 22:03:04 -0700 - -Build 1.1.4 - - --------------------- - -Tekkub: - Add pairs and ipairs iters, since we can't use the normal iters on our dataobjs - Simplify readme, all docs have been moved into GitHub wiki pages - Documentation on how to use LDB data (for display addons) - Add StatBlockCore forum link - Add link to Fortress thread - And rearrange the addon list a bit too - Make field lists into nice pretty tables - Add list of who is using LDB - Always with the typos, I hate my fingers - Add tooltiptext and OnTooltipShow to data addon spec - Readme rejiggering - Add in some documentation on how to push data into LDB - Meh, fuck you textile - Adding readme - Pass current dataobj with attr change callbacks to avoid excessive calls to :GetDataObjectByName -Tekkub Stoutwrithe: - Make passed dataobj actually work - I always forget the 'then' - Minor memory optimization - - Only hold upvalues to locals in the functions called frequently - - Retain the metatable across future lib upgrades (the one in v1 will be lost) - Allow caller to pass a pre-populated table to NewDataObject diff --git a/Interface/AddOns/SVUI/libs/libdatabroker-1.1/LibDataBroker-1.1.lua b/Interface/AddOns/SVUI/libs/libdatabroker-1.1/LibDataBroker-1.1.lua deleted file mode 100644 index f47c0cd..0000000 --- a/Interface/AddOns/SVUI/libs/libdatabroker-1.1/LibDataBroker-1.1.lua +++ /dev/null @@ -1,90 +0,0 @@ - -assert(LibStub, "LibDataBroker-1.1 requires LibStub") -assert(LibStub:GetLibrary("CallbackHandler-1.0", true), "LibDataBroker-1.1 requires CallbackHandler-1.0") - -local lib, oldminor = LibStub:NewLibrary("LibDataBroker-1.1", 4) -if not lib then return end -oldminor = oldminor or 0 - - -lib.callbacks = lib.callbacks or LibStub:GetLibrary("CallbackHandler-1.0"):New(lib) -lib.attributestorage, lib.namestorage, lib.proxystorage = lib.attributestorage or {}, lib.namestorage or {}, lib.proxystorage or {} -local attributestorage, namestorage, callbacks = lib.attributestorage, lib.namestorage, lib.callbacks - -if oldminor < 2 then - lib.domt = { - __metatable = "access denied", - __index = function(self, key) return attributestorage[self] and attributestorage[self][key] end, - } -end - -if oldminor < 3 then - lib.domt.__newindex = function(self, key, value) - if not attributestorage[self] then attributestorage[self] = {} end - if attributestorage[self][key] == value then return end - attributestorage[self][key] = value - local name = namestorage[self] - if not name then return end - callbacks:Fire("LibDataBroker_AttributeChanged", name, key, value, self) - callbacks:Fire("LibDataBroker_AttributeChanged_"..name, name, key, value, self) - callbacks:Fire("LibDataBroker_AttributeChanged_"..name.."_"..key, name, key, value, self) - callbacks:Fire("LibDataBroker_AttributeChanged__"..key, name, key, value, self) - end -end - -if oldminor < 2 then - function lib:NewDataObject(name, dataobj) - if self.proxystorage[name] then return end - - if dataobj then - assert(type(dataobj) == "table", "Invalid dataobj, must be nil or a table") - self.attributestorage[dataobj] = {} - for i,v in pairs(dataobj) do - self.attributestorage[dataobj][i] = v - dataobj[i] = nil - end - end - dataobj = setmetatable(dataobj or {}, self.domt) - self.proxystorage[name], self.namestorage[dataobj] = dataobj, name - self.callbacks:Fire("LibDataBroker_DataObjectCreated", name, dataobj) - return dataobj - end -end - -if oldminor < 1 then - function lib:DataObjectIterator() - return pairs(self.proxystorage) - end - - function lib:GetDataObjectByName(dataobjectname) - return self.proxystorage[dataobjectname] - end - - function lib:GetNameByDataObject(dataobject) - return self.namestorage[dataobject] - end -end - -if oldminor < 4 then - local next = pairs(attributestorage) - function lib:pairs(dataobject_or_name) - local t = type(dataobject_or_name) - assert(t == "string" or t == "table", "Usage: ldb:pairs('dataobjectname') or ldb:pairs(dataobject)") - - local dataobj = self.proxystorage[dataobject_or_name] or dataobject_or_name - assert(attributestorage[dataobj], "Data object not found") - - return next, attributestorage[dataobj], nil - end - - local ipairs_iter = ipairs(attributestorage) - function lib:ipairs(dataobject_or_name) - local t = type(dataobject_or_name) - assert(t == "string" or t == "table", "Usage: ldb:ipairs('dataobjectname') or ldb:ipairs(dataobject)") - - local dataobj = self.proxystorage[dataobject_or_name] or dataobject_or_name - assert(attributestorage[dataobj], "Data object not found") - - return ipairs_iter, attributestorage[dataobj], 0 - end -end diff --git a/Interface/AddOns/SVUI/libs/libdatabroker-1.1/README.textile b/Interface/AddOns/SVUI/libs/libdatabroker-1.1/README.textile deleted file mode 100644 index ef16fed..0000000 --- a/Interface/AddOns/SVUI/libs/libdatabroker-1.1/README.textile +++ /dev/null @@ -1,13 +0,0 @@ -LibDataBroker is a small WoW addon library designed to provide a "MVC":http://en.wikipedia.org/wiki/Model-view-controller interface for use in various addons. -LDB's primary goal is to "detach" plugins for TitanPanel and FuBar from the display addon. -Plugins can provide data into a simple table, and display addons can receive callbacks to refresh their display of this data. -LDB also provides a place for addons to register "quicklaunch" functions, removing the need for authors to embed many large libraries to create minimap buttons. -Users who do not wish to be "plagued" by these buttons simply do not install an addon to render them. - -Due to it's simple generic design, LDB can be used for any design where you wish to have an addon notified of changes to a table. - -h2. Links - -* "API documentation":http://github.com/tekkub/libdatabroker-1-1/wikis/api -* "Data specifications":http://github.com/tekkub/libdatabroker-1-1/wikis/data-specifications -* "Addons using LDB":http://github.com/tekkub/libdatabroker-1-1/wikis/addons-using-ldb diff --git a/Interface/AddOns/SVUI/libs/libs.xml b/Interface/AddOns/SVUI/libs/libs.xml index 5b4ca2f..bc724e1 100644 --- a/Interface/AddOns/SVUI/libs/libs.xml +++ b/Interface/AddOns/SVUI/libs/libs.xml @@ -4,6 +4,5 @@