diff --git a/boot.lua b/boot.lua index 1c41096b..0434800a 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 = 287 --it's 287 for release - _detalhes.userversion = "v3.6.3" + _detalhes.userversion = "v3.6.4" _detalhes.realversion = 51 --core version _detalhes.version = _detalhes.userversion .. " (core " .. _detalhes.realversion .. ")" @@ -18,6 +18,11 @@ do local Loc = LibStub ("AceLocale-3.0"):GetLocale ( "Details" ) --[[ +|cFFFFFF00v3.6.4 |cFF55FF55(beta)|r (|cFFFFCC00Dec 21, 2014|r|cFFFFFF00)|r:\n\n +|cFFFFFF00-|r Removed skin: 'ElvUI Frame Style BW'.\n\n +|cFFFFFF00-|r Added new skin: 'ElvUI Style II'.\n\n +|cFFFFFF00-|r The tooltip for Scale option under options panel, now shows the real value for the scale.\n\n + |cFFFFFF00v3.6.3 |cFF55FF55(beta)|r (|cFFFFCC00Dec 19, 2014|r|cFFFFFF00)|r:\n\n |cFFFFFF00-|r Added Observer channel for Raid Tools, it only reports the cooldown/interrupt/death to you in your chat window.\n\n |cFFFFFF00-|r More updates on the new plugin Raid Check.\n\n @@ -34,17 +39,9 @@ do |cFFFFFF00-|r Elapsed combat time now uses Float numbers instead of Integer, this might bug something, be aware of anomalies.\n This change makes fun things, now we can make Dps and Hps update really quick and also increase the accuracy with warcraftlogs.\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 --]] - Loc ["STRING_VERSION_LOG"] = "|cFFFFFF00v3.6.3 |cFF55FF55(beta)|r (|cFFFFCC00Dec 19, 2014|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Added Observer channel for Raid Tools, it only reports the cooldown/interrupt/death to you at your chat window.\n\n|cFFFFFF00-|r More updates on the new plugin Raid Check.\n\n|cFFFFFF00v3.6.2 |cFF55FF55(beta)|r (|cFFFFCC00Dec 17, 2014|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Continuing the implementation of RaidCheck, plugin for check food, flasks and pre-pots.\n\n|cFFFFFF00-|r Fixed bugs on sending messages to chat for Raid Tools.\n\n|cFFFFFF00v3.6.1 |cFF55FF55(beta)|r (|cFFFFCC00Dec 17, 2014|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Started coding the new plugin for check flasks, food, pre potion.\n\n|cFFFFFF00-|r Death time seems to be bugged due to Combat elapsed time change.\n\n|cFFFFFF00v3.6.0 |cFF55FF55(beta)|r (|cFFFFCC00Dec 16, 2014|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Elapsed combat time now uses Float numbers instead of Integer, this might bug something, be aware of anomalies.\nThis change makes fun things, now we can make Dps and Hps update really quick and also increase the accuracy with warcraftlogs.\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'.\n\n|cFFFFFF00v3.4.2 (|cFFFFCC00Dec 01, 2014|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Fixed a bug with menu desaturation where erase and close buttons stay colored after clicking on it.\n\n|cFFFFFF00-|r Fixed stretch where sometimes after release the window, all exceeded bars shows up and fade in again.\n\n|cFFFFFF00-|r Fixed a bug with the +- buttons on the window's scale option.\n\n|cFFFFFF00-|r Fixed the border for sub menus on mode menu.\n\n|cFFFFFF00v3.4.0 (|cFFFFCC00Nov 29, 2014|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Fixed custom displays ignoring 'target' setted.\n\n|cFFFFFF00-|r Fixed plugins showing its icon even when auto hide menus is enabled.\n\n|cFFFFFF00-|r .Updates slash command 'worldboss' now it shows Draenor bosses.\n\n|cFFFFFF00v3.3.0 (|cFFFFCC00Nov 25, 2014|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Added 3D models for the bars in the window. The options are at Appearance -> Rows: Advanced.\n\n|cFFFFFF00-|r Now when showing custom displays, clicking on a bar report what is shown on bar's tooltip.\n\n|cFFFFFF00-|r More fixes for dungeon bosses identification.\n\n|cFFFFFF00-|r Fixed a tooltip bug with Debuff Uptime and Aura & Voidzone displays.\n\n|cFFFFFF00-|r Fixed Player Details Window for friendly fire and damage taken.\n\n|cFFFFFF00-|r Fixed Molten Core Raid Finder version where all bosses was considered trash segments.\n\n|cFFFFFF00v3.2.4 (|cFFFFCC00Nov 19, 2014|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r More fixes for dungeon bosses recognition.\n\n|cFFFFFF00-|r Fixes for few errors during combat parser.\n\n|cFFFFFF00v3.2.3 (|cFFFFCC00Nov 18, 2014|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Fixed Monk's Stagger ability which was counting as damage done.\n\n|cFFFFFF00-|r Added WoD dungeon information, this fixes dungeon bosses being assigned as 'trash cleanup'.\n\n|cFFFFFF00-|r Added more information on API.txt document (is in Details! root folder).\n\n|cFFFFFF00v3.2.1 (|cFFFFCC00Nov 14, 2014|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Custom Displays updated to track WoD potions.\n\n|cFFFFFF00-|r Added Feedback panel at options panel.\n\n|cFFFFFF00v3.2.0 (|cFFFFCC00Nov 11, 2014|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Major changes on the way Details! store information, these changes saves up to 40% memory and 4% cpu usage.\n\n|cFFFFFF00-|r Fixed problem with pet's healing messing with the owner activity time.\n\n|cFFFFFF00-|r Added Energy -> Resources.\n\n|cFFFFFF00-|r Fixed combat initialization when the player start casting a Dot spell.\n\n|cFFFFFF00-|r Added new custom display: Damage Taken By Spell.\n\n|cFFFFFF00v2.2.3 (|cFFFFCC00Oct 26, 2014|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Fixed the healing done problem with Priest's Spirit of Redemption.\n\n|cFFFFFF00-|r Fixed avoidance by absorb when the hit missed was a multistrike hit.\n\n|cFFFFFF00-|r Fixed a script time out problem when erasing data while in combat.\n\n|cFFFFFF00-|r Fixed bug with interrupt tooltip when the player have a pet.\n\n|cFFFFFF00v2.2.1 (|cFFFFCC00Oct 22, 2014|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Fixed the gap between the button and its menu which sometimes traveling the mouse between them was activating tooltips from window's bars.\n\n|cFFFFFF00-|r Fixed an annoying menu blink when the window was near the right side of the screen.\n\n|cFFFFFF00-|r Fixed the stretch grab which was over other windows even with the 'stretch always on top' option disabled.\n\n|cFFFFFF00-|r Few fixes on healing done from absorbs.\n\n|cFFFFFF00v2.1.6 (|cFFFFCC00Oct 21, 2014|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Fixed death's tooltip which wasn't respecting tooltip's configuration set on options panel.\n\n|cFFFFFF00-|r Now when the window is close to the top of the screen, menus will anchor on bottom side of the menu icons.\n\n|cFFFFFF00-|r Added micro displays options on Window Settings bracket.\n\n|cFFFFFF00-|r Fixed the problem with bar's custom texts.\n\n|cFFFFFF00-|r Lua functions inside custom texts, Chart Data scripts and Custom Displays scripts are now protected calls and won't break the addon functionality if an error occurs. Unfortunately we still doesn't have a documentation for Details! API.\n\n|cFFFFFF00-|r Fixed an incomum bug with tank avoidance tables.\n\n|cFFFFFF00-|r Tiny Threat: added option to use class colors instead of green-to-red colors.\n\n|cFFFFFF00-|r Added option to enable shadows on toolbar's buttons." + Loc ["STRING_VERSION_LOG"] = "|cFFFFFF00v3.6.4 |cFF55FF55(beta)|r (|cFFFFCC00Dec 21, 2014|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Removed skin: 'ElvUI Frame Style BW'.\n\n|cFFFFFF00-|r Added new skin: 'ElvUI Style II'.\n\n|cFFFFFF00-|r The tooltip for Scale option under options panel, now shows the real value for the scale.\n\n|cFFFFFF00v3.6.3 |cFF55FF55(beta)|r (|cFFFFCC00Dec 19, 2014|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Added Observer channel for Raid Tools, it only reports the cooldown/interrupt/death to you at your chat window.\n\n|cFFFFFF00-|r More updates on the new plugin Raid Check.\n\n|cFFFFFF00v3.6.2 |cFF55FF55(beta)|r (|cFFFFCC00Dec 17, 2014|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Continuing the implementation of RaidCheck, plugin for check food, flasks and pre-pots.\n\n|cFFFFFF00-|r Fixed bugs on sending messages to chat for Raid Tools.\n\n|cFFFFFF00v3.6.1 |cFF55FF55(beta)|r (|cFFFFCC00Dec 17, 2014|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Started coding the new plugin for check flasks, food, pre potion.\n\n|cFFFFFF00-|r Death time seems to be bugged due to Combat elapsed time change.\n\n|cFFFFFF00v3.6.0 |cFF55FF55(beta)|r (|cFFFFCC00Dec 16, 2014|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Elapsed combat time now uses Float numbers instead of Integer, this might bug something, be aware of anomalies.\nThis change makes fun things, now we can make Dps and Hps update really quick and also increase the accuracy with warcraftlogs.\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'.\n\n|cFFFFFF00v3.4.2 (|cFFFFCC00Dec 01, 2014|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Fixed a bug with menu desaturation where erase and close buttons stay colored after clicking on it.\n\n|cFFFFFF00-|r Fixed stretch where sometimes after release the window, all exceeded bars shows up and fade in again.\n\n|cFFFFFF00-|r Fixed a bug with the +- buttons on the window's scale option.\n\n|cFFFFFF00-|r Fixed the border for sub menus on mode menu.\n\n|cFFFFFF00v3.4.0 (|cFFFFCC00Nov 29, 2014|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Fixed custom displays ignoring 'target' setted.\n\n|cFFFFFF00-|r Fixed plugins showing its icon even when auto hide menus is enabled.\n\n|cFFFFFF00-|r .Updates slash command 'worldboss' now it shows Draenor bosses.\n\n|cFFFFFF00v3.3.0 (|cFFFFCC00Nov 25, 2014|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Added 3D models for the bars in the window. The options are at Appearance -> Rows: Advanced.\n\n|cFFFFFF00-|r Now when showing custom displays, clicking on a bar report what is shown on bar's tooltip.\n\n|cFFFFFF00-|r More fixes for dungeon bosses identification.\n\n|cFFFFFF00-|r Fixed a tooltip bug with Debuff Uptime and Aura & Voidzone displays.\n\n|cFFFFFF00-|r Fixed Player Details Window for friendly fire and damage taken.\n\n|cFFFFFF00-|r Fixed Molten Core Raid Finder version where all bosses was considered trash segments.\n\n|cFFFFFF00v3.2.4 (|cFFFFCC00Nov 19, 2014|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r More fixes for dungeon bosses recognition.\n\n|cFFFFFF00-|r Fixes for few errors during combat parser.\n\n|cFFFFFF00v3.2.3 (|cFFFFCC00Nov 18, 2014|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Fixed Monk's Stagger ability which was counting as damage done.\n\n|cFFFFFF00-|r Added WoD dungeon information, this fixes dungeon bosses being assigned as 'trash cleanup'.\n\n|cFFFFFF00-|r Added more information on API.txt document (is in Details! root folder).\n\n|cFFFFFF00v3.2.1 (|cFFFFCC00Nov 14, 2014|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Custom Displays updated to track WoD potions.\n\n|cFFFFFF00-|r Added Feedback panel at options panel.\n\n|cFFFFFF00v3.2.0 (|cFFFFCC00Nov 11, 2014|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Major changes on the way Details! store information, these changes saves up to 40% memory and 4% cpu usage.\n\n|cFFFFFF00-|r Fixed problem with pet's healing messing with the owner activity time.\n\n|cFFFFFF00-|r Added Energy -> Resources.\n\n|cFFFFFF00-|r Fixed combat initialization when the player start casting a Dot spell.\n\n|cFFFFFF00-|r Added new custom display: Damage Taken By Spell.\n\n|cFFFFFF00v2.2.3 (|cFFFFCC00Oct 26, 2014|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Fixed the healing done problem with Priest's Spirit of Redemption.\n\n|cFFFFFF00-|r Fixed avoidance by absorb when the hit missed was a multistrike hit.\n\n|cFFFFFF00-|r Fixed a script time out problem when erasing data while in combat.\n\n|cFFFFFF00-|r Fixed bug with interrupt tooltip when the player have a pet.\n\n|cFFFFFF00v2.2.1 (|cFFFFCC00Oct 22, 2014|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Fixed the gap between the button and its menu which sometimes traveling the mouse between them was activating tooltips from window's bars.\n\n|cFFFFFF00-|r Fixed an annoying menu blink when the window was near the right side of the screen.\n\n|cFFFFFF00-|r Fixed the stretch grab which was over other windows even with the 'stretch always on top' option disabled.\n\n|cFFFFFF00-|r Few fixes on healing done from absorbs.\n\n|cFFFFFF00v2.1.6 (|cFFFFCC00Oct 21, 2014|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Fixed death's tooltip which wasn't respecting tooltip's configuration set on options panel.\n\n|cFFFFFF00-|r Now when the window is close to the top of the screen, menus will anchor on bottom side of the menu icons.\n\n|cFFFFFF00-|r Added micro displays options on Window Settings bracket.\n\n|cFFFFFF00-|r Fixed the problem with bar's custom texts." Loc ["STRING_DETAILS1"] = "|cffffaeaeDetails!:|r " diff --git a/classes/classe_damage.lua b/classes/classe_damage.lua index b549aaf8..2002525b 100644 --- a/classes/classe_damage.lua +++ b/classes/classe_damage.lua @@ -1351,7 +1351,7 @@ function atributo_damage:AtualizaBarra (instancia, barras_container, qual_barra, dps = _math_floor (dps) local formated_damage = SelectedToKFunction (_, damage_total) local formated_dps = SelectedToKFunction (_, dps) - --esta_barra.ps_text = formated_dps + esta_barra.ps_text = formated_dps if (UsingCustomRightText) then esta_barra.texto_direita:SetText (_string_replace (instancia.row_info.textR_custom_text, formated_damage, formated_dps, porcentagem, self)) @@ -1365,10 +1365,11 @@ function atributo_damage:AtualizaBarra (instancia, barras_container, qual_barra, dps = _math_floor (dps) local formated_damage = SelectedToKFunction (_, damage_total) local formated_dps = SelectedToKFunction (_, dps) + esta_barra.ps_text = formated_dps if (UsingCustomRightText) then esta_barra.texto_direita:SetText (_string_replace (instancia.row_info.textR_custom_text, formated_dps, formated_damage, porcentagem, self)) - else + else esta_barra.texto_direita:SetText (formated_dps .. " (" .. formated_damage .. ", " .. porcentagem .. "%)") --seta o texto da direita end esta_porcentagem = _math_floor ((dps/instancia.top) * 100) --> determina qual o tamanho da barra @@ -1379,6 +1380,7 @@ function atributo_damage:AtualizaBarra (instancia, barras_container, qual_barra, local formated_damage_taken = SelectedToKFunction (_, self.damage_taken) local formated_dtps = SelectedToKFunction (_, dtps) + esta_barra.ps_text = formated_dtps if (UsingCustomRightText) then esta_barra.texto_direita:SetText (_string_replace (instancia.row_info.textR_custom_text, formated_damage_taken, formated_dtps, porcentagem, self)) @@ -1403,6 +1405,7 @@ function atributo_damage:AtualizaBarra (instancia, barras_container, qual_barra, dps = _math_floor (dps) local formated_damage = SelectedToKFunction (_, damage_total) local formated_dps = SelectedToKFunction (_, dps) + esta_barra.ps_text = formated_dps if (UsingCustomRightText) then esta_barra.texto_direita:SetText (_string_replace (instancia.row_info.textR_custom_text, formated_damage, formated_dps, porcentagem, self)) diff --git a/classes/classe_heal.lua b/classes/classe_heal.lua index 305e6c8f..d0d90fc3 100644 --- a/classes/classe_heal.lua +++ b/classes/classe_heal.lua @@ -611,6 +611,7 @@ function atributo_heal:AtualizaBarra (instancia, barras_container, qual_barra, l hps = _math_floor (hps) local formated_heal = SelectedToKFunction (_, healing_total) local formated_hps = SelectedToKFunction (_, hps) + esta_barra.ps_text = formated_hps if (UsingCustomRightText) then esta_barra.texto_direita:SetText (_string_replace (instancia.row_info.textR_custom_text, formated_heal, formated_hps, porcentagem, self)) @@ -624,6 +625,7 @@ function atributo_heal:AtualizaBarra (instancia, barras_container, qual_barra, l hps = _math_floor (hps) local formated_heal = SelectedToKFunction (_, healing_total) local formated_hps = SelectedToKFunction (_, hps) + esta_barra.ps_text = formated_hps if (UsingCustomRightText) then esta_barra.texto_direita:SetText (_string_replace (instancia.row_info.textR_custom_text, formated_hps, formated_heal, porcentagem, self)) diff --git a/functions/profiles.lua b/functions/profiles.lua index 96b891b0..6b85e02a 100644 --- a/functions/profiles.lua +++ b/functions/profiles.lua @@ -320,6 +320,9 @@ function _detalhes:ApplyProfile (profile_name, nosave, is_copy) if (skin.skin == "Default Skin") then skin.skin = "WoW Interface" end + if (skin.skin == "ElvUI Frame Style BW") then + skin.skin = "ElvUI Style II" + end --> fix for old left and right menus (15-10) if (skin.menu_icons and type (skin.menu_icons[5]) ~= "boolean") then diff --git a/functions/skins.lua b/functions/skins.lua index 82a0da3b..68402c28 100644 --- a/functions/skins.lua +++ b/functions/skins.lua @@ -73,22 +73,22 @@ local _ instance_cprops = { ["hide_in_combat_type"] = 1, ["color"] = { - 1, -- [1] - 1, -- [2] - 1, -- [3] - 1, -- [4] + 1, + 1, + 1, + 1, }, ["menu_anchor"] = { - 13, -- [1] - 2, -- [2] + 13, + 2, ["side"] = 2, }, ["bg_r"] = 0.0941, ["color_buttons"] = { - 1, -- [1] - 1, -- [2] - 1, -- [3] - 1, -- [4] + 1, + 1, + 1, + 1, }, ["bars_sort_direction"] = 1, ["attribute_text"] = { @@ -97,14 +97,14 @@ local _ ["side"] = 1, ["text_size"] = 10, ["anchor"] = { - 5, -- [1] - 3, -- [2] + 5, + 3, }, ["text_color"] = { - 0.823529411764706, -- [1] - 0.549019607843137, -- [2] - 0, -- [3] - 1, -- [4] + 0.823529411764706, + 0.549019607843137, + 0, + 1, }, ["text_face"] = "Friz Quadrata TT", }, @@ -120,9 +120,9 @@ local _ ["only_in_group"] = true, ["icon"] = "Interface\\ICONS\\INV_Sigil_Thorim", ["color"] = { - 1, -- [1] - 1, -- [2] - 1, -- [3] + 1, + 1, + 1, }, }, ["hide_out_of_combat"] = false, @@ -136,10 +136,10 @@ local _ ["hide_in_combat_alpha"] = 0, ["plugins_grow_direction"] = 2, ["menu_icons"] = { - true, -- [1] - true, -- [2] - true, -- [3] - true, -- [4] + true, + true, + true, + true, true, -- [5] true, -- [6] }, @@ -148,9 +148,9 @@ local _ ["statusbar_info"] = { ["alpha"] = 1, ["overlay"] = { - 1, -- [1] - 1, -- [2] - 1, -- [3] + 1, + 1, + 1, }, }, ["window_scale"] = 1, @@ -165,9 +165,9 @@ local _ ["textL_outline"] = true, ["icon_file"] = "Interface\\AddOns\\Details\\images\\classes_small", ["fixed_texture_color"] = { - 0, -- [1] - 0, -- [2] - 0, -- [3] + 0, + 0, + 0, }, ["texture_background_file"] = "Interface\\AddOns\\Details\\images\\bar4", ["texture_highlight"] = "Interface\\FriendsFrame\\UI-FriendsList-Highlight", @@ -181,27 +181,27 @@ local _ ["between"] = 2, }, ["fixed_texture_background_color"] = { - 0.619607, -- [1] - 0.619607, -- [2] - 0.619607, -- [3] - 0.116164, -- [4] + 0.619607, + 0.619607, + 0.619607, + 0.116164, }, ["textR_custom_text"] = "{data1} ({data2}, {data3}%)", ["start_after_icon"] = true, ["font_face_file"] = "Fonts\\ARIALN.TTF", ["fixed_text_color"] = { - 1, -- [1] - 1, -- [2] - 1, -- [3] + 1, + 1, + 1, }, ["backdrop"] = { ["enabled"] = false, ["size"] = 6, ["color"] = { - 0, -- [1] - 0, -- [2] - 0, -- [3] - 0.305214, -- [4] + 0, + 0, + 0, + 0.305214, }, ["texture"] = "Details BarBorder 2", }, @@ -221,8 +221,8 @@ local _ }, ["menu_anchor_down"] = { ["side"] = 2, - -14, -- [1] - -3, -- [2] + -14, + -3, }, ["toolbar_side"] = 1, ["bg_g"] = 0.0941, @@ -432,27 +432,27 @@ local _ ["between"] = 0, }, ["fixed_texture_background_color"] = { - 0, -- [1] - 0, -- [2] - 0, -- [3] - 0.4416468441486359, -- [4] + 0, + 0, + 0, + 0.4416468441486359, }, ["textR_custom_text"] = "{data1} ({data2}, {data3}%)", ["texture"] = "Details Serenity", ["font_face_file"] = "Interface\\Addons\\Details\\fonts\\Accidental Presidency.ttf", ["fixed_text_color"] = { - 1, -- [1] - 1, -- [2] - 1, -- [3] + 1, + 1, + 1, }, ["backdrop"] = { ["enabled"] = false, ["size"] = 1, ["color"] = { - 1, -- [1] - 1, -- [2] - 1, -- [3] - 1, -- [4] + 1, + 1, + 1, + 1, }, ["texture"] = "Details BarBorder 2", }, @@ -469,9 +469,9 @@ local _ ["texture_file"] = "Interface\\AddOns\\Details\\images\\bar_serenity", ["start_after_icon"] = false, ["fixed_texture_color"] = { - 0, -- [1] - 0, -- [2] - 0, -- [3] + 0, + 0, + 0, }, }, ["attribute_text"] = { @@ -480,21 +480,21 @@ local _ ["side"] = 1, ["text_size"] = 9, ["anchor"] = { - -20, -- [1] - 4, -- [2] + -20, + 4, }, ["text_color"] = { - 1, -- [1] - 1, -- [2] - 1, -- [3] - 0.7, -- [4] + 1, + 1, + 1, + 0.7, }, ["text_face"] = "Friz Quadrata TT", }, ["menu_anchor_down"] = { - 15, -- [1] - -3, -- [2] + 15, + -3, }, ["plugins_grow_direction"] = 1, ["show_sidebars"] = false, @@ -576,40 +576,40 @@ local _ instance_cprops = { ["hide_in_combat_type"] = 1, ["color"] = { - 0, -- [1] - 0, -- [2] - 0, -- [3] - 1, -- [4] + 0, + 0, + 0, + 1, }, ["menu_anchor"] = { - 14, -- [1] - 2, -- [2] + 14, + 2, ["side"] = 2, }, ["bg_r"] = 0, ["following"] = { ["enabled"] = false, ["bar_color"] = { - 1, -- [1] - 1, -- [2] - 1, -- [3] + 1, + 1, + 1, }, ["text_color"] = { - 1, -- [1] - 1, -- [2] - 1, -- [3] + 1, + 1, + 1, }, }, ["color_buttons"] = { - 1, -- [1] - 1, -- [2] - 1, -- [3] - 1, -- [4] + 1, + 1, + 1, + 1, }, ["bars_sort_direction"] = 1, ["instance_button_anchor"] = { - -27, -- [1] - 1, -- [2] + -27, + 1, }, ["name"] = "new simple gray 2", ["attribute_text"] = { @@ -617,16 +617,16 @@ local _ ["shadow"] = true, ["side"] = 1, ["text_color"] = { - 0.768627450980392, -- [1] - 0.768627450980392, -- [2] - 0.768627450980392, -- [3] - 1, -- [4] + 0.768627450980392, + 0.768627450980392, + 0.768627450980392, + 1, }, ["custom_text"] = "{name}", ["text_face"] = "FORCED SQUARE", ["anchor"] = { - -16, -- [1] - 5, -- [2] + -16, + 5, }, ["text_size"] = 12, ["enable_custom_text"] = false, @@ -644,18 +644,18 @@ local _ ["only_in_group"] = true, ["icon"] = "Interface\\ICONS\\INV_Sigil_Thorim", ["color"] = { - 1, -- [1] - 1, -- [2] - 1, -- [3] + 1, + 1, + 1, }, }, ["micro_displays_side"] = 2, ["plugins_grow_direction"] = 1, ["menu_icons"] = { - true, -- [1] - true, -- [2] - true, -- [3] - true, -- [4] + true, + true, + true, + true, true, -- [5] true, -- [6] ["space"] = -4, @@ -666,9 +666,9 @@ local _ ["statusbar_info"] = { ["alpha"] = 1, ["overlay"] = { - 0, -- [1] - 0, -- [2] - 0, -- [3] + 0, + 0, + 0, }, }, ["window_scale"] = 1, @@ -681,9 +681,9 @@ local _ ["textR_outline"] = false, ["textL_outline"] = false, ["fixed_texture_color"] = { - 0, -- [1] - 0, -- [2] - 0, -- [3] + 0, + 0, + 0, }, ["icon_file"] = "Interface\\AddOns\\Details\\images\\classes_small_alpha", ["textL_show_number"] = true, @@ -693,9 +693,9 @@ local _ ["textR_custom_text"] = "{data1} ({data2}, {data3}%)", ["textL_enable_custom_text"] = false, ["fixed_text_color"] = { - 1, -- [1] - 1, -- [2] - 1, -- [3] + 1, + 1, + 1, }, ["space"] = { ["right"] = -10, @@ -703,10 +703,10 @@ local _ ["between"] = 1, }, ["fixed_texture_background_color"] = { - 0, -- [1] - 0, -- [2] - 0, -- [3] - 0.2, -- [4] + 0, + 0, + 0, + 0.2, }, ["texture_background_class_color"] = false, ["start_after_icon"] = false, @@ -715,10 +715,10 @@ local _ ["enabled"] = false, ["size"] = 12, ["color"] = { - 1, -- [1] - 1, -- [2] - 1, -- [3] - 1, -- [4] + 1, + 1, + 1, + 1, }, ["texture"] = "Details BarBorder 2", }, @@ -745,8 +745,8 @@ local _ ["percent_type"] = 1, }, ["menu_anchor_down"] = { - -20, -- [1] - -3, -- [2] + -20, + -3, }, ["toolbar_side"] = 1, ["bg_g"] = 0, @@ -758,16 +758,16 @@ local _ ["enabled"] = false, ["width"] = 265.999943487933, ["texcoord"] = { - 0.342000007629395, -- [1] - 0.00100000001490116, -- [2] - 1, -- [3] - 0.573999977111816, -- [4] + 0.342000007629395, + 0.00100000001490116, + 1, + 0.573999977111816, }, ["overlay"] = { - 0, -- [1] - 0, -- [2] - 0, -- [3] - 0.807841360569, -- [4] + 0, + 0, + 0, + 0.807841360569, }, ["anchor"] = "all", ["height"] = 226.000007591173, @@ -1058,12 +1058,12 @@ local _ } }) - _detalhes:InstallSkin ("ElvUI Frame Style BW", { - file = [[Interface\AddOns\Details\images\skins\elvui]], + _detalhes:InstallSkin ("ElvUI Style II", { + file = [[Interface\AddOns\Details\images\skins\elvui_opaque]], author = "Details!", version = "1.0", site = "unknown", - desc = "This skin is based on ElvUI's addons, with black and white frames and bars.", + desc = "This skin is based on ElvUI's addons, with an opaque title bar.", --general can_change_alpha_head = true, @@ -1097,95 +1097,131 @@ local _ --[[ when a skin is selected, all customized properties of the window is reseted and then the overwrites are applied]] --[[ for the complete cprop list see the file classe_instancia_include.lua]] instance_cprops = { - - menu_icons_size = 0.90, - menu_anchor = {16, 2, side = 2}, - menu_anchor_down = {16, -2}, - plugins_grow_direction = 1, - - attribute_text = {enabled = true, anchor = {-20, 5}, text_face = "Accidental Presidency", text_size = 12, text_color = {1, 1, 1, .7}, side = 1, shadow = true}, - - hide_icon = true, - desaturated_menu = true, - - bg_alpha = 0.51, - bg_r = 0.3294, - bg_g = 0.3294, - bg_b = 0.3294, - show_statusbar = false, - - row_info = { + ["show_statusbar"] = false, + ["color"] = {1,1,1,1}, + ["menu_anchor"] = {17, 2, ["side"] = 2}, + ["bg_r"] = 0.517647058823529, + ["following"] = { + ["enabled"] = false, + ["bar_color"] = {1,1,1}, + ["text_color"] = {1,1,1}, + }, + ["color_buttons"] = {1,1,1,1}, + ["bars_sort_direction"] = 1, + ["instance_button_anchor"] = {-27,1}, + ["row_info"] = { ["textR_outline"] = false, ["textL_outline"] = false, - ["icon_file"] = "Interface\\AddOns\\Details\\images\\classes_small_alpha_bw", - ["percent_type"] = 1, - ["texture_highlight"] = "Interface\\FriendsFrame\\UI-FriendsList-Highlight", - ["texture_background_file"] = "Interface\\AddOns\\Details\\images\\bar_serenity", - ["textR_enable_custom_text"] = false, - ["texture_background_class_color"] = false, ["textL_enable_custom_text"] = false, - ["textL_show_number"] = true, + ["icon_file"] = "Interface\\AddOns\\Details\\images\\classes_small_alpha", + ["texture_background_file"] = "Interface\\AddOns\\Details\\images\\BantoBar", + ["start_after_icon"] = false, + ["texture_highlight"] = "Interface\\FriendsFrame\\UI-FriendsList-Highlight", + ["textR_enable_custom_text"] = false, + ["textR_custom_text"] = "{data1} ({data2}, {data3}%)", + ["percent_type"] = 1, + ["fixed_text_color"] = {0.905882352941177,0.905882352941177,0.905882352941177,1}, ["space"] = { ["right"] = -2, ["left"] = 1, - ["between"] = 0, + ["between"] = 1, }, - ["fixed_texture_background_color"] = { - 0, -- [1] - 0, -- [2] - 0, -- [3] - 0.20, -- [4] - }, - ["textR_custom_text"] = "{data1} ({data2}, {data3}%)", - ["start_after_icon"] = false, + ["texture"] = "Skyline", + ["texture_background_class_color"] = false, + ["fixed_texture_background_color"] = {0,0,0,0.295484036207199}, ["font_face_file"] = "Fonts\\ARIALN.TTF", - ["fixed_text_color"] = { - 0.9058823529411765, -- [1] - 0.9058823529411765, -- [2] - 0.9058823529411765, -- [3] - 1, -- [4] - }, - ["backdrop"] = { - ["enabled"] = true, - ["size"] = 10, - ["color"] = { - 0, -- [1] - 0, -- [2] - 0, -- [3] - 1, -- [4] - }, - ["texture"] = "Details BarBorder 2", - }, - ["textL_class_colors"] = false, - ["textL_custom_text"] = "{data1}. {data3}{data2}", + ["alpha"] = 1, ["textR_class_colors"] = false, - ["alpha"] = 0.3999999761581421, + ["models"] = { + ["upper_model"] = "Spells\\AcidBreath_SuperGreen.M2", + ["lower_model"] = "World\\EXPANSION02\\DOODADS\\Coldarra\\COLDARRALOCUS.m2", + ["upper_alpha"] = 0.5, + ["lower_enabled"] = false, + ["lower_alpha"] = 0.1, + ["upper_enabled"] = false, + }, + ["backdrop"] = { + ["enabled"] = false, + ["size"] = 5, + ["color"] = {0, 0, 0, 1}, + ["texture"] = "Details BarBorder 1", + }, + ["texture_background"] = "BantoBar", + ["textL_custom_text"] = "{data1}. {data3}{data2}", ["no_icon"] = false, ["font_size"] = 10, - ["texture_background"] = "Details Serenity", + ["textL_class_colors"] = false, ["font_face"] = "Arial Narrow", - ["texture_class_colors"] = false, + ["texture_class_colors"] = true, ["height"] = 14, - ["texture_file"] = "Interface\\AddOns\\Details\\images\\bar4", - ["texture"] = "Skyline", - ["fixed_texture_color"] = { - 0.8627450980392157, -- [1] - 0.8627450980392157, -- [2] - 0.8627450980392157, -- [3] - 1, -- [4] - }, + ["texture_file"] = "Interface\\AddOns\\Details\\images\\bar_skyline", + ["textL_show_number"] = true, + ["fixed_texture_color"] = {0.862745098039216,0.862745098039216,0.862745098039216,1}, }, - - wallpaper = { - overlay = {1, 1, 1}, - width = 256, - texcoord = {49/1024, 305/1024, 646/1024, 774/1024}, - enabled = true, - anchor = "all", - height = 128, - alpha = 0.8, - texture = [[Interface\AddOns\Details\images\skins\elvui]], - } + ["bars_grow_direction"] = 1, + ["menu_alpha"] = { + ["enabled"] = false, + ["onleave"] = 1, + ["ignorebars"] = false, + ["iconstoo"] = true, + ["onenter"] = 1, + }, + ["total_bar"] = { + ["enabled"] = false, + ["only_in_group"] = true, + ["icon"] = "Interface\\ICONS\\INV_Sigil_Thorim", + ["color"] = {1,1,1}, + }, + ["plugins_grow_direction"] = 1, + ["strata"] = "LOW", + ["show_sidebars"] = true, + ["hide_in_combat_alpha"] = 0, + ["menu_icons"] = {true,true,true,true,true, true, ["space"] = -4, ["shadow"] = true}, + ["desaturated_menu"] = false, + ["auto_hide_menu"] = { + ["left"] = false, + ["right"] = false, + }, + ["window_scale"] = 1.00999999046326, + ["grab_on_top"] = false, + ["menu_anchor_down"] = {16, -2}, + ["statusbar_info"] = { + ["alpha"] = 1, + ["overlay"] = {1,1,1}, + }, + ["hide_icon"] = true, + ["micro_displays_side"] = 2, + ["bg_alpha"] = 0.659999966621399, + ["auto_current"] = true, + ["toolbar_side"] = 1, + ["bg_g"] = 0.517647058823529, + ["backdrop_texture"] = "Details Ground", + ["hide_in_combat"] = false, + ["skin"] = "ElvUI Style II", + ["menu_icons_size"] = 0.850000023841858, + ["wallpaper"] = { + ["enabled"] = true, + ["width"] = 265.999979475717, + ["texcoord"] = {0.0480000019073486,0.298000011444092,0.630999984741211,0.755999984741211}, + ["overlay"] = {0.999997794628143,0.999997794628143,0.999997794628143,0.799998223781586}, + ["anchor"] = "all", + ["height"] = 226.000007591173, + ["alpha"] = 0.800000071525574, + ["texture"] = "Interface\\AddOns\\Details\\images\\skins\\elvui", + }, + ["stretch_button_side"] = 1, + ["attribute_text"] = { + ["enabled"] = true, + ["shadow"] = true, + ["side"] = 1, + ["enable_custom_text"] = false, + ["custom_text"] = "{name}", + ["text_face"] = "Accidental Presidency", + ["anchor"] = {-18,5}, + ["text_color"] = {1,1,1,0.7}, + ["text_size"] = 12, + }, + ["bg_b"] = 0.517647058823529, }, skin_options = { diff --git a/gumps/janela_options.lua b/gumps/janela_options.lua index b9f081ad..972d38ef 100644 --- a/gumps/janela_options.lua +++ b/gumps/janela_options.lua @@ -5884,8 +5884,13 @@ function window:CreateFrame6() frame6.WindowScaleSlider:SetPoint ("left", frame6.WindowScaleLabel, "right", 2) window:CreateLineBackground2 (frame6, "WindowScaleSlider", "WindowScaleLabel", Loc ["STRING_OPTIONS_WINDOW_SCALE_DESC"]) - - + + frame6.WindowScaleSlider:SetHook ("OnEnter", function() + _detalhes:CooltipPreset (2) + GameCooltip:AddLine (string.format (Loc ["STRING_OPTIONS_WINDOW_SCALE_DESC"], _G.DetailsOptionsWindow.instance.window_scale)) + GameCooltip:ShowCooltip (frame6.WindowScaleSlider.widget, "tooltip") + return true + end) --general anchor g:NewLabel (frame6, _, "$parentAdjustmentsAnchor", "AdjustmentsAnchorLabel", Loc ["STRING_OPTIONS_WINDOW_ANCHOR"], "GameFontNormal") diff --git a/gumps/janela_principal.lua b/gumps/janela_principal.lua index 3cc40715..323c1a1f 100644 --- a/gumps/janela_principal.lua +++ b/gumps/janela_principal.lua @@ -66,19 +66,26 @@ local menu_wallpaper_color = {1, 1, 1, 0.1} local DEFAULT_SKIN = [[Interface\AddOns\Details\images\skins\classic_skin]] --local COORDS_LEFT_BALL = {0.15673828125, 0.27978515625, 0.08251953125, 0.20556640625} -- 160 84 287 211 (updated) - --160 84 287 211 - local COORDS_LEFT_BALL = {0.15576171875, 0.27978515625, 0.08251953125, 0.20556640625} -- 160 84 287 211 (updated) + --local COORDS_LEFT_BALL = {0.15576171875, 0.27978515625, 0.08251953125, 0.20556640625} -- 160 84 287 211 (updated) + local COORDS_LEFT_BALL = {0.15625, 0.2802734375, 0.08203125, 0.2060546875} -- 160 287 84 211 - local COORDS_LEFT_CONNECTOR = {0.29541015625, 0.30126953125, 0.08251953125, 0.20556640625} --302 84 309 211 (updated) - local COORDS_LEFT_CONNECTOR_NO_ICON = {0.58837890625, 0.59423828125, 0.08251953125, 0.20556640625} -- 602 84 609 211 (updated) - local COORDS_TOP_BACKGROUND = {0.15673828125, 0.65478515625, 0.22314453125, 0.34619140625} -- 160 228 671 355 (updated) + --local COORDS_LEFT_CONNECTOR = {0.29541015625, 0.30126953125, 0.08251953125, 0.20556640625} --302 84 309 211 (updated) + local COORDS_LEFT_CONNECTOR = {0.294921875, 0.3017578125, 0.08203125, 0.2060546875} --302 84 309 211 (updated) + + --local COORDS_LEFT_CONNECTOR_NO_ICON = {0.58837890625, 0.59423828125, 0.08251953125, 0.20556640625} -- 602 84 609 211 (updated) + local COORDS_LEFT_CONNECTOR_NO_ICON = {0.587890625+0.00048828125, 0.5947265625, 0.08203125, 0.2060546875} -- 602 609 x 84 211 + + --local COORDS_TOP_BACKGROUND = {0.15673828125, 0.65478515625, 0.22314453125, 0.34619140625} -- 160 228 671 355 (updated) + local COORDS_TOP_BACKGROUND = {0.15625, 0.6552734375, 0.22265625, 0.3466796875} -- 160 671 x 228 355 --local COORDS_RIGHT_BALL = {0.31591796875, 0.43994140625, 0.08251953125, 0.20556640625} --324 84 451 211 (updated) - local COORDS_RIGHT_BALL = {0.3154296875+0.00048828125, 0.439453125+0.00048828125, 0.08203125, 0.2060546875-0.00048828125} --323 84 450 211 (updated) + --local COORDS_RIGHT_BALL = {0.3154296875+0.00048828125, 0.439453125+0.00048828125, 0.08203125, 0.2060546875-0.00048828125} --323 84 450 211 (updated) + local COORDS_RIGHT_BALL = {0.3154296875, 0.439453125, 0.08203125, 0.2060546875} -- 323 450 x 84 211 --local COORDS_LEFT_BALL_NO_ICON = {0.44970703125, 0.57275390625, 0.08251953125, 0.20556640625} --460 84 587 211 (updated) - local COORDS_LEFT_BALL_NO_ICON = {0.44970703125, 0.57275390625, 0.08251953125, 0.20556640625} --460 84 587 211 (updated) 588 212 --local COORDS_LEFT_BALL_NO_ICON = {0.44921875, 0.57421875, 0.08203125, 0.20703125} --460 84 588 212 (updated) + --local COORDS_LEFT_BALL_NO_ICON = {0.44970703125, 0.57275390625, 0.08251953125, 0.20556640625} --460 84 587 211 (updated) 588 212 + local COORDS_LEFT_BALL_NO_ICON = {0.44921875, 0.5732421875, 0.08203125, 0.2060546875} -- 460 587 84 211 --local COORDS_LEFT_SIDE_BAR = {0.76611328125, 0.82763671875, 0.00244140625, 0.50146484375} -- 784 2 848 514 (updated) local COORDS_LEFT_SIDE_BAR = {0.765625, 0.828125, 0.001953125, 0.501953125} -- 784 2 848 514 (updated) @@ -94,7 +101,9 @@ local menu_wallpaper_color = {1, 1, 1, 0.1} local COORDS_SLIDER_MIDDLE = {0.00146484375, 0.03076171875, 0.03955078125, 0.10009765625} -- 1 40 32 103 -ok local COORDS_SLIDER_DOWN = {0.00146484375, 0.03076171875, 0.10986328125, 0.13916015625} -- 1 112 32 143 -ok - local COORDS_STRETCH = {0.00146484375, 0.03076171875, 0.21435546875, 0.22802734375} -- 1 219 32 234 -ok + --local COORDS_STRETCH = {0.00146484375, 0.03076171875, 0.21435546875, 0.22802734375} -- 1 219 32 234 -ok + local COORDS_STRETCH = {0.0009765625, 0.03125, 0.2138671875, 0.228515625} -- 1 32 219 234 + local COORDS_RESIZE_RIGHT = {0.00146484375, 0.01513671875, 0.24560546875, 0.25927734375} -- 1 251 16 266 -ok local COORDS_RESIZE_LEFT = {0.02001953125, 0.03173828125, 0.24560546875, 0.25927734375} -- 20 251 33 266 -ok diff --git a/images/skins/default_skin.tga b/images/skins/default_skin.tga index d1400577..84a5f5f7 100644 Binary files a/images/skins/default_skin.tga and b/images/skins/default_skin.tga differ diff --git a/images/skins/elvui_opaque.tga b/images/skins/elvui_opaque.tga new file mode 100644 index 00000000..cc293775 Binary files /dev/null and b/images/skins/elvui_opaque.tga differ diff --git a/startup.lua b/startup.lua index 89603143..b6cb42b7 100644 --- a/startup.lua +++ b/startup.lua @@ -485,6 +485,7 @@ function _G._detalhes:Start() --test realtime dps --[[ + local floor = floor local real_time_frame = CreateFrame ("frame", nil, UIParent) local instance = _detalhes:GetInstance (1) real_time_frame:SetScript ("OnUpdate", function (self, elapsed) @@ -496,9 +497,8 @@ function _G._detalhes:Start() local actor = row.minha_tabela if (actor) then local dps_text = row.ps_text - if (dps_text) then - local new_dps = math.floor (actor.total / (GetTime() - instance.showing.start_time_float)) + local new_dps = floor (actor.total / instance.showing:GetCombatTime()) local formated_dps = _detalhes.ToKFunctions [_detalhes.ps_abbreviation] (_, new_dps) row.texto_direita:SetText (row.texto_direita:GetText():gsub (dps_text, formated_dps))