diff --git a/boot.lua b/boot.lua index e4d9cfc2..c87d5133 100644 --- a/boot.lua +++ b/boot.lua @@ -3,9 +3,9 @@ _ = nil _detalhes = LibStub("AceAddon-3.0"):NewAddon("_detalhes", "AceTimer-3.0", "AceComm-3.0", "AceSerializer-3.0", "NickTag-1.0") - _detalhes.build_counter = 3276 - _detalhes.userversion = "v7.1.0." .. _detalhes.build_counter - _detalhes.realversion = 115 --core version + _detalhes.build_counter = 3305 + _detalhes.userversion = "v7.1.5." .. _detalhes.build_counter + _detalhes.realversion = 116 --core version _detalhes.version = _detalhes.userversion .. " (core " .. _detalhes.realversion .. ")" Details = _detalhes @@ -21,8 +21,9 @@ do local Loc = LibStub ("AceLocale-3.0"):GetLocale ( "Details" ) --[[ -|cFFFFFF00v7.1.0.3276.115 (|cFFFFCC00Jan 08th, 2016|r|cFFFFFF00)|r:\n\n -|cFFFFFF00-|r Fixed the overall data not reseting when starting a new mythic+ dungeon.\n\n +|cFFFFFF00v7.1.5.3305.116 (|cFFFFCC00Jan 15th, 2016|r|cFFFFFF00)|r:\n\n +|cFFFFFF00-|r Another fix for mythic dungeons overall data reset (thanks Tharai @ Curseforge).\n\n +|cFFFFFF00-|r Fix for spec detection on PvP Arenas (thanks Pas06 @ Curseforge).\n\n --]] -- diff --git a/classes/classe_instancia.lua b/classes/classe_instancia.lua index 86ff1e62..508eb0fb 100644 --- a/classes/classe_instancia.lua +++ b/classes/classe_instancia.lua @@ -1253,6 +1253,8 @@ end end --> setup default wallpaper + new_instance.wallpaper.texture = "Interface\\AddOns\\Details\\images\\background" + --[[ 7.1.5 isn't sending the background on the 5º return value ~cleanup local spec = GetSpecialization() if (spec) then local id, name, description, icon, _background, role = GetSpecializationInfo (spec) @@ -1264,6 +1266,7 @@ end end end end + --]] --> finish return new_instance @@ -1281,6 +1284,8 @@ end --> setup all config new_instance:ResetInstanceConfig() --> setup default wallpaper + new_instance.wallpaper.texture = "Interface\\AddOns\\Details\\images\\background" + --[[ 7.1.5 isn't sending the background on the 5º return value ~cleanup local spec = GetSpecialization() if (spec) then local id, name, description, icon, _background, role = GetSpecializationInfo (spec) @@ -1292,7 +1297,7 @@ end end end end - + --]] --> internal stuff new_instance.barras = {} --container que irá armazenar todas as barras new_instance.barraS = {nil, nil} --de x até x são as barras que estão sendo mostradas na tela diff --git a/classes/container_combatentes.lua b/classes/container_combatentes.lua index f99e33be..064d4d27 100644 --- a/classes/container_combatentes.lua +++ b/classes/container_combatentes.lua @@ -256,7 +256,7 @@ if (name == nome) then local spec = GetArenaOpponentSpec (i) if (spec) then - local id, name, description, icon, background, role, class = GetSpecializationInfoByID (spec) + local id, name, description, icon, role, class = GetSpecializationInfoByID (spec) --thanks pas06 novo_objeto.role = role novo_objeto.classe = class novo_objeto.enemy = true diff --git a/gumps/janela_options.lua b/gumps/janela_options.lua index a54d7851..46562e64 100644 --- a/gumps/janela_options.lua +++ b/gumps/janela_options.lua @@ -9036,6 +9036,7 @@ function window:CreateFrame9() if (value) then --> primeira vez que roda: if (not instance.wallpaper.texture) then + --[[ 7.1.5 isn't sending the background on the 5º return value ~cleanup local spec = GetSpecialization() if (spec) then local id, name, description, icon, _background, role = GetSpecializationInfo (spec) @@ -9044,6 +9045,8 @@ function window:CreateFrame9() end end instance.wallpaper.texcoord = {0, 1, 0, 0.703125} + --]] + instance.wallpaper.texture = "Interface\\AddOns\\Details\\images\\background" end instance:InstanceWallpaper (true) diff --git a/gumps/janela_principal.lua b/gumps/janela_principal.lua index a1211fa9..fb13abf8 100644 --- a/gumps/janela_principal.lua +++ b/gumps/janela_principal.lua @@ -2150,7 +2150,7 @@ local icon_frame_on_enter = function (self) local class_icon, class_L, class_R, class_T, class_B = _detalhes:GetClassIcon (class) - local spec_id, spec_name, spec_description, spec_icon, spec_background, spec_role, spec_class = GetSpecializationInfoByID (spec or 0) + local spec_id, spec_name, spec_description, spec_icon, spec_role, spec_class = GetSpecializationInfoByID (spec or 0) --thanks pas06 local spec_L, spec_R, spec_T, spec_B if (spec_id) then spec_L, spec_R, spec_T, spec_B = unpack (_detalhes.class_specs_coords [spec]) @@ -4759,6 +4759,7 @@ function _detalhes:InstanceWallpaper (texture, anchor, alpha, texcoord, width, h end if (not wallpaper.texture and not texture) then + --[[ 7.1.5 isn't sending the background on the 5º return value ~cleanup local spec = GetSpecialization() if (spec) then local _, _, _, _, _background = GetSpecializationInfo (spec) @@ -4766,6 +4767,8 @@ function _detalhes:InstanceWallpaper (texture, anchor, alpha, texcoord, width, h texture = "Interface\\TALENTFRAME\\".._background end end + --]] + texture = "Interface\\AddOns\\Details\\images\\background" texcoord = {0, 1, 0, 0.7} alpha = 0.5 diff --git a/plugins/Details_TimeAttack/Details_TimeAttack.lua b/plugins/Details_TimeAttack/Details_TimeAttack.lua index b192bd40..ee302280 100644 --- a/plugins/Details_TimeAttack/Details_TimeAttack.lua +++ b/plugins/Details_TimeAttack/Details_TimeAttack.lua @@ -69,6 +69,7 @@ local function CreatePluginFrames() --> some times the current spec isn't avaliable yet, so we try to catch 5 seconds after character logon function _detalhes:TimeAttackStartupBackground() + --[[ local spec = GetSpecialization() if (spec) then local id, name, description, icon, _background, role = GetSpecializationInfo (spec) @@ -76,6 +77,8 @@ local function CreatePluginFrames() background:SetTexture ("Interface\\TALENTFRAME\\".._background) end end + --]] + background:SetTexture ("Interface\\AddOns\\Details\\images\\background") end TimeAttack:ScheduleTimer ("TimeAttackStartupBackground", 5)