From bec0adfabf3de4e0248eaaa166aff55a4dc156e6 Mon Sep 17 00:00:00 2001 From: Tercioo Date: Sat, 23 Jan 2016 13:43:26 -0200 Subject: [PATCH] - force refresh after identify a player spec. - won't report if there is nothing to report. - added button on the right panel of the player details window. - done some polish on the player details window. - player details window won't open if the bar doesn't have a reference of the player it is showning. --- boot.lua | 7 +- classes/classe_instancia.lua | 5 + core/meta.lua | 3 + functions/playerclass.lua | 20 +-- gumps/janela_info.lua | 281 +++++++++++++++++++++++++---------- gumps/janela_principal.lua | 6 + 6 files changed, 233 insertions(+), 89 deletions(-) diff --git a/boot.lua b/boot.lua index 079e7450..44daf74f 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 = 2221 --it's 2221 for release - _detalhes.userversion = "v4.2.3" + _detalhes.userversion = "v4.2.4" _detalhes.realversion = 79 --core version _detalhes.version = _detalhes.userversion .. " (core " .. _detalhes.realversion .. ")" Details = _detalhes @@ -21,16 +21,17 @@ do local Loc = LibStub ("AceLocale-3.0"):GetLocale ( "Details" ) --[[ -|cFFFFFF00v4.2.3 (|cFFFFCC00Jan 22, 2016|r|cFFFFFF00)|r:\n\n +|cFFFFFF00v4.2.4 (|cFFFFCC00Jan 23, 2016|r|cFFFFFF00)|r:\n\n |cFFFFFF00-|r Added two new custom displays: Damage Done on targets marked with skull and Damage Done on targets marked with any other mark.\n\n |cFFFFFF00-|r Bookmark now supports Plugins.\n\n |cFFFFFF00-|r Fixed a gap when setting the bars to 'bottom to top' grow direction.\n\n |cFFFFFF00-|r Added a Scale options to Encounter Details plugin window.\n\n +|cFFFFFF00-|r Added a report button for targets of targets at the Player Details Window.\n\n --]] -- - Loc ["STRING_VERSION_LOG"] = "|cFFFFFF00v4.2.3 (|cFFFFCC00Jan 22, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Added two new custom displays: Damage Done on targets marked with skull and Damage Done on targets marked with any other mark.\n\n|cFFFFFF00-|r Bookmark now also supports Plugins.\n\n|cFFFFFF00-|r Added a Scale options to Encounter Details plugin window.\n\n|cFFFFFF00-|r Fixed a gap when setting the bars to 'bottom to top' grow direction.\n\n|cFFFFFF00v4.1.6 (|cFFFFCC00Jan 14, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Fixed the size of the right margin on tooltips.\n\n|cFFFFFF00v4.1.5 (|cFFFFCC00Jan 10, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Fix for the weakauras creator for DBM and BidWigs Timers.\n\n|cFFFFFF00-|r Fix for an issue with dungeon bosses where sometimes Details! throw some error messages.\n\n|cFFFFFF00-|r Attempt to fix a 'class undefined' bug.\n\n|cFFFFFF00v4.1.4 (|cFFFFCC00Jan 03, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Fixed an issue with the segment plugin for the statusbar.\n\n|cFFFFFF00v4.1.3 (|cFFFFCC00Jan 01, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Small visual improvement on tooltips.\n\n|cFFFFFF00-|r Fixed an issue when closing solo plugins with the red X button.\n\n|cFFFFFF00v4.1.2 (|cFFFFCC00Dec 31, 2015|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Fix for item level tracker.\n\n|cFFFFFF00v4.1.1 (|cFFFFCC00Dec 23, 2015|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Using LibItemUpgradeInfo library to retrive the item level of upgraded items.\n\n|cFFFFFF00v4.1.0 (|cFFFFCC00Dec 18, 2015|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Added new skin preset: 'New Gray'.\n\n|cFFFFFF00-|r Added a Dark skin for the Options Panel.\n\n|cFFFFFF00-|r Fixed an issue with the Plugin DPS Tuning when reseting data on Details!.\n\n|cFFFFFF00-|r Removed realm names from player at the Comparison Panel.\n\n|cFFFFFF00v4.0.8 (|cFFFFCC00Dec 13, 2015|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Framework and functions update for the next version of the Advanced Death Logs plugin.\n\n|cFFFFFF00v4.0.7 (|cFFFFCC00Dec 07, 2015|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Fixed some corner border for elvui skins.\n\n|cFFFFFF00-|r /run Details.death_tooltip_width = 500 makes the deathlog tooltip be 500 width.\n\n|cFFFFFF00v4.0.6e (|cFFFFCC00Nov 23, 2015|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Fixed an issue where sometimes some actors are duplicated at the end of an encounter.\n\n|cFFFFFF00-|r Fixed bookmark for segments (shift+right click).\n\n|cFFFFFF00-|r Fixed an issue with Chat Tab Embed when embeding only one window.\n\n|cFFFFFF00v4.0.6c (|cFFFFCC00Nov 04, 2015|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Added an option for numeral system: Western/East Asian.\n\n|cFFFFFF00v4.0.5c (|cFFFFCC00Oct 24, 2015|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Added an option to disable the all-displays window (right click on title bar).\n\n|cFFFFFF00-|r Added an option to suppress segment changes after killing a boss encounter (experimental).\n\n|cFFFFFF00-|r Fixed pet battles auto hide.\n\n|cFFFFFF00-|r Fixed an issue with bar animations starting from the middle of the bar.\n\n|cFFFFFF00-|r Fixed buffs and spell cast start on weakauras creator tool.\n\n|cFFFFFF00v4.0.3a (|cFFFFCC00Set 29, 2015|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Fix for an error on Damage Taken By Spell display.\n\n|cFFFFFF00v4.0.3 (|cFFFFCC00Set 27, 2015|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Some improvements on Plugin's icon at the title bar.\n\n|cFFFFFF00v4.0.2 (|cFFFFCC00Set 26, 2015|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Added 'ShielTronic Shield' on HealthPotion & Stone display.\n\n|cFFFFFF00-|r Improvements done on Vanguard Plugin.\n\n|cFFFFFF00-|r Fixed an alignment issue which was happening with few tooltips.\n\n|cFFFFFF00-|r Fixed a problem where sometimes the addon crashes while doing a /reload during raid.\n\n|cFFFFFF00-|r Fixed the creation of auras for weakauras from the Forge (/details forge).\n\n|cFFFFFF00v4.0.1 (|cFFFFCC00Set 21, 2015|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Added an options to use a customized skin file.\n\n|cFFFFFF00-|r Added an options to use a customized bar texture file.\n\n|cFFFFFF00-|r A Package with photoshop files with examples and the skin file for Minimalistic skin are available at WoW Interface.\n\n|cFFFFFF00-|r Added 'API Custom Displays.txt' on Details! folder, this file explain how to create scripts for custom displays.\n\n|cFFFFFF00v4.0h (|cFFFFCC00Set 19, 2015|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Created new plugin 'Target Caller' for RBGs, it's available at Curse.com.\n\n|cFFFFFF00-|r Fixed death display color when not using colored by the player class.\n\n|cFFFFFF00-|r Fixed a rare bug where the window for Encounter Details Plugin won't open when clicking on its icon.\n\n|cFFFFFF00-|r Added officer channel to 'Announce Death' feature.\n\n|cFFFFFF00v4.0f (|cFFFFCC00Set 16, 2015|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Fix for the title bar encounter timer.\n\n|cFFFFFF00v4.0e (|cFFFFCC00Set 14, 2015|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Added a custom display for Crowd Control Received.\n\n|cFFFFFF00-|r Weak Aura Creator Tool, now has full support for BigWigs and Dbm time bars.\n\n|cFFFFFF00-|r Auras for interrupt and dispelling has been added on the Weak Aura Creator Tool.\n\n|cFFFFFF00-|r Details! Forge now has support for DBM and BigWigs time bars.\n\n|cFFFFFF00-|r Solo Plugins now has a close button on their panels.\n\n|cFFFFFF00-|r Fixed damage/healing score message after a boss kill.\n\n|cFFFFFF00-|r Now, an alert to open the history panel is shown after killing a boss.\n\n|cFFFFFF00-|r Added a 'all-displays' menu when right clicking title bar.\n\n|cFFFFFF00-|r Removed few texture from bookmarks panel, now it has a more clean appearance.\n\n|cFFFFFF00-|r Updated Details! Framework.\n\n|cFFFFFF00-|r Added option in order to change the bar orientation.\n\n|cFFFFFF00-|r Added an option to make the menus on title bar work with clicks instead of hovering over them.\n\n|cFFFFFF00-|r Healing for battleground enemies is now placed on healing done instead of enemy healing done.\n\n|cFFFFFF00-|r Improvements on our support for Arena battles.\n\n|cFFFFFF00-|r Fixed some issues on the Player Detail Window.\n\n|cFFFFFF00-|r Fixed encounter time on title bar text.\n\n|cFFFFFF00-|r Fixed death display tooltip, wasn't respecting the font and size set on options panel.\n\n|cFFFFFF00v3.18.5 (|cFFFFCC00Aug 19, 2015|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Improvements on Weakauras creation from Encounter Details plugin.\n\n|cFFFFFF00-|r Improvements on 'Auto Switch to Current' feature. Details! windows are now more responsible about auto changing a segment while the player, for instance, has the report window opened.\n\n|cFFFFFF00-|r Added slash command '/de wipe'. It ends the raid encounter segment and stop capturing data.\nIf you are the raid leader, all other users of Details! will also stop.\nWorks great for players not make damage padding after a wipe call.\n\n|cFFFFFF00-|r Added the overheal made by pets on tooltip and player details window.\n\n|cFFFFFF00-|r Added an option to disable stretch button and bar highlight.\n\n|cFFFFFF00-|r Disabling nicknames now also disable avatars.\n\n|cFFFFFF00-|r Added 'spinal healing injector' on custom display 'Health Potion & Stone' used.\n\n|cFFFFFF00-|r Fixed title text width when auto-hide menu buttons is enabled.\n\n|cFFFFFF00-|r Fixed item level of timewarped items." + Loc ["STRING_VERSION_LOG"] = "|cFFFFFF00v4.2.4 (|cFFFFCC00Jan 23, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Added two new custom displays: Damage Done on targets marked with skull and Damage Done on targets marked with any other mark.\n\n|cFFFFFF00-|r Bookmark now also supports Plugins.\n\n|cFFFFFF00-|r Added a Scale options to Encounter Details plugin window.\n\n|cFFFFFF00-|r Added a report button for targets of targets at the Player Details Window.\n\n|cFFFFFF00-|r Fixed a gap when setting the bars to 'bottom to top' grow direction.\n\n|cFFFFFF00v4.1.6 (|cFFFFCC00Jan 14, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Fixed the size of the right margin on tooltips.\n\n|cFFFFFF00v4.1.5 (|cFFFFCC00Jan 10, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Fix for the weakauras creator for DBM and BidWigs Timers.\n\n|cFFFFFF00-|r Fix for an issue with dungeon bosses where sometimes Details! throw some error messages.\n\n|cFFFFFF00-|r Attempt to fix a 'class undefined' bug.\n\n|cFFFFFF00v4.1.4 (|cFFFFCC00Jan 03, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Fixed an issue with the segment plugin for the statusbar.\n\n|cFFFFFF00v4.1.3 (|cFFFFCC00Jan 01, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Small visual improvement on tooltips.\n\n|cFFFFFF00-|r Fixed an issue when closing solo plugins with the red X button.\n\n|cFFFFFF00v4.1.2 (|cFFFFCC00Dec 31, 2015|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Fix for item level tracker.\n\n|cFFFFFF00v4.1.1 (|cFFFFCC00Dec 23, 2015|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Using LibItemUpgradeInfo library to retrive the item level of upgraded items.\n\n|cFFFFFF00v4.1.0 (|cFFFFCC00Dec 18, 2015|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Added new skin preset: 'New Gray'.\n\n|cFFFFFF00-|r Added a Dark skin for the Options Panel.\n\n|cFFFFFF00-|r Fixed an issue with the Plugin DPS Tuning when reseting data on Details!.\n\n|cFFFFFF00-|r Removed realm names from player at the Comparison Panel.\n\n|cFFFFFF00v4.0.8 (|cFFFFCC00Dec 13, 2015|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Framework and functions update for the next version of the Advanced Death Logs plugin.\n\n|cFFFFFF00v4.0.7 (|cFFFFCC00Dec 07, 2015|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Fixed some corner border for elvui skins.\n\n|cFFFFFF00-|r /run Details.death_tooltip_width = 500 makes the deathlog tooltip be 500 width.\n\n|cFFFFFF00v4.0.6e (|cFFFFCC00Nov 23, 2015|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Fixed an issue where sometimes some actors are duplicated at the end of an encounter.\n\n|cFFFFFF00-|r Fixed bookmark for segments (shift+right click).\n\n|cFFFFFF00-|r Fixed an issue with Chat Tab Embed when embeding only one window.\n\n|cFFFFFF00v4.0.6c (|cFFFFCC00Nov 04, 2015|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Added an option for numeral system: Western/East Asian.\n\n|cFFFFFF00v4.0.5c (|cFFFFCC00Oct 24, 2015|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Added an option to disable the all-displays window (right click on title bar).\n\n|cFFFFFF00-|r Added an option to suppress segment changes after killing a boss encounter (experimental).\n\n|cFFFFFF00-|r Fixed pet battles auto hide.\n\n|cFFFFFF00-|r Fixed an issue with bar animations starting from the middle of the bar.\n\n|cFFFFFF00-|r Fixed buffs and spell cast start on weakauras creator tool.\n\n|cFFFFFF00v4.0.3a (|cFFFFCC00Set 29, 2015|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Fix for an error on Damage Taken By Spell display.\n\n|cFFFFFF00v4.0.3 (|cFFFFCC00Set 27, 2015|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Some improvements on Plugin's icon at the title bar.\n\n|cFFFFFF00v4.0.2 (|cFFFFCC00Set 26, 2015|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Added 'ShielTronic Shield' on HealthPotion & Stone display.\n\n|cFFFFFF00-|r Improvements done on Vanguard Plugin.\n\n|cFFFFFF00-|r Fixed an alignment issue which was happening with few tooltips.\n\n|cFFFFFF00-|r Fixed a problem where sometimes the addon crashes while doing a /reload during raid.\n\n|cFFFFFF00-|r Fixed the creation of auras for weakauras from the Forge (/details forge).\n\n|cFFFFFF00v4.0.1 (|cFFFFCC00Set 21, 2015|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Added an options to use a customized skin file.\n\n|cFFFFFF00-|r Added an options to use a customized bar texture file.\n\n|cFFFFFF00-|r A Package with photoshop files with examples and the skin file for Minimalistic skin are available at WoW Interface.\n\n|cFFFFFF00-|r Added 'API Custom Displays.txt' on Details! folder, this file explain how to create scripts for custom displays.\n\n|cFFFFFF00v4.0h (|cFFFFCC00Set 19, 2015|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Created new plugin 'Target Caller' for RBGs, it's available at Curse.com.\n\n|cFFFFFF00-|r Fixed death display color when not using colored by the player class.\n\n|cFFFFFF00-|r Fixed a rare bug where the window for Encounter Details Plugin won't open when clicking on its icon.\n\n|cFFFFFF00-|r Added officer channel to 'Announce Death' feature.\n\n|cFFFFFF00v4.0f (|cFFFFCC00Set 16, 2015|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Fix for the title bar encounter timer.\n\n|cFFFFFF00v4.0e (|cFFFFCC00Set 14, 2015|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Added a custom display for Crowd Control Received.\n\n|cFFFFFF00-|r Weak Aura Creator Tool, now has full support for BigWigs and Dbm time bars.\n\n|cFFFFFF00-|r Auras for interrupt and dispelling has been added on the Weak Aura Creator Tool.\n\n|cFFFFFF00-|r Details! Forge now has support for DBM and BigWigs time bars.\n\n|cFFFFFF00-|r Solo Plugins now has a close button on their panels.\n\n|cFFFFFF00-|r Fixed damage/healing score message after a boss kill.\n\n|cFFFFFF00-|r Now, an alert to open the history panel is shown after killing a boss.\n\n|cFFFFFF00-|r Added a 'all-displays' menu when right clicking title bar.\n\n|cFFFFFF00-|r Removed few texture from bookmarks panel, now it has a more clean appearance.\n\n|cFFFFFF00-|r Updated Details! Framework.\n\n|cFFFFFF00-|r Added option in order to change the bar orientation.\n\n|cFFFFFF00-|r Added an option to make the menus on title bar work with clicks instead of hovering over them.\n\n|cFFFFFF00-|r Healing for battleground enemies is now placed on healing done instead of enemy healing done.\n\n|cFFFFFF00-|r Improvements on our support for Arena battles.\n\n|cFFFFFF00-|r Fixed some issues on the Player Detail Window.\n\n|cFFFFFF00-|r Fixed encounter time on title bar text.\n\n|cFFFFFF00-|r Fixed death display tooltip, wasn't respecting the font and size set on options panel.\n\n|cFFFFFF00v3.18.5 (|cFFFFCC00Aug 19, 2015|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Improvements on Weakauras creation from Encounter Details plugin.\n\n|cFFFFFF00-|r Improvements on 'Auto Switch to Current' feature. Details! windows are now more responsible about auto changing a segment while the player, for instance, has the report window opened.\n\n|cFFFFFF00-|r Added slash command '/de wipe'. It ends the raid encounter segment and stop capturing data.\nIf you are the raid leader, all other users of Details! will also stop.\nWorks great for players not make damage padding after a wipe call.\n\n|cFFFFFF00-|r Added the overheal made by pets on tooltip and player details window.\n\n|cFFFFFF00-|r Added an option to disable stretch button and bar highlight.\n\n|cFFFFFF00-|r Disabling nicknames now also disable avatars.\n\n|cFFFFFF00-|r Added 'spinal healing injector' on custom display 'Health Potion & Stone' used.\n\n|cFFFFFF00-|r Fixed title text width when auto-hide menu buttons is enabled.\n\n|cFFFFFF00-|r Fixed item level of timewarped items." Loc ["STRING_DETAILS1"] = "|cffffaeaeDetails!:|r " diff --git a/classes/classe_instancia.lua b/classes/classe_instancia.lua index 208a44e8..d29213f7 100644 --- a/classes/classe_instancia.lua +++ b/classes/classe_instancia.lua @@ -3104,6 +3104,11 @@ function _detalhes:envia_relatorio (linhas, custom) local luta = nil if (not custom) then + + if (not linhas[1]) then + return _detalhes:Msg (Loc ["STRING_ACTORFRAME_NOTHING"]) + end + if (segmento == -1) then --overall --luta = Loc ["STRING_REPORT_LAST"] .. " " .. #_detalhes.tabela_historico.tabelas .. " " .. Loc ["STRING_REPORT_FIGHTS"] luta = _detalhes.tabela_overall.overall_enemy_name diff --git a/core/meta.lua b/core/meta.lua index da7b029c..343dd2c3 100644 --- a/core/meta.lua +++ b/core/meta.lua @@ -525,6 +525,7 @@ --> Limpa tabelas que não estejam em grupo if (conteudo) then if (_detalhes.clear_ungrouped) then + --if (not _detalhes.clear_ungrouped) then local _iter = {index = 1, data = conteudo[1], cleaned = 0} --> ._ActorTable[1] para pegar o primeiro index while (_iter.data) do --search key: ~deletar ~apagar @@ -601,6 +602,8 @@ if (conteudo) then if (_detalhes.clear_ungrouped) then + --não deleta dummies e actors de fora do grupo + --if (not _detalhes.clear_ungrouped) then local _iter = {index = 1, data = conteudo[1], cleaned = 0} --> ._ActorTable[1] para pegar o primeiro index diff --git a/functions/playerclass.lua b/functions/playerclass.lua index 0cc940a5..27b3047c 100644 --- a/functions/playerclass.lua +++ b/functions/playerclass.lua @@ -100,7 +100,7 @@ do if (Actor.minha_barra and type (Actor.minha_barra) == "table") then Actor.minha_barra.minha_tabela = nil - _detalhes:ScheduleWindowUpdate() + _detalhes:ScheduleWindowUpdate (2, true) end return class @@ -120,7 +120,7 @@ do if (Actor.minha_barra and type (Actor.minha_barra) == "table") then Actor.minha_barra.minha_tabela = nil - _detalhes:ScheduleWindowUpdate() + _detalhes:ScheduleWindowUpdate (2, true) end return class @@ -178,7 +178,7 @@ do if (Actor.minha_barra and type (Actor.minha_barra) == "table") then Actor.minha_barra.minha_tabela = nil - _detalhes:ScheduleWindowUpdate() + _detalhes:ScheduleWindowUpdate (2, true) end return spec @@ -201,7 +201,7 @@ do if (Actor.minha_barra and type (Actor.minha_barra) == "table") then Actor.minha_barra.minha_tabela = nil - _detalhes:ScheduleWindowUpdate() + _detalhes:ScheduleWindowUpdate (2, true) end return spec @@ -232,7 +232,7 @@ do if (Actor.minha_barra and type (Actor.minha_barra) == "table") then Actor.minha_barra.minha_tabela = nil - _detalhes:ScheduleWindowUpdate() + _detalhes:ScheduleWindowUpdate (2, true) end return spec @@ -274,7 +274,7 @@ do if (Actor.minha_barra and type (Actor.minha_barra) == "table") then Actor.minha_barra.minha_tabela = nil - _detalhes:ScheduleWindowUpdate() + _detalhes:ScheduleWindowUpdate (2, true) end return spec @@ -298,7 +298,7 @@ do if (Actor.minha_barra and type (Actor.minha_barra) == "table") then Actor.minha_barra.minha_tabela = nil - _detalhes:ScheduleWindowUpdate() + _detalhes:ScheduleWindowUpdate (2, true) end return spec @@ -322,7 +322,7 @@ do if (Actor.minha_barra and type (Actor.minha_barra) == "table") then Actor.minha_barra.minha_tabela = nil - _detalhes:ScheduleWindowUpdate() + _detalhes:ScheduleWindowUpdate (2, true) end return spec @@ -353,7 +353,7 @@ do if (Actor.minha_barra and type (Actor.minha_barra) == "table") then Actor.minha_barra.minha_tabela = nil - _detalhes:ScheduleWindowUpdate() + _detalhes:ScheduleWindowUpdate (2, true) end return spec @@ -378,7 +378,7 @@ do if (Actor.minha_barra and type (Actor.minha_barra) == "table") then Actor.minha_barra.minha_tabela = nil - _detalhes:ScheduleWindowUpdate() + _detalhes:ScheduleWindowUpdate (2, true) end return spec diff --git a/gumps/janela_info.lua b/gumps/janela_info.lua index c11e0af5..acc45af1 100644 --- a/gumps/janela_info.lua +++ b/gumps/janela_info.lua @@ -22,6 +22,7 @@ local sub_atributos = _detalhes.sub_atributos local info = _detalhes.janela_info local classe_icones = _G.CLASS_ICON_TCOORDS +local container3_bars_pointFunc ------------------------------------------------------------------------------------------------------------------------------ --self = instancia @@ -192,13 +193,20 @@ function gump:TrocaBackgroundInfo() info.bg3_sec_texture:Hide() info.bg2_sec_texture:Hide() + info.apoio_icone_esquerdo:Show() + info.apoio_icone_direito:Show() + + info.report_direita:Hide() + + for i = 1, 5 do + info ["right_background" .. i]:Show() + end + if (info.atributo == 1) then --> DANO if (info.sub_atributo == 1 or info.sub_atributo == 2) then --> damage done / dps - if (info.tipo ~= 1) then --> janela com as divisorias - info.bg1_sec_texture:SetTexture (nil) - info.tipo = 1 - end + info.bg1_sec_texture:SetTexture (nil) + info.tipo = 1 if (info.sub_atributo == 2) then info.targets:SetText (Loc ["STRING_TARGETS"] .. " " .. Loc ["STRING_ATTRIBUTE_DAMAGE_DPS"] .. ":") @@ -208,42 +216,57 @@ function gump:TrocaBackgroundInfo() end elseif (info.sub_atributo == 3) then --> damage taken - if (info.tipo ~= 2) then --> janela com fundo diferente - info.bg1_sec_texture:SetTexture ([[Interface\AddOns\Details\images\info_window_damagetaken]]) - info.bg3_sec_texture:Show() - info.bg2_sec_texture:Show() - info.tipo = 2 + + info.bg1_sec_texture:SetTexture ([[Interface\AddOns\Details\images\info_window_damagetaken]]) + info.bg3_sec_texture:Show() + info.bg2_sec_texture:Show() + info.tipo = 2 + + for i = 1, 5 do + info ["right_background" .. i]:Hide() end info.targets:SetText (Loc ["STRING_TARGETS"] .. ":") info.no_targets:Show() info.no_targets.text:Show() + info.apoio_icone_esquerdo:Hide() + info.apoio_icone_direito:Hide() + info.report_direita:Show() + elseif (info.sub_atributo == 4) then --> friendly fire - if (info.tipo ~= 3) then --> janela com fundo diferente - info.bg1_sec_texture:SetTexture ([[Interface\AddOns\Details\images\info_window_damagetaken]]) - info.bg3_sec_texture:Show() - info.bg2_sec_texture:Show() - info.tipo = 3 + info.bg1_sec_texture:SetTexture ([[Interface\AddOns\Details\images\info_window_damagetaken]]) + info.bg3_sec_texture:Show() + info.bg2_sec_texture:Show() + info.tipo = 3 + + for i = 1, 5 do + info ["right_background" .. i]:Hide() end + info.targets:SetText (Loc ["STRING_SPELLS"] .. ":") + info.apoio_icone_esquerdo:Hide() + info.apoio_icone_direito:Hide() + info.report_direita:Show() + elseif (info.sub_atributo == 6) then --> enemies - if (info.tipo ~= 3) then --> janela com fundo diferente - info.bg1_sec_texture:SetTexture ([[Interface\AddOns\Details\images\info_window_damagetaken]]) - info.bg3_sec_texture:Show() - info.bg2_sec_texture:Show() - info.tipo = 3 + info.bg1_sec_texture:SetTexture ([[Interface\AddOns\Details\images\info_window_damagetaken]]) + info.bg3_sec_texture:Show() + info.bg2_sec_texture:Show() + info.tipo = 3 + + for i = 1, 5 do + info ["right_background" .. i]:Hide() end + info.targets:SetText (Loc ["STRING_DAMAGE_TAKEN_FROM"]) end elseif (info.atributo == 2) then --> HEALING if (info.sub_atributo == 1 or info.sub_atributo == 2 or info.sub_atributo == 3) then --> damage done / dps - if (info.tipo ~= 1) then --> janela com as divisorias - info.bg1_sec_texture:SetTexture (nil) - info.tipo = 1 - end + info.bg1_sec_texture:SetTexture (nil) + info.tipo = 1 if (info.sub_atributo == 3) then info.targets:SetText (Loc ["STRING_OVERHEALED"] .. ":") @@ -257,32 +280,34 @@ function gump:TrocaBackgroundInfo() end elseif (info.sub_atributo == 4) then --> Healing taken - if (info.tipo ~= 2) then --> janela com fundo diferente - info.bg1_sec_texture:SetTexture ([[Interface\AddOns\Details\images\info_window_damagetaken]]) - info.bg3_sec_texture:Show() - info.bg2_sec_texture:Show() - info.tipo = 2 + info.bg1_sec_texture:SetTexture ([[Interface\AddOns\Details\images\info_window_damagetaken]]) + info.bg3_sec_texture:Show() + info.bg2_sec_texture:Show() + info.tipo = 2 + + for i = 1, 5 do + info ["right_background" .. i]:Hide() end info.targets:SetText (Loc ["STRING_TARGETS"] .. ":") info.no_targets:Show() info.no_targets.text:Show() + + info.apoio_icone_esquerdo:Hide() + info.apoio_icone_direito:Hide() + info.report_direita:Show() end elseif (info.atributo == 3) then --> REGEN - if (info.tipo ~= 2) then --> janela com fundo diferente - info.bg1_sec_texture:SetTexture (nil) - info.tipo = 2 - end + info.bg1_sec_texture:SetTexture (nil) + info.tipo = 2 info.targets:SetText ("Vindo de:") elseif (info.atributo == 4) then --> MISC - if (info.tipo ~= 2) then --> janela com fundo diferente - info.bg1_sec_texture:SetTexture (nil) - info.tipo = 2 - end + info.bg1_sec_texture:SetTexture (nil) + info.tipo = 2 + info.targets:SetText (Loc ["STRING_TARGETS"] .. ":") - end end @@ -421,13 +446,13 @@ local detalhes_inforeport_onleave = function (self) end function gump:CriaDetalheInfo (index) - local info = {} - info.bg = _CreateFrame ("StatusBar", nil, _detalhes.janela_info.container_detalhes) + info.bg = _CreateFrame ("StatusBar", "DetailsPlayerDetailsWindow_DetalheInfoBG" .. index, _detalhes.janela_info.container_detalhes) info.bg:SetStatusBarTexture ("Interface\\AddOns\\Details\\images\\bar_detalhes2") info.bg:SetMinMaxValues (0, 100) info.bg:SetValue (100) + info.bg:SetSize (219, 47) info.nome = info.bg:CreateFontString (nil, "OVERLAY", "GameFontNormal") info.nome2 = info.bg:CreateFontString (nil, "OVERLAY", "GameFontHighlightSmall") @@ -436,10 +461,7 @@ function gump:CriaDetalheInfo (index) info.dano_media = info.bg:CreateFontString (nil, "OVERLAY", "GameFontHighlightSmall") info.dano_dps = info.bg:CreateFontString (nil, "OVERLAY", "GameFontHighlightSmall") - info.bg:SetWidth (219) - info.bg:SetHeight (47) - - info.bg.overlay = info.bg:CreateTexture (nil, "ARTWORK") + info.bg.overlay = info.bg:CreateTexture ("DetailsPlayerDetailsWindow_DetalheInfoBG_Overlay" .. index, "ARTWORK") info.bg.overlay:SetTexture ("Interface\\AddOns\\Details\\images\\overlay_detalhes") info.bg.overlay:SetWidth (241) info.bg.overlay:SetHeight (61) @@ -457,7 +479,7 @@ function gump:CriaDetalheInfo (index) info.bg.reportar:SetScript ("OnEnter", detalhes_inforeport_onenter) info.bg.reportar:SetScript ("OnLeave", detalhes_inforeport_onleave) - info.bg_end = info.bg:CreateTexture (nil, "BACKGROUND") + info.bg_end = info.bg:CreateTexture ("DetailsPlayerDetailsWindow_DetalheInfoBG_bg_end" .. index, "BACKGROUND") info.bg_end:SetHeight (47) info.bg_end:SetTexture ("Interface\\AddOns\\Details\\images\\bar_detalhes2_end") @@ -535,7 +557,7 @@ function gump:SetaDetalheInfoTexto (index, p, arg1, arg2, arg3, arg4, arg5, arg6 -- info.bg_end:Hide() --else info.bg_end:Show() - info.bg_end:SetPoint ("LEFT", info.bg, "LEFT", (info.bg:GetValue()*2.19)-6, 0) + info.bg_end:SetPoint ("LEFT", info.bg, "LEFT", (info.bg:GetValue() * (info.bg:GetWidth()/100)) - 6, 0) -- 2.19 --end info.bg:Show() @@ -918,9 +940,6 @@ local default_skin = function() window.container_alvos:SetPoint ("BOTTOMLEFT", window, "BOTTOMLEFT", 20, 6) window.container_alvos:SetSize (300, 100) - --info container - info:SetDetailInfoConfigs ("Interface\\AddOns\\Details\\images\\bar_detalhes2", {1, 1, 1, 0.5}, 0, 0) - --icons window.SetClassIcon = default_icon_change window.apoio_icone_direito:SetBlendMode ("BLEND") @@ -933,6 +952,60 @@ local default_skin = function() --report button window.topleft_report:SetPoint ("BOTTOMLEFT", window.container_barras, "TOPLEFT", 33, 3) + --no targets texture + window.no_targets:SetPoint ("BOTTOMLEFT", window, "BOTTOMLEFT", 20, 6) + window.no_targets:SetSize (301, 100) + window.no_targets:SetAlpha (1) + + --right panel textures + window.bg2_sec_texture:SetPoint ("topleft", window.bg1_sec_texture, "topleft", 8, 0) + window.bg2_sec_texture:SetPoint ("bottomright", window.bg1_sec_texture, "bottomright", -30, 0) + window.bg2_sec_texture:SetTexture ([[Interface\Glues\CREDITS\Warlords\Shadowmoon_Color_jlo3]]) + window.bg2_sec_texture:SetDesaturated (true) + window.bg2_sec_texture:SetAlpha (0.3) + + window.bg3_sec_texture:SetPoint ("topleft", window.bg2_sec_texture, "topleft", 0, 0) + window.bg3_sec_texture:SetPoint ("bottomright", window.bg2_sec_texture, "bottomright", 0, 0) + window.bg3_sec_texture:SetTexture (0, 0, 0, 1) + + --the 5 spell details blocks + for i, infoblock in ipairs (_detalhes.janela_info.grupos_detalhes) do + infoblock.bg:SetSize (219, 47) --219 original + end + local xLocation = {-85, -136, -191, -246, -301} + local heightTable = {43, 48, 48, 48, 48} + for i = 1, 5 do + window ["right_background" .. i]:SetPoint ("topleft", window, "topleft", 357, xLocation [i]) --357 original + window ["right_background" .. i]:SetSize (220, heightTable [i]) --220 + end + --info container + info:SetDetailInfoConfigs ("Interface\\AddOns\\Details\\images\\bar_detalhes2", {1, 1, 1, 0.5}, 0, 0) + + window.bg1_sec_texture:SetPoint ("topleft", window.bg1, "topleft", 348, -86) + window.bg1_sec_texture:SetHeight (262) + window.bg1_sec_texture:SetWidth (264) + + --container bars 3 + local x_start = 61 + local y_start = -10 + local janela = window.container_detalhes + + container3_bars_pointFunc = function (barra, index) + local y = (index-1) * 17 + y = y*-1 + barra:SetPoint ("LEFT", janela, "LEFT", x_start, 0) + barra:SetPoint ("RIGHT", janela, "RIGHT", 65, 0) + barra:SetPoint ("TOP", janela, "TOP", 0, y+y_start) + end + + for index, barra in ipairs (window.barras3) do + local y = (index-1) * 17 + y = y*-1 + barra:SetPoint ("LEFT", janela, "LEFT", x_start, 0) + barra:SetPoint ("RIGHT", janela, "RIGHT", 65, 0) + barra:SetPoint ("TOP", janela, "TOP", 0, y+y_start) + end + --scrollbar window.container_barras.cima:SetNormalTexture ("Interface\\BUTTONS\\UI-ScrollBar-ScrollUpButton-Up") window.container_barras.cima:SetPushedTexture ("Interface\\BUTTONS\\UI-ScrollBar-ScrollUpButton-Down") @@ -1101,13 +1174,67 @@ local elvui_skin = function() --report button window.topleft_report:SetPoint ("BOTTOMLEFT", window.container_barras, "TOPLEFT", 43, 2) - --info container - info:SetDetailInfoConfigs ("Interface\\AddOns\\Details\\images\\bar_serenity", {1, 1, 1, 0.35}, -1, 0) - --icons window.apoio_icone_direito:SetBlendMode ("ADD") window.apoio_icone_esquerdo:SetBlendMode ("ADD") + --no targets texture + window.no_targets:SetPoint ("BOTTOMLEFT", window, "BOTTOMLEFT", 3, 6) + window.no_targets:SetSize (318, 100) + window.no_targets:SetAlpha (0.4) + + --right panel textures + window.bg2_sec_texture:SetPoint ("topleft", window.bg1_sec_texture, "topleft", 7, 0) + window.bg2_sec_texture:SetPoint ("bottomright", window.bg1_sec_texture, "bottomright", -30, 0) + window.bg2_sec_texture:SetTexture ([[Interface\Glues\CREDITS\Warlords\Shadowmoon_Color_jlo3]]) + window.bg2_sec_texture:SetDesaturated (true) + window.bg2_sec_texture:SetAlpha (0) + + --window.bg2_sec_texture:SetAlpha (0.3) + + window.bg3_sec_texture:SetPoint ("topleft", window.bg2_sec_texture, "topleft", 0, 0) + window.bg3_sec_texture:SetPoint ("bottomright", window.bg2_sec_texture, "bottomright", 0, 0) + window.bg3_sec_texture:SetTexture (0, 0, 0, 0.3) + + --the 5 spell details blocks + for i, infoblock in ipairs (_detalhes.janela_info.grupos_detalhes) do + infoblock.bg:SetSize (227, 47) --219 original + end + local xLocation = {-85, -136, -191, -246, -301} + local heightTable = {43, 48, 48, 48, 47} + for i = 1, 5 do + window ["right_background" .. i]:SetPoint ("topleft", window, "topleft", 351, xLocation [i]) --357 original + window ["right_background" .. i]:SetSize (230, heightTable [i]) --220 + end + --info container + info:SetDetailInfoConfigs ("Interface\\AddOns\\Details\\images\\bar_serenity", {1, 1, 1, 0.35}, -6, 0) + + window.bg1_sec_texture:SetPoint ("topleft", window.bg1, "topleft", 344, -86) + window.bg1_sec_texture:SetHeight (262) + window.bg1_sec_texture:SetWidth (264) + + --container 3 bars + local x_start = 56 + local y_start = -10 + + local janela = window.container_detalhes + + container3_bars_pointFunc = function (barra, index) + local y = (index-1) * 17 + y = y*-1 + barra:SetPoint ("LEFT", janela, "LEFT", x_start, 0) + barra:SetPoint ("RIGHT", janela, "RIGHT", 62, 0) + barra:SetPoint ("TOP", janela, "TOP", 0, y+y_start) + end + + for index, barra in ipairs (window.barras3) do + local y = (index-1) * 17 + y = y*-1 + barra:SetPoint ("LEFT", janela, "LEFT", x_start, 0) + barra:SetPoint ("RIGHT", janela, "RIGHT", 62, 0) + barra:SetPoint ("TOP", janela, "TOP", 0, y+y_start) + end + --scrollbar window.container_barras.cima:SetNormalTexture ([[Interface\Buttons\Arrow-Up-Up]]) window.container_barras.cima:SetPushedTexture ([[Interface\Buttons\Arrow-Up-Down]]) @@ -1265,48 +1392,48 @@ function gump:CriaJanelaInfo() local alpha_bgs = 1 -- - local right_background1 = este_gump:CreateTexture (nil, "background") + local right_background1 = este_gump:CreateTexture ("DetailsPlayerDetailsWindow_right_background1", "background") right_background1:SetTexture ([[Interface\DialogFrame\UI-DialogBox-Background-Dark]]) right_background1:SetPoint ("topleft", este_gump, "topleft", 357, -85) right_background1:SetSize (220, 43) right_background1:SetAlpha (alpha_bgs) este_gump.right_background1 = right_background1 - local right_background2 = este_gump:CreateTexture (nil, "background") + local right_background2 = este_gump:CreateTexture ("DetailsPlayerDetailsWindow_right_background2", "background") right_background2:SetTexture ([[Interface\DialogFrame\UI-DialogBox-Background-Dark]]) right_background2:SetPoint ("topleft", este_gump, "topleft", 357, -136) right_background2:SetSize (220, 48) right_background2:SetAlpha (alpha_bgs) este_gump.right_background2 = right_background2 - local right_background3 = este_gump:CreateTexture (nil, "background") + local right_background3 = este_gump:CreateTexture ("DetailsPlayerDetailsWindow_right_background3", "background") right_background3:SetTexture ([[Interface\DialogFrame\UI-DialogBox-Background-Dark]]) right_background3:SetPoint ("topleft", este_gump, "topleft", 357, -191) right_background3:SetSize (220, 48) right_background3:SetAlpha (alpha_bgs) este_gump.right_background3 = right_background3 - local right_background4 = este_gump:CreateTexture (nil, "background") + local right_background4 = este_gump:CreateTexture ("DetailsPlayerDetailsWindow_right_background4", "background") right_background4:SetTexture ([[Interface\DialogFrame\UI-DialogBox-Background-Dark]]) right_background4:SetPoint ("topleft", este_gump, "topleft", 357, -246) right_background4:SetSize (220, 48) right_background4:SetAlpha (alpha_bgs) este_gump.right_background4 = right_background4 - local right_background5 = este_gump:CreateTexture (nil, "background") + local right_background5 = este_gump:CreateTexture ("DetailsPlayerDetailsWindow_right_background5", "background") right_background5:SetTexture ([[Interface\DialogFrame\UI-DialogBox-Background-Dark]]) right_background5:SetPoint ("topleft", este_gump, "topleft", 357, -301) right_background5:SetSize (220, 48) right_background5:SetAlpha (alpha_bgs) este_gump.right_background5 = right_background5 -- - este_gump.bg1_sec_texture = este_gump:CreateTexture (nil, "BORDER") + este_gump.bg1_sec_texture = este_gump:CreateTexture ("DetailsPlayerDetailsWindow_BG1_SEC_Texture", "BORDER") este_gump.bg1_sec_texture:SetDrawLayer ("BORDER", 4) este_gump.bg1_sec_texture:SetPoint ("topleft", este_gump.bg1, "topleft", 348, -86) este_gump.bg1_sec_texture:SetHeight (262) este_gump.bg1_sec_texture:SetWidth (264) - este_gump.bg2_sec_texture = este_gump:CreateTexture (nil, "BORDER") + este_gump.bg2_sec_texture = este_gump:CreateTexture ("DetailsPlayerDetailsWindow_BG2_SEC_Texture", "BORDER") este_gump.bg2_sec_texture:SetDrawLayer ("BORDER", 3) este_gump.bg2_sec_texture:SetPoint ("topleft", este_gump.bg1_sec_texture, "topleft", 8, 0) este_gump.bg2_sec_texture:SetPoint ("bottomright", este_gump.bg1_sec_texture, "bottomright", -30, 0) @@ -1315,7 +1442,7 @@ function gump:CriaJanelaInfo() este_gump.bg2_sec_texture:SetAlpha (0.3) este_gump.bg2_sec_texture:Hide() - este_gump.bg3_sec_texture = este_gump:CreateTexture (nil, "BORDER") + este_gump.bg3_sec_texture = este_gump:CreateTexture ("DetailsPlayerDetailsWindow_BG3_SEC_Texture", "BORDER") este_gump.bg3_sec_texture:SetDrawLayer ("BORDER", 2) este_gump.bg3_sec_texture:SetPoint ("topleft", este_gump.bg2_sec_texture, "topleft", 0, 0) este_gump.bg3_sec_texture:SetPoint ("bottomright", este_gump.bg2_sec_texture, "bottomright", 0, 0) @@ -1330,7 +1457,7 @@ function gump:CriaJanelaInfo() este_gump.close_button:SetText ("X") este_gump.close_button:SetFrameLevel (este_gump:GetFrameLevel()+5) - este_gump.no_targets = este_gump:CreateTexture (nil, "overlay") + este_gump.no_targets = este_gump:CreateTexture ("DetailsPlayerDetailsWindow_no_targets", "overlay") este_gump.no_targets:SetPoint ("BOTTOMLEFT", este_gump, "BOTTOMLEFT", 20, 6) este_gump.no_targets:SetSize (301, 100) este_gump.no_targets:SetTexture ([[Interface\QUESTFRAME\UI-QUESTLOG-EMPTY-TOPLEFT]]) @@ -1463,8 +1590,8 @@ function gump:CriaJanelaInfo() --> botão de reportar da caixa da direita, onde estão os 5 quadrados este_gump.report_direita = gump:NewDetailsButton (este_gump, este_gump, nil, _detalhes.Reportar, este_gump, 2, 16, 16, "Interface\\COMMON\\VOICECHAT-ON", "Interface\\COMMON\\VOICECHAT-ON", "Interface\\COMMON\\VOICECHAT-ON", "Interface\\COMMON\\VOICECHAT-ON", nil, "DetailsJanelaInfoReport4") - este_gump.report_direita:SetPoint ("TOPRIGHT", este_gump, "TOPRIGHT", -8, -57) - este_gump.report_direita:Hide() + este_gump.report_direita:SetPoint ("TOPRIGHT", este_gump, "TOPRIGHT", -10, -70) + este_gump.report_direita:Show() --> apply default skin _detalhes:ApplyPDWSkin() @@ -3942,18 +4069,18 @@ function _detalhes.janela_info:monta_relatorio (botao) --dano --damage tanken (mostra as magias que o alvo usou) elseif ( (atributo == 1 and sub_atributo == 3) or atributo == 3) then - - report_lines = {"Details! " .. Loc ["STRING_ACTORFRAME_REPORTTO"] .. " " .. _detalhes.sub_atributos [1].lista [1] .. " " .. Loc ["STRING_ACTORFRAME_REPORTOF"] .. " " .. player.detalhes.. " " .. Loc ["STRING_ACTORFRAME_REPORTAT"] .. " " .. player.nome} - - for index, barra in _ipairs (info.barras3) do - - if (barra:IsShown()) then - report_lines [#report_lines+1] = barra.texto_esquerdo:GetText().." -> ".. barra.texto_direita:GetText() + if (player.detalhes) then + report_lines = {"Details! " .. Loc ["STRING_ACTORFRAME_REPORTTO"] .. " " .. _detalhes.sub_atributos [1].lista [1] .. " " .. Loc ["STRING_ACTORFRAME_REPORTOF"] .. " " .. player.detalhes.. " " .. Loc ["STRING_ACTORFRAME_REPORTAT"] .. " " .. player.nome} + for index, barra in _ipairs (info.barras3) do + if (barra:IsShown()) then + report_lines [#report_lines+1] = barra.texto_esquerdo:GetText().." ....... ".. barra.texto_direita:GetText() + end + if (index == amt) then + break + end end - if (index == amt) then - break - end - + else + report_lines = {} end end @@ -4514,9 +4641,11 @@ function gump:CriaNovaBarraInfo3 (instancia, index) local y = (index-1) * 17 y = y*-1 - esta_barra:SetPoint ("LEFT", janela, "LEFT", x_start, 0) - esta_barra:SetPoint ("RIGHT", janela, "RIGHT", 65, 0) - esta_barra:SetPoint ("TOP", janela, "TOP", 0, y+y_start) + --esta_barra:SetPoint ("LEFT", janela, "LEFT", x_start, 0) + --esta_barra:SetPoint ("RIGHT", janela, "RIGHT", 65, 0) + --esta_barra:SetPoint ("TOP", janela, "TOP", 0, y+y_start) + + container3_bars_pointFunc (esta_barra, index) esta_barra:EnableMouse (true) diff --git a/gumps/janela_principal.lua b/gumps/janela_principal.lua index 87fca9dc..803aaad6 100644 --- a/gumps/janela_principal.lua +++ b/gumps/janela_principal.lua @@ -1986,6 +1986,12 @@ local barra_scripts_onmouseup = function (self, button) return _detalhes:ReportSingleLine (self._instance, self) end + --print (self.minha_tabela) + -- /dump DetailsBarra_1_1.minha_tabela + if (not self.minha_tabela) then + return _detalhes:Msg ("this bar is waiting update.") + end + self._instance:AbreJanelaInfo (self.minha_tabela, nil, nil, is_shift_down, is_control_down) end end