4.9.999
Steven Jackson [10-13-14 - 01:04]
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 1dc362e..f660f25 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
@@ -712,6 +712,13 @@ function lib:RefreshAll()
end
end
+function lib:LiveUpdate()
+ if(PROFILE_SV.SAFEDATA.NEEDSLIVEUPDATE and not C_PetBattles.IsInBattle()) then
+ self:RefreshAll()
+ PROFILE_SV.SAFEDATA.NEEDSLIVEUPDATE = false
+ end
+end
+
function lib:GetModuletable()
return MODULES
end
@@ -1055,6 +1062,8 @@ function lib:Initialize()
PROFILE_SV = _G[PROFILE_FILENAME]
PROFILE_SV.SAFEDATA = PROFILE_SV.SAFEDATA or {dualSpecEnabled = false}
+ if not PROFILE_SV.SAFEDATA.NEEDSLIVEUPDATE then PROFILE_SV.SAFEDATA.NEEDSLIVEUPDATE = false end
+
if(PROFILE_SV.SAFEDATA and PROFILE_SV.SAFEDATA.dualSpecEnabled) then
SOURCE_KEY = GetSpecialization() or 1
self.EventManager:RegisterEvent("ACTIVE_TALENT_GROUP_CHANGED")
@@ -1169,4 +1178,6 @@ function lib:Launch()
ScriptQueue = nil
end
+
+ PROFILE_SV.SAFEDATA.NEEDSLIVEUPDATE = C_PetBattles.IsInBattle()
end
\ No newline at end of file
diff --git a/Interface/AddOns/SVUI/packages/bag/SVBag.lua b/Interface/AddOns/SVUI/packages/bag/SVBag.lua
index 940ea11..bd9d8bd 100644
--- a/Interface/AddOns/SVUI/packages/bag/SVBag.lua
+++ b/Interface/AddOns/SVUI/packages/bag/SVBag.lua
@@ -1810,6 +1810,8 @@ function MOD:Load()
BagFilters.buttons[clearID]:SetPoint("TOPLEFT", BagFilters.buttons[NUM_LE_BAG_FILTER_FLAGS], "BOTTOMLEFT", 0, -10)
BagFilters.buttons[clearID]:Show()
+
+ self:RegisterEvent("PLAYERREAGENTBANKSLOTS_CHANGED")
end
BagFilters:Hide()
diff --git a/Interface/AddOns/SVUI/packages/map/SVMap.lua b/Interface/AddOns/SVUI/packages/map/SVMap.lua
index 881a504..54d3358 100644
--- a/Interface/AddOns/SVUI/packages/map/SVMap.lua
+++ b/Interface/AddOns/SVUI/packages/map/SVMap.lua
@@ -112,6 +112,8 @@ do
MMBBar:SetPoint("CENTER", MMBHolder, "CENTER", 0, 0)
MMBBar:Height(SV.db.SVMap.minimapbar.buttonSize + 4)
MMBBar:Width(SV.db.SVMap.minimapbar.buttonSize + 4)
+ MMBBar:SetFrameStrata("LOW")
+ MMBBar:SetFrameLevel(0)
local lastButton, anchor, relative, xPos, yPos;
local list = MOD.MinimapButtons
@@ -189,9 +191,9 @@ do
end
end
- btn:SetPushedTexture(nil)
- btn:SetHighlightTexture(nil)
- btn:SetDisabledTexture(nil)
+ btn:SetPushedTexture("")
+ btn:SetHighlightTexture("")
+ btn:SetDisabledTexture("")
if not btn.isStyled then
btn:HookScript("OnEnter", MMB_OnEnter)
@@ -695,10 +697,6 @@ function MOD:PLAYER_REGEN_DISABLED()
WorldMapFrameSizeDownButton:Disable()
WorldMapFrameSizeUpButton:Disable()
end
-
-function MOD:PET_BATTLE_CLOSE()
- self:UpdateMinimapButtonSettings()
-end
--[[
##########################################################
BUILD FUNCTION / UPDATE
@@ -723,6 +721,7 @@ end
function MOD:ReLoad()
if(not SV.db.SVMap.enable) then return; end
self:RefreshMiniMap()
+ self:UpdateMinimapButtonSettings()
end
function MOD:Load()
diff --git a/Interface/AddOns/SVUI/system/load.lua b/Interface/AddOns/SVUI/system/load.lua
index bf48f8a..284ac12 100644
--- a/Interface/AddOns/SVUI/system/load.lua
+++ b/Interface/AddOns/SVUI/system/load.lua
@@ -153,6 +153,7 @@ function SV:Launch()
if self.db.general.loginmessage then
local logMsg = (L["LOGIN_MSG"]):format("|cffFFFF1A", "|cffAA78FF", self.Version)
self:AddonMessage(logMsg);
+ self:AddonMessage("Keep your schemes diabolical and your traps escapable!");
end
self.AddonLaunched = true
@@ -198,6 +199,7 @@ local SVUISystem_OnEvent = function(self, event, arg, ...)
end
elseif(event == "PET_BATTLE_CLOSE") then
SV:PushDisplayAudit()
+ SVLib:LiveUpdate()
elseif(event == "PET_BATTLE_OPENING_START") then
SV:FlushDisplayAudit()
elseif(event == "ADDON_ACTION_BLOCKED" or event == "ADDON_ACTION_FORBIDDEN") then