Skip to content

Commit

Permalink
Classic WoW changes
Browse files Browse the repository at this point in the history
I don't have access to classic wow at the moment, so thise changes are what players are telling me it's bugged.
  • Loading branch information
Tercioo committed Jun 8, 2019
1 parent b3ab193 commit e3c8542
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 13 deletions.
20 changes: 10 additions & 10 deletions classes/classe_damage.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2770,22 +2770,22 @@ end
elseif (classe == "UNGROUPPLAYER") then
if (self.enemy) then
if (_detalhes.faction_against == "Horde") then
--texture:SetTexture ("Interface\\ICONS\\Achievement_Character_Orc_Male")
texture:SetTexture ("Interface\\ICONS\\PVPCurrency-Honor-Horde.blp")
texture:SetTexture ("Interface\\ICONS\\Achievement_Character_Troll_Male")
--texture:SetTexture ("Interface\\ICONS\\PVPCurrency-Honor-Horde.blp")
texture:SetTexCoord (0.05, 0.95, 0.05, 0.95)
else
--texture:SetTexture ("Interface\\ICONS\\Achievement_Character_Human_Male")
texture:SetTexture ("Interface\\ICONS\\PVPCurrency-Honor-Alliance.blp")
texture:SetTexture ("Interface\\ICONS\\Achievement_Character_Nightelf_Female")
--texture:SetTexture ("Interface\\ICONS\\PVPCurrency-Honor-Alliance.blp")
texture:SetTexCoord (0.05, 0.95, 0.05, 0.95)
end
else
if (_detalhes.faction_against == "Horde") then
--texture:SetTexture ("Interface\\ICONS\\Achievement_Character_Human_Male")
texture:SetTexture ("Interface\\ICONS\\PVPCurrency-Honor-Alliance.blp")
texture:SetTexture ("Interface\\ICONS\\Achievement_Character_Nightelf_Female")
--texture:SetTexture ("Interface\\ICONS\\PVPCurrency-Honor-Alliance.blp")
texture:SetTexCoord (0.05, 0.95, 0.05, 0.95)
else
--texture:SetTexture ("Interface\\ICONS\\Achievement_Character_Orc_Male")
texture:SetTexture ("Interface\\ICONS\\PVPCurrency-Honor-Horde.blp")
texture:SetTexture ("Interface\\ICONS\\Achievement_Character_Troll_Male")
--texture:SetTexture ("Interface\\ICONS\\PVPCurrency-Honor-Horde.blp")
texture:SetTexCoord (0.05, 0.95, 0.05, 0.95)
end
end
Expand Down Expand Up @@ -4613,7 +4613,7 @@ function atributo_damage:MontaDetalhesDamageDone (spellid, barra, instancia)
if (debuff_uptime) then
hits_string = hits_string .. " |cFFDDDD44(" .. _math_floor (debuff_uptime / info.instancia.showing:GetCombatTime() * 100) .. "% uptime)|r"
end

local spell_cast = misc_actor.spell_cast and misc_actor.spell_cast [spellid]

if (not spell_cast and misc_actor.spell_cast) then
Expand Down Expand Up @@ -4938,7 +4938,7 @@ function atributo_damage:MontaTooltipAlvos (esta_barra, index, instancia)
end
end
end
end
end

_table_sort (habilidades, _detalhes.Sort2)

Expand Down
2 changes: 1 addition & 1 deletion classes/classe_instancia.lua
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,7 @@ end
end

function _detalhes:CriarInstancia (_, id)

if (id and _type (id) == "boolean") then

if (#_detalhes.tabela_instancias >= _detalhes.instances_amount) then
Expand Down
8 changes: 8 additions & 0 deletions gumps/janela_welcome.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@ function _detalhes:OpenWelcomeWindow()
window:SetScript ("OnMouseUp", function() window:StopMovingOrSizing() end)
window:SetScript ("OnHide", function()
_detalhes.tabela_historico:resetar()

if (DetailsFramework.IsClassicWow()) then
local new_instance = Details:GetWindow (1)
new_instance.row_info.use_spec_icons = false
new_instance.row_info.icon_file = [[Interface\AddOns\Details\images\classes_small]]
new_instance:SetBarSpecIconSettings (false)
end

end)

local rodape_bg = window:CreateTexture (nil, "artwork")
Expand Down
4 changes: 2 additions & 2 deletions startup.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1879,9 +1879,9 @@ function _G._detalhes:Start()
--show warning message about classic beta

if (not DetailsFramework.IsClassicWow()) then
print ("|CFFFFFF00[Tercioo]: this version of Details! is being ported to Classic WoW, bugs may appear here on BfA, report at Discord (/details discord).")
print ("|CFFFFFF00[Details!]: this version of Details! is being ported to Classic WoW, bugs may appear here on BfA, report at Discord (/details discord).")
else
print ("|CFFFFFF00[Tercioo]: thanks for testing Details! Damage Meter for Classic WoW, report bugs at Discord (/details discord).")
print ("|CFFFFFF00[Details!]: thanks for testing Details! Damage Meter for Classic WoW, report bugs at Discord (/details discord).")
end

end
Expand Down

0 comments on commit e3c8542

Please sign in to comment.