From 4057e13c661d3e6f880d5f07f3029237f2820832 Mon Sep 17 00:00:00 2001 From: Natias Rupp Date: Tue, 28 Aug 2012 16:34:13 +0200 Subject: [PATCH] update --- AsphyxiaUI/AsphyxiaUI.toc | 7 +- AsphyxiaUI/Core/API.lua | 14 - AsphyxiaUI/Core/Filter/Announce.lua | 36 ++ AsphyxiaUI/Core/Filter/CombatText.lua | 108 +++-- AsphyxiaUI/Core/Functions.lua | 14 +- AsphyxiaUI/Core/load_core.xml | 1 + AsphyxiaUI/Locales/Chinese.lua | 248 ++++++++++ AsphyxiaUI/Locales/English.lua | 25 +- AsphyxiaUI/Locales/French.lua | 248 ++++++++++ AsphyxiaUI/Locales/German.lua | 248 ++++++++++ AsphyxiaUI/Locales/Korean.lua | 248 ++++++++++ AsphyxiaUI/Locales/Portuguese.lua | 248 ++++++++++ AsphyxiaUI/Locales/Russian.lua | 248 ++++++++++ AsphyxiaUI/Locales/Spanish.lua | 248 ++++++++++ AsphyxiaUI/Locales/Taiwan.lua | 248 ++++++++++ AsphyxiaUI/Modules/Actionbars/Buttons.lua | 8 +- AsphyxiaUI/Modules/Actionbars/Style.lua | 20 +- AsphyxiaUI/Modules/Databars/Currency.lua | 22 +- AsphyxiaUI/Modules/Extras/AFKCamera.lua | 3 +- AsphyxiaUI/Modules/Extras/AlertCombat.lua | 172 ++++++- AsphyxiaUI/Modules/Extras/Click2Cast.lua | 447 ++++++++++++++++++ AsphyxiaUI/Modules/Extras/Mail.lua | 4 + AsphyxiaUI/Modules/Extras/RaidCooldowns.lua | 4 + .../Modules/Extras/RaidbuffReminder.lua | 299 ++++++------ .../Modules/Extras/SpellAnnouncements.lua | 115 +++++ AsphyxiaUI/Modules/Extras/SpellInterrupts.lua | 22 + AsphyxiaUI/Modules/Extras/load_extras.xml | 4 +- .../Panels/AsphyxiaUI_ControlPanel.lua | 1 - AsphyxiaUI/Modules/Tooltip/Reforge.lua | 51 ++ AsphyxiaUI/Modules/Tooltip/Symbiosis.lua | 6 +- AsphyxiaUI/Modules/Tooltip/Talents.lua | 166 +++++-- AsphyxiaUI/Modules/Tooltip/Tooltip.lua | 48 +- AsphyxiaUI/Modules/Tooltip/load_tooltip.xml | 1 + AsphyxiaUI/Unitframes/Layouts/Asphyxia.lua | 1 - AsphyxiaUI/Unitframes/Layouts/Asphyxia2.lua | 7 +- AsphyxiaUI/Unitframes/Layouts/Asphyxia3.lua | 69 ++- AsphyxiaUI/Unitframes/Layouts/Asphyxia4.lua | 70 ++- AsphyxiaUI_Changelog/AsphyxiaUI_Changelog.toc | 5 +- AsphyxiaUI_Config/AsphyxiaUI_Config.toc | 5 +- AsphyxiaUI_Config/Config/Config.lua | 4 + AsphyxiaUI_FAQ/AsphyxiaUI_FAQ.toc | 5 +- AsphyxiaUI_Raid/AsphyxiaUI_Raid.toc | 5 +- AsphyxiaUI_Raid/Unitframes/Raid.lua | 4 +- .../AsphyxiaUI_Raid_Healing.toc | 5 +- AsphyxiaUI_Raid_Healing/Unitframes/Raid.lua | 11 +- CHANGELOG.md | 2 +- LICENSE.md | 4 +- ToDoList.md | 3 + 48 files changed, 3353 insertions(+), 429 deletions(-) create mode 100644 AsphyxiaUI/Core/Filter/Announce.lua create mode 100644 AsphyxiaUI/Modules/Extras/Click2Cast.lua create mode 100644 AsphyxiaUI/Modules/Extras/SpellAnnouncements.lua create mode 100644 AsphyxiaUI/Modules/Extras/SpellInterrupts.lua create mode 100644 AsphyxiaUI/Modules/Tooltip/Reforge.lua diff --git a/AsphyxiaUI/AsphyxiaUI.toc b/AsphyxiaUI/AsphyxiaUI.toc index 8241277..87bbea2 100644 --- a/AsphyxiaUI/AsphyxiaUI.toc +++ b/AsphyxiaUI/AsphyxiaUI.toc @@ -1,11 +1,12 @@ ## Interface: 50001 ## Title: AsphyxiaUI - Core ## Notes: -## Version: 6.0 -## Author: Sinaris, Merith -## SavedVariablesPerCharacter: AsphyxiaUISaved +## Version: 6.0.0 +## Author: Sinaris +## SavedVariablesPerCharacter: AsphyxiaUISaved, ClickCast ## RequiredDeps: AsphyxiaUI_Config, Tukui ## OptionalDeps: Blizzard_CombatText, !ClassColors, Clique, DBM-Core, Omen, Recount, Skada, TinyDPS ## X-oUF: oUFTukui +## Website: www.natias.de AsphyxiaUI_Loader.xml \ No newline at end of file diff --git a/AsphyxiaUI/Core/API.lua b/AsphyxiaUI/Core/API.lua index 57bb8a2..fe930d5 100644 --- a/AsphyxiaUI/Core/API.lua +++ b/AsphyxiaUI/Core/API.lua @@ -24,20 +24,6 @@ local function Animate( self, x, y, duration ) self.anim.out1:SetScript( "OnFinished", function() self:Hide() end ) end -local function CreateBorder( self, shadow ) - if( self:GetFrameStrata() == "BACKGROUND" ) then self:SetFrameStrata( "LOW" ) end - - local border = CreateFrame( "Frame", nil, self ) - border:SetPoint( "TOPLEFT", self, "TOPLEFT", S.Scale( -2 ), S.Scale( 2 ) ) - border:SetPoint( "BOTTOMRIGHT", self, "BOTTOMRIGHT", S.Scale( 2 ), S.Scale( -2 ) ) - border:SetTemplate( "Default" ) - - if( shadow == true ) then - border:CreateShadow( "Default" ) - end - border:SetFrameLevel( self:GetFrameLevel() ) -end - local function CreateOverlay( frame ) if( frame.overlay ) then return end diff --git a/AsphyxiaUI/Core/Filter/Announce.lua b/AsphyxiaUI/Core/Filter/Announce.lua new file mode 100644 index 0000000..5aa728c --- /dev/null +++ b/AsphyxiaUI/Core/Filter/Announce.lua @@ -0,0 +1,36 @@ +--------------------------------------------------------------------------------------------- +-- Project: AsphyxiaUI Version 6.0 +--------------------------------------------------------------------------------------------- + +local S, C, L, G = unpack( Tukui ) + +S.AnnounceSpells = { + [20707] = true, + [20484] = true, + [61999] = true, + + [2565] = true, + [871] = true, + [12975] = true, + [114207] = true, + + [47788] = true, + [33206] = true, + + [34477] = "player", + + [115176] = true, + [115203] = true, + [115213] = true, + + [48707] = true, + [55233] = true, + [48792] = true, + + [31850] = true, + [498] = true, + [642] = true, + + [106922] = true, + [61336] = true, +} \ No newline at end of file diff --git a/AsphyxiaUI/Core/Filter/CombatText.lua b/AsphyxiaUI/Core/Filter/CombatText.lua index b68dfd1..995dfe4 100644 --- a/AsphyxiaUI/Core/Filter/CombatText.lua +++ b/AsphyxiaUI/Core/Filter/CombatText.lua @@ -24,46 +24,44 @@ if( S.myclass == "WARLOCK" ) then S.aoespam[30108] = true S.aoespam[348] = true S.aoespam[980] = true - S.aoespam[85455] = true - S.aoespam[85421] = true + S.aoespam[80240] = true S.aoespam[42223] = true + S.aoespam[689] = true + S.aoespam[89420] = true S.aoespam[5857] = true - S.aoespam[47897] = true + S.aoespam[129476] = true + S.aoespam[103103] = true + S.aoespam[86040] = true + S.aoespam[124915] = true S.aoespam[47960] = true S.aoespam[50590] = true S.aoespam[30213] = true S.aoespam[89753] = true S.aoespam[20153] = true - S.aoespam[129476] = true - S.aoespam[124915] = true - S.aoespam[115422] = true - S.aoespam[86040] = true - S.aoespam[115832] = true - S.aoespam[115625] = true - S.aoespam[104318] = true + S.aoespam[103988] = true + S.aoespam[108371] = true + S.aoespam[115707] = true end if( C["combattext"]["healing"] == true ) then - S.healfilter[28176] = true - S.healfilter[96379] = true S.healfilter[63106] = true - S.healfilter[54181] = true S.healfilter[89653] = true - S.healfilter[79268] = true - S.healfilter[30294] = true + S.healfilter[125314] = true + S.healfilter[108366] = true + S.healfilter[108359] = true end elseif( S.myclass == "DRUID" ) then if( C["combattext"]["mergeaoespam"] == true ) then S.aoespam[774] = true - S.aoespam[64801] = true S.aoespam[48438] = true S.aoespam[8936] = true S.aoespam[33763] = true S.aoespam[44203] = true S.aoespam[81269] = true + S.aoespam[102792] = true S.aoespam[8921] = true S.aoespam[93402] = true - S.aoespam[5570] = true S.aoespam[42231] = true + S.aoespam[106998] = true S.aoespam[50288] = true S.aoespam[78777] = true S.aoespam[61391] = true @@ -73,21 +71,20 @@ elseif( S.myclass == "DRUID" ) then S.aoespam[62078] = true S.aoespam[779] = true S.aoespam[33745] = true + S.aoespam[77758] = true S.aoespam[1079] = true end elseif( S.myclass == "PALADIN" ) then if( C["combattext"]["mergeaoespam"] == true ) then - S.aoespam[20167] = true - S.aoespam[94289] = true + S.aoespam[20167] = true S.aoespam[53652] = true S.aoespam[85222] = true S.aoespam[82327] = true - S.aoespam[86452] = true + S.aoespam[121129] = true S.aoespam[81297] = true - S.aoespam[2812] = true + S.aoespam[119072] = true S.aoespam[53385] = true S.aoespam[31803] = true - S.aoespam[20424] = true S.aoespam[42463] = true S.aoespam[101423] = true S.aoespam[88263] = true @@ -97,31 +94,29 @@ elseif( S.myclass == "PALADIN" ) then elseif( S.myclass == "PRIEST" ) then if( C["combattext"]["mergeaoespam"] == true ) then S.aoespam[47750] = true + S.aoespam[23455] = true S.aoespam[139] = true S.aoespam[596] = true - S.aoespam[56161] = true S.aoespam[64844] = true S.aoespam[32546] = true S.aoespam[77489] = true S.aoespam[34861] = true - S.aoespam[23455] = true S.aoespam[33110] = true S.aoespam[63544] = true S.aoespam[81751] = true - S.aoespam[94472] = true + S.aoespam[94472] = 81751 S.aoespam[47666] = true - S.aoespam[15237] = true + S.aoespam[132157] = true S.aoespam[589] = true S.aoespam[34914] = true S.aoespam[2944] = true - S.aoespam[63675] = true S.aoespam[15407] = true S.aoespam[49821] = true S.aoespam[87532] = true S.aoespam[14914] = true end if( C["combattext"]["healing"] == true ) then - S.healfilter[2944] = true + S.healfilter[127626] = true S.healfilter[15290] = true end elseif( S.myclass == "SHAMAN" ) then @@ -131,8 +126,10 @@ elseif( S.myclass == "SHAMAN" ) then S.aoespam[1064] = true S.aoespam[51945] = true S.aoespam[61295] = true - S.aoespam[61295] = true S.aoespam[98021] = true + S.aoespam[114911] = true + S.aoespam[118800] = true + S.aoespam[114942] = true S.aoespam[421] = true S.aoespam[45297] = true S.aoespam[8349] = true @@ -141,11 +138,12 @@ elseif( S.myclass == "SHAMAN" ) then S.aoespam[8187] = true S.aoespam[8050] = true S.aoespam[25504] = true + S.aoespam[3606] = true end elseif( S.myclass == "MAGE" ) then if( C["combattext"]["mergeaoespam"] == true ) then - S.aoespam[44461] = true S.aoespam[44457] = true + S.aoespam[44461] = true S.aoespam[2120] = true S.aoespam[12654] = true S.aoespam[11366] = true @@ -153,14 +151,15 @@ elseif( S.myclass == "MAGE" ) then S.aoespam[42208] = true S.aoespam[122] = true S.aoespam[1449] = true - S.aoespam[92315] = true S.aoespam[83853] = true S.aoespam[11113] = true - S.aoespam[88148] = true - S.aoespam[84721] = true - S.aoespam[82739] = true - S.aoespam[83619] = true S.aoespam[120] = true + S.aoespam[114923] = true + S.aoespam[114954] = true + S.aoespam[7268] = true + S.aoespam[113092] = true + S.aoespam[44425] = true + S.aoespam[84721] = true end elseif( S.myclass == "WARRIOR" ) then if( C["combattext"]["mergeaoespam"] == true ) then @@ -168,24 +167,28 @@ elseif( S.myclass == "WARRIOR" ) then S.aoespam[46968] = true S.aoespam[6343] = true S.aoespam[1680] = true - S.aoespam[94009] = true - S.aoespam[12721] = true + S.aoespam[115767] = true S.aoespam[50622] = true S.aoespam[52174] = true + S.aoespam[118000] = true + S.aoespam[76858] = true end if( C["combattext"]["healing"] == true ) then - S.healfilter[23880] = true + S.healfilter[117313] = true S.healfilter[55694] = true end elseif( S.myclass == "HUNTER" ) then if( C["combattext"]["mergeaoespam"] == true ) then S.aoespam[2643] = true S.aoespam[83077] = true - S.aoespam[88453] = true - S.aoespam[88466] = true - S.aoespam[1978] = true + S.aoespam[118253] = true S.aoespam[13812] = true S.aoespam[53301] = true + S.aoespam[63468] = true + S.aoespam[118459] = true + S.aoespam[120699] = true + S.aoespam[131900] = true + S.aoespam[34655] = true end elseif( S.myclass == "MONK" ) then if( C["combattext"]["mergeaoespam"] == true ) then @@ -193,24 +196,27 @@ elseif( S.myclass == "MONK" ) then S.aoespam[125953] = 115175 S.aoespam[126890] = true S.aoespam[117640] = true + S.aoespam[132463] = true + S.aoespam[124101] = true S.aoespam[117952] = true - S.aoespam[107270] = true - S.aoespam[101546] = true - S.aoespam[128531] = true S.aoespam[117418] = true + S.aoespam[120274] = true + S.aoespam[128531] = true + S.aoespam[123725] = true + S.aoespam[107270] = true + S.aoespam[132467] = true + S.aoespam[125033] = true + S.aoespam[123586] = true end elseif( S.myclass == "DEATHKNIGHT" ) then if( C["combattext"]["mergeaoespam"] == true ) then S.aoespam[55095] = true S.aoespam[55078] = true - S.aoespam[55536] = true S.aoespam[48721] = true S.aoespam[49184] = true S.aoespam[52212] = true - S.aoespam[47541] = true S.aoespam[55050] = true - S.aoespam[98957] = true - S.aoespam[59754] = true + S.aoespam[119980] = true S.aoespam[49020] = true S.aoespam[66198] = 49020 S.aoespam[49998] = true @@ -219,14 +225,12 @@ elseif( S.myclass == "DEATHKNIGHT" ) then S.aoespam[66216] = 45462 S.aoespam[49143] = true S.aoespam[66196] = 49143 - S.aoespam[56815] = true - S.aoespam[66217] = 56815 - S.aoespam[45902] = true - S.aoespam[66215] = 45902 end elseif( S.myclass == "ROGUE" ) then if( C["combattext"]["mergeaoespam"] == true ) then S.aoespam[51723] = true + S.aoespam[121411] = true + S.aoespam[122233] = true S.aoespam[2818] = true S.aoespam[8680] = true S.aoespam[5374] = true diff --git a/AsphyxiaUI/Core/Functions.lua b/AsphyxiaUI/Core/Functions.lua index e4961a6..8766ebf 100644 --- a/AsphyxiaUI/Core/Functions.lua +++ b/AsphyxiaUI/Core/Functions.lua @@ -4,6 +4,8 @@ local S, C, L, G = unpack( Tukui ) +S.ClassColor = RAID_CLASS_COLORS[S.myclass] + S.CreateFontString = function( normalfont ) if( normalfont ) then return C["media"]["font"], 12, "THINOUTLINE" @@ -17,15 +19,13 @@ S.CreateFontString = function( normalfont ) end function S.SetModifiedBackdrop( self ) - local color = RAID_CLASS_COLORS[S.myclass] - self:SetBackdropColor( color.r * 0.15, color.g * 0.15, color.b * 0.15 ) - self:SetBackdropBorderColor( color.r, color.g, color.b ) + self:SetBackdropColor( S.ClassColor.r * 0.15, S.ClassColor.g * 0.15, S.ClassColor.b * 0.15 ) + self:SetBackdropBorderColor( S.ClassColor.r, S.ClassColor.g, S.ClassColor.b ) end function S.SetOriginalBackdrop( self ) - local color = RAID_CLASS_COLORS[S.myclass] if( C["general"]["classcolortheme"] == true ) then - self:SetBackdropBorderColor( color.r, color.g, color.b ) + self:SetBackdropBorderColor( S.ClassColor.r, S.ClassColor.g, S.ClassColor.b ) else self:SetTemplate( "Default" ) end @@ -56,7 +56,7 @@ function S.update_alpha( self ) end function S.fadeOut( self ) - UIFrameFadeOut( self, .4, 1, 0 ) + UIFrameFadeOut( self, 0.4, 1, 0 ) self.frame:Show() end @@ -67,7 +67,7 @@ function S.fadeIn( p ) p.frame:SetScript( "OnUpdate", S.update_alpha ) p:SetScript( "OnShow", function() p.frame:Hide() - UIFrameFadeIn( p, .4, 0, 1 ) + UIFrameFadeIn( p, 0.4, 0, 1 ) end ) p.fadeOut = S.fadeOut end diff --git a/AsphyxiaUI/Core/load_core.xml b/AsphyxiaUI/Core/load_core.xml index 52c876e..1891a09 100644 --- a/AsphyxiaUI/Core/load_core.xml +++ b/AsphyxiaUI/Core/load_core.xml @@ -7,5 +7,6 @@