diff --git a/boot.lua b/boot.lua index 3c66e04e..84184d65 100644 --- a/boot.lua +++ b/boot.lua @@ -8,7 +8,7 @@ _ = nil _detalhes = LibStub("AceAddon-3.0"):NewAddon("_detalhes", "AceTimer-3.0", "AceComm-3.0", "AceSerializer-3.0", "NickTag-1.0") - _detalhes.userversion = "v1.9.5" + _detalhes.userversion = "v1.10.0" _detalhes.version = "Alpha 013" _detalhes.realversion = 14 @@ -89,12 +89,13 @@ do --> plugins container _detalhes.ToolBar = {} --> current showing icons - _detalhes.ToolBar.Shown = {} - _detalhes.ToolBar.AllButtons = {} + _detalhes.ToolBar.Shown = {} + _detalhes.ToolBar.AllButtons = {} --> plugin objects - _detalhes.ToolBar.Plugins = {} + _detalhes.ToolBar.Plugins = {} --> name to plugin object - _detalhes.ToolBar.NameTable = {} + _detalhes.ToolBar.NameTable = {} + _detalhes.ToolBar.Menu = {} --> statusbar ------------------------------------------------------------------- --> plugins container diff --git a/classes/classe_damage.lua b/classes/classe_damage.lua index b3a18a8d..36fec74e 100644 --- a/classes/classe_damage.lua +++ b/classes/classe_damage.lua @@ -1000,9 +1000,22 @@ function atributo_damage:AtualizaBarra (instancia, barras_container, qual_barra, local porcentagem = self [keyName] / total * 100 local esta_porcentagem - if ((_detalhes.time_type == 2 and self.grupo) or not _detalhes:CaptureGet ("damage") or not self.shadow) then - dps = damage_total / combat_time - self.last_dps = dps + --tempo da shadow não é mais calculado pela timemachine + if ((_detalhes.time_type == 2 and self.grupo) or not _detalhes:CaptureGet ("damage") or not self.shadow) then --not self.shadow is overall but... + if (not self.shadow and combat_time == 0) then + local p = _detalhes.tabela_vigente (1, self.nome) + if (p) then + local t = p:Tempo() + dps = damage_total / t + self.last_dps = dps + else + dps = damage_total / combat_time + self.last_dps = dps + end + else + dps = damage_total / combat_time + self.last_dps = dps + end else if (not self.on_hold) then dps = damage_total/self:Tempo() --calcula o dps deste objeto diff --git a/classes/classe_instancia.lua b/classes/classe_instancia.lua index 96550b3a..e8fa1be5 100644 --- a/classes/classe_instancia.lua +++ b/classes/classe_instancia.lua @@ -1318,25 +1318,34 @@ function _detalhes:TrocaTabela (instancia, segmento, atributo, sub_atributo, ini end function _detalhes:MontaRaidOption (instancia) - for index, _name_and_icon in _ipairs (_detalhes.RaidTables.Menu) do - GameCooltip:AddMenu (1, _detalhes.RaidTables.switch, index, nil, nil, _name_and_icon [1], _name_and_icon [2], true) + for index, ptable in _ipairs (_detalhes.RaidTables.Menu) do + if (ptable [3].__enabled) then + GameCooltip:AddMenu (1, _detalhes.RaidTables.switch, index, nil, nil, ptable [1], ptable [2], true) + end end - if (_detalhes.RaidTables.Mode) then + + if (_detalhes.RaidTables.Mode and _detalhes.RaidTables.Mode == index) then GameCooltip:SetLastSelected (1, _detalhes.RaidTables.Mode) end - GameCooltip:SetColor (1, "black") + + GameCooltip:SetWallpaper (1, [[Interface\SPELLBOOK\Spellbook-Page-1]], {.6, 0.1, 0, 0.64453125}, {1, 1, 1, 0.1}, true) end function _detalhes:MontaSoloOption (instancia) - for index, _name_and_icon in _ipairs (_detalhes.SoloTables.Menu) do - GameCooltip:AddMenu (1, _detalhes.SoloTables.switch, index, nil, nil, _name_and_icon [1], _name_and_icon [2], true) + for index, ptable in _ipairs (_detalhes.SoloTables.Menu) do + if (ptable [3].__enabled) then + GameCooltip:AddMenu (1, _detalhes.SoloTables.switch, index, nil, nil, ptable [1], ptable [2], true) + end end + if (_detalhes.SoloTables.Mode) then GameCooltip:SetLastSelected (1, _detalhes.SoloTables.Mode) end - GameCooltip:SetColor (1, "black") + + GameCooltip:SetWallpaper (1, [[Interface\SPELLBOOK\Spellbook-Page-1]], {.6, 0.1, 0, 0.64453125}, {1, 1, 1, 0.1}, true) end +-- ~menu function _detalhes:MontaAtributosOption (instancia, func) func = func or instancia.TrocaTabela @@ -1370,6 +1379,17 @@ function _detalhes:MontaAtributosOption (instancia, func) CoolTip:AddMenu (1, func, nil, i, nil, atributos.lista[i], nil, true) CoolTip:AddIcon ("Interface\\AddOns\\Details\\images\\atributos_icones", 1, 1, 20, 20, p*(i-1), p*(i), 0, 1) + if (i == 1) then + CoolTip:SetWallpaper (2, [[Interface\TALENTFRAME\WarlockDestruction-TopLeft]], {1, 0.22, 0, 0.55}, {1, 1, 1, .1}) + elseif (i == 2) then + --CoolTip:SetWallpaper (2, [[Interface\TALENTFRAME\PriestHoly-TopLeft]], {0, .8, 0, 1}, {1, 1, 1, .1}) + CoolTip:SetWallpaper (2, [[Interface\TALENTFRAME\bg-priest-holy]], {1, .6, 0, .2}, {1, 1, 1, .2}) + elseif (i == 3) then + CoolTip:SetWallpaper (2, [[Interface\TALENTFRAME\ShamanEnhancement-TopLeft]], {0, 1, .2, .6}, {1, 1, 1, .1}) + elseif (i == 4) then + CoolTip:SetWallpaper (2, [[Interface\TALENTFRAME\WarlockCurses-TopLeft]], {.2, 1, 0, 1}, {1, 1, 1, .1}) + end + local options = sub_atributos [i].lista for o = 1, atributos [i] do @@ -1403,9 +1423,12 @@ function _detalhes:MontaAtributosOption (instancia, func) else CoolTip:SetLastSelected (2, 5, instancia.sub_atributo_last [5]+1) end - + CoolTip:SetLastSelected (1, atributo_ativo) + CoolTip:SetWallpaper (1, [[Interface\SPELLBOOK\Spellbook-Page-1]], {.6, 0.1, 0, 0.64453125}, {1, 1, 1, 0.1}, true) + --CoolTip:SetWallpaper (1, [[Interface\ACHIEVEMENTFRAME\UI-Achievement-Parchment-Horizontal-Desaturated]], nil, {1, 1, 1, 0.3}) + return menu_principal, sub_menus end diff --git a/classes/classe_instancia_include.lua b/classes/classe_instancia_include.lua index 5d09eea8..4d0cfd17 100644 --- a/classes/classe_instancia_include.lua +++ b/classes/classe_instancia_include.lua @@ -103,6 +103,9 @@ _detalhes.instance_defaults = { }, --instance window color color = {1, 1, 1, 1}, + --hide in combat + hide_in_combat = false, + hide_in_combat_alpha = 0, --wallpaper wallpaper = { enabled = false, diff --git a/classes/classe_others.lua b/classes/classe_others.lua index 7e991e69..ca592daa 100644 --- a/classes/classe_others.lua +++ b/classes/classe_others.lua @@ -464,8 +464,10 @@ function atributo_misc:RefreshWindow (instancia, tabela_do_combate, forcar, expo if (instancia.bars_sort_direction == 1) then for i = instancia.barraS[1], instancia.barraS[2], 1 do --> vai atualizar só o range que esta sendo mostrado - atributo_misc:DeadAtualizarBarra (mortes[i], qual_barra, i, instancia) - qual_barra = qual_barra+1 + if (mortes[i]) then --> correção para um raro e desconhecido problema onde mortes[i] é nil + atributo_misc:DeadAtualizarBarra (mortes[i], qual_barra, i, instancia) + qual_barra = qual_barra+1 + end end elseif (instancia.bars_sort_direction == 2) then diff --git a/core/control.lua b/core/control.lua index 35dbd301..635877c7 100644 --- a/core/control.lua +++ b/core/control.lua @@ -284,6 +284,15 @@ _detalhes:UptadeRaidMembersCache() _detalhes:HaveOneCurrentInstance() + --> hide / alpha in combat + for index, instancia in ipairs (_detalhes.tabela_instancias) do + if (instancia.ativa) then + if (instancia.hide_in_combat) then + instancia:SetWindowAlpha (instancia.hide_in_combat_alpha / 100) + end + end + end + _detalhes:SendEvent ("COMBAT_PLAYER_ENTER", nil, _detalhes.tabela_vigente) end @@ -464,6 +473,15 @@ _detalhes:UpdateParserGears() + --> hide / alpha in combat + for index, instancia in ipairs (_detalhes.tabela_instancias) do + if (instancia.ativa) then + if (instancia.hide_in_combat) then + instancia:SetWindowAlpha (1, true) + end + end + end + _detalhes:SendEvent ("COMBAT_PLAYER_LEAVE", nil, _detalhes.tabela_vigente) end @@ -744,7 +762,7 @@ return _detalhes.combat_id end - --> tooltip fork search key: ~tooltip + --> tooltip fork / search key: ~tooltip local avatarPoint = {"bottomleft", "topleft", -3, -4} local backgroundPoint = {{"bottomleft", "topleft", 0, -3}, {"bottomright", "topright", 0, -3}} local textPoint = {"left", "right", -11, -5} @@ -791,7 +809,7 @@ end end end - + return GameCooltip:ShowCooltip() end end diff --git a/core/plugins.lua b/core/plugins.lua index 91d1ef76..555d7f55 100644 --- a/core/plugins.lua +++ b/core/plugins.lua @@ -11,8 +11,15 @@ ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- --> details api functions + function _detalhes:GetPlugin (PAN) --plugin absolute name + return _detalhes.SoloTables.NameTable [PAN] or _detalhes.RaidTables.NameTable [PAN] or _detalhes.ToolBar.NameTable [PAN] or _detalhes.StatusBar.NameTable [PAN] + end + + function _detalhes:GetPluginSavedTable (PluginAbsoluteName) + return _detalhes.plugin_database [PluginAbsoluteName] + end - function _detalhes:InstallPlugin (PluginType, PluginName, PluginIcon, PluginObject, PluginAbsoluteName, MinVersion) + function _detalhes:InstallPlugin (PluginType, PluginName, PluginIcon, PluginObject, PluginAbsoluteName, MinVersion, Author, Version) if (MinVersion and MinVersion > _detalhes.realversion) then print (PluginName, Loc ["STRING_TOOOLD"]) @@ -39,8 +46,22 @@ PluginObject.real_name = PluginAbsoluteName end + PluginObject.__name = PluginName + PluginObject.__author = Author or "--------" + PluginObject.__version = Version or "v1.0.0" + PluginObject.__icon = PluginIcon or [[Interface\ICONS\Trade_Engineering]] PluginObject.real_name = PluginAbsoluteName + if (PluginType ~= "STATUSBAR") then + local saved_table = _detalhes.plugin_database [PluginAbsoluteName] + if (not saved_table) then + saved_table = {enabled = true, author = Author or "--------"} + _detalhes.plugin_database [PluginAbsoluteName] = saved_table + end + + PluginObject.__enabled = saved_table.enabled + end + if (PluginType == "SOLO") then if (not PluginObject.Frame) then return _detalhes:NewError ("plugin doesn't have a Frame, please check case-sensitive member name: Frame") @@ -48,37 +69,32 @@ --> Install Plugin _detalhes.SoloTables.Plugins [#_detalhes.SoloTables.Plugins+1] = PluginObject - _detalhes.SoloTables.Menu [#_detalhes.SoloTables.Menu+1] = {PluginName, PluginIcon} + _detalhes.SoloTables.Menu [#_detalhes.SoloTables.Menu+1] = {PluginName, PluginIcon, PluginObject, PluginAbsoluteName} _detalhes.SoloTables.NameTable [PluginAbsoluteName] = PluginObject _detalhes:SendEvent ("INSTALL_OKEY", PluginObject) _detalhes.PluginCount.SOLO = _detalhes.PluginCount.SOLO + 1 - - return true - + elseif (PluginType == "TANK") then --> Install Plugin _detalhes.RaidTables.Plugins [#_detalhes.RaidTables.Plugins+1] = PluginObject - _detalhes.RaidTables.Menu [#_detalhes.RaidTables.Menu+1] = {PluginName, PluginIcon} + _detalhes.RaidTables.Menu [#_detalhes.RaidTables.Menu+1] = {PluginName, PluginIcon, PluginObject, PluginAbsoluteName} _detalhes.RaidTables.NameTable [PluginAbsoluteName] = PluginObject _detalhes:SendEvent ("INSTALL_OKEY", PluginObject) _detalhes.PluginCount.RAID = _detalhes.PluginCount.RAID + 1 - return true - elseif (PluginType == "TOOLBAR") then --> Install Plugin _detalhes.ToolBar.Plugins [#_detalhes.ToolBar.Plugins+1] = PluginObject + _detalhes.ToolBar.Menu [#_detalhes.ToolBar.Menu+1] = {PluginName, PluginIcon, PluginObject, PluginAbsoluteName} _detalhes.ToolBar.NameTable [PluginAbsoluteName] = PluginObject _detalhes:SendEvent ("INSTALL_OKEY", PluginObject) _detalhes.PluginCount.TOOLBAR = _detalhes.PluginCount.TOOLBAR + 1 - return true - elseif (PluginType == "STATUSBAR") then --> Install Plugin @@ -88,10 +104,16 @@ _detalhes:SendEvent ("INSTALL_OKEY", PluginObject) _detalhes.PluginCount.STATUSBAR = _detalhes.PluginCount.STATUSBAR + 1 - - return true end + if (PluginObject.__enabled) then + _detalhes:SendEvent ("PLUGIN_ENABLED", PluginObject) + else + _detalhes:SendEvent ("PLUGIN_DISABLED", PluginObject) + end + + return true, saved_table + end ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- @@ -137,7 +159,7 @@ function _detalhes:NewPluginObject (FrameName, PluginOptions, PluginType) PluginOptions = PluginOptions or 0x0 - local NewPlugin = {__options = PluginOptions} + local NewPlugin = {__options = PluginOptions, __enabled = true} local Frame = CreateFrame ("Frame", FrameName, UIParent) Frame:RegisterEvent ("ADDON_LOADED") diff --git a/core/plugins_raid.lua b/core/plugins_raid.lua index 450eae88..344be681 100644 --- a/core/plugins_raid.lua +++ b/core/plugins_raid.lua @@ -43,11 +43,19 @@ _detalhes.raid = instancia.meu_id instancia:AtualizaGumpPrincipal (true) - if (not _detalhes.RaidTables.Plugins [1]) then + local first_enabled_plugin, first_enabled_plugin_index + for index, plugin in ipairs (_detalhes.RaidTables.Plugins) do + if (plugin.__enabled) then + first_enabled_plugin = plugin + first_enabled_plugin_index = index + end + end + + if (not first_enabled_plugin) then _detalhes:WaitForSoloPlugin (instancia) else if (not _detalhes.RaidTables.Plugins [_detalhes.RaidTables.Mode]) then - _detalhes.RaidTables.Mode = 1 + _detalhes.RaidTables.Mode = first_enabled_plugin_index end _detalhes.RaidTables:switch (nil, _detalhes.RaidTables.Mode) end @@ -127,7 +135,7 @@ end local ThisFrame = _detalhes.RaidTables.Plugins [_detalhes.RaidTables.Mode] - if (not ThisFrame) then + if (not ThisFrame or not ThisFrame.__enabled) then --> frame not found, try in few second again _detalhes.RaidTables.Mode = _switchTo _detalhes:WaitForSoloPlugin (_detalhes:GetRaidMode()) diff --git a/core/plugins_solo.lua b/core/plugins_solo.lua index a070aeca..78f10f8b 100644 --- a/core/plugins_solo.lua +++ b/core/plugins_solo.lua @@ -86,11 +86,19 @@ end end - if (not _detalhes.SoloTables.Plugins [1]) then + local first_enabled_plugin, first_enabled_plugin_index + for index, plugin in ipairs (_detalhes.SoloTables.Plugins) do + if (plugin.__enabled) then + first_enabled_plugin = plugin + first_enabled_plugin_index = index + end + end + + if (not first_enabled_plugin) then _detalhes:WaitForSoloPlugin (self) else if (not _detalhes.SoloTables.Plugins [_detalhes.SoloTables.Mode]) then - _detalhes.SoloTables.Mode = 1 + _detalhes.SoloTables.Mode = first_enabled_plugin_index end _detalhes.SoloTables:switch (nil, _detalhes.SoloTables.Mode) end @@ -175,7 +183,7 @@ end local ThisFrame = _detalhes.SoloTables.Plugins [_detalhes.SoloTables.Mode] - if (not ThisFrame) then + if (not ThisFrame or not ThisFrame.__enabled) then --> frame not found, try in few second again _detalhes.SoloTables.Mode = _switchTo _detalhes:WaitForSoloPlugin (instancia) diff --git a/core/plugins_statusbar.lua b/core/plugins_statusbar.lua index 9ca4d7d0..322e10b7 100644 --- a/core/plugins_statusbar.lua +++ b/core/plugins_statusbar.lua @@ -219,6 +219,7 @@ GameCooltip:Reset() GameCooltip:AddFromTable (onEnterCooltipTexts) GameCooltip:SetOption ("TextSize", 9.5) + GameCooltip:SetWallpaper (1, [[Interface\SPELLBOOK\Spellbook-Page-1]], {.6, 0.1, 0, 0.64453125}, {1, 1, 1, 0.1}, true) GameCooltip:ShowCooltip (frame, "tooltip") end self:SetScript ("OnUpdate", nil) @@ -269,6 +270,7 @@ end GameCooltip:SetOption ("NoLastSelectedBar", true) GameCooltip:SetOption ("HeightAnchorMod", -12) + GameCooltip:SetWallpaper (1, [[Interface\SPELLBOOK\Spellbook-Page-1]], {.6, 0.1, 0, 0.64453125}, {1, 1, 1, 0.1}, true) GameCooltip:ShowCooltip (frame, "menu") end return true diff --git a/core/plugins_toolbar.lua b/core/plugins_toolbar.lua index 9ea0ae5f..750c4e94 100644 --- a/core/plugins_toolbar.lua +++ b/core/plugins_toolbar.lua @@ -198,7 +198,11 @@ for _, ThisButton in ipairs (_detalhes.ToolBar.Shown) do ThisButton:ClearAllPoints() - ThisButton:SetPoint ("left", LastIcon, "right", ThisButton.x + x, ThisButton.y) + if (LastIcon == instance.baseframe.cabecalho.report) then + ThisButton:SetPoint ("left", LastIcon, "right", ThisButton.x + x + 4, ThisButton.y) + else + ThisButton:SetPoint ("left", LastIcon, "right", ThisButton.x + x, ThisButton.y) + end ThisButton:Show() LastIcon = ThisButton end diff --git a/core/windows.lua b/core/windows.lua index 5e31c6e8..8a2e0aa4 100644 --- a/core/windows.lua +++ b/core/windows.lua @@ -542,14 +542,18 @@ end function _detalhes:ExecDelayedPlugin (instancia) + RotateAnimGroup:Stop() WaitForPluginFrame:Hide() label:Hide() bgpanel:Hide() + if (instancia.meu_id == _detalhes.solo) then _detalhes.SoloTables:switch (nil, _detalhes.SoloTables.Mode) + elseif (instancia.meu_id == _detalhes.raid) then _detalhes.RaidTables:switch (nil, _detalhes.RaidTables.Mode) + end end end diff --git a/framework/cooltip.lua b/framework/cooltip.lua index 12f3b285..1ec69b05 100644 --- a/framework/cooltip.lua +++ b/framework/cooltip.lua @@ -49,6 +49,8 @@ function DetailsCreateCoolTip() CoolTip.TopIconTableSub = {} CoolTip.StatusBarTable = {} CoolTip.StatusBarTableSub = {} + CoolTip.WallpaperTable = {} + CoolTip.WallpaperTableSub = {} CoolTip.FunctionsTableMain = {} --> menus CoolTip.FunctionsTableSub = {} --> menus @@ -84,6 +86,10 @@ function DetailsCreateCoolTip() ["StatusBarTexture"] = true, ["TextSize"] = true, ["TextFont"] = true, + ["LeftTextWidth"] = true, + ["RightTextWidth"] = true, + ["LeftTextHeight"] = true, + ["RightTextHeight"] = true, ["NoFade"] = true, ["MyAnchor"] = true, ["Anchor"] = true, @@ -120,6 +126,10 @@ function DetailsCreateCoolTip() ["StatusBarTexture"] = nil, ["TextSize"] = nil, ["TextFont"] = nil, + ["LeftTextWidth"] = nil, + ["RightTextWidth"] = nil, + ["LeftTextHeight"] = nil, + ["RightTextHeight"] = nil, ["NoFade"] = nil, ["MyAnchor"] = nil, ["Anchor"] = nil, @@ -599,6 +609,18 @@ function DetailsCreateCoolTip() _detalhes:SetFontSize (menuButton.leftText, CoolTip.OptionsTable.TextSize) end + if (CoolTip.OptionsTable.LeftTextWidth) then + menuButton.leftText:SetWidth (CoolTip.OptionsTable.LeftTextWidth) + else + menuButton.leftText:SetWidth (0) + end + + if (CoolTip.OptionsTable.LeftTextHeight) then + menuButton.leftText:SetHeight (CoolTip.OptionsTable.LeftTextHeight) + else + menuButton.leftText:SetHeight (0) + end + if (CoolTip.OptionsTable.TextFont and not leftTextTable [7]) then menuButton.leftText:SetFontObject (CoolTip.OptionsTable.TextFont) end @@ -631,6 +653,18 @@ function DetailsCreateCoolTip() _detalhes:SetFontSize (menuButton.rightText, CoolTip.OptionsTable.TextSize) end + if (CoolTip.OptionsTable.RightTextWidth) then + menuButton.rightText:SetWidth (CoolTip.OptionsTable.RightTextWidth) + else + menuButton.rightText:SetWidth (0) + end + + if (CoolTip.OptionsTable.RightTextHeight) then + menuButton.rightText:SetHeight (CoolTip.OptionsTable.RightTextHeight) + else + menuButton.rightText:SetHeight (0) + end + if (CoolTip.OptionsTable.TextFont and not rightTextTable [7]) then menuButton.rightText:SetFontObject (CoolTip.OptionsTable.TextFont) end @@ -868,6 +902,36 @@ function DetailsCreateCoolTip() return true end + -- -- -------------------------------------------------------------------------------------------------------------- + + function CoolTip:SetupWallpaper (wallpaperTable, wallpaper) + local texture = wallpaperTable [1] + if (gump:IsHtmlColor (texture) or type (texture) == "table") then + local r, g, b, a = gump:ParseColors (texture) + wallpaper:SetTexture (r, g, b, a) + else + wallpaper:SetTexture (texture) + end + + wallpaper:SetTexCoord (wallpaperTable[2], wallpaperTable[3], wallpaperTable[4], wallpaperTable[5]) + + local color = wallpaperTable[6] + if (color) then + local r, g, b, a = gump:ParseColors (color) + wallpaper:SetVertexColor (r, g, b, a) + else + wallpaper:SetVertexColor (1, 1, 1, 1) + end + + if (wallpaperTable[7]) then + wallpaper:SetDesaturated (true) + else + wallpaper:SetDesaturated (false) + end + + wallpaper:Show() + end + -- -- -------------------------------------------------------------------------------------------------------------- function CoolTip:ShowSub (index) @@ -964,6 +1028,12 @@ function DetailsCreateCoolTip() frame2.upperImage:Hide() end + if (CoolTip.WallpaperTableSub [index]) then + CoolTip:SetupWallpaper (CoolTip.WallpaperTableSub [index], frame2.frameWallpaper) + else + frame2.frameWallpaper:Hide() + end + if (not CoolTip.OptionsTable.FixedWidthSub) then frame2:SetWidth (frame2.w + 44) end @@ -982,7 +1052,7 @@ function DetailsCreateCoolTip() row.leftText:SetHeight (10) end - --> ~inicio + --> ~inicio ~start function CoolTip:monta_tooltip() --> hide sub frame @@ -1105,6 +1175,12 @@ function DetailsCreateCoolTip() end end + if (CoolTip.WallpaperTable [1]) then + CoolTip:SetupWallpaper (CoolTip.WallpaperTable, frame1.frameWallpaper) + else + frame1.frameWallpaper:Hide() + end + --> unhide frame gump:Fade (frame1, 0) CoolTip:SetMyPoint (host) @@ -1126,7 +1202,7 @@ function DetailsCreateCoolTip() button.divbar:SetDesaturated (true) end - --> ~inicio + --> ~inicio ~start function CoolTip:monta_cooltip (host, instancia, options, sub_menus, icones, tamanho1, tamanho2, font, fontsize) if (CoolTip.Indexes == 0) then @@ -1277,6 +1353,12 @@ function DetailsCreateCoolTip() CoolTip.frame1.titleIcon:SetHeight (40) end + if (CoolTip.WallpaperTable [1]) then + CoolTip:SetupWallpaper (CoolTip.WallpaperTable, frame1.frameWallpaper) + else + frame1.frameWallpaper:Hide() + end + gump:Fade (frame1, 0) return true @@ -1552,7 +1634,7 @@ function DetailsCreateCoolTip() ---------------------------------------------------------------------- --> Reset cooltip - --> wipe all data + --> wipe all data ~reset function CoolTip:Reset() CoolTip.FixedValue = nil @@ -1590,6 +1672,9 @@ function DetailsCreateCoolTip() _table_wipe (CoolTip.ParametersTableMain) _table_wipe (CoolTip.ParametersTableSub) + + _table_wipe (CoolTip.WallpaperTable) + _table_wipe (CoolTip.WallpaperTableSub) --]] _table_wipe (CoolTip.TopIconTableSub) @@ -1602,6 +1687,9 @@ function DetailsCreateCoolTip() frame1.upperImageText:Hide() frame1.upperImageText2:Hide() + frame1.frameWallpaper:Hide() + frame2.frameWallpaper:Hide() + frame2.upperImage:Hide() CoolTip.title1 = nil @@ -1887,6 +1975,49 @@ function DetailsCreateCoolTip() end + frame1.frameWallpaper:Hide() + frame2.frameWallpaper:Hide() + + function CoolTip:SetWallpaper (index, texture, texcoord, color, desaturate) + + if (CoolTip.Indexes == 0) then + return --> return error + end + + local frameTable + local wallpaperTable + + if ( (type (index) == "number" and index == 1) or (type (index) == "string" and index == "main") ) then + wallpaperTable = CoolTip.WallpaperTable + + elseif ( (type (index) == "number" and index == 2) or (type (index) == "string" and index == "sub") ) then + frameTable = CoolTip.WallpaperTableSub + + local subMenuContainerWallpapers = frameTable [CoolTip.Indexes] + if (not subMenuContainerWallpapers) then + subMenuContainerWallpapers = {} + frameTable [CoolTip.Indexes] = subMenuContainerWallpapers + end + + wallpaperTable = subMenuContainerWallpapers + end + + wallpaperTable [1] = texture + if (texcoord) then + wallpaperTable [2] = texcoord [1] + wallpaperTable [3] = texcoord [2] + wallpaperTable [4] = texcoord [3] + wallpaperTable [5] = texcoord [4] + else + wallpaperTable [2] = 0 + wallpaperTable [3] = 1 + wallpaperTable [4] = 0 + wallpaperTable [5] = 1 + end + wallpaperTable [6] = color + wallpaperTable [7] = desaturate + end + function CoolTip:SetBannerText (index, text, anchor, color, fontsize, fontface, fontflag) local fontstring diff --git a/framework/cooltip.xml b/framework/cooltip.xml index ea58f490..2f6f8c41 100644 --- a/framework/cooltip.xml +++ b/framework/cooltip.xml @@ -66,6 +66,15 @@ + + + + + + + + + diff --git a/functions/boss.lua b/functions/boss.lua index bfe8e436..31b00ad9 100644 --- a/functions/boss.lua +++ b/functions/boss.lua @@ -98,6 +98,10 @@ do function _detalhes:GetRaidBackground (mapid) return _detalhes.EncounterInformation [mapid] and _detalhes.EncounterInformation [mapid].background end + --> return the icon for the raid instance + function _detalhes:GetRaidIcon (mapid) + return _detalhes.EncounterInformation [mapid] and _detalhes.EncounterInformation [mapid].icon + end --> return the boss icon function _detalhes:GetBossIcon (mapid, bossindex) diff --git a/functions/events.lua b/functions/events.lua index fa4c7be3..0d4f905e 100644 --- a/functions/events.lua +++ b/functions/events.lua @@ -492,11 +492,14 @@ --> send event to all registred plugins - if (not object) then + if (event == "PLUGIN_DISABLED" or event == "PLUGIN_ENABLED") then + return object:OnDetailsEvent (event, ...) + + elseif (not object) then for _, PluginObject in ipairs (_detalhes.RegistredEvents[event]) do if (PluginObject.__eventtable) then - if (PluginObject [1].Enabled) then + if (PluginObject [1].Enabled and PluginObject [1].__enabled) then if (type (PluginObject [2]) == "function") then PluginObject [2] (event, ...) else @@ -504,7 +507,7 @@ end end else - if (PluginObject.Enabled) then + if (PluginObject.Enabled and PluginObject.__enabled) then PluginObject:OnDetailsEvent (event, ...) end end @@ -513,20 +516,26 @@ elseif (type (object) == "string" and object == "SEND_TO_ALL") then for _, PluginObject in ipairs (_detalhes.RaidTables.Plugins) do - PluginObject:OnDetailsEvent (event) + if (PluginObject.__enabled) then + PluginObject:OnDetailsEvent (event) + end end for _, PluginObject in ipairs (_detalhes.SoloTables.Plugins) do - PluginObject:OnDetailsEvent (event) + if (PluginObject.__enabled) then + PluginObject:OnDetailsEvent (event) + end end for _, PluginObject in ipairs (_detalhes.ToolBar.Plugins) do - PluginObject:OnDetailsEvent (event) + if (PluginObject.__enabled) then + PluginObject:OnDetailsEvent (event) + end end else --> send the event only for requested plugin - if (object.Enabled) then - object:OnDetailsEvent (event, ...) + if (object.Enabled and object.__enabled) then + return object:OnDetailsEvent (event, ...) end end end diff --git a/functions/savedata.lua b/functions/savedata.lua index 39b8d5c7..4665abe9 100644 --- a/functions/savedata.lua +++ b/functions/savedata.lua @@ -33,6 +33,9 @@ end --> minimap _detalhes_database.minimap = _detalhes.minimap + --> plugin data + _detalhes_database.plugin_database = _detalhes.plugin_database + --> save instances (windows) _detalhes_database.tabela_instancias = _detalhes.tabela_instancias _detalhes_database.class_icons_small = _detalhes.class_icons_small @@ -171,8 +174,11 @@ end --]] _detalhes:NickTagSetCache (_detalhes.nick_tag_cache) _detalhes.only_pvp_frags = _detalhes_database.only_pvp_frags - --> minimap + --> minimap _detalhes.minimap = _detalhes_database.minimap + + --> plugin data + _detalhes.plugin_database = _detalhes_database.plugin_database --> character info _detalhes.character_data = _detalhes_database.character_data @@ -408,6 +414,8 @@ function _detalhes:ApplyConfigDataOnLoad() self.font_sizes = self.font_sizes or {menus = 10} self.minimap = self.minimap or {hide = false, radius = 160, minimapPos = 220} + self.plugin_database = self.plugin_database or {} + --> tutorial self.tutorial = self.tutorial or {} self.tutorial.logons = self.tutorial.logons or 0 diff --git a/gumps/janela_options.lua b/gumps/janela_options.lua index dd82f772..66737c20 100644 --- a/gumps/janela_options.lua +++ b/gumps/janela_options.lua @@ -26,7 +26,7 @@ function _detalhes:OpenOptionsWindow (instance) -- Most of details widgets have the same 6 first parameters: parent, container, global name, parent key, width, height - window = g:NewPanel (UIParent, _, "DetailsOptionsWindow", _, 717, 373) + window = g:NewPanel (UIParent, _, "DetailsOptionsWindow", _, 717, 434) window.instance = instance tinsert (UISpecialFrames, "DetailsOptionsWindow") window:SetPoint ("center", UIParent, "Center") @@ -34,11 +34,11 @@ function _detalhes:OpenOptionsWindow (instance) window.close_with_right = true window.backdrop = nil - local background = g:NewImage (window, _, "$parentBackground", "background", 717, 373, [[Interface\AddOns\Details\images\options_window]]) + local background = g:NewImage (window, _, "$parentBackground", "background", 717, 434, [[Interface\AddOns\Details\images\options_window]]) background:SetPoint (0, 0) background:SetDrawLayer ("border") - background:SetTexCoord (0, 0.699707, 0, 0.363769) - + background:SetTexCoord (0, 0.699707, 0, 0.423828125) + local bigdog = g:NewImage (window, _, "$parentBackgroundBigDog", "backgroundBigDog", 180, 200, [[Interface\MainMenuBar\UI-MainMenuBar-EndCap-Human]]) bigdog:SetPoint ("bottomright", window, "bottomright", -8, 36) bigdog:SetAlpha (.1) @@ -58,7 +58,7 @@ function _detalhes:OpenOptionsWindow (instance) local editing = g:NewLabel (window, nil, nil, "editing", Loc ["STRING_OPTIONS_GENERAL"], "QuestFont_Large", 20, "white") --editing:SetPoint ("topleft", window, "topleft", 90, -57) editing:SetPoint ("topright", window, "topright", -30, -62) - editing.options = {Loc ["STRING_OPTIONS_GENERAL"], Loc ["STRING_OPTIONS_APPEARANCE"], Loc ["STRING_OPTIONS_PERFORMANCE"]} + editing.options = {Loc ["STRING_OPTIONS_GENERAL"], Loc ["STRING_OPTIONS_APPEARANCE"], Loc ["STRING_OPTIONS_PERFORMANCE"], Loc ["STRING_OPTIONS_PLUGINS"]} editing.shadow = 2 --> edit anchors @@ -148,7 +148,7 @@ function _detalhes:OpenOptionsWindow (instance) end local instances = g:NewDropDown (window, _, "$parentInstanceSelectDropdown", "instanceDropdown", 200, 18, buildInstanceMenu, nil) - instances:SetPoint ("bottomright", window, "bottomright", -17, 13) + instances:SetPoint ("bottomright", window, "bottomright", -17, 09) local instances_string = g:NewLabel (window, nil, nil, "instancetext", Loc ["STRING_OPTIONS_EDITINSTANCE"], "GameFontNormal", 12) instances_string:SetPoint ("right", instances, "left", -2) @@ -158,14 +158,17 @@ function _detalhes:OpenOptionsWindow (instance) --> left panel buttons local select_options = function (options_type) + window:hide_options (1) window:hide_options (2) window:hide_options (3) + window:hide_options (4) + window:un_hide_options (options_type) editing.text = editing.options [options_type] - if (options_type == 2) then + if (options_type == 1 or options_type == 2) then instances:Show() instances_string:Show() else @@ -182,6 +185,9 @@ function _detalhes:OpenOptionsWindow (instance) window.options [2][1].slider.scrollMax = 1300 elseif (options_type == 3) then window.options [3][1].slider:SetMinMaxValues (0, 180) + elseif (options_type == 4) then + window.options [4][1].slider:SetMinMaxValues (0, 320) + info_text.text = "" end end @@ -227,10 +233,21 @@ function _detalhes:OpenOptionsWindow (instance) end) --g_performance:InstallCustomTexture () + local g_plugin = g:NewButton (window, _, "$parentPluginButton", "g_plugin", 150, 18, select_options, 0x4, nil, nil, Loc ["STRING_OPTIONS_PLUGINS"]) + g_plugin:SetPoint ("topleft", window, "topleft", 35, -320) + g_plugin:SetHook ("OnEnter", function() + mouse_over_texture:SetPoint ("topleft", g_plugin, "topleft", -10, 8) + mouse_over_texture:Show() + end) + g_plugin:SetHook ("OnLeave", function() + mouse_over_texture:Hide() + end) + window.options = { [1] = {}, [2] = {}, [3] = {}, + [4] = {} } --> vai armazenar os frames das opções function window:create_box (n) @@ -269,12 +286,12 @@ function _detalhes:OpenOptionsWindow (instance) container_slave:SetMovable (true) container_window:SetWidth (480) - container_window:SetHeight (250) + container_window:SetHeight (311) container_window:SetScrollChild (container_slave) container_window:SetPoint ("TOPLEFT", window.widget, "TOPLEFT", 198, -88) g:NewScrollBar (container_window, container_slave, 8, -10) - container_window.slider:Altura (225) + container_window.slider:Altura (292) container_window.slider:cimaPoint (0, 1) container_window.slider:baixoPoint (0, -3) container_window.wheel_jump = 80 @@ -289,6 +306,7 @@ function _detalhes:OpenOptionsWindow (instance) table.insert (window.options [1], window:create_box (1)) table.insert (window.options [2], window:create_box (2)) table.insert (window.options [3], window:create_box (3)) + table.insert (window.options [4], window:create_box (4)) function window:hide_options (options) for _, widget in ipairs (window.options [options]) do @@ -341,6 +359,7 @@ function _detalhes:OpenOptionsWindow (instance) window:hide_options (2) window:hide_options (3) + window:hide_options (4) --> general settings: local frame1 = window.options [1][1].gump @@ -539,6 +558,36 @@ function _detalhes:OpenOptionsWindow (instance) frame1.minimapSlider:SetHook ("OnEnter", background_on_enter) frame1.minimapSlider:SetHook ("OnLeave", background_on_leave) + --------------- hide in combat + g:NewLabel (frame1, _, "$parentHideOnCombatLabel", "hideOnCombatLabel", Loc ["STRING_OPTIONS_HIDECOMBAT"]) + frame1.hideOnCombatLabel:SetPoint (10, -350) + + g:NewLabel (frame1, _, "$parentHideOnCombatAlphaLabel", "hideOnCombatAlphaLabel", Loc ["STRING_OPTIONS_HIDECOMBATALPHA"]) + frame1.hideOnCombatAlphaLabel:SetPoint (10, -370) + + g:NewSwitch (frame1, _, "$parentHideOnCombatSlider", "hideOnCombatSlider", 60, 20, _, _, window.instance.hide_in_combat) + frame1.hideOnCombatSlider:SetPoint ("left", frame1.hideOnCombatLabel, "right", 2, 0) + frame1.hideOnCombatSlider.OnSwitch = function (self, instance, value) + instance.hide_in_combat = value + end + + g:NewSlider (frame1, _, "$parentHideOnCombatAlphaSlider", "hideOnCombatAlphaSlider", SLIDER_WIDTH, 20, 0, 100, 1, window.instance.hide_in_combat_alpha) -- min, max, step, defaultv + frame1.hideOnCombatAlphaSlider:SetPoint ("left", frame1.hideOnCombatAlphaLabel, "right", 2, 0) + frame1.hideOnCombatAlphaSlider:SetHook ("OnValueChange", function (self, instance, amount) --> slider, fixedValue, sliderValue + instance.hide_in_combat_alpha = amount + end) + + frame1.hideOnCombatSlider.info = Loc ["STRING_OPTIONS_HIDECOMBAT_DESC"] + frame1.hideOnCombatAlphaSlider.info = Loc ["STRING_OPTIONS_HIDECOMBATALPHA_DESC"] + + window:create_line_background (frame1, frame1.hideOnCombatLabel, frame1.hideOnCombatSlider) + frame1.hideOnCombatSlider:SetHook ("OnEnter", background_on_enter) + frame1.hideOnCombatSlider:SetHook ("OnLeave", background_on_leave) + + window:create_line_background (frame1, frame1.hideOnCombatAlphaLabel, frame1.hideOnCombatAlphaSlider) + frame1.hideOnCombatAlphaSlider:SetHook ("OnEnter", background_on_enter) + frame1.hideOnCombatAlphaSlider:SetHook ("OnLeave", background_on_leave) + ---------------- appearance local frame2 = window.options [2][1].gump @@ -2366,11 +2415,228 @@ function _detalhes:OpenOptionsWindow (instance) frame3.concatenateTrashSlider.tooltip = "Concatenate the next boss segments into only one." --]] - select_options (1) + + +-------- plugins + local frame4 = window.options [4][1].gump + + local on_enter = function (self) + self:SetBackdropColor (.3, .3, .3, .8) + end + + local on_leave = function (self) + self:SetBackdropColor (.3, .3, .3, .3) + end + + local y = -20 + + --toolbar + g:NewLabel (frame4, _, "$parentToolbarPluginsLabel", "toolbarLabel", "Toolbar Plugins", "GameFontNormal", 16) + frame4.toolbarLabel:SetPoint ("topleft", frame4, "topleft", 10, y) + + y = y - 30 + + do + local descbar = frame4:CreateTexture (nil, "artwork") + descbar:SetTexture (.3, .3, .3, .8) + descbar:SetPoint ("topleft", frame4, "topleft", 5, y+3) + descbar:SetSize (480, 20) + g:NewLabel (frame4, _, "$parentDescNameLabel", "descNameLabel", "Name", "GameFontNormal", 12) + frame4.descNameLabel:SetPoint ("topleft", frame4, "topleft", 15, y) + g:NewLabel (frame4, _, "$parentDescAuthorLabel", "descAuthorLabel", "Author", "GameFontNormal", 12) + frame4.descAuthorLabel:SetPoint ("topleft", frame4, "topleft", 180, y) + g:NewLabel (frame4, _, "$parentDescVersionLabel", "descVersionLabel", "Version", "GameFontNormal", 12) + frame4.descVersionLabel:SetPoint ("topleft", frame4, "topleft", 290, y) + g:NewLabel (frame4, _, "$parentDescEnabledLabel", "descEnabledLabel", "Enabled", "GameFontNormal", 12) + frame4.descEnabledLabel:SetPoint ("topleft", frame4, "topleft", 400, y) + end + + y = y - 30 + + local i = 1 + local allplugins_toolbar = _detalhes.ToolBar.NameTable + for absName, pluginObject in pairs (allplugins_toolbar) do + + local bframe = CreateFrame ("frame", "OptionsPluginToolbarBG", frame4) + bframe:SetSize (480, 20) + bframe:SetPoint ("topleft", frame4, "topleft", 10, y) + bframe:SetBackdrop ({bgFile = "Interface\\Tooltips\\UI-Tooltip-Background", tile = true, tileSize = 16, insets = {left = 1, right = 1, top = 0, bottom = 1}}) + bframe:SetBackdropColor (.3, .3, .3, .3) + bframe:SetScript ("OnEnter", on_enter) + bframe:SetScript ("OnLeave", on_leave) + + g:NewImage (bframe, _, "$parentToolbarPluginsIcon"..i, "toolbarPluginsIcon"..i, 18, 18, pluginObject.__icon) + bframe ["toolbarPluginsIcon"..i]:SetPoint ("topleft", frame4, "topleft", 10, y) + + g:NewLabel (bframe, _, "$parentToolbarPluginsLabel"..i, "toolbarPluginsLabel"..i, pluginObject.__name) + bframe ["toolbarPluginsLabel"..i]:SetPoint ("left", bframe ["toolbarPluginsIcon"..i], "right", 2, 0) + g:NewLabel (bframe, _, "$parentToolbarPluginsLabel2"..i, "toolbarPluginsLabel2"..i, pluginObject.__author) + bframe ["toolbarPluginsLabel2"..i]:SetPoint ("topleft", frame4, "topleft", 180, y-4) + + g:NewLabel (bframe, _, "$parentToolbarPluginsLabel3"..i, "toolbarPluginsLabel3"..i, pluginObject.__version) + bframe ["toolbarPluginsLabel3"..i]:SetPoint ("topleft", frame4, "topleft", 290, y-4) + + local plugin_stable = _detalhes:GetPluginSavedTable (absName) + local plugin = _detalhes:GetPlugin (absName) + g:NewSwitch (bframe, _, "$parentToolbarSlider"..i, "toolbarPluginsSlider"..i, 60, 20, _, _, plugin_stable.enabled) + bframe ["toolbarPluginsSlider"..i]:SetPoint ("topleft", frame4, "topleft", 400, y+1) + bframe ["toolbarPluginsSlider"..i].OnSwitch = function (self, _, value) + plugin_stable.enabled = value + plugin.__enabled = value + if (value) then + _detalhes:SendEvent ("PLUGIN_ENABLED", plugin) + else + _detalhes:SendEvent ("PLUGIN_DISABLED", plugin) + end + end + + i = i + 1 + y = y - 20 + end + + y = y - 10 + + --raid + g:NewLabel (frame4, _, "$parentRaidPluginsLabel", "raidLabel", "Raid Plugins", "GameFontNormal", 16) + frame4.raidLabel:SetPoint ("topleft", frame4, "topleft", 10, y) + + y = y - 30 + + do + local descbar = frame4:CreateTexture (nil, "artwork") + descbar:SetTexture (.3, .3, .3, .8) + descbar:SetPoint ("topleft", frame4, "topleft", 5, y+3) + descbar:SetSize (480, 20) + g:NewLabel (frame4, _, "$parentDescNameLabel2", "descNameLabel", "Name", "GameFontNormal", 12) + frame4.descNameLabel:SetPoint ("topleft", frame4, "topleft", 15, y) + g:NewLabel (frame4, _, "$parentDescAuthorLabel2", "descAuthorLabel", "Author", "GameFontNormal", 12) + frame4.descAuthorLabel:SetPoint ("topleft", frame4, "topleft", 180, y) + g:NewLabel (frame4, _, "$parentDescVersionLabel2", "descVersionLabel", "Version", "GameFontNormal", 12) + frame4.descVersionLabel:SetPoint ("topleft", frame4, "topleft", 290, y) + g:NewLabel (frame4, _, "$parentDescEnabledLabel2", "descEnabledLabel", "Enabled", "GameFontNormal", 12) + frame4.descEnabledLabel:SetPoint ("topleft", frame4, "topleft", 400, y) + end + + y = y - 30 + + local i = 1 + local allplugins_raid = _detalhes.RaidTables.NameTable + for absName, pluginObject in pairs (allplugins_raid) do + + local bframe = CreateFrame ("frame", "OptionsPluginRaidBG", frame4) + bframe:SetSize (480, 20) + bframe:SetPoint ("topleft", frame4, "topleft", 10, y) + bframe:SetBackdrop ({bgFile = "Interface\\Tooltips\\UI-Tooltip-Background", tile = true, tileSize = 16, insets = {left = 1, right = 1, top = 0, bottom = 1}}) + bframe:SetBackdropColor (.3, .3, .3, .3) + bframe:SetScript ("OnEnter", on_enter) + bframe:SetScript ("OnLeave", on_leave) + + g:NewImage (bframe, _, "$parentRaidPluginsIcon"..i, "raidPluginsIcon"..i, 18, 18, pluginObject.__icon) + bframe ["raidPluginsIcon"..i]:SetPoint ("topleft", frame4, "topleft", 10, y) + + g:NewLabel (bframe, _, "$parentRaidPluginsLabel"..i, "raidPluginsLabel"..i, pluginObject.__name) + bframe ["raidPluginsLabel"..i]:SetPoint ("left", bframe ["raidPluginsIcon"..i], "right", 2, 0) + + g:NewLabel (bframe, _, "$parentRaidPluginsLabel2"..i, "raidPluginsLabel2"..i, pluginObject.__author) + bframe ["raidPluginsLabel2"..i]:SetPoint ("topleft", frame4, "topleft", 180, y-4) + + g:NewLabel (bframe, _, "$parentRaidPluginsLabel3"..i, "raidPluginsLabel3"..i, pluginObject.__version) + bframe ["raidPluginsLabel3"..i]:SetPoint ("topleft", frame4, "topleft", 290, y-4) + + local plugin_stable = _detalhes:GetPluginSavedTable (absName) + local plugin = _detalhes:GetPlugin (absName) + g:NewSwitch (bframe, _, "$parentRaidSlider"..i, "raidPluginsSlider"..i, 60, 20, _, _, plugin_stable.enabled) + bframe ["raidPluginsSlider"..i]:SetPoint ("topleft", frame4, "topleft", 400, y+1) + bframe ["raidPluginsSlider"..i].OnSwitch = function (self, _, value) + plugin_stable.enabled = value + plugin.__enabled = value + if (not value) then + for index, instancia in ipairs (_detalhes.tabela_instancias) do + if (instancia.modo == 4) then -- 4 = raid + _detalhes:TrocaTabela (instancia, 0, 1, 1, nil, 2) + end + end + end + end + + i = i + 1 + y = y - 20 + end + + y = y - 10 + + -- solo + g:NewLabel (frame4, _, "$parentSoloPluginsLabel", "soloLabel", "Solo Plugins", "GameFontNormal", 16) + frame4.soloLabel:SetPoint ("topleft", frame4, "topleft", 10, y) + + y = y - 30 + + do + local descbar = frame4:CreateTexture (nil, "artwork") + descbar:SetTexture (.3, .3, .3, .8) + descbar:SetPoint ("topleft", frame4, "topleft", 5, y+3) + descbar:SetSize (480, 20) + g:NewLabel (frame4, _, "$parentDescNameLabel3", "descNameLabel", "Name", "GameFontNormal", 12) + frame4.descNameLabel:SetPoint ("topleft", frame4, "topleft", 15, y) + g:NewLabel (frame4, _, "$parentDescAuthorLabel3", "descAuthorLabel", "Author", "GameFontNormal", 12) + frame4.descAuthorLabel:SetPoint ("topleft", frame4, "topleft", 180, y) + g:NewLabel (frame4, _, "$parentDescVersionLabel3", "descVersionLabel", "Version", "GameFontNormal", 12) + frame4.descVersionLabel:SetPoint ("topleft", frame4, "topleft", 290, y) + g:NewLabel (frame4, _, "$parentDescEnabledLabel3", "descEnabledLabel", "Enabled", "GameFontNormal", 12) + frame4.descEnabledLabel:SetPoint ("topleft", frame4, "topleft", 400, y) + end + + y = y - 30 + + local i = 1 + local allplugins_solo = _detalhes.SoloTables.NameTable + for absName, pluginObject in pairs (allplugins_solo) do + + local bframe = CreateFrame ("frame", "OptionsPluginSoloBG", frame4) + bframe:SetSize (480, 20) + bframe:SetPoint ("topleft", frame4, "topleft", 10, y) + bframe:SetBackdrop ({bgFile = "Interface\\Tooltips\\UI-Tooltip-Background", tile = true, tileSize = 16, insets = {left = 1, right = 1, top = 0, bottom = 1}}) + bframe:SetBackdropColor (.3, .3, .3, .3) + bframe:SetScript ("OnEnter", on_enter) + bframe:SetScript ("OnLeave", on_leave) + + g:NewImage (bframe, _, "$parentSoloPluginsIcon"..i, "soloPluginsIcon"..i, 18, 18, pluginObject.__icon) + bframe ["soloPluginsIcon"..i]:SetPoint ("topleft", frame4, "topleft", 10, y) + + g:NewLabel (bframe, _, "$parentSoloPluginsLabel"..i, "soloPluginsLabel"..i, pluginObject.__name) + bframe ["soloPluginsLabel"..i]:SetPoint ("left", bframe ["soloPluginsIcon"..i], "right", 2, 0) + + g:NewLabel (bframe, _, "$parentSoloPluginsLabel2"..i, "soloPluginsLabel2"..i, pluginObject.__author) + bframe ["soloPluginsLabel2"..i]:SetPoint ("topleft", frame4, "topleft", 180, y-4) + + g:NewLabel (bframe, _, "$parentSoloPluginsLabel3"..i, "soloPluginsLabel3"..i, pluginObject.__version) + bframe ["soloPluginsLabel3"..i]:SetPoint ("topleft", frame4, "topleft", 290, y-4) + + local plugin_stable = _detalhes:GetPluginSavedTable (absName) + local plugin = _detalhes:GetPlugin (absName) + g:NewSwitch (bframe, _, "$parentSoloSlider"..i, "soloPluginsSlider"..i, 60, 20, _, _, plugin_stable.enabled) + bframe ["soloPluginsSlider"..i]:SetPoint ("topleft", frame4, "topleft", 400, y+1) + bframe ["soloPluginsSlider"..i].OnSwitch = function (self, _, value) + plugin_stable.enabled = value + plugin.__enabled = value + if (not value) then + for index, instancia in ipairs (_detalhes.tabela_instancias) do + if (instancia.modo == 1) then -- 1 = solo + _detalhes:TrocaTabela (instancia, 0, 1, 1, nil, 2) + end + end + end + end + + i = i + 1 + y = y - 20 end + select_options (1) + +end ---------------------------------------------------------------------------------------- --> Show @@ -2386,6 +2652,11 @@ function _detalhes:OpenOptionsWindow (instance) _G.DetailsOptionsWindow2CloseOverlayColorImage.MyObject:SetTexture (unpack (instance.closebutton_info.color_overlay)) + _G.DetailsOptionsWindow1HideOnCombatSlider.MyObject:SetFixedParameter (instance) + _G.DetailsOptionsWindow1HideOnCombatAlphaSlider.MyObject:SetFixedParameter (instance) + _G.DetailsOptionsWindow1HideOnCombatSlider.MyObject:SetValue (instance.hide_in_combat) + _G.DetailsOptionsWindow1HideOnCombatAlphaSlider.MyObject:SetValue (instance.hide_in_combat_alpha) + _G.DetailsOptionsWindow2SideBarsSlider.MyObject:SetFixedParameter (instance) _G.DetailsOptionsWindow2SideBarsSlider.MyObject:SetValue (instance.show_sidebars) diff --git a/gumps/janela_principal.lua b/gumps/janela_principal.lua index 4c7b540f..6316fdaf 100644 --- a/gumps/janela_principal.lua +++ b/gumps/janela_principal.lua @@ -2644,8 +2644,26 @@ function _detalhes:InstanceWallpaper (texture, anchor, alpha, texcoord, width, h end end +function _detalhes:SetWindowAlpha (alpha, run_instance_color) + local current_alpha = self.window_alpha or 1 -function _detalhes:InstanceColor (red, green, blue, alpha) + if (current_alpha > alpha) then + gump:Fade (self.baseframe, "ALPHAANIM", alpha) + else + gump:Fade (self.baseframe, "ALPHAANIM", alpha) + end + + gump:Fade (self.baseframe.cabecalho.ball, "ALPHAANIM", alpha) + gump:Fade (self.baseframe.cabecalho.atributo_icon, "ALPHAANIM", alpha) + + self.window_alpha = alpha + + if (run_instance_color) then + self:InstanceColor() + end +end + +function _detalhes:InstanceColor (red, green, blue, alpha, no_save) if (not red) then red, green, blue, alpha = unpack (self.color) @@ -2655,10 +2673,12 @@ function _detalhes:InstanceColor (red, green, blue, alpha) red, green, blue, alpha = gump:ParseColors (red) end - self.color [1] = red - self.color [2] = green - self.color [3] = blue - self.color [4] = alpha + if (not no_save) then + self.color [1] = red + self.color [2] = green + self.color [3] = blue + self.color [4] = alpha + end local skin = _detalhes.skins [self.skin] @@ -3144,7 +3164,6 @@ local build_mode_list = function (self, elapsed) CoolTip:SetOption ("ButtonsYMod", -5) CoolTip:SetOption ("YSpacingMod", 1) CoolTip:SetOption ("FixedHeight", 106) - --CoolTip:SetOption ("FixedWidth", 138) CoolTip:SetOption ("FixedWidthSub", 146) CoolTip:SetOption ("SubMenuIsTooltip", true) @@ -3161,6 +3180,10 @@ local build_mode_list = function (self, elapsed) CoolTip:SetOwner (self, "bottom", "top", 0, -7) end end + + --CoolTip:SetWallpaper (1, [[Interface\ACHIEVEMENTFRAME\UI-Achievement-Parchment-Horizontal-Desaturated]], nil, {1, 1, 1, 0.3}) + CoolTip:SetWallpaper (1, [[Interface\SPELLBOOK\Spellbook-Page-1]], {.6, 0.1, 0, 0.64453125}, {1, 1, 1, 0.1}, true) + CoolTip:ShowCooltip() end end @@ -3185,6 +3208,10 @@ local build_segment_list = function (self, elapsed) CoolTip:SetFixedParameter (instancia) CoolTip:SetColor ("main", "transparent") + CoolTip:SetOption ("FixedWidthSub", 175) + CoolTip:SetOption ("RightTextWidth", 105) + CoolTip:SetOption ("RightTextHeight", 12) + ----------- segments local menuIndex = 0 _detalhes.segments_amount = math.floor (_detalhes.segments_amount) @@ -3227,6 +3254,12 @@ local build_segment_list = function (self, elapsed) CoolTip:AddIcon (portrait, 2, "top", 128, 64) end CoolTip:AddIcon ([[Interface\AddOns\Details\images\icons]], "main", "left", 16, 16, 0.96875, 1, 0, 0.03125) + + local background = _detalhes:GetRaidIcon (thisCombat.is_boss.mapid) + if (background) then + CoolTip:SetWallpaper (2, background, nil, {1, 1, 1, 0.5}) + end + else enemy = thisCombat.enemy if (enemy) then @@ -3240,6 +3273,9 @@ local build_segment_list = function (self, elapsed) else CoolTip:AddIcon ([[Interface\QUESTFRAME\UI-Quest-BulletPoint]], "main", "left", 16, 16) end + + CoolTip:SetWallpaper (2, [[Interface\ACHIEVEMENTFRAME\UI-Achievement-StatsBackground]], {0.5078125, 0.1171875, 0.017578125, 0.1953125}, {1, 1, 1, .5}) + end CoolTip:AddMenu (1, instancia.TrocaTabela, i) @@ -3259,6 +3295,7 @@ local build_segment_list = function (self, elapsed) CoolTip:AddMenu (1, instancia.TrocaTabela, i) CoolTip:AddIcon ([[Interface\QUESTFRAME\UI-Quest-BulletPoint]], "main", "left", 16, 16, nil, nil, nil, nil, empty_segment_color) CoolTip:AddLine (Loc ["STRING_SEGMENT_EMPTY"], _, 2) + CoolTip:AddIcon ([[Interface\CHARACTERFRAME\Disconnect-Icon]], 2, 1, 12, 12, 0.3125, 0.65625, 0.265625, 0.671875) end if (menuIndex) then @@ -3285,6 +3322,11 @@ local build_segment_list = function (self, elapsed) if (portrait) then CoolTip:AddIcon (portrait, 2, "top", 128, 64) end + + local background = _detalhes:GetRaidIcon (_detalhes.tabela_vigente.is_boss.mapid) + CoolTip:SetWallpaper (2, background, nil, {1, 1, 1, 0.5}) + else + CoolTip:SetWallpaper (2, [[Interface\ACHIEVEMENTFRAME\UI-Achievement-StatsBackground]], {0.5078125, 0.1171875, 0.017578125, 0.1953125}, {1, 1, 1, .5}) end CoolTip:AddLine (Loc ["STRING_SEGMENT_ENEMY"] .. ":", enemy, 2, "white", "white") @@ -3342,6 +3384,8 @@ local build_segment_list = function (self, elapsed) CoolTip:AddLine (Loc ["STRING_SEGMENT_TIME"] .. ":", minutos.."m "..segundos.."s", 2, "white", "white") end + CoolTip:SetWallpaper (2, [[Interface\ACHIEVEMENTFRAME\UI-Achievement-StatsBackground]], {0.5078125, 0.1171875, 0.017578125, 0.1953125}, {1, 1, 1, .5}) + local earlyFight = "" for i = _detalhes.segments_amount, 1, -1 do if (_detalhes.tabela_historico.tabelas [i]) then @@ -3395,6 +3439,9 @@ local build_segment_list = function (self, elapsed) CoolTip:SetOption ("ButtonsYModSub", 0) CoolTip:SetOption ("YSpacingModSub", -4) + --CoolTip:SetWallpaper (1, [[Interface\ACHIEVEMENTFRAME\UI-Achievement-Parchment-Horizontal-Desaturated]], nil, {1, 1, 1, 0.3}) + CoolTip:SetWallpaper (1, [[Interface\SPELLBOOK\Spellbook-Page-1]], {.6, 0.1, 0, 0.64453125}, {1, 1, 1, 0.1}, true) + CoolTip:ShowCooltip() self:SetScript ("OnUpdate", nil) @@ -4484,7 +4531,7 @@ function gump:CriaCabecalho (baseframe, instancia) --> install cooltip _G.GameCooltip:CoolTipInject (baseframe.cabecalho.atributo) - --> REPORTAR ---------------------------------------------------------------------------------------------------------------------------------------------------- + --> REPORTAR ~report ---------------------------------------------------------------------------------------------------------------------------------------------------- baseframe.cabecalho.report = gump:NewDetailsButton (baseframe, _, instancia, _detalhes.Reportar, instancia, nil, 16, 16, [[Interface\COMMON\VOICECHAT-ON]]) baseframe.cabecalho.report:SetPoint ("left", baseframe.cabecalho.atributo, "right", -6, 0) baseframe.cabecalho.report:SetFrameLevel (baseframe.UPFrame:GetFrameLevel()+1) @@ -4493,12 +4540,20 @@ function gump:CriaCabecalho (baseframe, instancia) if (instancia.desaturated_menu) then self:GetNormalTexture():SetDesaturated (false) end + + GameCooltip:Reset() + GameCooltip:AddLine (Loc ["STRING_REPORT_BUTTON_TOOLTIP"]) + GameCooltip:SetOwner (baseframe.cabecalho.report) + GameCooltip:SetWallpaper (1, [[Interface\SPELLBOOK\Spellbook-Page-1]], {.6, 0.1, 0, 0.64453125}, {1, 1, 1, 0.1}, true) + GameCooltip:Show() + end) baseframe.cabecalho.report:SetScript ("OnLeave", function (self) OnLeaveMainWindow (instancia, self, 3) if (instancia.desaturated_menu) then self:GetNormalTexture():SetDesaturated (true) end + GameCooltip:Hide() end) --> NOVA INSTANCIA ---------------------------------------------------------------------------------------------------------------------------------------------------- @@ -4579,6 +4634,9 @@ function gump:CriaCabecalho (baseframe, instancia) end end + + GameCooltip:SetWallpaper (1, [[Interface\SPELLBOOK\Spellbook-Page-1]], {.6, 0.1, 0, 0.64453125}, {1, 1, 1, 0.1}, true) + return ClosedInstances end diff --git a/gumps/switch.lua b/gumps/switch.lua index 2b47975a..6a23d41b 100644 --- a/gumps/switch.lua +++ b/gumps/switch.lua @@ -112,8 +112,8 @@ function _detalhes:FastSwitch (_this) GameCooltip:SetFixedParameter (_detalhes.switch.current_instancia) GameCooltip:SetOwner (_detalhes.switch.buttons [_this.button]) _detalhes:MontaAtributosOption (_detalhes.switch.current_instancia, _detalhes.switch.Config) - GameCooltip:SetColor (1, nil) - GameCooltip:SetColor (2, nil) + GameCooltip:SetColor (1, {.1, .1, .1, .3}) + GameCooltip:SetColor (2, {.1, .1, .1, .3}) GameCooltip:ShowCooltip() else --> botão esquerdo diff --git a/images/options_window.tga b/images/options_window.tga index 1aab9c8f..a2ffe23b 100644 Binary files a/images/options_window.tga and b/images/options_window.tga differ diff --git a/locales/Details-enUS.lua b/locales/Details-enUS.lua index 3e11c8f4..710a6ca8 100644 --- a/locales/Details-enUS.lua +++ b/locales/Details-enUS.lua @@ -4,9 +4,8 @@ if not Loc then return end -------------------------------------------------------------------------------------------------------------------------------------------- -- \n\n|cFFFFFF00-|r - - - Loc ["STRING_VERSION_LOG"] = "|cFFFFFF00v1.9.5|r\n\n|cFFFFFF00-More fixes on Skins support and new tools for plugins.|r\n\n|cFFFFFF00v1.9.4|r\n\n|cFFFFFF00-|r Minor bug fixes and improvements on Welcome Screen.\n\n|cFFFFFF00v1.9.3|r\n\n|cFFFFFF00-|r The bar now starts after the icon instead of left window border.\n\n|cFFFFFF00-|r Welcome window now is localizated to others languages\n\n|cFFFFFF00-|r Fixed issue with Damage Rank Plugin.\n\n|cFFFFFF00v1.9.1|r\n\n|cFFFFFF00-|r fixed issue with main window icon when no plugin installed. \n\n|cFFFFFF00-|r fixed issue with some options button text which where out of positioning.\n\n|cFFFFFF00-|r fixed sub menu overlap when near right screen edge.\n\n|cFFFFFF00-|r fixed close button position for default skin.\n\n|cFFFFFF00-|r fixed skin error when selecting solo or right plugins.|cFFFFFF00v1.9.0|r\n\n|cFFFFFF00-|r Fixed minimap icon stuck problem.\n\n|cFFFFFF00-|r Skin support has been rewrite and now is more flexibe.\n\n|cFFFFFF00-|r Added up to 20 new customization options over options panel.\n\n|cFFFFFF00v1.8.4|r\n\n|cFFFFFF00-|r Added slash command 'details reinstall' which cleans Details! config in case of erros.\n\n|cFFFFFF00v1.8.3|r\n\n|cFFFFFF00-|r Added new skin: Simple Gray.\n\n|cFFFFFF00-|r Added minimap and interface addon panel buttons.\n\n|cFFFFFF00-|r Added new tutorials bubbles for basic aspects of Details! window.\n\n|cFFFFFF00-|r Fixed a issue with Panic Mode where sometimes his isnt triggered.\n\n|cFFFFFF00v1.8.0|r\n\n|cFFFFFF00-|r Added a new plugin: You Are Not Prepared.\n\n|cFFFFFF00-|r New options panel!\n\n|cFFFFFF00v1.7.0|r\n\n- Fixed some colors issues with enimies bars.\n\n|cFFFFFF00-|r Fixed some phrases which isn't still not translated to enUS.\n\n|cFFFFFF00-|r Major rewrite on CC-Breaks, now it's working properly.\n\n|cFFFFFF00-|r Added new sub attribute for damage: Voidzones & Debuffs.|cFFFFFF00v1.6.7|r\n\n- Added support to skins, you can change over options panel.\n\n|cFFFFFF00v1.6.5|r\n\n|cFFFFFF00-|r Added sub attribute 'Enemies' which shows, of course, only enemies.\n\n|cFFFFFF00-|r Fixed issue with successful spell cast.\n\n|cFFFFFF00v1.6.3|r\n\n|cFFFFFF00-|r data capture now runs 4% faster.\n\n|cFFFFFF00-|r Fixed issue with pets were wasn't uptading owner activity time.\n\n|cFFFFFF00-|r Fixed healing being counted even out of combat.\n\n|cFFFFFF00-|r Fixed some problems with multi-boss encountes like Twin Consorts.\n\n|cFFFFFF00-|r Added options for concatenate trash segments.\n\n|cFFFFFF00-|r Added options for auto remove trash segments. \n\n|cFFFFFF00-|r Added options for change bar height. \n\n|cFFFFFF00-|r Encounter Details now display how many interrupted and successful cast of a boss skill." + + Loc ["STRING_VERSION_LOG"] = "|cFFFFFF00v1.10.0|r\n\n|cFFFFFF00-|r Fixed a issue with overall data Dps when have only one segment.\n\n|cFFFFFF00-|r Changed colors and added some backgrounds for menus.\n\n|cFFFFFF00-|r Options panel has his height size increased.\n\n|cFFFFFF00-|r Added options for hide the window or change the transparency when in combat.\n\n|cFFFFFF00-|r Added a control panel for plugins, where you can enable or disable then.\n\n|cFFFFFF00v1.9.5|r\n\n|cFFFFFF00-|r More fixes on Skins support and new tools for plugins.|r\n\n|cFFFFFF00v1.9.4|r\n\n|cFFFFFF00-|r Minor bug fixes and improvements on Welcome Screen.\n\n|cFFFFFF00v1.9.3|r\n\n|cFFFFFF00-|r The bar now starts after the icon instead of left window border.\n\n|cFFFFFF00-|r Welcome window now is localizated to others languages\n\n|cFFFFFF00-|r Fixed issue with Damage Rank Plugin.\n\n|cFFFFFF00v1.9.1|r\n\n|cFFFFFF00-|r fixed issue with main window icon when no plugin installed. \n\n|cFFFFFF00-|r fixed issue with some options button text which where out of positioning.\n\n|cFFFFFF00-|r fixed sub menu overlap when near right screen edge.\n\n|cFFFFFF00-|r fixed close button position for default skin.\n\n|cFFFFFF00-|r fixed skin error when selecting solo or right plugins.|cFFFFFF00v1.9.0|r\n\n|cFFFFFF00-|r Fixed minimap icon stuck problem.\n\n|cFFFFFF00-|r Skin support has been rewrite and now is more flexibe.\n\n|cFFFFFF00-|r Added up to 20 new customization options over options panel.\n\n|cFFFFFF00v1.8.4|r\n\n|cFFFFFF00-|r Added slash command 'details reinstall' which cleans Details! config in case of erros.\n\n|cFFFFFF00v1.8.3|r\n\n|cFFFFFF00-|r Added new skin: Simple Gray.\n\n|cFFFFFF00-|r Added minimap and interface addon panel buttons.\n\n|cFFFFFF00-|r Added new tutorials bubbles for basic aspects of Details! window.\n\n|cFFFFFF00-|r Fixed a issue with Panic Mode where sometimes his isnt triggered.\n\n|cFFFFFF00v1.8.0|r\n\n|cFFFFFF00-|r Added a new plugin: You Are Not Prepared.\n\n|cFFFFFF00-|r New options panel!\n\n|cFFFFFF00v1.7.0|r\n\n- Fixed some colors issues with enimies bars.\n\n|cFFFFFF00-|r Fixed some phrases which isn't still not translated to enUS.\n\n|cFFFFFF00-|r Major rewrite on CC-Breaks, now it's working properly.\n\n|cFFFFFF00-|r Added new sub attribute for damage: Voidzones & Debuffs.|cFFFFFF00v1.6.7|r\n\n- Added support to skins, you can change over options panel.\n\n|cFFFFFF00v1.6.5|r\n\n|cFFFFFF00-|r Added sub attribute 'Enemies' which shows, of course, only enemies.\n\n|cFFFFFF00-|r Fixed issue with successful spell cast." Loc ["STRING_DETAILS1"] = "|cffffaeaeDetails:|r " --> color and details name @@ -50,6 +49,8 @@ if not Loc then return end Loc ["STRING_EQUILIZING"] = "Sharing encounter data" Loc ["STRING_LEFT_CLICK_SHARE"] = "Left click to report." + Loc ["STRING_REPORT_BUTTON_TOOLTIP"] = "Click to open Report Dialog" + Loc ["STRING_LAST_COOLDOWN"] = "last cooldown used" Loc ["STRING_NOLAST_COOLDOWN"] = "no cooldown used" @@ -398,6 +399,7 @@ if not Loc then return end Loc ["STRING_OPTIONS_GENERAL"] = "General Settings" Loc ["STRING_OPTIONS_APPEARANCE"] = "Appearance" Loc ["STRING_OPTIONS_PERFORMANCE"] = "Performance" + Loc ["STRING_OPTIONS_PLUGINS"] = "Plugins" Loc ["STRING_OPTIONS_SOCIAL"] = "Social" Loc ["STRING_OPTIONS_SOCIAL_DESC"] = "Tell how do you want to be known in your guild enviorement." Loc ["STRING_OPTIONS_NICKNAME"] = "Nickname" @@ -420,6 +422,10 @@ if not Loc then return end Loc ["STRING_OPTIONS_MINIMAP_DESC"] = "Show or Hide minimap icon." Loc ["STRING_OPTIONS_TIMEMEASURE"] = "Time Measure" Loc ["STRING_OPTIONS_TIMEMEASURE_DESC"] = "|cFFFFFFFFActivity|r: the timer of each raid member is put on hold if his activity is ceased and back again to count when is resumed, common way of mensure Dps and Hps.\n\n|cFFFFFFFFEffective|r: used on rankings, this method uses the elapsed combat time for mensure the Dps and Hps of all raid members." + Loc ["STRING_OPTIONS_HIDECOMBAT"] = "Hide On Combat" + Loc ["STRING_OPTIONS_HIDECOMBAT_DESC"] = "If enabled, this instance window is hidden when you enter in combat." + Loc ["STRING_OPTIONS_HIDECOMBATALPHA"] = "Transparency" + Loc ["STRING_OPTIONS_HIDECOMBATALPHA_DESC"] = "The window can be completely hidden or just be more transparent." Loc ["STRING_OPTIONS_PERFORMANCE1"] = "Performance Tweaks" Loc ["STRING_OPTIONS_PERFORMANCE1_DESC"] = "This options can help save some cpu usage." diff --git a/locales/Details-ptBR.lua b/locales/Details-ptBR.lua index b51ac0ff..73bbd6a9 100644 --- a/locales/Details-ptBR.lua +++ b/locales/Details-ptBR.lua @@ -3,7 +3,7 @@ if not Loc then return end -------------------------------------------------------------------------------------------------------------------------------------------- - Loc ["STRING_VERSION_LOG"] = "|cFFFFFF00v1.9.5|r\n\n|cFFFFFF00-Mais correcoes para as Skins e suporte a novos plugins.|r\n\n|cFFFFFF00v1.9.4|r\n\n|cFFFFFF00-|r Pequenas correcoes e melhorias na tela de boas vindas.\n\n|cFFFFFF00v1.9.3|r\n\n|cFFFFFF00-|r A barra agora comeca apos o icone e nao mais na borda esquerda da janela.\n\n|cFFFFFF00-|r Janela de boas vindas agora esta traduzida para outros idiomas.\n\n|cFFFFFF00-|r Corrigido o problema que estava afetando o plugin de Rank de Dano.\n\n|cFFFFFF00v1.9.1|r\n\n|cFFFFFF00-|r corrigido problema do icone na janela principal quando nao havia nenhum plugin instalado. \n\n|cFFFFFF00-|r corrigido problema com alguns botoes no painel de opcoes onde o texto estava fora do lugar.\n\n|cFFFFFF00-|r corrigido a posicao dos sub menus quando proximos a borda direita do monitor.\n\n|cFFFFFF00-|r corrigida a posicao do botao de fechar do skin padrao.\n\n|cFFFFFF00-|r corrigido um erro nas skins ao selecionar um plugin de raide ou solo.|cFFFFFF00v1.9.0|r\n\n|cFFFFFF00-|r Corrigido o problema de nao movimentar o botao no minimapa.\n\n|cFFFFFF00-|r Suporte a skins foi reescrito e agora ficou mais flexivel.\n\n|cFFFFFF00-|r Adicionadas mais de 20 opcoes de customizacao no painel de opcoes.\n\n|cFFFFFF00v1.8.4|r\n\n|cFFFFFF00-|r Adicionado comando 'details reinstalar' no qual limpa a configuracao do Details! em caso de erros.\n\n|cFFFFFF00v1.8.3|r\n\n|cFFFFFF00-|r Adicionada nova skin: Simple Gray.\n\n|cFFFFFF00-|r Adicionado botoes para o Details! no minimapa e menu de addons no painel de intercace.\n\n|cFFFFFF00-|r Adicionados novas bolhas de tutoriais para aspectos basicos das janelas do Details!.\n\n|cFFFFFF00-|r Corrigido o Modo Panico aonde as vezes ele nao era disparado.\n\n|cFFFFFF00v1.8.0|r\n\n- Adicionado novo plugin: You Are Not Prepared.\n\n|cFFFFFF00-|r Novo painel de opcoes!\n\n|cFFFFFF00v1.7.0|r\n\n- Corrigido alguns problemas com as cores das barras de inimigos.\n\n|cFFFFFF00-|r CC Quebrado foi inteiramente reescrito e agora deve funcionar corretamente.\n\n|cFFFFFF00-|r Adicionado novo sub atributo ao dano: Voidzones & Debuffs.|cFFFFFF00v1.6.7|r\n\n- Adicionado suporte a skins, troque ela atraves do painel de opcoes.\n\n|cFFFFFF00v1.6.5|r\n\n|cFFFFFF00-|r Adicionado o sub atributo 'Inimigos' que mostra, eh claro, somente inimigos.\n\n|cFFFFFF00-|r Corrigido um problema na captura das magias conjuradas.|cFFFFFF00v1.6.3|r\n\n|cFFFFFF00-|r captura de dados agora roda 4% mais rapido.\n\n|cFFFFFF00-|r Corrigido problema onde os ajudantes nao atualizavam o tempo de atividade do dono.\n\n|cFFFFFF00-|r Corrigido problema onde o healing era contado mesmo fora do combate.\n\n|cFFFFFF00-|r Corrigido problema com chefes multiplos como Twin Consorts.\n\n|cFFFFFF00-|r Adicionada opcao para juntar os segmentos de trash mobs.\n\n|cFFFFFF00-|r Adicionada opcao para auto remover os segmentos de trash mobs. \n\n|cFFFFFF00-|r Adicionada opcao para alterar a altura das barras.\n\n|cFFFFFF00-|r Plugin Encounter Details agora mostra quantos cast bem sucedidos as magias interrompidas tiveram." + Loc ["STRING_VERSION_LOG"] = "|cFFFFFF00v1.10.0|r\n\n|cFFFFFF00-|r Corrigido um problema no Dps no segmento total quando existia apenas 1 segmento.\n\n|cFFFFFF00-|r Cores e imagem de fundo dos menus foram alterados.\n\n|cFFFFFF00-|r A altura do painel de opcoes foi aumentada.\n\n|cFFFFFF00-|r Adicionada opcao para esconder ou alterar a transparencia da janela quando estiver em combate.\n\n|cFFFFFF00-|r Adicionado um painel de controle de plugins para ativar ou desativa-los.\n\n|cFFFFFF00v1.9.5|r\n\n|cFFFFFF00-|rMais correcoes para as Skins e suporte a novos plugins.|r\n\n|cFFFFFF00v1.9.4|r\n\n|cFFFFFF00-|r Pequenas correcoes e melhorias na tela de boas vindas.\n\n|cFFFFFF00v1.9.3|r\n\n|cFFFFFF00-|r A barra agora comeca apos o icone e nao mais na borda esquerda da janela.\n\n|cFFFFFF00-|r Janela de boas vindas agora esta traduzida para outros idiomas.\n\n|cFFFFFF00-|r Corrigido o problema que estava afetando o plugin de Rank de Dano.\n\n|cFFFFFF00v1.9.1|r\n\n|cFFFFFF00-|r corrigido problema do icone na janela principal quando nao havia nenhum plugin instalado. \n\n|cFFFFFF00-|r corrigido problema com alguns botoes no painel de opcoes onde o texto estava fora do lugar.\n\n|cFFFFFF00-|r corrigido a posicao dos sub menus quando proximos a borda direita do monitor.\n\n|cFFFFFF00-|r corrigida a posicao do botao de fechar do skin padrao.\n\n|cFFFFFF00-|r corrigido um erro nas skins ao selecionar um plugin de raide ou solo.|cFFFFFF00v1.9.0|r\n\n|cFFFFFF00-|r Corrigido o problema de nao movimentar o botao no minimapa.\n\n|cFFFFFF00-|r Suporte a skins foi reescrito e agora ficou mais flexivel.\n\n|cFFFFFF00-|r Adicionadas mais de 20 opcoes de customizacao no painel de opcoes.\n\n|cFFFFFF00v1.8.4|r\n\n|cFFFFFF00-|r Adicionado comando 'details reinstalar' no qual limpa a configuracao do Details! em caso de erros.\n\n|cFFFFFF00v1.8.3|r\n\n|cFFFFFF00-|r Adicionada nova skin: Simple Gray.\n\n|cFFFFFF00-|r Adicionado botoes para o Details! no minimapa e menu de addons no painel de intercace.\n\n|cFFFFFF00-|r Adicionados novas bolhas de tutoriais para aspectos basicos das janelas do Details!.\n\n|cFFFFFF00-|r Corrigido o Modo Panico aonde as vezes ele nao era disparado.\n\n|cFFFFFF00v1.8.0|r\n\n- Adicionado novo plugin: You Are Not Prepared.\n\n|cFFFFFF00-|r Novo painel de opcoes!\n\n|cFFFFFF00v1.7.0|r\n\n- Corrigido alguns problemas com as cores das barras de inimigos.\n\n|cFFFFFF00-|r CC Quebrado foi inteiramente reescrito e agora deve funcionar corretamente.\n\n|cFFFFFF00-|r Adicionado novo sub atributo ao dano: Voidzones & Debuffs.|cFFFFFF00v1.6.7|r\n\n- Adicionado suporte a skins, troque ela atraves do painel de opcoes.\n\n|cFFFFFF00v1.6.5|r\n\n|cFFFFFF00-|r Adicionado o sub atributo 'Inimigos' que mostra, eh claro, somente inimigos.\n\n|cFFFFFF00-|r Corrigido um problema na captura das magias conjuradas." Loc ["STRING_DETAILS1"] = "|cffffaeaeDetalhes:|r " --> color and details name @@ -47,6 +47,8 @@ if not Loc then return end Loc ["STRING_EQUILIZING"] = "Comparilhando dados" Loc ["STRING_LEFT_CLICK_SHARE"] = "Clique para enviar relatorio." + Loc ["STRING_REPORT_BUTTON_TOOLTIP"] = "Clique para abrir a Caixa de Relatorios." + Loc ["STRING_LAST_COOLDOWN"] = "ultimo cooldown usado" Loc ["STRING_NOLAST_COOLDOWN"] = "nenhum cooldown usado" @@ -390,6 +392,7 @@ if not Loc then return end Loc ["STRING_OPTIONS_GENERAL"] = "Configuracoes Gerais" Loc ["STRING_OPTIONS_APPEARANCE"] = "Aparencia" Loc ["STRING_OPTIONS_PERFORMANCE"] = "Performance" + Loc ["STRING_OPTIONS_PLUGINS"] = "Plugins" Loc ["STRING_OPTIONS_SOCIAL"] = "Social" Loc ["STRING_OPTIONS_SOCIAL_DESC"] = "Diga como voce gostaria de ser conhecido na sua guilda." Loc ["STRING_OPTIONS_NICKNAME"] = "Apelido" @@ -412,6 +415,10 @@ if not Loc then return end Loc ["STRING_OPTIONS_MINIMAP_DESC"] = "Mostra ou esconde o icone no mini mapa." Loc ["STRING_OPTIONS_TIMEMEASURE"] = "Medidas do Tempo" Loc ["STRING_OPTIONS_TIMEMEASURE_DESC"] = "|cFFFFFFFFTempo de Atividade|r: o tempo de cada membro da raide eh posto em pausa quando ele ficar ocioso e volta a contar o tempo quando ele voltar a atividade, eh a maneira mais comum de medir o Dps e Hps.\n\n|cFFFFFFFFTempo Efetivo|r: muito usado para ranqueamentos, este metodo usa o tempo total da luta para medir o Dps e Hps de todos os membros da raide." + Loc ["STRING_OPTIONS_HIDECOMBAT"] = "Esconder no Combate" + Loc ["STRING_OPTIONS_HIDECOMBAT_DESC"] = "Se ativada, a janela desta instancia ficara oculta quando voce entrar em combate." + Loc ["STRING_OPTIONS_HIDECOMBATALPHA"] = "Transparencia" + Loc ["STRING_OPTIONS_HIDECOMBATALPHA_DESC"] = "A janela pode ser completamente escondida ou apenas ficar mais transparente." Loc ["STRING_OPTIONS_PERFORMANCE1"] = "Ajustes de Performance" Loc ["STRING_OPTIONS_PERFORMANCE1_DESC"] = "Estas opcoes podem ajudar no desempenho deste addon." diff --git a/plugins/Details_DmgRank/Details_DmgRank.lua b/plugins/Details_DmgRank/Details_DmgRank.lua index e7eff9a7..33805cd8 100644 --- a/plugins/Details_DmgRank/Details_DmgRank.lua +++ b/plugins/Details_DmgRank/Details_DmgRank.lua @@ -44,6 +44,13 @@ local function CreatePluginFrames (data) local combat = select (1, ...) --print (combat) DmgRank:Start() + + elseif (event == "PLUGIN_DISABLED") then + DmgRankFrame:SetScript ("OnUpdate", nil) + DmgRank:Cancel() + + elseif (event == "PLUGIN_ENABLED") then + end end @@ -542,7 +549,7 @@ function DmgRank:OnEvent (_, event, ...) local MINIMAL_DETAILS_VERSION_REQUIRED = 1 --> Install plugin inside details - local install = _G._detalhes:InstallPlugin ("SOLO", Loc ["STRING_PLUGIN_NAME"], "Interface\\Icons\\ACHIEVEMENT_GUILDPERK_HONORABLEMENTION_RANK2", DmgRank, "DETAILS_PLUGIN_DAMAGE_RANK", MINIMAL_DETAILS_VERSION_REQUIRED) + local install, saveddata = _G._detalhes:InstallPlugin ("SOLO", Loc ["STRING_PLUGIN_NAME"], "Interface\\Icons\\ACHIEVEMENT_GUILDPERK_HONORABLEMENTION_RANK2", DmgRank, "DETAILS_PLUGIN_DAMAGE_RANK", MINIMAL_DETAILS_VERSION_REQUIRED, "Details! Team", "v1.09") if (type (install) == "table" and install.error) then print (install.error) end diff --git a/plugins/Details_EncounterDetails/Details_EncounterDetails.lua b/plugins/Details_EncounterDetails/Details_EncounterDetails.lua index 3cb6b0b6..8b67b7ce 100644 --- a/plugins/Details_EncounterDetails/Details_EncounterDetails.lua +++ b/plugins/Details_EncounterDetails/Details_EncounterDetails.lua @@ -123,6 +123,14 @@ local function CreatePluginFrames (data) end EncounterDetails:HideIcon() EncounterDetails:CloseWindow() + + elseif (event == "PLUGIN_DISABLED") then + EncounterDetails:HideIcon() + EncounterDetails:CloseWindow() + + elseif (event == "PLUGIN_ENABLED") then + --EncounterDetails:ShowIcon() + end end @@ -182,7 +190,7 @@ local function CreatePluginFrames (data) EncounterDetails.ToolbarButton = _detalhes.ToolBar:NewPluginToolbarButton (EncounterDetails.OpenWindow, "Interface\\Scenarios\\ScenarioIcon-Boss", Loc ["STRING_TOOLTIP"], 12, 12, "ENCOUNTERDETAILS_BUTTON") --"Interface\\COMMON\\help-i" --> setpoint anchors mod if needed EncounterDetails.ToolbarButton.y = 0.5 - EncounterDetails.ToolbarButton.x = 5 + EncounterDetails.ToolbarButton.x = 0 --> build all frames ans widgets _detalhes.EncounterDetailsTempWindow (EncounterDetails) @@ -1318,7 +1326,7 @@ function EncounterDetails:OnEvent (_, event, ...) local MINIMAL_DETAILS_VERSION_REQUIRED = 1 --> Install - local install = _G._detalhes:InstallPlugin ("TOOLBAR", Loc ["STRING_PLUGIN_NAME"], "placeholder string", EncounterDetails, "DETAILS_PLUGIN_ENCOUNTER_DETAILS", MINIMAL_DETAILS_VERSION_REQUIRED) + local install, saveddata = _G._detalhes:InstallPlugin ("TOOLBAR", Loc ["STRING_PLUGIN_NAME"], "Interface\\Scenarios\\ScenarioIcon-Boss", EncounterDetails, "DETAILS_PLUGIN_ENCOUNTER_DETAILS", MINIMAL_DETAILS_VERSION_REQUIRED, "Details! Team", "v1.05") if (type (install) == "table" and install.error) then print (install.error) end diff --git a/plugins/Details_EncounterDetails/frames.lua b/plugins/Details_EncounterDetails/frames.lua index 8811bf20..6c6721b4 100644 --- a/plugins/Details_EncounterDetails/frames.lua +++ b/plugins/Details_EncounterDetails/frames.lua @@ -282,7 +282,6 @@ Message: ..\AddOns\Details_EncounterDetails\frames.lua line 156: if (g.max_damage > 0) then local normalizePercent = g.max_damage / dps_max - print ("Normalizing: " .. normalizePercent) for dataIndex, Data in ipairs (g.Data) do local Points = Data.Points for i = 1, #Points do diff --git a/plugins/Details_ErrorReport/Details_ErrorReport.lua b/plugins/Details_ErrorReport/Details_ErrorReport.lua index b34309f1..936e151a 100644 --- a/plugins/Details_ErrorReport/Details_ErrorReport.lua +++ b/plugins/Details_ErrorReport/Details_ErrorReport.lua @@ -75,7 +75,13 @@ local BuildReportPanel = function() function ErrorReport:OnDetailsEvent (event, ...) - return + if (event == "PLUGIN_DISABLED") then + ErrorReport:HideToolbarIcon (ErrorReport.ToolbarButton) + + elseif (event == "PLUGIN_ENABLED") then + ErrorReport:ShowToolbarIcon (ErrorReport.ToolbarButton) + + end end --> catch Details! main object @@ -90,7 +96,7 @@ ErrorReport.ToolbarButton = _detalhes.ToolBar:NewPluginToolbarButton (ErrorReport.OpenWindow, "Interface\\HELPFRAME\\HelpIcon-Bug", Loc ["STRING_TOOLTIP"], 20, 20, "DETAILS_ERRORREPORT_BUTTON") --> setpoint anchors mod if needed ErrorReport.ToolbarButton.y = 0 - ErrorReport.ToolbarButton.x = 1 + ErrorReport.ToolbarButton.x = 0 ErrorReport:ShowToolbarIcon (ErrorReport.ToolbarButton) @@ -232,7 +238,7 @@ BuildReportPanel (data) --> Install - local install = _G._detalhes:InstallPlugin ("TOOLBAR", Loc ["STRING_PLUGIN_NAME"], "placeholder string", ErrorReport, "DETAILS_PLUGIN_REPORT_ERRORS") + local install, saveddata = _G._detalhes:InstallPlugin ("TOOLBAR", Loc ["STRING_PLUGIN_NAME"], "Interface\\HELPFRAME\\HelpIcon-Bug", ErrorReport, "DETAILS_PLUGIN_REPORT_ERRORS", 1, "Details! Team", "v1.03") if (type (install) == "table" and install.error) then print (install.error) end diff --git a/plugins/Details_RaidInfo-SiegeOfOrgrimmar/images/icon256x128.tga b/plugins/Details_RaidInfo-SiegeOfOrgrimmar/images/icon256x128.tga index c624dacb..cc9feccf 100644 Binary files a/plugins/Details_RaidInfo-SiegeOfOrgrimmar/images/icon256x128.tga and b/plugins/Details_RaidInfo-SiegeOfOrgrimmar/images/icon256x128.tga differ diff --git a/plugins/Details_SpellDetails/Details_SpellDetails.lua b/plugins/Details_SpellDetails/Details_SpellDetails.lua index 269dca41..0d504a50 100644 --- a/plugins/Details_SpellDetails/Details_SpellDetails.lua +++ b/plugins/Details_SpellDetails/Details_SpellDetails.lua @@ -93,6 +93,10 @@ local function CreatePluginFrames (data) --> trigger when a buff is applyed on player SpellDetails:RefreshBuffs() + elseif (event == "PLUGIN_DISABLED") then + + elseif (event == "PLUGIN_ENABLED") then + end end @@ -1272,7 +1276,7 @@ function SpellDetails:OnEvent (_, event, ...) local MINIMAL_DETAILS_VERSION_REQUIRED = 1 --> Install plugin inside details - local install = _G._detalhes:InstallPlugin ("SOLO", Loc ["PLUGIN_NAME"], "Interface\\Icons\\INV_Fabric_Spellweave", SpellDetails, "DETAILS_PLUGIN_SPELL_DETAILS", MINIMAL_DETAILS_VERSION_REQUIRED) + local install = _G._detalhes:InstallPlugin ("SOLO", Loc ["PLUGIN_NAME"], "Interface\\Icons\\INV_Fabric_Spellweave", SpellDetails, "DETAILS_PLUGIN_SPELL_DETAILS", MINIMAL_DETAILS_VERSION_REQUIRED, "Details! Team", "v1.08") if (type (install) == "table" and install.error) then print (install.error) end diff --git a/plugins/Details_TimeAttack/Details_TimeAttack.lua b/plugins/Details_TimeAttack/Details_TimeAttack.lua index 301801b6..932339b4 100644 --- a/plugins/Details_TimeAttack/Details_TimeAttack.lua +++ b/plugins/Details_TimeAttack/Details_TimeAttack.lua @@ -41,6 +41,10 @@ local function CreatePluginFrames (data) elseif (event == "COMBAT_PLAYER_ENTER") then --> combat started TimeAttack:ScheduleTimer ("TimeAttackPluginStart", 2) + elseif (event == "PLUGIN_DISABLED") then + + elseif (event == "PLUGIN_ENABLED") then + end end @@ -672,7 +676,7 @@ function TimeAttack:OnEvent (_, event, ...) local MINIMAL_DETAILS_VERSION_REQUIRED = 1 --> Install - local install = _G._detalhes:InstallPlugin ("SOLO", Loc ["STRING_PLUGIN_NAME"], "Interface\\Icons\\SPELL_HOLY_BORROWEDTIME", TimeAttack, "DETAILS_PLUGIN_TIME_ATTACK", MINIMAL_DETAILS_VERSION_REQUIRED) + local install = _G._detalhes:InstallPlugin ("SOLO", Loc ["STRING_PLUGIN_NAME"], "Interface\\Icons\\SPELL_HOLY_BORROWEDTIME", TimeAttack, "DETAILS_PLUGIN_TIME_ATTACK", MINIMAL_DETAILS_VERSION_REQUIRED, "Details! Team", "v1.04") if (type (install) == "table" and install.error) then print (install.errortext) return diff --git a/plugins/Details_TinyThreat/Details_TinyThreat.lua b/plugins/Details_TinyThreat/Details_TinyThreat.lua index 0f5e3dbe..8b7c551d 100644 --- a/plugins/Details_TinyThreat/Details_TinyThreat.lua +++ b/plugins/Details_TinyThreat/Details_TinyThreat.lua @@ -113,6 +113,10 @@ local function CreatePluginFrames (data) elseif (event == "DETAILS_INSTANCE_ENDSTRETCH") then ThreatMeterFrame:SetFrameStrata ("MEDIUM") + elseif (event == "PLUGIN_DISABLED") then + + elseif (event == "PLUGIN_ENABLED") then + end end @@ -364,7 +368,7 @@ function ThreatMeter:OnEvent (_, event, ...) local MINIMAL_DETAILS_VERSION_REQUIRED = 1 --> Install - local install = _G._detalhes:InstallPlugin ("TANK", Loc ["STRING_PLUGIN_NAME"], "Interface\\Icons\\Ability_Paladin_ShieldofVengeance", ThreatMeter, "DETAILS_PLUGIN_TINY_THREAT", MINIMAL_DETAILS_VERSION_REQUIRED) + local install = _G._detalhes:InstallPlugin ("TANK", Loc ["STRING_PLUGIN_NAME"], "Interface\\Icons\\Ability_Paladin_ShieldofVengeance", ThreatMeter, "DETAILS_PLUGIN_TINY_THREAT", MINIMAL_DETAILS_VERSION_REQUIRED, "Details! Team", "v1.02") if (type (install) == "table" and install.error) then print (install.error) end diff --git a/plugins/Details_Vanguard/Details_Vanguard.lua b/plugins/Details_Vanguard/Details_Vanguard.lua index 1610fe4c..81889530 100644 --- a/plugins/Details_Vanguard/Details_Vanguard.lua +++ b/plugins/Details_Vanguard/Details_Vanguard.lua @@ -139,6 +139,10 @@ local function CreatePluginFrames (data) Vanguard.TankFrames [i].Life (100) end + elseif (event == "PLUGIN_DISABLED") then + + elseif (event == "PLUGIN_ENABLED") then + end end @@ -1210,7 +1214,7 @@ function Vanguard:OnEvent (_, event, ...) local MINIMAL_DETAILS_VERSION_REQUIRED = 1 --> Install - local install = _G._detalhes:InstallPlugin ("TANK", Loc ["STRING_PLUGIN_NAME"], "Interface\\Icons\\INV_Shield_77", Vanguard, "DETAILS_PLUGIN_VANGUARD", MINIMAL_DETAILS_VERSION_REQUIRED) + local install = _G._detalhes:InstallPlugin ("TANK", Loc ["STRING_PLUGIN_NAME"], "Interface\\Icons\\INV_Shield_77", Vanguard, "DETAILS_PLUGIN_VANGUARD", MINIMAL_DETAILS_VERSION_REQUIRED, "Details! Team", "v1.06") if (type (install) == "table" and install.error) then print (install.error) end diff --git a/plugins/Details_YouAreNotPrepared/Details_YouAreNotPrepared.lua b/plugins/Details_YouAreNotPrepared/Details_YouAreNotPrepared.lua index ed777efe..c386424d 100644 --- a/plugins/Details_YouAreNotPrepared/Details_YouAreNotPrepared.lua +++ b/plugins/Details_YouAreNotPrepared/Details_YouAreNotPrepared.lua @@ -38,6 +38,13 @@ local function CreatePluginFrames() table.wipe (YouAreNotPrepared.deaths_table) YouAreNotPrepared:Clear() + elseif (event == "PLUGIN_DISABLED") then + table.wipe (YouAreNotPrepared.deaths_table) + YouAreNotPrepared:Clear() + YouAreNotPreparedFrame:Hide() + + elseif (event == "PLUGIN_ENABLED") then + end end @@ -364,6 +371,12 @@ end function YouAreNotPrepared:OnDeath (token, time, who_serial, who_name, who_flags, alvo_serial, alvo_name, alvo_flags, death_table, last_cooldown, time_of_death, max_health) + --> hooks run inside parser and do not check if the plugin is enabled or not. + --> we need to check this here before continue. + if (not YouAreNotPrepared.__enabled) then + return + end + if (alvo_name == YouAreNotPrepared.playername) then --[[ debug mode @@ -400,7 +413,7 @@ function YouAreNotPrepared:OnEvent (_, event, ...) local MINIMAL_DETAILS_VERSION_REQUIRED = 12 --> install - local install = _G._detalhes:InstallPlugin ("TOOLBAR", Loc ["STRING_PLUGIN_NAME"], "placeholder string", YouAreNotPrepared, "DETAILS_PLUGIN_YANP", MINIMAL_DETAILS_VERSION_REQUIRED) + local install = _G._detalhes:InstallPlugin ("TOOLBAR", Loc ["STRING_PLUGIN_NAME"], [[Interface\ICONS\Achievement_Boss_Illidan]], YouAreNotPrepared, "DETAILS_PLUGIN_YANP", MINIMAL_DETAILS_VERSION_REQUIRED, "Details! Team", "v1.01") if (type (install) == "table" and install.error) then print (install.error) end diff --git a/plugins/Details_YouAreNotPrepared/enUS.lua b/plugins/Details_YouAreNotPrepared/enUS.lua index 1792144f..a99b4773 100644 --- a/plugins/Details_YouAreNotPrepared/enUS.lua +++ b/plugins/Details_YouAreNotPrepared/enUS.lua @@ -4,6 +4,6 @@ if (not Loc) then return end -Loc ["STRING_PLUGIN_NAME"] = "You Are Not Prepared (plugin for Details!)" +Loc ["STRING_PLUGIN_NAME"] = "You Are Not Prepared" Loc ["STRING_PLUGIN_ALERT"] = "|cFFFFFF00YANP|r: click to see the death log " diff --git a/plugins/Details_YouAreNotPrepared/ptBR.lua b/plugins/Details_YouAreNotPrepared/ptBR.lua index ef0b8b71..d84cc8bc 100644 --- a/plugins/Details_YouAreNotPrepared/ptBR.lua +++ b/plugins/Details_YouAreNotPrepared/ptBR.lua @@ -4,5 +4,5 @@ if (not Loc) then return end -Loc ["STRING_PLUGIN_NAME"] = "You Are Not Prepared (plugin for Details!)" +Loc ["STRING_PLUGIN_NAME"] = "You Are Not Prepared" Loc ["STRING_PLUGIN_ALERT"] = "YANP: clique para ver o registro da morte" \ No newline at end of file