Necrotic wake weapons
This commit is contained in:
@@ -246,18 +246,18 @@ function _detalhes:AbreJanelaInfo (jogador, from_att_change, refresh, ShiftKeyDo
|
||||
Details:UpdateBreakdownPlayerList()
|
||||
|
||||
--check which tab was selected and reopen that tab
|
||||
if (info.selectedTab == "Summary") then
|
||||
return jogador:MontaInfo()
|
||||
else
|
||||
--open tab
|
||||
for index = 1, #_detalhes.player_details_tabs do
|
||||
local tab = _detalhes.player_details_tabs [index]
|
||||
if (tab:condition (info.jogador, info.atributo, info.sub_atributo)) then
|
||||
if (tab.tabname == info.selectedTab) then
|
||||
--_detalhes.player_details_tabs [index]:Click()
|
||||
--_detalhes.player_details_tabs [index].onclick()
|
||||
_detalhes.player_details_tabs [index]:OnShowFunc()
|
||||
end
|
||||
-- if (info.selectedTab == "Summary") then
|
||||
-- return jogador:MontaInfo()
|
||||
-- else
|
||||
|
||||
--open tab
|
||||
for index = 1, #_detalhes.player_details_tabs do
|
||||
local tab = _detalhes.player_details_tabs [index]
|
||||
if (tab:condition (info.jogador, info.atributo, info.sub_atributo)) then
|
||||
if (tab.tabname == info.selectedTab) then
|
||||
--_detalhes.player_details_tabs [index]:Click()
|
||||
--_detalhes.player_details_tabs [index].onclick()
|
||||
_detalhes.player_details_tabs [index]:OnShowFunc()
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -1493,8 +1493,11 @@ local elvui_skin = function()
|
||||
|
||||
--class icon
|
||||
window.SetClassIcon = function (player, class)
|
||||
if (player.spellicon) then
|
||||
window.classe_icone:SetTexture(player.spellicon)
|
||||
window.classe_icone:SetTexCoord(.1, .9, .1, .9)
|
||||
|
||||
if (player.spec) then
|
||||
elseif (player.spec) then
|
||||
window.classe_icone:SetTexture ([[Interface\AddOns\Details\images\spec_icons_normal_alpha]])
|
||||
window.classe_icone:SetTexCoord (_unpack (_detalhes.class_specs_coords [player.spec]))
|
||||
--esta_barra.icone_classe:SetVertexColor (1, 1, 1)
|
||||
|
||||
@@ -58,9 +58,8 @@
|
||||
self.specIcon:SetBlendMode("BLEND")
|
||||
self.roleIcon:SetBlendMode("BLEND")
|
||||
end
|
||||
|
||||
local updatePlayerLine = function(self, topResult)
|
||||
|
||||
local updatePlayerLine = function(self, topResult)
|
||||
local playerSelected = Details:GetPlayerObjectFromBreakdownWindow()
|
||||
if (playerSelected and playerSelected == self.playerObject) then
|
||||
self:SetBackdropColor(unpack(scrollbox_line_backdrop_color_selected))
|
||||
@@ -69,22 +68,29 @@
|
||||
self:SetBackdropColor(unpack(scrollbox_line_backdrop_color))
|
||||
self.isSelected = nil
|
||||
end
|
||||
|
||||
--adjust the player icon
|
||||
local specIcon, L, R, T, B = Details:GetSpecIcon(self.playerObject.spec, false)
|
||||
local specId, specName, specDescription, specIconId, specRole, specClass
|
||||
|
||||
if (specIcon) then
|
||||
self.specIcon:SetTexture(specIcon)
|
||||
self.specIcon:SetTexCoord(L, R, T, B)
|
||||
|
||||
if (DetailsFramework.IsTimewalkWoW()) then
|
||||
specRole = "NONE"
|
||||
else
|
||||
specId, specName, specDescription, specIconId, specRole, specClass = _G.GetSpecializationInfoByID(self.playerObject.spec)
|
||||
end
|
||||
local specRole
|
||||
|
||||
--adjust the player icon
|
||||
if (self.playerObject.spellicon) then
|
||||
self.specIcon:SetTexture(self.playerObject.spellicon)
|
||||
self.specIcon:SetTexCoord(.1, .9, .1, .9)
|
||||
else
|
||||
self.specIcon:SetTexture(nil)
|
||||
local specIcon, L, R, T, B = Details:GetSpecIcon(self.playerObject.spec, false)
|
||||
local specId, specName, specDescription, specIconId, specClass
|
||||
|
||||
if (specIcon) then
|
||||
self.specIcon:SetTexture(specIcon)
|
||||
self.specIcon:SetTexCoord(L, R, T, B)
|
||||
|
||||
if (DetailsFramework.IsTimewalkWoW()) then
|
||||
specRole = "NONE"
|
||||
else
|
||||
specId, specName, specDescription, specIconId, specRole, specClass = _G.GetSpecializationInfoByID(self.playerObject.spec)
|
||||
end
|
||||
else
|
||||
self.specIcon:SetTexture(nil)
|
||||
end
|
||||
end
|
||||
|
||||
--adjust the role icon
|
||||
|
||||
Reference in New Issue
Block a user