diff --git a/Bindings.xml b/Bindings.xml index 2b9adda8..b50f93da 100644 --- a/Bindings.xml +++ b/Bindings.xml @@ -1,11 +1,129 @@ - + _detalhes.tabela_historico:resetar() - + + DetailsKeyBindScrollDown() - + + DetailsKeyBindScrollUp() + + + local instance1 = _detalhes.tabela_instancias [1]; + if (instance1 and not instance1:IsEnabled()) then + instance1:EnableInstance(); + elseif (not instance1) then + _detalhes:Msg ("Window 1 isn't created yet."); + end + + + local instance2 = _detalhes.tabela_instancias [2]; + if (instance2 and not instance2:IsEnabled()) then + instance2:EnableInstance(); + elseif (not instance2) then + _detalhes:Msg ("Window 2 isn't created yet."); + end + + + local instance3 = _detalhes.tabela_instancias [3]; + if (instance3 and not instance3:IsEnabled()) then + instance3:EnableInstance(); + elseif (not instance3) then + _detalhes:Msg ("Window 3 isn't created yet."); + end + + + local instance4 = _detalhes.tabela_instancias [4]; + if (instance4 and not instance4:IsEnabled()) then + instance4:EnableInstance(); + elseif (not instance4) then + _detalhes:Msg ("Window 4 isn't created yet."); + end + + + local instance5 = _detalhes.tabela_instancias [5]; + if (instance5 and not instance5:IsEnabled()) then + instance5:EnableInstance(); + elseif (not instance5) then + _detalhes:Msg ("Window 5 isn't created yet."); + end + + + + local instance1 = _detalhes.tabela_instancias [1]; + if (instance1 and instance1:IsEnabled()) then + instance1:ShutDown(); + else + _detalhes:Msg ("Window 1 isn't open."); + end + + + local instance2 = _detalhes.tabela_instancias [2]; + if (instance2 and instance2:IsEnabled()) then + instance2:ShutDown(); + else + _detalhes:Msg ("Window 2 isn't open."); + end + + + local instance3 = _detalhes.tabela_instancias [3]; + if (instance3 and instance3:IsEnabled()) then + instance3:ShutDown(); + else + _detalhes:Msg ("Window 3 isn't open."); + end + + + local instance4 = _detalhes.tabela_instancias [4]; + if (instance4 and instance4:IsEnabled()) then + instance4:ShutDown(); + else + _detalhes:Msg ("Window 4 isn't open."); + end + + + local instance5 = _detalhes.tabela_instancias [5]; + if (instance5 and instance5:IsEnabled()) then + instance5:ShutDown(); + else + _detalhes:Msg ("Window 5 isn't open."); + end + + + + + DetailsChangeDisplayFromBookmark (1); + + + DetailsChangeDisplayFromBookmark (2); + + + DetailsChangeDisplayFromBookmark (3); + + + DetailsChangeDisplayFromBookmark (4); + + + DetailsChangeDisplayFromBookmark (5); + + + DetailsChangeDisplayFromBookmark (6); + + + DetailsChangeDisplayFromBookmark (7); + + + DetailsChangeDisplayFromBookmark (8); + + + DetailsChangeDisplayFromBookmark (9); + + + DetailsChangeDisplayFromBookmark (10); + + + \ No newline at end of file diff --git a/Details.toc b/Details.toc index 4d6f26a5..ec510459 100644 --- a/Details.toc +++ b/Details.toc @@ -12,6 +12,10 @@ locales\Details-enUS.lua locales\Details-ptBR.lua locales\Details-esES.lua locales\Details-esMX.lua +locales\Details-deDE.lua +locales\Details-frFR.lua +locales\Details-koKR.lua +locales\Details-ruRU.lua boot.lua indent.lua diff --git a/boot.lua b/boot.lua index f49c70c3..0a2a2ac2 100644 --- a/boot.lua +++ b/boot.lua @@ -3,9 +3,9 @@ _ = nil _detalhes = LibStub("AceAddon-3.0"):NewAddon("_detalhes", "AceTimer-3.0", "AceComm-3.0", "AceSerializer-3.0", "NickTag-1.0") - _detalhes.build_counter = 342 --it's 342 for release - _detalhes.userversion = "v3.7.0" - _detalhes.realversion = 56 --core version + _detalhes.build_counter = 389 --it's 389 for release + _detalhes.userversion = "v3.7.1" + _detalhes.realversion = 57 --core version _detalhes.version = _detalhes.userversion .. " (core " .. _detalhes.realversion .. ")" ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- @@ -18,16 +18,18 @@ do local Loc = LibStub ("AceLocale-3.0"):GetLocale ( "Details" ) --[[ -|cFFFFFF00v3.7.0 (|cFFFFCC00Jan 06, 2015|r|cFFFFFF00)|r:\n\n -|cFFFFFF00-|r Plugin 'Damage Rank': is now called 'Damage, the Game!' and was its levels adjusted to WoD.\n\n +|cFFFFFF00v3.7.1 (|cFFFFCC00Jan 08, 2015|r|cFFFFFF00)|r:\n\n +|cFFFFFF00-|r Plugin 'Damage Rank': is now called 'Damage, the Game!' and had its levels adjusted for WoD.\n\n |cFFFFFF00-|r Plugin 'Tiny Threat': fixed player name where it was showing the realm name too.\n\n |cFFFFFF00-|r Plugin 'Vanguard': fixed frame details (clicking on a bar) shown behind the Vanguard panel.\n\n |cFFFFFF00-|r Plugin 'Vanguard': fixed a problem when clicking with right button wasn't opening the bookmark panel.\n\n |cFFFFFF00-|r Plugin 'Vanguard': incoming heals now count shield amount on the player too.\n\n |cFFFFFF00-|r Plugin 'Vanguard' Known Bug: incoming damage and melee vs avoidance seems to be inaccurate by now, we need more time to study and fix it.\n\n - |cFFFFFF00-|r Added Twins Ogron's Charge as custom spells, one for the charge by him self and other for the copies (mythic only).\n\n - +|cFFFFFF00-|r Added option panel for Raid Check plugin.\n\n +|cFFFFFF00-|r Added key bindings for open a window, close a window and select a bookmark.\n\n +|cFFFFFF00-|r Added 'CTRL + RightClick' closes a window.\n\n +|cFFFFFF00-|r Fixed wallpaper transparency after releasing the window from a stretch. |cFFFFFF00-|r Fixed few issues when using class text colors.\n\n |cFFFFFF00-|r Fixed characters name outside instances, now it replaces the realm name with a * and show the complete name on tooltip.\n\n |cFFFFFF00-|r Fixed damage mitigation on damage taken, this affects only specific classes like monk tank.\n\n @@ -41,10 +43,9 @@ do |cFFFFFF00-|r Fixed the spam 'you are not in a guild' when checking for new versions.\n\n |cFFFFFF00-|r Fixed translations for Auto Hide Settings bracket under options panel.\n\n |cFFFFFF00-|r Fixed Auto Hide -> Mouse Interaction tool where wans't able to work okey during combat.\n\n - --]] - Loc ["STRING_VERSION_LOG"] = "|cFFFFFF00v3.7.0 (|cFFFFCC00Jan 06, 2015|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Plugin '|cFFFFFF00Damage Rank|r': is now called 'Damage, the Game!' and was its levels adjusted to WoD.\n\n|cFFFFFF00-|r Plugin '|cFFFFFF00Tiny Threat|r': fixed player name where it was showing the realm name too.\n\n|cFFFFFF00-|r Plugin '|cFFFFFF00Vanguard|r': fixed frame details (clicking on a bar) shown behind the Vanguard panel.\n\n|cFFFFFF00-|r Plugin '|cFFFFFF00Vanguard|r': fixed a problem when clicking with right button wasn't opening the bookmark panel.\n\n|cFFFFFF00-|r Plugin '|cFFFFFF00Vanguard|r': incoming heals now count shield amount on the player too.\n\n|cFFFFFF00-|r Plugin '|cFFFFFF00Vanguard|r' Known Bug: incoming damage and melee vs avoidance seems to be inaccurate by now, we need more time to study and fix it.\n\n|cFFFFFF00-|r Added Twins Ogron's Charge as custom spells, one for the charge by him self and other for the copies (mythic only).\n\n|cFFFFFF00-|r Fixed few issues when using class text colors.\n\n|cFFFFFF00-|r Fixed characters name outside instances, now it replaces the realm name with a * and show the complete name on tooltip.\n\n|cFFFFFF00-|r Fixed damage mitigation on damage taken, this affects only specific classes like monk tank.\n\n|cFFFFFF00-|r Fixed auto erase poping up when the player enters on its garrison.\n\n|cFFFFFF00-|r Fixed combat on garrison training dummies which was being marked as Trash Segment.\n\n|cFFFFFF00-|r Fixed command /details disable, wasn't disabling the capture of cooldowns.\n\n|cFFFFFF00-|r Fixed a problem with fast dps/hps when the window is in a empty segment.\n\n|cFFFFFF00-|r Fixed an issue using bookmark panel where it wasn't changing the display when the window is in a plugin mode.\n\n|cFFFFFF00-|r Fixed a bug when bars isn't using class colors on Frags, Auras & Void Zones, Resources and Deaths.\n\n|cFFFFFF00-|r Fixed bar animations when 'Sort Direction' is set to bottom.\n\n|cFFFFFF00-|r Fixed the spam 'you are not in a guild' when checking for new versions.\n\n|cFFFFFF00-|r Fixed translations for Auto Hide Settings bracket under options panel.\n\n|cFFFFFF00-|r Fixed Auto Hide -> Mouse Interaction tool where wans't able to work okey during combat.\n\n|cFFFFFF00v3.6.15 (|cFFFFCC00Jan 03, 2015|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Fixed a bug when bars isn't using class colors on Frags, Auras & Void Zones, Resources and Deaths.\n\n|cFFFFFF00-|r Fixed bar animations when 'Sort Direction' is set to bottom.\n\n|cFFFFFF00-|r Fixed combat on garrison training dummies which was being marked as Trash Segment.\n\n|cFFFFFF00-|r Fixed the spam 'you are not in a guild' when checking for new versions.\n\n|cFFFFFF00-|r Fixed translations for Auto Hide Settings bracket under options panel.\n\n|cFFFFFF00-|r Fixed Auto Hide -> Mouse Interaction tool where wans't able to work okey during combat.\n\n|cFFFFFF00v3.6.14b (|cFFFFCC00Jan 01, 2015|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Added custom display 'My Spells' which shows your spells in the window.\n\n|cFFFFFF00-|r Added new custom display: Health Potion & Stone.\n\n|cFFFFFF00-|r Added overkill on death's tooltip.\n\n|cFFFFFF00-|r Created custom spells for Twin Ogron's Pulverize. Now it has 3 spells one for each wave.\n\n|cFFFFFF00-|r Created custom spells for Ko'ragh Overflowing Energy. Now it has 2 spells one for when the ball is catched and other when it reaches the ground and explodes.\n\n|cFFFFFF00-|r Changed healing multistrike to use the same format as damage done.\n\n|cFFFFFF00-|r Few improvements on Tiny Threat plugin: color gradient green-red is fixed, texts and bar texture now correctly uses the window settings.\n\n|cFFFFFF00-|r Damage Taken by Spell won't show pets in its tooltip any more.\n\n|cFFFFFF00-|r Enemies display won't show any more mirror images and spirit link totems.\n\n|cFFFFFF00-|r Enemies's tooltip now only show players and show all players instead of only 6.\n\n|cFFFFFF00-|r Few cooldowns shown as raid wide now shows as personal cooldowns.\n\n|cFFFFFF00-|r Fixed dispell tagets on dispell's tooltip.\n\n|cFFFFFF00-|r Fixed 'First Hit' raid tool.\n\n|cFFFFFF00-|r Fixed 'Open Options Panel' from interface panel.\n\n|cFFFFFF00v3.6.8 (|cFFFFCC00Dec 24, 2014|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Added Fast (i mean, really fast) Dps/Hps update rate, its option is under Rows: Advanced -> Fast Updates.\n\n|cFFFFFF00-|r Created a custom spell for Mirror Image's Fireball and Frostbolt, with that Player Detail window distinguishes spells from the player and images.\n\n|cFFFFFF00-|r Added new skin: 'ElvUI Style II'.\n\n|cFFFFFF00-|r Added Observer mode for Raid Tools: report cooldown/interrupt/death of entire raid only to you in your chat window.\n\n|cFFFFFF00-|r Added new plugin 'Raid Check': tracks raid members checking food, flask and pre-potions usage.\n\n|cFFFFFF00-|r Changed DPS display, now it shows onyl the player's Dps and the Dps difference between him and the top ranked.\n\n|cFFFFFF00-|r Changed Overheal display, now its percentage shows the player's overheal percent.\n\n|cFFFFFF00-|r Player Detail Window now shows the amount of multistrike on normal and critical hits.\n\n|cFFFFFF00-|r Removed skin: 'ElvUI Frame Style BW'.\n\n|cFFFFFF00-|r The tooltip for Scale option under options panel, now shows the real value for the scale.\n\n|cFFFFFF00-|r Fixed Imperator Mar'gok's adds damage taken.\n\n|cFFFFFF00-|r Fixed a problem where multistrike was counting towards critical strike amount.\n\n|cFFFFFF00-|r Fixed death display's report where it was't showing any death.\n\n|cFFFFFF00-|r Fixed a small issue with Encounter Details plugin where sometimes gets a error right after a boss encounter.\n\n|cFFFFFF00-|r Fixed bugs on sending messages to chat for Raid Tools.\n\n\n\n|cFFFFFF00v3.5.1 (|cFFFFCC00Dec 16, 2014|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Fixed few accuracy on miss spells.\n\n|cFFFFFF00v3.5.0 (|cFFFFCC00Dec 14, 2014|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Fixed tooltip for Auras and Voidzones, now shows sorted by damage and time.\n\n|cFFFFFF00-|r More fixes for Korgath encounter on Highmaul.\n\n|cFFFFFF00-|r Added slash commands: 'reset' 'config'.\n\n|cFFFFFF00-|r Spell bars on Player Details Window now is painted with the spell spellschool color.\n\n|cFFFFFF00-|r Multistrike doesn't count any more for spell's Minimal Damage.\n\n|cFFFFFF00-|r Resource display got an tooltip which shows what resource is and resource gained per minute.\n\n|cFFFFFF00-|r Clicking on report button when the report window is already open, make it close.\n\n|cFFFFFF00v3.4.7 (|cFFFFCC00Dec 11, 2014|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Advanced Death Logs plugin got updates on Endurance Player Value and few bug fixes.\n\n|cFFFFFF00-|r Max Window Amount options can new be set to 1, before the minimum was 3.\n\n|cFFFFFF00-|r Fixed a problem with friendly fire tooltip where sometimes it wasn't showing up.\n\n|cFFFFFF00-|r Fixed cooldowns tooltip which wasn't showing rounded numbers (49.99 instead of 50).\n\n|cFFFFFF00-|r Fixed Warrior's Shield Block which wasn't being count as a cooldown.\n\n|cFFFFFF00-|r Fixed a problem where sometimes when a hunter pull and reset the boss right after, was causing segments to merge.\n\n|cFFFFFF00v3.4.4 (|cFFFFCC00Dec 05, 2014|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Fixed a issue with Ko'Ragh boss on Highmaul raid.\n\n|cFFFFFF00-|r Few changes on Bookmark panel.\n\n|cFFFFFF00v3.4.3 (|cFFFFCC00Dec 02, 2014|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Removed 'Simple Gray' skin.\n\n|cFFFFFF00-|r Addde new skin: 'Forced Square'.\n\n|cFFFFFF00-|r 'Default Skin' got renamed to 'WoW Interface'." + Loc ["STRING_VERSION_LOG"] = "|cFFFFFF00v3.7.1 (|cFFFFCC00Jan 08, 2015|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Plugin 'Damage Rank': is now called 'Damage, the Game!' and had its levels adjusted for WoD.\n\n|cFFFFFF00-|r Plugin 'Tiny Threat': fixed player name where it was showing the realm name too.\n\n|cFFFFFF00-|r Plugin 'Vanguard': fixed frame details (clicking on a bar) shown behind the Vanguard panel.\n\n|cFFFFFF00-|r Plugin 'Vanguard': fixed a problem when clicking with right button wasn't opening the bookmark panel.\n\n|cFFFFFF00-|r Plugin 'Vanguard': incoming heals now count shield amount on the player too.\n\n|cFFFFFF00-|r Plugin 'Vanguard' Known Bug: incoming damage and melee vs avoidance seems to be inaccurate by now, we need more time to study and fix it.\n\n|cFFFFFF00-|r Added Twins Ogron's Charge as custom spells, one for the charge by him self and other for the copies (mythic only).\n\n|cFFFFFF00-|r Added option panel for Raid Check plugin.\n\n|cFFFFFF00-|r Added key bindings for open a window, close a window and select a bookmark.\n\n|cFFFFFF00-|r Added 'CTRL + RightClick' closes a window.\n\n|cFFFFFF00-|r Fixed wallpaper transparency after releasing the window from a stretch.|cFFFFFF00-|r Fixed few issues when using class text colors.\n\n|cFFFFFF00-|r Fixed characters name outside instances, now it replaces the realm name with a * and show the complete name on tooltip.\n\n|cFFFFFF00-|r Fixed damage mitigation on damage taken, this affects only specific classes like monk tank.\n\n|cFFFFFF00-|r Fixed auto erase poping up when the player enters on its garrison.\n\n|cFFFFFF00-|r Fixed combat on garrison training dummies which was being marked as Trash Segment.\n\n|cFFFFFF00-|r Fixed command /details disable, wasn't disabling the capture of cooldowns.\n\n|cFFFFFF00-|r Fixed a problem with fast dps/hps when the window is in a empty segment.\n\n|cFFFFFF00-|r Fixed an issue using bookmark panel where it wasn't changing the display when the window is in a plugin mode.\n\n|cFFFFFF00-|r Fixed a bug when bars isn't using class colors on Frags, Auras & Void Zones, Resources and Deaths.\n\n|cFFFFFF00-|r Fixed bar animations when 'Sort Direction' is set to bottom.\n\n|cFFFFFF00-|r Fixed the spam 'you are not in a guild' when checking for new versions.\n\n|cFFFFFF00-|r Fixed translations for Auto Hide Settings bracket under options panel.\n\n|cFFFFFF00-|r Fixed Auto Hide -> Mouse Interaction tool where wans't able to work okey during combat.\n\n|cFFFFFF00v3.6.14b (|cFFFFCC00Jan 01, 2015|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Added custom display 'My Spells' which shows your spells in the window.\n\n|cFFFFFF00-|r Added new custom display: Health Potion & Stone.\n\n|cFFFFFF00-|r Added overkill on death's tooltip.\n\n|cFFFFFF00-|r Created custom spells for Twin Ogron's Pulverize. Now it has 3 spells one for each wave.\n\n|cFFFFFF00-|r Created custom spells for Ko'ragh Overflowing Energy. Now it has 2 spells one for when the ball is catched and other when it reaches the ground and explodes.\n\n|cFFFFFF00-|r Changed healing multistrike to use the same format as damage done.\n\n|cFFFFFF00-|r Few improvements on Tiny Threat plugin: color gradient green-red is fixed, texts and bar texture now correctly uses the window settings.\n\n|cFFFFFF00-|r Damage Taken by Spell won't show pets in its tooltip any more.\n\n|cFFFFFF00-|r Enemies display won't show any more mirror images and spirit link totems.\n\n|cFFFFFF00-|r Enemies's tooltip now only show players and show all players instead of only 6.\n\n|cFFFFFF00-|r Few cooldowns shown as raid wide now shows as personal cooldowns.\n\n|cFFFFFF00-|r Fixed dispell tagets on dispell's tooltip.\n\n|cFFFFFF00-|r Fixed 'First Hit' raid tool.\n\n|cFFFFFF00-|r Fixed 'Open Options Panel' from interface panel.\n\n|cFFFFFF00v3.6.8 (|cFFFFCC00Dec 24, 2014|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Added Fast (i mean, really fast) Dps/Hps update rate, its option is under Rows: Advanced -> Fast Updates.\n\n|cFFFFFF00-|r Created a custom spell for Mirror Image's Fireball and Frostbolt, with that Player Detail window distinguishes spells from the player and images.\n\n|cFFFFFF00-|r Added new skin: 'ElvUI Style II'.\n\n|cFFFFFF00-|r Added Observer mode for Raid Tools: report cooldown/interrupt/death of entire raid only to you in your chat window.\n\n|cFFFFFF00-|r Added new plugin 'Raid Check': tracks raid members checking food, flask and pre-potions usage.\n\n|cFFFFFF00-|r Changed DPS display, now it shows onyl the player's Dps and the Dps difference between him and the top ranked.\n\n|cFFFFFF00-|r Changed Overheal display, now its percentage shows the player's overheal percent.\n\n|cFFFFFF00-|r Player Detail Window now shows the amount of multistrike on normal and critical hits.\n\n|cFFFFFF00-|r Removed skin: 'ElvUI Frame Style BW'.\n\n|cFFFFFF00-|r The tooltip for Scale option under options panel, now shows the real value for the scale.\n\n|cFFFFFF00-|r Fixed Imperator Mar'gok's adds damage taken.\n\n|cFFFFFF00-|r Fixed a problem where multistrike was counting towards critical strike amount.\n\n|cFFFFFF00-|r Fixed death display's report where it was't showing any death.\n\n|cFFFFFF00-|r Fixed a small issue with Encounter Details plugin where sometimes gets a error right after a boss encounter.\n\n|cFFFFFF00-|r Fixed bugs on sending messages to chat for Raid Tools.\n\n\n\n|cFFFFFF00v3.5.1 (|cFFFFCC00Dec 16, 2014|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Fixed few accuracy on miss spells.\n\n|cFFFFFF00v3.5.0 (|cFFFFCC00Dec 14, 2014|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Fixed tooltip for Auras and Voidzones, now shows sorted by damage and time.\n\n|cFFFFFF00-|r More fixes for Korgath encounter on Highmaul.\n\n|cFFFFFF00-|r Added slash commands: 'reset' 'config'.\n\n|cFFFFFF00-|r Spell bars on Player Details Window now is painted with the spell spellschool color.\n\n|cFFFFFF00-|r Multistrike doesn't count any more for spell's Minimal Damage.\n\n|cFFFFFF00-|r Resource display got an tooltip which shows what resource is and resource gained per minute.\n\n|cFFFFFF00-|r Clicking on report button when the report window is already open, make it close.\n\n|cFFFFFF00v3.4.7 (|cFFFFCC00Dec 11, 2014|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Advanced Death Logs plugin got updates on Endurance Player Value and few bug fixes.\n\n|cFFFFFF00-|r Max Window Amount options can new be set to 1, before the minimum was 3.\n\n|cFFFFFF00-|r Fixed a problem with friendly fire tooltip where sometimes it wasn't showing up.\n\n|cFFFFFF00-|r Fixed cooldowns tooltip which wasn't showing rounded numbers (49.99 instead of 50).\n\n|cFFFFFF00-|r Fixed Warrior's Shield Block which wasn't being count as a cooldown.\n\n|cFFFFFF00-|r Fixed a problem where sometimes when a hunter pull and reset the boss right after, was causing segments to merge.\n\n|cFFFFFF00v3.4.4 (|cFFFFCC00Dec 05, 2014|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Fixed a issue with Ko'Ragh boss on Highmaul raid.\n\n|cFFFFFF00-|r Few changes on Bookmark panel.\n\n|cFFFFFF00v3.4.3 (|cFFFFCC00Dec 02, 2014|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Removed 'Simple Gray' skin.\n\n|cFFFFFF00-|r Addde new skin: 'Forced Square'.\n\n|cFFFFFF00-|r 'Default Skin' got renamed to 'WoW Interface'." Loc ["STRING_DETAILS1"] = "|cffffaeaeDetails!:|r " @@ -366,9 +367,37 @@ do --> key binds --> header _G ["BINDING_HEADER_Details"] = "Details!" + _G ["BINDING_HEADER_DETAILS_KEYBIND_SEGMENTCONTROL"] = Loc ["STRING_KEYBIND_SEGMENTCONTROL"] + _G ["BINDING_HEADER_DETAILS_KEYBIND_SCROLLING"] = Loc ["STRING_KEYBIND_SCROLLING"] + _G ["BINDING_HEADER_DETAILS_KEYBIND_WINDOW_CONTROL"] = Loc ["STRING_KEYBIND_WINDOW_CONTROL"] + _G ["BINDING_HEADER_DETAILS_KEYBIND_BOOKMARK"] = Loc ["STRING_KEYBIND_BOOKMARK"] + --> keys - _G ["BINDING_NAME_DETAILS_RESET_SEGMENTS"] = "Reset Segments" - _G ["BINDING_NAME_DETAILS_SCROLL_UP"] = "Scroll Up All Windows" - _G ["BINDING_NAME_DETAILS_SCROLL_DOWN"] = "Scroll Down All Windows" + _G ["BINDING_NAME_DETAILS_RESET_SEGMENTS"] = Loc ["STRING_KEYBIND_RESET_SEGMENTS"] + _G ["BINDING_NAME_DETAILS_SCROLL_UP"] = Loc ["STRING_KEYBIND_SCROLL_UP"] + _G ["BINDING_NAME_DETAILS_SCROLL_DOWN"] = Loc ["STRING_KEYBIND_SCROLL_DOWN"] + _G ["BINDING_NAME_DETAILS_REOPEN_WINDOW1"] = format (Loc ["STRING_KEYBIND_REOPEN_WINDOW"], 1) + _G ["BINDING_NAME_DETAILS_REOPEN_WINDOW2"] = format (Loc ["STRING_KEYBIND_REOPEN_WINDOW"], 2) + _G ["BINDING_NAME_DETAILS_REOPEN_WINDOW3"] = format (Loc ["STRING_KEYBIND_REOPEN_WINDOW"], 3) + _G ["BINDING_NAME_DETAILS_REOPEN_WINDOW4"] = format (Loc ["STRING_KEYBIND_REOPEN_WINDOW"], 4) + _G ["BINDING_NAME_DETAILS_REOPEN_WINDOW5"] = format (Loc ["STRING_KEYBIND_REOPEN_WINDOW"], 5) + + _G ["BINDING_NAME_DETAILS_CLOSE_WINDOW1"] = format (Loc ["STRING_KEYBIND_CLOSE_WINDOW"], 1) + _G ["BINDING_NAME_DETAILS_CLOSE_WINDOW2"] = format (Loc ["STRING_KEYBIND_CLOSE_WINDOW"], 2) + _G ["BINDING_NAME_DETAILS_CLOSE_WINDOW3"] = format (Loc ["STRING_KEYBIND_CLOSE_WINDOW"], 3) + _G ["BINDING_NAME_DETAILS_CLOSE_WINDOW4"] = format (Loc ["STRING_KEYBIND_CLOSE_WINDOW"], 4) + _G ["BINDING_NAME_DETAILS_CLOSE_WINDOW5"] = format (Loc ["STRING_KEYBIND_CLOSE_WINDOW"], 5) + + _G ["BINDING_NAME_DETAILS_BOOKMARK1"] = format (Loc ["STRING_KEYBIND_BOOKMARK_NUMBER"], 1) + _G ["BINDING_NAME_DETAILS_BOOKMARK2"] = format (Loc ["STRING_KEYBIND_BOOKMARK_NUMBER"], 2) + _G ["BINDING_NAME_DETAILS_BOOKMARK3"] = format (Loc ["STRING_KEYBIND_BOOKMARK_NUMBER"], 3) + _G ["BINDING_NAME_DETAILS_BOOKMARK4"] = format (Loc ["STRING_KEYBIND_BOOKMARK_NUMBER"], 4) + _G ["BINDING_NAME_DETAILS_BOOKMARK5"] = format (Loc ["STRING_KEYBIND_BOOKMARK_NUMBER"], 5) + _G ["BINDING_NAME_DETAILS_BOOKMARK6"] = format (Loc ["STRING_KEYBIND_BOOKMARK_NUMBER"], 6) + _G ["BINDING_NAME_DETAILS_BOOKMARK7"] = format (Loc ["STRING_KEYBIND_BOOKMARK_NUMBER"], 7) + _G ["BINDING_NAME_DETAILS_BOOKMARK8"] = format (Loc ["STRING_KEYBIND_BOOKMARK_NUMBER"], 8) + _G ["BINDING_NAME_DETAILS_BOOKMARK9"] = format (Loc ["STRING_KEYBIND_BOOKMARK_NUMBER"], 9) + _G ["BINDING_NAME_DETAILS_BOOKMARK10"] = format (Loc ["STRING_KEYBIND_BOOKMARK_NUMBER"], 10) + end diff --git a/classes/classe_damage.lua b/classes/classe_damage.lua index d6f9a93b..bd4bec30 100644 --- a/classes/classe_damage.lua +++ b/classes/classe_damage.lua @@ -1295,7 +1295,7 @@ function atributo_damage:RefreshWindow (instancia, tabela_do_combate, forcar, ex end if (use_animations) then - instancia:fazer_animacoes() + instancia:fazer_animacoes (qual_barra - 1) end --> beta, hidar barras não usadas durante um refresh forçado diff --git a/classes/classe_heal.lua b/classes/classe_heal.lua index 740a3052..bc9b8c6c 100644 --- a/classes/classe_heal.lua +++ b/classes/classe_heal.lua @@ -511,7 +511,7 @@ function atributo_heal:RefreshWindow (instancia, tabela_do_combate, forcar, expo end if (use_animations) then - instancia:fazer_animacoes() + instancia:fazer_animacoes (qual_barra - 1) end if (instancia.atributo == 5) then --> custom diff --git a/classes/classe_instancia.lua b/classes/classe_instancia.lua index 2567d03e..970b1b2e 100644 --- a/classes/classe_instancia.lua +++ b/classes/classe_instancia.lua @@ -325,7 +325,7 @@ end end ---> desativando a instância ela fica em stand by e apenas hida a janela +--> desativando a instância ela fica em stand by e apenas hida a janela ~shutdown ~close ~fechar function _detalhes:DesativarInstancia() local lower = _detalhes:GetLowerInstanceNumber() @@ -649,6 +649,21 @@ end return _detalhes:Msg (Loc ["STRING_INSTANCE_LIMIT"]) end + --> verifica se não tem uma janela na pool de janelas fechadas + local next_id = #_detalhes.tabela_instancias+1 + + if (_detalhes.unused_instances [next_id]) then + local new_instance = _detalhes.unused_instances [next_id] + _detalhes.tabela_instancias [next_id] = new_instance + _detalhes.unused_instances [next_id] = nil + new_instance:AtivarInstancia() + + _detalhes:GetLowerInstanceNumber() + + return new_instance + end + + --> cria uma nova janela local new_instance = _detalhes:NovaInstancia (#_detalhes.tabela_instancias+1) if (not _detalhes.initializing) then diff --git a/core/gears.lua b/core/gears.lua index f56a7fbd..41983b0c 100644 --- a/core/gears.lua +++ b/core/gears.lua @@ -113,9 +113,9 @@ function _detalhes:GetPerformanceRaidType() if (type == "raid") then --mythic - --if (difficulty == 15) then - -- return "Mythic" - --end + if (difficulty == 15) then + return "Mythic" + end --raid finder if (difficulty == 7) then diff --git a/core/parser.lua b/core/parser.lua index a6d743eb..2c661d62 100644 --- a/core/parser.lua +++ b/core/parser.lua @@ -161,7 +161,6 @@ who_name = "[*] "..spellname end - local real_damage = amount or 0 if (absorbed) then amount = absorbed + (amount or 0) end @@ -305,7 +304,7 @@ this_event [1] = true --> true if this is a damage || false for healing this_event [2] = spellid --> spellid || false if this is a battle ress line - this_event [3] = real_damage --> amount of damage or healing + this_event [3] = amount --> amount of damage or healing this_event [4] = time --> parser time this_event [5] = _UnitHealth (alvo_name) --> current unit heal this_event [6] = who_name --> source name @@ -370,15 +369,6 @@ end end - ------------------------------------------------------------------------------------------------ - --> damage taken - - --> target - jogador_alvo.damage_taken = jogador_alvo.damage_taken + real_damage --> adiciona o dano tomado - if (not jogador_alvo.damage_from [who_name]) then --> adiciona a pool de dano tomado de quem - jogador_alvo.damage_from [who_name] = true - end - ------------------------------------------------------------------------------------------------ --> time start @@ -438,7 +428,7 @@ this_event [1] = true --> true if this is a damage || false for healing this_event [2] = spellid --> spellid || false if this is a battle ress line - this_event [3] = real_damage --> amount of damage or healing + this_event [3] = amount --> amount of damage or healing this_event [4] = time --> parser time this_event [5] = _UnitHealth (alvo_name) --> current unit heal this_event [6] = who_name --> source name @@ -462,10 +452,27 @@ friend.total = friend.total + amount friend.spells [spellid] = (friend.spells [spellid] or 0) + amount + ------------------------------------------------------------------------------------------------ + --> damage taken + + --> target + jogador_alvo.damage_taken = jogador_alvo.damage_taken + amount - (absorbed or 0) --> adiciona o dano tomado + if (not jogador_alvo.damage_from [who_name]) then --> adiciona a pool de dano tomado de quem + jogador_alvo.damage_from [who_name] = true + end + return true else _current_total [1] = _current_total [1]+amount + ------------------------------------------------------------------------------------------------ + --> damage taken + + --> target + jogador_alvo.damage_taken = jogador_alvo.damage_taken + amount --> adiciona o dano tomado + if (not jogador_alvo.damage_from [who_name]) then --> adiciona a pool de dano tomado de quem + jogador_alvo.damage_from [who_name] = true + end end ------------------------------------------------------------------------------------------------ @@ -2649,7 +2656,7 @@ _detalhes.latest_ENCOUNTER_END = _GetTime() --_detalhes.encounter_table ["end"] = time() - 0.4 - _detalhes.encounter_table ["end"] = _GetTime() -- - 0.4 --0.4 para o antigo metodo de tempo + _detalhes.encounter_table ["end"] = _GetTime() -- 0.351 local _, _, _, _, _, _, _, zoneMapID = _GetInstanceInfo() diff --git a/core/windows.lua b/core/windows.lua index 637c445b..9afdfc11 100644 --- a/core/windows.lua +++ b/core/windows.lua @@ -9,6 +9,7 @@ local _math_floor = math.floor --lua local local _type = type --lua local local _math_abs = math.abs --lua local + local _math_min = math.min local _ipairs = ipairs --lua local local _GetScreenWidth = GetScreenWidth --wow api local @@ -64,12 +65,12 @@ -- /run print( _detalhes:GetInstance(1).rowframe:GetParent():GetName()) -- /run print (DetailsBarra_1_1:GetParent():GetName()) - function _detalhes:fazer_animacoes() + function _detalhes:fazer_animacoes (amt_barras) --aqui if (self.bars_sort_direction == 2) then - for i = self.rows_fit_in_window - 1, 1, -1 do + for i = _math_min (self.rows_fit_in_window, amt_barras) - 1, 1, -1 do local row = self.barras [i] local row_proxima = self.barras [i-1] diff --git a/functions/profiles.lua b/functions/profiles.lua index 370d6754..bf312831 100644 --- a/functions/profiles.lua +++ b/functions/profiles.lua @@ -982,6 +982,7 @@ local default_global_data = { main_help_button = 0, alert_frames = {false, false, false, false, false, false}, bookmark_tutorial = false, + ctrl_click_close_tutorial = false, }, performance_profiles = { ["RaidFinder"] = {enabled = false, update_speed = 1, use_row_animations = false, damage = true, heal = true, aura = true, energy = false, miscdata = true}, diff --git a/gumps/janela_principal.lua b/gumps/janela_principal.lua index 28e08370..b2a5b384 100644 --- a/gumps/janela_principal.lua +++ b/gumps/janela_principal.lua @@ -1969,6 +1969,7 @@ function _detalhes:ReportSingleLine (instancia, barra) return _detalhes:Reportar (reportar, {_no_current = true, _no_inverse = true, _custom = true}) end +-- ~stretch local function button_stretch_scripts (baseframe, backgrounddisplay, instancia) local button = baseframe.button_stretch @@ -2115,7 +2116,7 @@ local function button_stretch_scripts (baseframe, backgrounddisplay, instancia) if (esta_instancia.wallpaper.enabled) then _r, _g, _b = esta_instancia.baseframe.wallpaper:GetVertexColor() _a = esta_instancia.baseframe.wallpaper:GetAlpha() - gump:GradientEffect (esta_instancia.baseframe.wallpaper, "texture", _r, _g, _b, _a, _r, _g, _b, esta_instancia.baseframe.wallpaper.alpha, 1.0) + gump:GradientEffect (esta_instancia.baseframe.wallpaper, "texture", _r, _g, _b, _a, _r, _g, _b, esta_instancia.wallpaper.alpha, 1.0) end esta_instancia.baseframe:SetFrameStrata (esta_instancia.strata) diff --git a/gumps/switch.lua b/gumps/switch.lua index dc81ab3c..0b7d66b3 100644 --- a/gumps/switch.lua +++ b/gumps/switch.lua @@ -98,6 +98,60 @@ local right_click_texture = {[[Interface\TUTORIALFRAME\UI-TUTORIAL-FRAME]], 14, function _detalhes.switch:ShowMe (instancia) + if (IsControlKeyDown()) then + + if (not _detalhes.tutorial.ctrl_click_close_tutorial) then + if (not DetailsCtrlCloseWindowPanelTutorial) then + local tutorial_frame = CreateFrame ("frame", "DetailsCtrlCloseWindowPanelTutorial", _detalhes.switch.frame) + tutorial_frame:SetFrameStrata ("FULLSCREEN_DIALOG") + tutorial_frame:SetAllPoints() + tutorial_frame:EnableMouse (true) + tutorial_frame:SetBackdrop ({bgFile = "Interface\\AddOns\\Details\\images\\background", tile = true, tileSize = 16 }) + tutorial_frame:SetBackdropColor (0.05, 0.05, 0.05, 0.95) + + tutorial_frame.info_label = tutorial_frame:CreateFontString (nil, "overlay", "GameFontNormal") + tutorial_frame.info_label:SetPoint ("topleft", tutorial_frame, "topleft", 10, -10) + tutorial_frame.info_label:SetText (Loc ["STRING_MINITUTORIAL_CLOSECTRL1"]) + tutorial_frame.info_label:SetJustifyH ("left") + + tutorial_frame.mouse = tutorial_frame:CreateTexture (nil, "overlay") + tutorial_frame.mouse:SetTexture ([[Interface\TUTORIALFRAME\UI-TUTORIAL-FRAME]]) + tutorial_frame.mouse:SetTexCoord (0.0019531, 0.1484375, 0.6269531, 0.8222656) + tutorial_frame.mouse:SetSize (20, 22) + tutorial_frame.mouse:SetPoint ("topleft", tutorial_frame.info_label, "bottomleft", -3, -10) + + tutorial_frame.close_label = tutorial_frame:CreateFontString (nil, "overlay", "GameFontHighlightSmall") + tutorial_frame.close_label:SetPoint ("left", tutorial_frame.mouse, "right", 4, 0) + tutorial_frame.close_label:SetText (Loc ["STRING_MINITUTORIAL_CLOSECTRL2"]) + tutorial_frame.close_label:SetJustifyH ("left") + + local checkbox = CreateFrame ("CheckButton", "DetailsCtrlCloseWindowPanelTutorialCheckBox", tutorial_frame, "ChatConfigCheckButtonTemplate") + checkbox:SetPoint ("topleft", tutorial_frame.mouse, "bottomleft", -1, -5) + _G [checkbox:GetName().."Text"]:SetText (Loc ["STRING_MINITUTORIAL_BOOKMARK4"]) + + tutorial_frame:SetScript ("OnMouseDown", function() + if (checkbox:GetChecked()) then + _detalhes.tutorial.ctrl_click_close_tutorial = true + end + + tutorial_frame:Hide() + + if (instancia:IsEnabled()) then + return instancia:ShutDown() + end + end) + end + + DetailsCtrlCloseWindowPanelTutorial:Show() + DetailsCtrlCloseWindowPanelTutorial.info_label:SetWidth (_detalhes.switch.frame:GetWidth()-30) + DetailsCtrlCloseWindowPanelTutorial.close_label:SetWidth (_detalhes.switch.frame:GetWidth()-30) + + return + end + + return instancia:ShutDown() + end + --> check if there is some custom contidional if (instancia.atributo == 5) then local custom_object = instancia:GetCustomObject() @@ -202,6 +256,29 @@ function _detalhes.switch:Config (_,_, atributo, sub_atributo) _detalhes.switch:Update() end +--[[global]] function DetailsChangeDisplayFromBookmark (number, instance) + if (not instance) then + local lower = _detalhes:GetLowerInstanceNumber() + if (lower) then + instance = _detalhes:GetInstance (lower) + end + if (not instance) then + return _detalhes:Msg (Loc ["STRING_WINDOW_NOTFOUND"]) + end + end + + local paramTable = _detalhes.switch.buttons [number] and _detalhes.switch.buttons [number].funcParam2 + + if (paramTable) then + _detalhes.switch.current_instancia = instance + if (not paramTable.atributo) then + _detalhes:Msg (string.format (Loc ["STRING_SWITCH_SELECTMSG"], number)) + end + return _detalhes:FastSwitch (paramTable) + end + +end + function _detalhes:FastSwitch (_this) _detalhes.switch.current_button = _this.button @@ -219,6 +296,18 @@ function _detalhes:FastSwitch (_this) else --> botão esquerdo + if (IsShiftKeyDown()) then + --> get a closed window or created a new one. + local instance = _detalhes:CreateInstance() + + if (not instance) then + _detalhes.switch.CloseMe() + return _detalhes:Msg (Loc ["STRING_WINDOW_NOTFOUND"]) + end + + _detalhes.switch.current_instancia = instance + end + if (_detalhes.switch.current_instancia.modo == _detalhes._detalhes_props["MODO_ALONE"]) then _detalhes.switch.current_instancia:AlteraModo (_detalhes.switch.current_instancia, 2) diff --git a/locales/Details-koKR.lua b/locales/Details-koKR.lua new file mode 100644 index 00000000..ab9702de --- /dev/null +++ b/locales/Details-koKR.lua @@ -0,0 +1,4 @@ +local L = LibStub("AceLocale-3.0"):NewLocale("Details", "koKR") +if not L then return end + +@localization(locale="koKR", format="lua_additive_table", escape-non-ascii=true)@ \ No newline at end of file diff --git a/plugins/Details_RaidCheck/Details_RaidCheck.lua b/plugins/Details_RaidCheck/Details_RaidCheck.lua index 5a546c99..bece11fe 100644 --- a/plugins/Details_RaidCheck/Details_RaidCheck.lua +++ b/plugins/Details_RaidCheck/Details_RaidCheck.lua @@ -261,9 +261,15 @@ local food_list = { if (button == "LeftButton") then --> link no food/flask - local s, added = "No Flask or Food: ", {} + local s, added = "Details!: No Flask or Food: ", {} - for i = 1, GetNumGroupMembers(), 1 do + local amt = GetNumGroupMembers() + local _, _, difficulty = GetInstanceInfo() + if (difficulty == 16 and DetailsRaidCheck.db.mythic_1_4 and amt > 20) then + amt = 20 + end + + for i = 1, amt, 1 do local name = UnitName ("raid" .. i) if (not DetailsRaidCheck.havefood_table [name]) then added [name] = true @@ -282,7 +288,13 @@ local food_list = { local s = "Details!: No Pre-Pot Last Try: " - for i = 1, GetNumGroupMembers(), 1 do + local amt = GetNumGroupMembers() + local _, _, difficulty = GetInstanceInfo() + if (difficulty == 16 and DetailsRaidCheck.db.mythic_1_4 and amt > 20) then + amt = 20 + end + + for i = 1, amt, 1 do local role = _UnitGroupRolesAssigned ("raid" .. i) @@ -315,7 +327,13 @@ local food_list = { local amount1, amount2, amount3, amount4 = 0, 0, 0, 0 local s, f, p, n = "", "", "", "" - for i = 1, GetNumGroupMembers(), 1 do + local amt = GetNumGroupMembers() + local _, _, difficulty = GetInstanceInfo() + if (difficulty == 16 and DetailsRaidCheck.db.mythic_1_4 and amt > 20) then + amt = 20 + end + + for i = 1, amt, 1 do local name = UnitName ("raid" .. i) @@ -367,7 +385,14 @@ local food_list = { end --> not used pre pot - for i = 1, GetNumGroupMembers(), 1 do + local amt = GetNumGroupMembers() + local _, _, difficulty = GetInstanceInfo() + if (difficulty == 16 and DetailsRaidCheck.db.mythic_1_4 and amt > 20) then + amt = 20 + end + + for i = 1, amt, 1 do + local role = _UnitGroupRolesAssigned ("raid" .. i) if (role == "DAMAGER" or (role == "HEALER" and DetailsRaidCheck.db.pre_pot_healers) or (role == "TANK" and DetailsRaidCheck.db.pre_pot_tanks)) then @@ -530,6 +555,45 @@ local food_list = { end +local build_options_panel = function() + + local options_frame = DetailsRaidCheck:CreatePluginOptionsFrame ("DetailsRaidCheckOptionsWindow", "Details Raid Check Options", 1) + + local menu = { + { + type = "toggle", + get = function() return DetailsRaidCheck.db.pre_pot_healers end, + set = function (self, fixedparam, value) DetailsRaidCheck.db.pre_pot_healers = value end, + desc = "If enabled, pre potion for healers are also shown.", + name = "Track Healers Pre Pot" + }, + { + type = "toggle", + get = function() return DetailsRaidCheck.db.pre_pot_tanks end, + set = function (self, fixedparam, value) DetailsRaidCheck.db.pre_pot_tanks = value end, + desc = "If enabled, pre potion for tanks are also shown.", + name = "Track Tank Pre Pot" + }, + { + type = "toggle", + get = function() return DetailsRaidCheck.db.mythic_1_4 end, + set = function (self, fixedparam, value) DetailsRaidCheck.db.mythic_1_4 = value end, + desc = "When raiding on Mythic difficult, only tracks the first 4 groups.", + name = "Mythic Special Tracker" + }, + } + + _detalhes.gump:BuildMenu (options_frame, menu, 15, -65, 260) + +end + +DetailsRaidCheck.OpenOptionsPanel = function() + if (not DetailsRaidCheckOptionsWindow) then + build_options_panel() + end + DetailsRaidCheckOptionsWindow:Show() +end + function DetailsRaidCheck:OnEvent (_, event, ...) if (event == "ADDON_LOADED") then @@ -547,7 +611,7 @@ local food_list = { local default_settings = { pre_pot_healers = false, --do not report pre pot for healers pre_pot_tanks = false, --do not report pre pot for tanks - show_icon = 5, --when show the icon + mythic_1_4 = true, --only track groups 1-4 on mythic } --> install