From 8c5aed83d0e6128f87f4dafb34d2fae78105ca46 Mon Sep 17 00:00:00 2001 From: kyoma Date: Tue, 18 Jul 2017 13:59:33 +0200 Subject: [PATCH] Version 2.1.3 - Changed how the UI fragment is handled to allow the Ultimate Window to be used outside of trials. Use "/rnulti on|off". - Fixed UI error on first countdown in HoF 4th boss. (DevMode) --- RaidNotifier.lua | 14 ++++++++------ RaidNotifier.txt | 2 +- RaidNotifier.xml | 30 +++++++++++++++--------------- UI.lua | 8 +++++++- 4 files changed, 31 insertions(+), 23 deletions(-) diff --git a/RaidNotifier.lua b/RaidNotifier.lua index b81ce24..2211f1d 100644 --- a/RaidNotifier.lua +++ b/RaidNotifier.lua @@ -5,7 +5,7 @@ local RaidNotifier = RaidNotifier RaidNotifier.Name = "RaidNotifier" RaidNotifier.DisplayName = "Raid Notifier" -RaidNotifier.Version = "2.1.2" +RaidNotifier.Version = "2.1.3" RaidNotifier.Author = "|c009ad6Kyoma, Woeler, silentgecko|r" RaidNotifier.SV_Name = "RNVars" RaidNotifier.SV_Version = 4 @@ -444,7 +444,7 @@ do ---------------------- end EVENT_MANAGER:RegisterForEvent(self.Name, EVENT_PLAYER_COMBAT_STATE, OnCombatStateChanged) - UI.AddFragment() + --UI.AddFragment() listening = true -- Ultimate exchanging @@ -467,7 +467,8 @@ do ---------------------- EVENT_MANAGER:UnregisterForEvent(self.Name, EVENT_BOSSES_CHANGED) EVENT_MANAGER:UnregisterForEvent(self.Name, EVENT_PLAYER_COMBAT_STATE) - UI.RemoveFragment() + --UI.RemoveFragment() + UI.HideAllElements() listening = false self.raidId = 0 self.raidDifficulty = 0 @@ -498,13 +499,14 @@ do ---------------------- end -- UI Elements + UI.RegisterElement(RaidNotifierUI:GetNamedChild("UltimateWindow"), self.Vars.ultimate.hidden) UI.RegisterElement(RaidNotifierUI:GetNamedChild("GlyphWindow")) - --UI.RegisterElement(RaidNotifierUI:GetNamedChild("UltimateWindow"), self.Vars.ultimate.hidden) - UI.RegisterElement(RaidNotifierUltimateWindow, self.Vars.ultimate.hidden) - if (self.Vars.mawLorkhaj.zhaj_glyphs_invert) then UI.InvertGlyphs() end + UI.LoadElements() + UI.AddFragment() --always add fragment now + -- These aren't needed anymore since we now start & stop Raid Notifier solely based on being in the raid zone --EVENT_MANAGER:RegisterForEvent(self.Name, EVENT_RAID_TRIAL_STARTED, function(...) self:RegisterEvents() end) diff --git a/RaidNotifier.txt b/RaidNotifier.txt index a6eace2..92e308c 100644 --- a/RaidNotifier.txt +++ b/RaidNotifier.txt @@ -1,7 +1,7 @@ ## Title: |cEFEBBERaidNotifier|r ## Description: Displays on-screen notifications on different events during trials. ## Author: |c009ad6Kyoma, Woeler, silentgecko|r -## Version: 2.1.2 +## Version: 2.1.3 ## APIVersion: 100019 ## SavedVariables: RNVars ## OptionalDependsOn: LibAddonMenu-2.0 LibMapPing LibGPS2 LibGroupSocket diff --git a/RaidNotifier.xml b/RaidNotifier.xml index fcfa81c..7bd3b72 100644 --- a/RaidNotifier.xml +++ b/RaidNotifier.xml @@ -64,27 +64,27 @@ - -