From f838194290cc07089ab86153f4193cae153ced35 Mon Sep 17 00:00:00 2001 From: Tercio Date: Thu, 22 Jan 2015 19:42:10 -0200 Subject: [PATCH] - Added Segments shortcut menu pressing Shift + Right click. - Fixed avoidance panel on Player Details Window where sometimes was giving errors. - Fixed priest shadow and holy detection. - Fixed blood and unholy spec icons. --- boot.lua | 28 ++--- functions/profiles.lua | 8 +- functions/spells.lua | 10 +- gumps/janela_info.lua | 4 + gumps/janela_principal.lua | 98 ++++++++++++++++- gumps/switch.lua | 213 +++++++++++++++++++++++++++++++++++-- startup.lua | 7 +- 7 files changed, 325 insertions(+), 43 deletions(-) diff --git a/boot.lua b/boot.lua index 7a65b4b7..ecedf4e5 100644 --- a/boot.lua +++ b/boot.lua @@ -4,7 +4,7 @@ _ = nil _detalhes = LibStub("AceAddon-3.0"):NewAddon("_detalhes", "AceTimer-3.0", "AceComm-3.0", "AceSerializer-3.0", "NickTag-1.0") _detalhes.build_counter = 439 --it's 439 for release - _detalhes.userversion = "v3.8.4" + _detalhes.userversion = "v3.8.5" _detalhes.realversion = 58 --core version _detalhes.version = _detalhes.userversion .. " (core " .. _detalhes.realversion .. ")" @@ -20,30 +20,18 @@ do local Loc = LibStub ("AceLocale-3.0"):GetLocale ( "Details" ) --[[ -|cFFFFFF00v3.8.4 (|cFFFFCC00Jan 21, 2015|r|cFFFFFF00)|r:\n\n +|cFFFFFF00v3.8.5 (|cFFFFCC00Jan 21, 2015|r|cFFFFFF00)|r:\n\n +|cFFFFFF00-|r Added Segments shortcut menu pressing Shift + Right click .\n\n +|cFFFFFF00-|r Fixed avoidance panel on Player Details Window where sometimes was giving errors.\n\n +|cFFFFFF00-|r Fixed priest shadow and holy detection.\n\n +|cFFFFFF00-|r Fixed blood and unholy spec icons.\n\n |cFFFFFF00-|r Improved specialization detection in order to try detect spec changes.\n\n |cFFFFFF00-|r Fixed an issue with 'Always Show me' feature where it was showing the player on Enemies display.\n\n |cFFFFFF00-|r Testing LibWindow-1.1.\n\n - -|cFFFFFF00v3.8 (|cFFFFCC00Jan 16, 2015|r|cFFFFFF00)|r:\n\n -|cFFFFFF00-|r Plugin Vanguard: got full rewrite and now it is more easy to use.\n\n -|cFFFFFF00-|r Plugin TimeAttack: fixed problem where sometimes required a reload to start a new time.\n\n -|cFFFFFF00-|r Plugin Damage the Game!: fixed a problem where sometimes the time didn't started after level 2.\n\n -|cFFFFFF00-|r Custom display 'Health Potion & Stone' now also track Healing Tonic.\n\n -|cFFFFFF00-|r Custom display 'Damage Taken by Spell' now track more spells and also melee hits.\n\n -|cFFFFFF00-|r Menus now uses 'Friz Quadrata TT' font as default, also added an option to change it on options panel -> miscellaneous.\n\n -|cFFFFFF00-|r 'Switch to Current' feature now switches all windows which have this option enabled.\n\n -|cFFFFFF00-|r The message telling to use '/details reinstall' now only shows if a problem happen during the addon load process.\n\n -|cFFFFFF00-|r Segments Saved option now can be set to 25, up from 5.\n\n -|cFFFFFF00-|r Attempt to fix the bug with the monk spell 'Storm, Earth, and Fire'.\n\n -|cFFFFFF00-|r Fixed 'Icon Pick' panel.\n\n -|cFFFFFF00-|r Fixed bug when reporting friendly fire through player detail window.\n\n -|cFFFFFF00-|r Fixed bug with report window where sometimes it was reporting on a wrong channel.\n\n --]] --- |cFFFFFF00v3.8.4 (|cFFFFCC00Jan 21, 2015|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Improved specialization detection in order to try detect spec changes.\n\n|cFFFFFF00-|r Fixed an issue with 'Always Show Me' feature where it was showing the player on Enemies display.\n\n|cFFFFFF00-|r Testing LibWindow-1.1.\n\n - Loc ["STRING_VERSION_LOG"] = "|cFFFFFF00v3.8.4 (|cFFFFCC00Jan 21, 2015|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Improved specialization detection in order to try detect spec changes.\n\n|cFFFFFF00-|r Fixed an issue with 'Always Show Me' feature where it was showing the player on Enemies display.\n\n|cFFFFFF00-|r Testing LibWindow-1.1.\n\n|cFFFFFF00v3.8.1 (|cFFFFCC00Jan 17, 2015|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Plugin Vanguard: got full rewrite and now it is more easy to use.\n\n|cFFFFFF00-|r Plugin TimeAttack: fixed problem where sometimes required a reload to start a new time.\n\n|cFFFFFF00-|r Plugin Damage the Game!: fixed a problem where sometimes the time didn't started after level 2.\n\n|cFFFFFF00-|r Added specialization icons.\n\n|cFFFFFF00-|r Fixed Auto-Hide where it wasn't hiding the wallpaper of the window.\n\n|cFFFFFF00-|r Added 'Editing Group' check box on option panel, when enabled, settings changed also are modified on all windows in the group.\n\n|cFFFFFF00-|r Changing window's skin, doesn't change any more settings not related with appearance, for example, Auto-Hide, Switches.\n\n|cFFFFFF00-|r Custom display 'Health Potion & Stone' now also track Healing Tonic.\n\n|cFFFFFF00-|r Custom display 'Damage Taken by Spell' now tracks more spells and also melee hits.\n\n|cFFFFFF00-|r Menus now uses 'Friz Quadrata TT' font as default, also added an option to change it on options panel -> miscellaneous.\n\n|cFFFFFF00-|r 'Switch to Current' feature now switches all windows which have this option enabled.\n\n|cFFFFFF00-|r The message telling to use '/details reinstall' now only shows if a problem happen during the addon load process.\n\n|cFFFFFF00-|r Segments Saved option now can be set to 25, up from 5.\n\n|cFFFFFF00-|r Attempt to fix the bug with the monk spell 'Storm, Earth, and Fire'.\n\n|cFFFFFF00-|r Fixed 'Icon Pick' panel.\n\n|cFFFFFF00-|r Fixed bug when reporting friendly fire through player detail window.\n\n|cFFFFFF00-|r Fixed bug with report window where sometimes it was reporting on a wrong channel.\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|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." --- Loc ["STRING_VERSION_LOG"] = "|cFFFFFF00v3.8.1 (|cFFFFCC00Jan 17, 2015|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Plugin Vanguard: got full rewrite and now it is more easy to use.\n\n|cFFFFFF00-|r Plugin TimeAttack: fixed problem where sometimes required a reload to start a new time.\n\n|cFFFFFF00-|r Plugin Damage the Game!: fixed a problem where sometimes the time didn't started after level 2.\n\n|cFFFFFF00-|r Added specialization icons.\n\n|cFFFFFF00-|r Fixed Auto-Hide where it wasn't hiding the wallpaper of the window.\n\n|cFFFFFF00-|r Added 'Editing Group' check box on option panel, when enabled, settings changed also are modified on all windows in the group.\n\n|cFFFFFF00-|r Changing window's skin, doesn't change any more settings not related with appearance, for example, Auto-Hide, Switches.\n\n|cFFFFFF00-|r Custom display 'Health Potion & Stone' now also track Healing Tonic.\n\n|cFFFFFF00-|r Custom display 'Damage Taken by Spell' now tracks more spells and also melee hits.\n\n|cFFFFFF00-|r Menus now uses 'Friz Quadrata TT' font as default, also added an option to change it on options panel -> miscellaneous.\n\n|cFFFFFF00-|r 'Switch to Current' feature now switches all windows which have this option enabled.\n\n|cFFFFFF00-|r The message telling to use '/details reinstall' now only shows if a problem happen during the addon load process.\n\n|cFFFFFF00-|r Segments Saved option now can be set to 25, up from 5.\n\n|cFFFFFF00-|r Attempt to fix the bug with the monk spell 'Storm, Earth, and Fire'.\n\n|cFFFFFF00-|r Fixed 'Icon Pick' panel.\n\n|cFFFFFF00-|r Fixed bug when reporting friendly fire through player detail window.\n\n|cFFFFFF00-|r Fixed bug with report window where sometimes it was reporting on a wrong channel.\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|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." +-- + Loc ["STRING_VERSION_LOG"] = "|cFFFFFF00v3.8.5 (|cFFFFCC00Jan 22, 2015|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Added Segments shortcut menu pressing Shift + Right click .\n\n|cFFFFFF00-|r Fixed avoidance panel on Player Details Window where sometimes was giving errors.\n\n|cFFFFFF00-|r Fixed priest shadow and holy detection.\n\n|cFFFFFF00-|r Fixed blood and unholy spec icons.\n\n|cFFFFFF00-|r Improved specialization detection in order to try detect spec changes.\n\n|cFFFFFF00-|r Fixed an issue with 'Always Show Me' feature where it was showing the player on Enemies display.\n\n|cFFFFFF00-|r Testing LibWindow-1.1.\n\n|cFFFFFF00v3.8.1 (|cFFFFCC00Jan 17, 2015|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Plugin Vanguard: got full rewrite and now it is more easy to use.\n\n|cFFFFFF00-|r Plugin TimeAttack: fixed problem where sometimes required a reload to start a new time.\n\n|cFFFFFF00-|r Plugin Damage the Game!: fixed a problem where sometimes the time didn't started after level 2.\n\n|cFFFFFF00-|r Added specialization icons.\n\n|cFFFFFF00-|r Fixed Auto-Hide where it wasn't hiding the wallpaper of the window.\n\n|cFFFFFF00-|r Added 'Editing Group' check box on option panel, when enabled, settings changed also are modified on all windows in the group.\n\n|cFFFFFF00-|r Changing window's skin, doesn't change any more settings not related with appearance, for example, Auto-Hide, Switches.\n\n|cFFFFFF00-|r Custom display 'Health Potion & Stone' now also track Healing Tonic.\n\n|cFFFFFF00-|r Custom display 'Damage Taken by Spell' now tracks more spells and also melee hits.\n\n|cFFFFFF00-|r Menus now uses 'Friz Quadrata TT' font as default, also added an option to change it on options panel -> miscellaneous.\n\n|cFFFFFF00-|r 'Switch to Current' feature now switches all windows which have this option enabled.\n\n|cFFFFFF00-|r The message telling to use '/details reinstall' now only shows if a problem happen during the addon load process.\n\n|cFFFFFF00-|r Segments Saved option now can be set to 25, up from 5.\n\n|cFFFFFF00-|r Attempt to fix the bug with the monk spell 'Storm, Earth, and Fire'.\n\n|cFFFFFF00-|r Fixed 'Icon Pick' panel.\n\n|cFFFFFF00-|r Fixed bug when reporting friendly fire through player detail window.\n\n|cFFFFFF00-|r Fixed bug with report window where sometimes it was reporting on a wrong channel.\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|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." Loc ["STRING_DETAILS1"] = "|cffffaeaeDetails!:|r " diff --git a/functions/profiles.lua b/functions/profiles.lua index 31ce0d97..40a14478 100644 --- a/functions/profiles.lua +++ b/functions/profiles.lua @@ -239,6 +239,10 @@ function _detalhes:ApplyProfile (profile_name, nosave, is_copy) local value = profile [key] if (type (value) == "table") then + if (key == "class_specs_coords") then + value = table_deepcopy (_detalhes.default_profile.class_specs_coords) + end + local ctable = table_deepcopy (value) _detalhes [key] = ctable else @@ -572,9 +576,9 @@ local default_profile = { --> spec coords class_specs_coords = { - [252] = {0, 64/512, 0, 64/512}, --> unholy dk + [250] = {0, 64/512, 0, 64/512}, --> blood dk [251] = {64/512, 128/512, 0, 64/512}, --> frost dk - [250] = {128/512, 192/512, 0, 64/512}, --> blood dk + [252] = {128/512, 192/512, 0, 64/512}, --> unholy dk [102] = {192/512, 256/512, 0, 64/512}, --> druid balance [103] = {256/512, 320/512, 0, 64/512}, --> druid feral diff --git a/functions/spells.lua b/functions/spells.lua index 580f6ab5..c3b3f48e 100644 --- a/functions/spells.lua +++ b/functions/spells.lua @@ -209,15 +209,15 @@ do [64843] = 257, -- Divine Hymn [34861] = 257, -- Circle of Healing [32546] = 257, -- Binding Heal - [596] = 257, -- Prayer of Healing + --[596] = 257, -- Prayer of Healing [126135] = 257, -- Lightwell [139] = 257, -- Renew - [88625] = 257, -- Holy Word: Chastise + --[88625] = 257, -- Holy Word: Chastise -- Shadow Priest: - [127632] = 258, -- Cascade - [122121] = 258, -- Divine Star - [120644] = 258, -- Halo + --[127632] = 258, -- Cascade + --[122121] = 258, -- Divine Star + --[120644] = 258, -- Halo [15286] = 258, -- Vampiric Embrace [32379] = 258, -- Shadow Word: Death [73510] = 258, -- Mind Spike diff --git a/gumps/janela_info.lua b/gumps/janela_info.lua index 2ef53e08..027fd16e 100644 --- a/gumps/janela_info.lua +++ b/gumps/janela_info.lua @@ -1267,6 +1267,10 @@ function gump:CriaJanelaInfo() end tab.tankname:SetText ("Avoidance of\n" .. n) --> localize-me + if (not playerdamage.avoidance) then + playerdamage.avoidance = _detalhes:CreateActorAvoidanceTable() + end + --> damage taken local playerdamage = combat (1, player.nome) diff --git a/gumps/janela_principal.lua b/gumps/janela_principal.lua index dc07ac6b..fc5368f7 100644 --- a/gumps/janela_principal.lua +++ b/gumps/janela_principal.lua @@ -4763,7 +4763,7 @@ local build_mode_list = function (self, elapsed) --> window control GameCooltip:AddLine ("$div") - CoolTip:AddLine ("Window Control") + CoolTip:AddLine (Loc ["STRING_MENU_INSTANCE_CONTROL"]) CoolTip:AddIcon ([[Interface\AddOns\Details\images\modo_icones]], 1, 1, 20, 20, 0.625, 0.75, 0, 1) --CoolTip:AddMenu (2, _detalhes.OpenOptionsWindow, true, 1, nil, "Cant Create Window", _, true) @@ -4912,8 +4912,6 @@ function _detalhes:SetMenuOwner (self, instance) end -local segments_used = 0 -local segments_filled = 0 local empty_segment_color = {1, 1, 1, .4} local segments_common_tex, segments_common_color = {0.5078125, 0.1171875, 0.017578125, 0.1953125}, {1, 1, 1, .5} @@ -4923,6 +4921,98 @@ local party_line_color = {170/255, 167/255, 255/255, 1} local party_wallpaper_tex, party_wallpaper_color = {0.09, 0.698125, 0, 0.833984375}, {1, 1, 1, 0.5} local segments_wallpaper_color = {1, 1, 1, 0.5} +local segment_color_lime = {0, 1, 0, 1} +local segment_color_red = {1, 0, 0, 1} + +function _detalhes:GetSegmentInfo (index) + local combat + + if (index == -1 or index == "overall") then + combat = _detalhes.tabela_overall + elseif (index == 0 or index == "current") then + combat = _detalhes.tabela_vigente + else + combat = _detalhes.tabela_historico.tabelas [index] + end + + if (combat) then + + local enemy + local color + local raid_type + local killed + local portrait + local background + local background_coords + local is_trash + + if (combat.is_boss and combat.is_boss.name) then + + if (combat.instance_type == "party") then + raid_type = "party" + enemy = combat.is_boss.name + color = party_line_color + + elseif (combat.is_boss.killed) then + raid_type = "raid" + enemy = combat.is_boss.name + color = segment_color_lime + killed = true + + else + raid_type = "raid" + enemy = combat.is_boss.name + color = segment_color_red + killed = false + + end + + local p = _detalhes:GetBossPortrait (combat.is_boss.mapid, combat.is_boss.index) + if (p) then + portrait = p + end + + local b = _detalhes:GetRaidIcon (combat.is_boss.mapid) + if (b) then + background = b + background_coords = segment_color_lime + + elseif (combat.instance_type == "party") then + local ej_id = combat.is_boss.ej_instance_id + if (ej_id) then + local name, description, bgImage, buttonImage, loreImage, dungeonAreaMapID, link = EJ_GetInstanceInfo (ej_id) + if (bgImage) then + background = bgImage + background_coords = party_wallpaper_tex + end + end + end + + elseif (combat.is_arena) then + enemy = combat.is_arena.name + + local file, coords = _detalhes:GetArenaInfo (combat.is_arena.mapid) + + if (file) then + background = "Interface\\Glues\\LOADINGSCREENS\\" .. file + background_coords = coords + end + + else + enemy = combat.enemy + + if (combat.is_trash) then + is_trash = true + end + end + + return enemy, color, raid_type, killed, is_trash, portrait, background, background_coords + end + +end + +local segments_used = 0 +local segments_filled = 0 -- search key: ~segments local build_segment_list = function (self, elapsed) @@ -7067,7 +7157,7 @@ function gump:CriaCabecalho (baseframe, instancia) GameCooltip:SetOption ("ButtonsYMod", -7) GameCooltip:SetOption ("HeighMod", 8) - GameCooltip:AddLine ("Report Results", nil, 1, "white", nil, _detalhes.font_sizes.menus, _detalhes.font_faces.menus) + GameCooltip:AddLine (Loc ["STRING_REPORT_TOOLTIP"], nil, 1, "white", nil, _detalhes.font_sizes.menus, _detalhes.font_faces.menus) GameCooltip:AddIcon ([[Interface\Addons\Details\Images\report_button]], 1, 1, 12, 19) GameCooltip:AddMenu (1, _detalhes.Reportar, instancia, nil, "INSTANCE" .. instancia.meu_id) diff --git a/gumps/switch.lua b/gumps/switch.lua index 0b7d66b3..35d7e92d 100644 --- a/gumps/switch.lua +++ b/gumps/switch.lua @@ -96,8 +96,16 @@ _detalhes.switch.height_necessary = (_detalhes.switch.button_height * _detalhes. local right_click_text = {text = Loc ["STRING_SHORTCUT_RIGHTCLICK"], size = 9, color = {.9, .9, .9}} local right_click_texture = {[[Interface\TUTORIALFRAME\UI-TUTORIAL-FRAME]], 14, 14, 0.0019531, 0.1484375, 0.6269531, 0.8222656} +function _detalhes.switch:HideAllBookmarks() + for _, bookmark in ipairs (_detalhes.switch.buttons) do + bookmark:Hide() + end +end + function _detalhes.switch:ShowMe (instancia) + _detalhes.switch.current_instancia = instancia + if (IsControlKeyDown()) then if (not _detalhes.tutorial.ctrl_click_close_tutorial) then @@ -150,6 +158,201 @@ function _detalhes.switch:ShowMe (instancia) end return instancia:ShutDown() + + elseif (IsShiftKeyDown()) then + + if (not _detalhes.switch.segments_blocks) then + + local segment_switch = function (segment, _, _, button) + if (button == "LeftButton") then + _detalhes.switch.current_instancia:TrocaTabela (segment) + _detalhes.switch.CloseMe() + elseif (button == "RightButton") then + _detalhes.switch.CloseMe() + end + end + + local hide_label = function (self) + self.texture:Hide() + self.button:Hide() + self.background:Hide() + self:Hide() + end + + local show_label = function (self) + self.texture:Show() + self.button:Show() + self.background:Show() + self:Show() + end + + local on_enter = function (self) + self.MyObject.this_background:SetBlendMode ("ADD") + self.MyObject.boss_texture:SetBlendMode ("ADD") + end + + local on_leave = function (self) + self.MyObject.this_background:SetBlendMode ("BLEND") + self.MyObject.boss_texture:SetBlendMode ("BLEND") + end + + function _detalhes.switch:CreateSegmentBlock() + local s = gump:CreateLabel (_detalhes.switch.frame) + _detalhes:SetFontSize (s, 9) + + local index = #_detalhes.switch.segments_blocks + if (index == 1) then --overall button + index = -1 + elseif (index >= 2) then + index = index - 1 + end + + local button = gump:CreateButton (_detalhes.switch.frame, segment_switch, 100, 20, "", index) + button:SetPoint ("topleft", s, "topleft", -17, 0) + button:SetPoint ("bottomright", s, "bottomright", 0, 0) + button:SetClickFunction (segment_switch, nil, nil, "right") + + local boss_texture = gump:CreateImage (button, nil, 16, 16) + boss_texture:SetPoint ("right", s, "left", -2, 0) + + local background = button:CreateTexture (nil, "background") + background:SetTexture ("Interface\\SPELLBOOK\\Spellbook-Parts") + background:SetTexCoord (0.31250000, 0.96484375, 0.37109375, 0.52343750) + background:SetWidth (85) + background:SetPoint ("topleft", s.widget, "topleft", -16, 3) + background:SetPoint ("bottomright", s.widget, "bottomright", -3, -5) + + button.this_background = background + button.boss_texture = boss_texture.widget + + s.texture = boss_texture + s.button = button + s.background = background + + button:SetScript ("OnEnter", on_enter) + button:SetScript ("OnLeave", on_leave) + + s.HideMe = hide_label + s.ShowMe = show_label + + tinsert (_detalhes.switch.segments_blocks, s) + return s + end + + function _detalhes.switch:GetSegmentBlock (index) + local block = _detalhes.switch.segments_blocks [index] + if (not block) then + return _detalhes.switch:CreateSegmentBlock() + else + return block + end + end + + function _detalhes.switch:ClearSegmentBlocks() + for _, block in ipairs (_detalhes.switch.segments_blocks) do + block:HideMe() + end + end + + function _detalhes.switch:ResizeSegmentBlocks() + + local x = 7 + local y = 5 + + local window_width, window_height = _detalhes.switch.current_instancia:GetSize() + + local horizontal_amt = floor (math.max (window_width / 100, 2)) + local vertical_amt = floor ((window_height - y) / 20) + local size = window_width / horizontal_amt + + local frame = _detalhes.switch.frame + + _detalhes.switch:ClearSegmentBlocks() + + local i = 1 + for vertical = 1, vertical_amt do + x = 7 + for horizontal = 1, horizontal_amt do + local button = _detalhes.switch:GetSegmentBlock (i) + + button:SetPoint ("topleft", frame, "topleft", x + 16, -y) + button:SetSize (size - 22, 12) + button:ShowMe() + + i = i + 1 + x = x + size + if (i > 40) then + break + end + end + y = y + 20 + end + end + + _detalhes.switch.segments_blocks = {} + + --> current and overall + _detalhes.switch:CreateSegmentBlock() + _detalhes.switch:CreateSegmentBlock() + + local block1 = _detalhes.switch:GetSegmentBlock (1) + block1:SetText (Loc ["STRING_CURRENTFIGHT"]) + block1.texture:SetTexture ([[Interface\Scenarios\ScenariosParts]]) + block1.texture:SetTexCoord (55/512, 81/512, 368/512, 401/512) + + local block2 = _detalhes.switch:GetSegmentBlock (2) + block2:SetText (Loc ["STRING_SEGMENT_OVERALL"]) + block2.texture:SetTexture ([[Interface\Scenarios\ScenariosParts]]) + block2.texture:SetTexCoord (55/512, 81/512, 368/512, 401/512) + end + + _detalhes.switch:ClearSegmentBlocks() + _detalhes.switch:HideAllBookmarks() + + local segment_index = 1 + for i = 3, #_detalhes.tabela_historico.tabelas + 2 do + + local combat = _detalhes.tabela_historico.tabelas [segment_index] + + local block = _detalhes.switch:GetSegmentBlock (i) + local enemy, color, raid_type, killed, is_trash, portrait, background, background_coords = _detalhes:GetSegmentInfo (segment_index) + + block:SetText ("#" .. segment_index .. " " .. enemy) + + if (combat.is_boss and combat.instance_type == "raid") then + local L, R, T, B, Texture = _detalhes:GetBossIcon (combat.is_boss.mapid, combat.is_boss.index) + if (L) then + block.texture:SetTexture (Texture) + block.texture:SetTexCoord (L, R, T, B) + else + block.texture:SetTexture ([[Interface\Scenarios\ScenarioIcon-Boss]]) + end + else + block.texture:SetTexture ([[Interface\Scenarios\ScenarioIcon-Boss]]) + end + + block:ShowMe() + segment_index = segment_index + 1 + end + + _detalhes.switch.frame:SetScale (instancia.window_scale) + _detalhes.switch:ResizeSegmentBlocks() + + for i = segment_index+2, #_detalhes.switch.segments_blocks do + _detalhes.switch.segments_blocks [i]:HideMe() + end + + _detalhes.switch.frame:SetPoint ("topleft", instancia.baseframe, "topleft", 0, 1) + _detalhes.switch.frame:SetPoint ("bottomright", instancia.baseframe, "bottomright", 0, 1) + _detalhes.switch.frame:SetBackdropColor (0.094, 0.094, 0.094, .8) + _detalhes.switch.frame:Show() + + return + + else + if (_detalhes.switch.segments_blocks) then + _detalhes.switch:ClearSegmentBlocks() + end end --> check if there is some custom contidional @@ -162,16 +365,9 @@ function _detalhes.switch:ShowMe (instancia) end end end - - if (_detalhes.switch.current_instancia) then - _detalhes.switch.current_instancia:StatusBarAlert (nil) - end - - _detalhes.switch.current_instancia = instancia _detalhes.switch.frame:SetPoint ("topleft", instancia.baseframe, "topleft", 0, 1) _detalhes.switch.frame:SetPoint ("bottomright", instancia.baseframe, "bottomright", 0, 1) - _detalhes.switch.frame:SetBackdropColor (0.094, 0.094, 0.094, .8) local altura = instancia.baseframe:GetHeight() @@ -623,9 +819,6 @@ local oniconleave = function (self) end end - - - function _detalhes.switch:NewSwitchButton (frame, index, x, y, rightButton) local paramTable = { diff --git a/startup.lua b/startup.lua index 5f0a227b..da2cfeda 100644 --- a/startup.lua +++ b/startup.lua @@ -322,8 +322,11 @@ function _G._detalhes:Start() --> send feedback panel if the user got 100 or more logons with details if (self.tutorial.logons > 100) then -- and self.tutorial.logons < 104 if (not self.tutorial.feedback_window1) then - self.tutorial.feedback_window1 = true - _detalhes:ShowFeedbackRequestWindow() + --> check if isn't inside an instance + if (_detalhes:IsInCity()) then + self.tutorial.feedback_window1 = true + _detalhes:ShowFeedbackRequestWindow() + end end end