From 227b06e3661bf00249217be3244ea4981cbecc0b Mon Sep 17 00:00:00 2001 From: Steven Jackson Date: Sat, 6 Sep 2014 18:02:01 -0500 Subject: [PATCH] major prep work for WoD --- Interface/AddOns/SVUI/SVUI.lua | 67 ++- Interface/AddOns/SVUI/SVUI.toc | 2 +- .../LibBalancePowerTracker-1.1.lua | 18 +- .../AddOns/SVUI/libs/oUF/elements/portraits.lua | 2 +- .../AddOns/SVUI/libs/oUF/elements/runebar.lua | 2 +- .../oUF_ActionPanel/oUF_ActionPanel.toc | 2 +- .../oUF_Plugins/oUF_Afflicted/oUF_Afflicted.toc | 2 +- .../oUF_ArcaneCharge/oUF_ArcaneCharge.toc | 2 +- .../oUF_Plugins/oUF_Combatant/oUF_Combatant.toc | 2 +- .../SVUI/libs/oUF_Plugins/oUF_GPS/oUF_GPS.lua | 136 ----- .../SVUI/libs/oUF_Plugins/oUF_GPS/oUF_GPS.toc | 9 - .../AddOns/SVUI/libs/oUF_Plugins/oUF_Plugins.xml | 1 - .../AddOns/SVUI/packages/actionbar/KeyBind.lua | 80 +-- Interface/AddOns/SVUI/packages/actionbar/SVBar.lua | 14 +- Interface/AddOns/SVUI/packages/chat/SVChat.lua | 72 +-- Interface/AddOns/SVUI/packages/gear/SVGear.lua | 20 +- Interface/AddOns/SVUI/packages/map/SVMap.lua | 14 +- Interface/AddOns/SVUI/packages/plates/SVPlate.lua | 10 +- .../AddOns/SVUI/packages/stats/stats/bags.lua | 14 +- Interface/AddOns/SVUI/packages/stats/stats/cta.lua | 36 +- .../SVUI/packages/stats/stats/durability.lua | 20 +- .../AddOns/SVUI/packages/stats/stats/friends.lua | 2 +- .../AddOns/SVUI/packages/stats/stats/gold.lua | 20 +- .../SVUI/packages/stats/stats/reputation.lua | 20 +- .../AddOns/SVUI/packages/stats/stats/time.lua | 2 +- .../AddOns/SVUI/packages/stats/stats/tokens.lua | 10 +- .../AddOns/SVUI/packages/unit/elements/auras.lua | 4 +- .../AddOns/SVUI/packages/unit/elements/castbar.lua | 2 +- .../SVUI/packages/unit/elements/essentials.lua | 20 +- .../AddOns/SVUI/packages/unit/elements/misc.lua | 38 +- .../AddOns/SVUI/packages/unit/elements/tags.lua | 2 +- Interface/AddOns/SVUI/packages/unit/frames.lua | 24 +- .../SVUI/packages/unit/resources/deathknight.lua | 8 +- .../AddOns/SVUI/packages/unit/resources/druid.lua | 4 +- .../AddOns/SVUI/packages/unit/resources/hunter.lua | 4 +- .../AddOns/SVUI/packages/unit/resources/mage.lua | 26 +- .../AddOns/SVUI/packages/unit/resources/monk.lua | 12 +- .../SVUI/packages/unit/resources/paladin.lua | 18 +- .../AddOns/SVUI/packages/unit/resources/priest.lua | 14 +- .../AddOns/SVUI/packages/unit/resources/rogue.lua | 22 +- .../AddOns/SVUI/packages/unit/resources/shaman.lua | 10 +- .../SVUI/packages/unit/resources/warlock.lua | 12 +- .../SVUI/packages/unit/resources/warrior.lua | 4 +- Interface/AddOns/SVUI/scripts/comix.lua | 10 +- Interface/AddOns/SVUI/scripts/mounts.lua | 4 +- Interface/AddOns/SVUI/scripts/questwatch.lua | 52 +- Interface/AddOns/SVUI/scripts/spellbind.lua | 11 +- Interface/AddOns/SVUI/system/alerts.lua | 20 +- Interface/AddOns/SVUI/system/common.lua | 591 ++++++++++++-------- Interface/AddOns/SVUI/system/system.lua | 4 +- Interface/AddOns/SVUI/system/updates.lua | 14 +- Interface/AddOns/SVUI/system/utilities.lua | 12 +- Interface/AddOns/SVUI/system/visibility.lua | 107 ++-- .../SVUI_AnsweringService.toc | 2 +- Interface/AddOns/SVUI_ArtOfWar/SVUI_ArtOfWar.lua | 4 +- Interface/AddOns/SVUI_ArtOfWar/SVUI_ArtOfWar.toc | 2 +- .../AddOns/SVUI_ConfigOMatic/SVUI_ConfigOMatic.lua | 18 +- .../AddOns/SVUI_ConfigOMatic/SVUI_ConfigOMatic.toc | 2 +- Interface/AddOns/SVUI_ConfigOMatic/modules/bar.lua | 4 +- .../AddOns/SVUI_ConfigOMatic/modules/dock.lua | 4 +- .../AddOns/SVUI_ConfigOMatic/modules/dynamic.lua | 2 +- .../AddOns/SVUI_ConfigOMatic/modules/plate.lua | 12 +- .../SVUI_ConfigOMatic/modules/units/core.lua | 42 +- .../SVUI_ConfigOMatic/modules/units/focus.lua | 6 +- .../SVUI_ConfigOMatic/modules/units/other.lua | 2 +- .../SVUI_ConfigOMatic/modules/units/party.lua | 2 +- .../AddOns/SVUI_ConfigOMatic/modules/units/pet.lua | 8 +- .../SVUI_ConfigOMatic/modules/units/player.lua | 6 +- .../SVUI_ConfigOMatic/modules/units/raid.lua | 2 +- .../SVUI_ConfigOMatic/modules/units/target.lua | 8 +- Interface/AddOns/SVUI_DebugOMatic/Bindings.xml | 5 - .../AddOns/SVUI_DebugOMatic/SVUI_DebugOMatic.toc | 9 - .../AddOns/SVUI_DebugOMatic/SVUI_DebugOMatic.xml | 116 ---- Interface/AddOns/SVUI_DebugOMatic/debug.lua | 296 ---------- Interface/AddOns/SVUI_Laborer/SVUI_Laborer.lua | 16 +- Interface/AddOns/SVUI_Laborer/SVUI_Laborer.toc | 2 +- .../AddOns/SVUI_Laborer/modes/archaeology.lua | 12 +- Interface/AddOns/SVUI_Laborer/modes/cooking.lua | 26 +- Interface/AddOns/SVUI_Laborer/modes/farming.lua | 18 +- Interface/AddOns/SVUI_Laborer/modes/fishing.lua | 24 +- Interface/AddOns/SVUI_LogOMatic/SVUI_LogOMatic.toc | 2 +- .../AddOns/SVUI_StyleOMatic/SVUI_StyleOMatic.lua | 3 +- .../AddOns/SVUI_StyleOMatic/SVUI_StyleOMatic.toc | 2 +- Interface/AddOns/SVUI_StyleOMatic/addons/_load.xml | 1 + .../AddOns/SVUI_StyleOMatic/addons/achievement.lua | 166 ++++-- .../SVUI_StyleOMatic/addons/auctionhouse.lua | 38 +- .../AddOns/SVUI_StyleOMatic/addons/barbershop.lua | 10 +- .../AddOns/SVUI_StyleOMatic/addons/battlefield.lua | 4 +- .../AddOns/SVUI_StyleOMatic/addons/blackmarket.lua | 10 +- .../AddOns/SVUI_StyleOMatic/addons/calendar.lua | 7 +- .../AddOns/SVUI_StyleOMatic/addons/challenges.lua | 6 +- .../AddOns/SVUI_StyleOMatic/addons/character.lua | 33 +- Interface/AddOns/SVUI_StyleOMatic/addons/chat.lua | 2 +- .../AddOns/SVUI_StyleOMatic/addons/dressup.lua | 4 +- .../SVUI_StyleOMatic/addons/encounterjournal.lua | 4 +- .../AddOns/SVUI_StyleOMatic/addons/friends.lua | 12 +- .../AddOns/SVUI_StyleOMatic/addons/gossip.lua | 6 +- Interface/AddOns/SVUI_StyleOMatic/addons/guild.lua | 27 +- .../AddOns/SVUI_StyleOMatic/addons/inspect.lua | 8 +- .../SVUI_StyleOMatic/addons/itemsocketing.lua | 6 +- .../AddOns/SVUI_StyleOMatic/addons/itemupgrade.lua | 4 +- Interface/AddOns/SVUI_StyleOMatic/addons/lfd.lua | 4 +- .../AddOns/SVUI_StyleOMatic/addons/loothistory.lua | 14 +- .../SVUI_StyleOMatic/addons/lossofcontrol.lua | 4 +- Interface/AddOns/SVUI_StyleOMatic/addons/macro.lua | 16 +- .../AddOns/SVUI_StyleOMatic/addons/mailbox.lua | 17 +- .../AddOns/SVUI_StyleOMatic/addons/merchant.lua | 10 +- .../AddOns/SVUI_StyleOMatic/addons/petbattle.lua | 4 +- .../AddOns/SVUI_StyleOMatic/addons/petition.lua | 6 +- .../AddOns/SVUI_StyleOMatic/addons/petjournal.lua | 82 +-- .../AddOns/SVUI_StyleOMatic/addons/petstable.lua | 8 +- Interface/AddOns/SVUI_StyleOMatic/addons/pvp.lua | 5 +- Interface/AddOns/SVUI_StyleOMatic/addons/quest.lua | 83 ++- Interface/AddOns/SVUI_StyleOMatic/addons/raid.lua | 16 +- .../AddOns/SVUI_StyleOMatic/addons/reforging.lua | 9 +- .../AddOns/SVUI_StyleOMatic/addons/spellbook.lua | 2 +- Interface/AddOns/SVUI_StyleOMatic/addons/store.lua | 36 ++ .../AddOns/SVUI_StyleOMatic/addons/system.lua | 23 +- .../AddOns/SVUI_StyleOMatic/addons/tabard.lua | 8 +- .../AddOns/SVUI_StyleOMatic/addons/talents.lua | 93 ++- Interface/AddOns/SVUI_StyleOMatic/addons/taxi.lua | 10 +- .../SVUI_StyleOMatic/addons/thirdparty/ACP.lua | 10 +- .../addons/thirdparty/AtlasLoot.lua | 18 +- .../SVUI_StyleOMatic/addons/thirdparty/Omen.lua | 6 +- .../SVUI_StyleOMatic/addons/thirdparty/Recount.lua | 12 +- .../SVUI_StyleOMatic/addons/thirdparty/Skada.lua | 8 +- .../SVUI_StyleOMatic/addons/thirdparty/TinyDPS.lua | 4 +- .../addons/thirdparty/WeakAuras.lua | 4 +- .../addons/thirdparty/alDamageMeter.lua | 6 +- .../AddOns/SVUI_StyleOMatic/addons/timemanager.lua | 13 +- Interface/AddOns/SVUI_StyleOMatic/addons/trade.lua | 14 +- .../AddOns/SVUI_StyleOMatic/addons/tradeskill.lua | 61 +- .../AddOns/SVUI_StyleOMatic/addons/trainer.lua | 20 +- .../AddOns/SVUI_StyleOMatic/addons/transmog.lua | 18 +- .../AddOns/SVUI_StyleOMatic/addons/voidstorage.lua | 17 +- .../AddOns/SVUI_StyleOMatic/addons/worldstate.lua | 4 +- .../AddOns/SVUI_StyleOMatic/common/methods.lua | 83 ++- .../SVUI_TrackingDevice/SVUI_TrackingDevice.lua | 73 ++- .../SVUI_TrackingDevice/SVUI_TrackingDevice.toc | 1 + .../SVUI_TrackingDevice/SVUI_TrackingDevice.xml | 1 + .../SVUI_TrackingDevice/libs/oUF_GPS/oUF_GPS.lua | 139 +++++ .../SVUI_TrackingDevice/libs/oUF_GPS/oUF_GPS.toc | 9 + 142 files changed, 1733 insertions(+), 1871 deletions(-) delete mode 100644 Interface/AddOns/SVUI/libs/oUF_Plugins/oUF_GPS/oUF_GPS.lua delete mode 100644 Interface/AddOns/SVUI/libs/oUF_Plugins/oUF_GPS/oUF_GPS.toc delete mode 100644 Interface/AddOns/SVUI_DebugOMatic/Bindings.xml delete mode 100644 Interface/AddOns/SVUI_DebugOMatic/SVUI_DebugOMatic.toc delete mode 100644 Interface/AddOns/SVUI_DebugOMatic/SVUI_DebugOMatic.xml delete mode 100644 Interface/AddOns/SVUI_DebugOMatic/debug.lua create mode 100644 Interface/AddOns/SVUI_StyleOMatic/addons/store.lua create mode 100644 Interface/AddOns/SVUI_TrackingDevice/libs/oUF_GPS/oUF_GPS.lua create mode 100644 Interface/AddOns/SVUI_TrackingDevice/libs/oUF_GPS/oUF_GPS.toc diff --git a/Interface/AddOns/SVUI/SVUI.lua b/Interface/AddOns/SVUI/SVUI.lua index 8de74bd..f103ae5 100644 --- a/Interface/AddOns/SVUI/SVUI.lua +++ b/Interface/AddOns/SVUI/SVUI.lua @@ -50,8 +50,8 @@ local tsort, tconcat = table.sort, table.concat; ]]-- local SVUI = {}; local SVUINameSpace, SVUICore = ...; -local version = GetAddOnMetadata(..., "Version"); -local build = select(2, GetBuildInfo()); +local SVUIVersion = GetAddOnMetadata(..., "Version"); +local clientVersion, internalVersion, releaseDate, uiVersion = GetBuildInfo(); local playerName = UnitName("player"); local playerRealm = GetRealmName(); local SetAddonCore; @@ -270,7 +270,7 @@ end ############################################################################### ]]-- do - local PackageQueue, PluginQueue, ScriptQueue = {},{},{}; + local ModuleQueue, ScriptQueue = {},{}; local INFO_BY = "%s |cff0099FFby %s|r"; local INFO_VERSION = "%s%s |cff33FF00Version: %s|r"; @@ -472,7 +472,7 @@ do local core = self.___core if(core[schema]) then return end - PackageQueue[#PackageQueue+1] = schema + ModuleQueue[#ModuleQueue+1] = schema self.Modules[#self.Modules+1] = schema core[schema] = SetInternalModule(obj, schema, core) @@ -493,7 +493,7 @@ do local schema = GetAddOnMetadata(addonName, "X-SVUI"); if(not schema or (schema and core[schema])) then return end - PluginQueue[#PluginQueue+1] = schema + ModuleQueue[#ModuleQueue+1] = schema self.Modules[#self.Modules+1] = schema SetPluginString(addonName) @@ -506,8 +506,17 @@ do end end - local Registry_FetchPlugins = function(self) - -- DO STUFF + local Registry_FetchAddons = function(self) + local addonCount = GetNumAddOns() + + for i = 1, addonCount do + local name = GetAddOnInfo(i) + local lod = IsAddOnLoadOnDemand(i) + local schema = GetAddOnMetadata(i, "X-SVUI") + if(lod and schema) then + self.Addons[name] = schema; + end + end end local Registry_RunCallbacks = function(self) @@ -549,12 +558,24 @@ do end end + local Registry_LoadOnDemand = function(self) + local addons = self.Addons + local core = self.___core + for name,schema in pairs(addons) do + local config = core.db[schema] + + if(config and config.enable and not IsAddOnLoaded(name)) then + LoadAddOn(name) + end + end + end + local Registry_Load = function(self) - if not PackageQueue then return end + if not ModuleQueue then return end local core = self.___core - for i=1,#PackageQueue do - local name = PackageQueue[i] + for i=1,#ModuleQueue do + local name = ModuleQueue[i] local obj = core[name] if obj and not obj.initialized then if core.db[name] then @@ -576,7 +597,7 @@ do end end - PackageQueue = nil + ModuleQueue = nil if not ScriptQueue then return end for i=1, #ScriptQueue do @@ -587,14 +608,21 @@ do end ScriptQueue = nil + + self:LoadAddons() end --[[ GLOBAL NAMESPACE ]]-- - function SetAddonCore(obj,n,v) + function SetAddonCore(obj) + local version = GetAddOnMetadata(SVUINameSpace, "Version") + local schema = GetAddOnMetadata(SVUINameSpace, "X-SVUI") + obj = { - ___addonName = n, - ___version = v, + ___addonName = SVUINameSpace, + ___version = version, + ___schema = schema, + ___interface = tonumber(uiVersion), db = {}, Global = { Accountant = {}, @@ -647,7 +675,7 @@ do }, Registry = { Modules = {}, - Plugins = {}, + Addons = {}, Callbacks = {}, INFO_VERSION = INFO_VERSION, INFO_NEW = INFO_NEW, @@ -657,6 +685,8 @@ do NewScript = Registry_NewScript, NewPackage = Registry_NewPackage, NewPlugin = Registry_NewPlugin, + FindAddons = Registry_FetchAddons, + LoadAddons = Registry_LoadOnDemand, RunCallbacks = Registry_RunCallbacks, Update = Registry_Update, UpdateAll = Registry_UpdateAll, @@ -717,7 +747,7 @@ local metawrite = setmetatable({}, { \______/ \______/ |__/ |__/|________/ ########################################################## ]]-- -SVUI = SetAddonCore(SVUI, SVUINameSpace, version) +SVUI = SetAddonCore(SVUI) SVUI.Localization = setmetatable({}, metaread) @@ -812,4 +842,7 @@ SVUICore[2] = SVUI.Localization --[[ SET MASTER GLOBAL ]]-- -_G[SVUINameSpace] = SVUICore; \ No newline at end of file +_G[SVUINameSpace] = SVUICore; + +-- TESTING INTERFACE METADATA +-- /script print(SVUI[1].___interface) \ No newline at end of file diff --git a/Interface/AddOns/SVUI/SVUI.toc b/Interface/AddOns/SVUI/SVUI.toc index 8f02ede..d3de9e7 100644 --- a/Interface/AddOns/SVUI/SVUI.toc +++ b/Interface/AddOns/SVUI/SVUI.toc @@ -1,6 +1,6 @@ ## Interface: 60000 ## Author: Munglunch -## Version: 5.02 +## Version: 4.2 ## Title: |cffFF9900SVUI|r ## Notes: Supervillain UI [|cff9911FFCore Framework|r]. ## SavedVariables: SVUI_Global diff --git a/Interface/AddOns/SVUI/libs/LibBalancePowerTracker-1.1/LibBalancePowerTracker-1.1.lua b/Interface/AddOns/SVUI/libs/LibBalancePowerTracker-1.1/LibBalancePowerTracker-1.1.lua index e6a0d04..a8fd0e2 100644 --- a/Interface/AddOns/SVUI/libs/LibBalancePowerTracker-1.1/LibBalancePowerTracker-1.1.lua +++ b/Interface/AddOns/SVUI/libs/LibBalancePowerTracker-1.1/LibBalancePowerTracker-1.1.lua @@ -150,7 +150,7 @@ v 1.0.0 Release --]] local version = {1,1,5}; -if (LibBalancePowerTracker and LibBalancePowerTracker.CompareVersion and LibBalancePowerTracker:CompareVersion(version)) then return; end; +if (LibBalancePowerTracker and LibBalancePowerTracker.CompareVersion and LibBalancePowerTracker:CompareVersion(version)) then return; end if select(4, GetBuildInfo())<50001 then return end --Initialize Global Lib @@ -370,7 +370,7 @@ end local function checkCelestialAligmentBuff() local tim_end = select(7,UnitBuff('player',data.CA.name)) or 0; vars.celestial_lockout_end = tim_end*1000; - return vars.celestial_lockout_end; + return vars.celestial_lockout_end end local function isBalance() return GetSpecialization() == 1 @@ -396,7 +396,7 @@ do --Loading if vars.isDruid and number_callbacks ~= 0 then LBPT.load() end - end; + end --[[loading: energia ok on login @@ -449,7 +449,7 @@ do --Loading function LBPT.ECLIPSE_DIRECTION_CHANGE() LBPT.Reset(true) timers.delayedUpdate:SetCooldown(GetTime(),.05) - end; + end function LBPT.RegisterCombatEvents(balanceNow) if balanceNow then @@ -764,8 +764,8 @@ do --Calling callbacks functions function LBPT.FireCallbacks() for k,v in pairs(callbacks) do v(vars.energy,vars.direction,vars.vEnergy,vars.vDirection,vars.vEclipse); - end; - end; + end + end end do --Called functions (API) @@ -795,7 +795,7 @@ do --Called functions (API) LBPT.unload(); end end - function LibBalancePowerTracker:GetVersion() return version[1],version[2],version[3]; end; + function LibBalancePowerTracker:GetVersion() return version[1],version[2],version[3]; end -- Only used when AC was cast in CA (Who would want to...?, begins to fail when being hit after CA ends but before a energize event fires, pretty low chance, but taken care of anyway) --[[ time 0 1 2 3 4 @@ -983,8 +983,8 @@ do ----DEBUG--------------------- drawn = true; for k,v in pairs(callbacks) do v(vars.energy,vars.direction,vars.vEnergy,vars.vDirection,vars.vEclipse); - end; - end; + end + end combatFrame:SetScript("OnEvent", function(_, event, ...) drawn = false; LBPT.combat[event](...) insert(event,drawn,...) end); frame:SetScript("OnEvent", function(_, event, ...) drawn = false; LBPT[event](...) insert(event,drawn,...) end); diff --git a/Interface/AddOns/SVUI/libs/oUF/elements/portraits.lua b/Interface/AddOns/SVUI/libs/oUF/elements/portraits.lua index b4e7402..66b810b 100644 --- a/Interface/AddOns/SVUI/libs/oUF/elements/portraits.lua +++ b/Interface/AddOns/SVUI/libs/oUF/elements/portraits.lua @@ -44,7 +44,7 @@ local Update = function(self, event, unit) color = self.colors.reaction[UnitReaction(unit,"player")] if(color ~= nil) then r,g,b = color[1], color[2], color[3] - end; + end else local _,unitClass = UnitClass(unit) if unitClass then diff --git a/Interface/AddOns/SVUI/libs/oUF/elements/runebar.lua b/Interface/AddOns/SVUI/libs/oUF/elements/runebar.lua index f7e7f61..45f02cb 100644 --- a/Interface/AddOns/SVUI/libs/oUF/elements/runebar.lua +++ b/Interface/AddOns/SVUI/libs/oUF/elements/runebar.lua @@ -126,7 +126,7 @@ local Enable = function(self, unit) self:RegisterEvent("RUNE_TYPE_UPDATE", UpdateType, true) --I have no idea why this won't fire on initial login. self:RegisterEvent("PLAYER_ENTERING_WORLD", UpdateAllRuneTypes) - if not runes.UpdateAllRuneTypes then runes.UpdateAllRuneTypes = UpdateAllRuneTypes end; + if not runes.UpdateAllRuneTypes then runes.UpdateAllRuneTypes = UpdateAllRuneTypes end for i=1, 6 do local rune = runes[runemap[i]] diff --git a/Interface/AddOns/SVUI/libs/oUF_Plugins/oUF_ActionPanel/oUF_ActionPanel.toc b/Interface/AddOns/SVUI/libs/oUF_Plugins/oUF_ActionPanel/oUF_ActionPanel.toc index 129e085..fae86b7 100644 --- a/Interface/AddOns/SVUI/libs/oUF_Plugins/oUF_ActionPanel/oUF_ActionPanel.toc +++ b/Interface/AddOns/SVUI/libs/oUF_Plugins/oUF_ActionPanel/oUF_ActionPanel.toc @@ -2,7 +2,7 @@ ## Title: oUF ActionPanel ## Notes: Adds a backing to all unit frames that provides many utilities. ## Author: Munglunch -## Version: 5.02 +## Version: 4.2 ## X-Category: oUF ## Dependencies: oUF diff --git a/Interface/AddOns/SVUI/libs/oUF_Plugins/oUF_Afflicted/oUF_Afflicted.toc b/Interface/AddOns/SVUI/libs/oUF_Plugins/oUF_Afflicted/oUF_Afflicted.toc index ee5034f..a71f0b6 100644 --- a/Interface/AddOns/SVUI/libs/oUF_Plugins/oUF_Afflicted/oUF_Afflicted.toc +++ b/Interface/AddOns/SVUI/libs/oUF_Plugins/oUF_Afflicted/oUF_Afflicted.toc @@ -2,7 +2,7 @@ ## Title: oUF Afflicted ## Notes: Adds Custom Debuff Highlighting to oUF. ## Author: Munglunch -## Version: 5.02 +## Version: 4.2 ## X-Category: oUF ## Dependencies: oUF diff --git a/Interface/AddOns/SVUI/libs/oUF_Plugins/oUF_ArcaneCharge/oUF_ArcaneCharge.toc b/Interface/AddOns/SVUI/libs/oUF_Plugins/oUF_ArcaneCharge/oUF_ArcaneCharge.toc index 021f782..d900274 100644 --- a/Interface/AddOns/SVUI/libs/oUF_Plugins/oUF_ArcaneCharge/oUF_ArcaneCharge.toc +++ b/Interface/AddOns/SVUI/libs/oUF_Plugins/oUF_ArcaneCharge/oUF_ArcaneCharge.toc @@ -2,7 +2,7 @@ ## Title: oUF Arcane Charge ## Notes: Adds support for arcane charge indicators to oUF. ## Author: Munglunch -## Version: 5.02 +## Version: 4.2 ## Dependencies: oUF oUF_ArcaneCharge.lua \ No newline at end of file diff --git a/Interface/AddOns/SVUI/libs/oUF_Plugins/oUF_Combatant/oUF_Combatant.toc b/Interface/AddOns/SVUI/libs/oUF_Plugins/oUF_Combatant/oUF_Combatant.toc index 2e2d68f..4341601 100644 --- a/Interface/AddOns/SVUI/libs/oUF_Plugins/oUF_Combatant/oUF_Combatant.toc +++ b/Interface/AddOns/SVUI/libs/oUF_Plugins/oUF_Combatant/oUF_Combatant.toc @@ -2,7 +2,7 @@ ## Title: oUF Combatant ## Notes: Adds PvP trinket status and spec icons to oUF frames. ## Author: Munglunch -## Version: 5.020 +## Version: 4.20 ## X-Category: oUF ## Dependencies: oUF diff --git a/Interface/AddOns/SVUI/libs/oUF_Plugins/oUF_GPS/oUF_GPS.lua b/Interface/AddOns/SVUI/libs/oUF_Plugins/oUF_GPS/oUF_GPS.lua deleted file mode 100644 index b39f859..0000000 --- a/Interface/AddOns/SVUI/libs/oUF_Plugins/oUF_GPS/oUF_GPS.lua +++ /dev/null @@ -1,136 +0,0 @@ -local _, ns = ... -local oUF = ns.oUF or oUF -assert(oUF, 'oUF not loaded') - -local cos, sin, sqrt2, max, atan2, floor = math.cos, math.sin, math.sqrt(2), math.max, math.atan2, math.floor; -local tinsert, tremove, tsort, twipe = table.insert, table.remove, table.sort, table.wipe; -local SuperVillain = SVUI[1] -local playerGUID = UnitGUID("player") -local _FRAMES, _PROXIMITY, OnUpdateFrame = {}, {} -local GPSMonitorFrame; - -local function _calc(radius) - return 0.5 + cos(radius) / sqrt2, 0.5 + sin(radius) / sqrt2; -end - -local function spin(texture, angle) - local LRx, LRy = _calc(angle + 0.785398163); - local LLx, LLy = _calc(angle + 2.35619449); - local ULx, ULy = _calc(angle + 3.92699082); - local URx, URy = _calc(angle - 0.785398163); - - texture:SetTexCoord(ULx, ULy, LLx, LLy, URx, URy, LRx, LRy); -end - -local sortFunc = function(a,b) return a[1] < b[1] end - -local minThrottle = 0.02 -local numArrows, inRange, unit, angle, GPS, distance -local Update = function(self, elapsed) - if self.elapsed and self.elapsed > (self.throttle or minThrottle) then - numArrows = 0 - twipe(_PROXIMITY) - for _, object in next, _FRAMES do - if(object:IsShown()) then - GPS = object.GPS - unit = object.unit - if(unit) then - if(GPS.PreUpdate) then GPS:PreUpdate(frame) end - - if unit and GPS.outOfRange then - inRange = UnitInRange(unit) - end - - local available = (GPS.OnlyProximity == false and GPS.onMouseOver == false) - - if(not unit or not (UnitInParty(unit) or UnitInRaid(unit)) or UnitIsUnit(unit, "player") or not UnitIsConnected(unit) or (not GPS.OnlyProximity and ((GPS.onMouseOver and (GetMouseFocus() ~= object)) or (GPS.outOfRange and inRange)))) then - GPS:Hide() - else - distance, angle = SuperVillain:PositionFromPlayer(unit, available) - if not angle then - GPS:Hide() - else - if(GPS.OnlyProximity == false) then - GPS:Show() - else - GPS:Hide() - end - - if GPS.Arrow then - if(distance > 40) then - GPS.Arrow:SetVertexColor(1,0.1,0.1) - else - if(distance > 30) then - GPS.Arrow:SetVertexColor(0.4,0.8,0.1) - else - GPS.Arrow:SetVertexColor(0.1,1,0.1) - end - if(GPS.OnlyProximity and object.Health.percent and object.Health.percent < 80) then - local value = object.Health.percent + distance - _PROXIMITY[#_PROXIMITY + 1] = {value, GPS} - end - end - spin(GPS.Arrow, angle) - end - - if GPS.Text then - GPS.Text:SetText(floor(distance)) - end - - if(GPS.PostUpdate) then GPS:PostUpdate(frame, distance, angle) end - numArrows = numArrows + 1 - end - end - else - GPS:Hide() - end - end - end - - if(_PROXIMITY[1]) then - tsort(_PROXIMITY, sortFunc) - if(_PROXIMITY[1][2]) then - _PROXIMITY[1][2]:Show() - end - end - - self.elapsed = 0 - self.throttle = max(minThrottle, 0.005 * numArrows) - else - self.elapsed = (self.elapsed or 0) + elapsed - end -end - -local Enable = function(self) - local GPS = self.GPS - if GPS then - tinsert(_FRAMES, self) - - if not OnUpdateFrame then - OnUpdateFrame = CreateFrame("Frame") - OnUpdateFrame:SetScript("OnUpdate", Update) - end - - OnUpdateFrame:Show() - return true - end -end - -local Disable = function(self) - local GPS = self.GPS - if GPS then - for k, frame in next, _FRAMES do - if(frame == self) then - tremove(_FRAMES, k) - GPS:Hide() - break - end - end - - if #_FRAMES == 0 and OnUpdateFrame then - OnUpdateFrame:Hide() - end - end -end - -oUF:AddElement('GPS', nil, Enable, Disable) \ No newline at end of file diff --git a/Interface/AddOns/SVUI/libs/oUF_Plugins/oUF_GPS/oUF_GPS.toc b/Interface/AddOns/SVUI/libs/oUF_Plugins/oUF_GPS/oUF_GPS.toc deleted file mode 100644 index cdca787..0000000 --- a/Interface/AddOns/SVUI/libs/oUF_Plugins/oUF_GPS/oUF_GPS.toc +++ /dev/null @@ -1,9 +0,0 @@ -## Interface: 50001 -## Title: oUF GPS -## Notes: Adds GPS arrow to frames. -## Author: Omega1970, Munglunch -## Version: 1.00 -## X-Category: oUF -## Dependencies: oUF - -oUF_GPS.lua \ No newline at end of file diff --git a/Interface/AddOns/SVUI/libs/oUF_Plugins/oUF_Plugins.xml b/Interface/AddOns/SVUI/libs/oUF_Plugins/oUF_Plugins.xml index c8f4b75..98378e7 100644 --- a/Interface/AddOns/SVUI/libs/oUF_Plugins/oUF_Plugins.xml +++ b/Interface/AddOns/SVUI/libs/oUF_Plugins/oUF_Plugins.xml @@ -9,7 +9,6 @@