- Fixed enemies display where sometimes the bars were black instead of red.
- Fixed few places where spec icons wasn't being used on. - Added option to be able to use the report panel when reporting with RaidCheck plugin. - Added Auto Close the window to You Are Not Prepared plugin.
This commit is contained in:
@@ -638,8 +638,13 @@
|
||||
esta_barra.icone_classe:SetTexCoord (0.078125, 0.921875, 0.078125, 0.921875)
|
||||
esta_barra.icone_classe:SetTexture (self.icon)
|
||||
else
|
||||
esta_barra.icone_classe:SetTexture (instancia.row_info.icon_file)
|
||||
esta_barra.icone_classe:SetTexCoord (_unpack (CLASS_ICON_TCOORDS [self.classe])) --very slow method
|
||||
if (instancia.row_info.use_spec_icons and (self.spec or self.my_actor.spec)) then
|
||||
esta_barra.icone_classe:SetTexture (instancia.row_info.spec_file)
|
||||
esta_barra.icone_classe:SetTexCoord (_unpack (_detalhes.class_specs_coords [self.spec or self.my_actor.spec]))
|
||||
else
|
||||
esta_barra.icone_classe:SetTexture (instancia.row_info.icon_file)
|
||||
esta_barra.icone_classe:SetTexCoord (_unpack (CLASS_ICON_TCOORDS [self.classe]))
|
||||
end
|
||||
end
|
||||
esta_barra.icone_classe:SetVertexColor (1, 1, 1)
|
||||
end
|
||||
@@ -773,6 +778,7 @@
|
||||
}, atributo_custom.mt)
|
||||
|
||||
new_actor.displayName = new_actor.nome
|
||||
new_actor.spec = actor.spec
|
||||
|
||||
if (actor.id) then
|
||||
new_actor.id = actor.id
|
||||
|
||||
@@ -1714,7 +1714,6 @@ end
|
||||
esta_barra.icone_classe:SetVertexColor (actor_class_color_r, actor_class_color_g, actor_class_color_b)
|
||||
|
||||
else
|
||||
|
||||
if (instancia.row_info.use_spec_icons and self.spec) then
|
||||
esta_barra.icone_classe:SetTexture (instancia.row_info.spec_file)
|
||||
esta_barra.icone_classe:SetTexCoord (_unpack (_detalhes.class_specs_coords [self.spec]))
|
||||
|
||||
@@ -275,8 +275,13 @@ function atributo_energy:AtualizarResources (qual_barra, colocacao, instancia)
|
||||
esta_barra.icone_classe:SetVertexColor (actor_class_color_r, actor_class_color_g, actor_class_color_b)
|
||||
|
||||
else
|
||||
esta_barra.icone_classe:SetTexture (instancia.row_info.icon_file)
|
||||
esta_barra.icone_classe:SetTexCoord (_unpack (CLASS_ICON_TCOORDS [self.classe])) --very slow method
|
||||
if (instancia.row_info.use_spec_icons and self.spec) then
|
||||
esta_barra.icone_classe:SetTexture (instancia.row_info.spec_file)
|
||||
esta_barra.icone_classe:SetTexCoord (_unpack (_detalhes.class_specs_coords [self.spec]))
|
||||
else
|
||||
esta_barra.icone_classe:SetTexture (instancia.row_info.icon_file)
|
||||
esta_barra.icone_classe:SetTexCoord (_unpack (CLASS_ICON_TCOORDS [self.classe])) --very slow method
|
||||
end
|
||||
esta_barra.icone_classe:SetVertexColor (1, 1, 1)
|
||||
end
|
||||
|
||||
|
||||
@@ -487,14 +487,26 @@ function atributo_misc:DeadAtualizarBarra (morte, qual_barra, colocacao, instanc
|
||||
esta_barra.texto_direita:SetTextColor (_unpack (_detalhes.class_colors [morte[4]]))
|
||||
end
|
||||
|
||||
esta_barra.icone_classe:SetTexture (instancia.row_info.icon_file)
|
||||
esta_barra.icone_classe:SetTexCoord (_unpack (CLASS_ICON_TCOORDS [morte[4]]))
|
||||
|
||||
if (instancia.row_info.use_spec_icons) then
|
||||
local nome = morte[3]
|
||||
local spec = instancia.showing (1, nome) and instancia.showing (1, nome).spec or (instancia.showing (2, nome) and instancia.showing (2, nome).spec)
|
||||
if (spec) then
|
||||
esta_barra.icone_classe:SetTexture (instancia.row_info.spec_file)
|
||||
esta_barra.icone_classe:SetTexCoord (_unpack (_detalhes.class_specs_coords [spec]))
|
||||
else
|
||||
esta_barra.icone_classe:SetTexture (instancia.row_info.icon_file)
|
||||
esta_barra.icone_classe:SetTexCoord (_unpack (CLASS_ICON_TCOORDS [morte[4]]))
|
||||
end
|
||||
else
|
||||
esta_barra.icone_classe:SetTexture (instancia.row_info.icon_file)
|
||||
esta_barra.icone_classe:SetTexCoord (_unpack (CLASS_ICON_TCOORDS [morte[4]]))
|
||||
end
|
||||
esta_barra.icone_classe:SetVertexColor (1, 1, 1)
|
||||
|
||||
if (esta_barra.mouse_over and not instancia.baseframe.isMoving) then --> precisa atualizar o tooltip
|
||||
gump:UpdateTooltip (qual_barra, esta_barra, instancia)
|
||||
end
|
||||
|
||||
--return self:RefreshBarra2 (esta_barra, instancia, tabela_anterior, forcar, esta_porcentagem)
|
||||
end
|
||||
|
||||
function atributo_misc:RefreshWindow (instancia, tabela_do_combate, forcar, exportar, refresh_needed)
|
||||
|
||||
@@ -255,6 +255,11 @@ local food_list = {
|
||||
|
||||
show_panel:Hide()
|
||||
|
||||
DetailsRaidCheck.report_lines = ""
|
||||
local reportFunc = function (IsCurrent, IsReverse, AmtLines)
|
||||
DetailsRaidCheck:SendReportLines (DetailsRaidCheck.report_lines)
|
||||
end
|
||||
|
||||
--> overwrite the default scripts
|
||||
DetailsRaidCheck.ToolbarButton:RegisterForClicks ("AnyUp")
|
||||
DetailsRaidCheck.ToolbarButton:SetScript ("OnClick", function (self, button)
|
||||
@@ -281,7 +286,12 @@ local food_list = {
|
||||
end
|
||||
end
|
||||
|
||||
DetailsRaidCheck:SendMsgToChannel (s, "RAID")
|
||||
if (DetailsRaidCheck.db.use_report_panel) then
|
||||
DetailsRaidCheck.report_lines = s
|
||||
DetailsRaidCheck:SendReportWindow (reportFunc)
|
||||
else
|
||||
DetailsRaidCheck:SendMsgToChannel (s, "RAID")
|
||||
end
|
||||
|
||||
elseif (button == "RightButton") then
|
||||
--> link no pre-pot latest segment
|
||||
@@ -312,7 +322,12 @@ local food_list = {
|
||||
end
|
||||
end
|
||||
|
||||
DetailsRaidCheck:SendMsgToChannel (s, "RAID")
|
||||
if (DetailsRaidCheck.db.use_report_panel) then
|
||||
DetailsRaidCheck.report_lines = s
|
||||
DetailsRaidCheck:SendReportWindow (reportFunc)
|
||||
else
|
||||
DetailsRaidCheck:SendMsgToChannel (s, "RAID")
|
||||
end
|
||||
|
||||
elseif (button == "MiddleButton") then
|
||||
|
||||
@@ -580,7 +595,14 @@ local build_options_panel = function()
|
||||
set = function (self, fixedparam, value) DetailsRaidCheck.db.mythic_1_4 = value end,
|
||||
desc = "When raiding on Mythic difficult, only tracks the first 4 groups.",
|
||||
name = "Mythic Special Tracker"
|
||||
},
|
||||
},
|
||||
{
|
||||
type = "toggle",
|
||||
get = function() return DetailsRaidCheck.db.use_report_panel end,
|
||||
set = function (self, fixedparam, value) DetailsRaidCheck.db.use_report_panel = value end,
|
||||
desc = "If enabled, clicking to report open the report panel instead (to be able to choose where to send the report).",
|
||||
name = "Use Report Panel"
|
||||
},
|
||||
}
|
||||
|
||||
_detalhes.gump:BuildMenu (options_frame, menu, 15, -65, 260)
|
||||
@@ -612,6 +634,7 @@ end
|
||||
pre_pot_healers = false, --do not report pre pot for healers
|
||||
pre_pot_tanks = false, --do not report pre pot for tanks
|
||||
mythic_1_4 = true, --only track groups 1-4 on mythic
|
||||
use_report_panel = true, --if true, shows the report panel
|
||||
}
|
||||
|
||||
--> install
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
local debugmode = false
|
||||
|
||||
YouAreNotPrepared:SetPluginDescription ("Tracks your deaths during raid encounters and shows it for you right after the fight end.")
|
||||
YouAreNotPrepared.version = "v1.1.3"
|
||||
|
||||
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
--> init the frames
|
||||
@@ -532,6 +533,13 @@
|
||||
desc = "Open the window after leave the combat.",
|
||||
name = "Auto Open"
|
||||
},
|
||||
{
|
||||
type = "toggle",
|
||||
get = function() return YouAreNotPrepared.db.auto_close end,
|
||||
set = function (self, fixedparam, value) YouAreNotPrepared.db.auto_close = value end,
|
||||
desc = "Closes the window when you release or are resurrected.",
|
||||
name = "Auto Close"
|
||||
},
|
||||
}
|
||||
|
||||
_detalhes.gump:BuildMenu (options_frame, menu, 15, -75, 260)
|
||||
@@ -549,7 +557,16 @@
|
||||
|
||||
function YouAreNotPrepared:OnEvent (_, event, ...)
|
||||
|
||||
if (event == "ADDON_LOADED") then
|
||||
if (event == "PLAYER_ALIVE" or event == "PLAYER_UNGHOST") then
|
||||
if (YouAreNotPrepared.db.auto_close and YouAreNotPreparedFrame:IsShown()) then
|
||||
if (YouAreNotPreparedFrame.isMoving) then
|
||||
YouAreNotPreparedFrame:StopMovingOrSizing()
|
||||
YouAreNotPreparedFrame.isMoving = false
|
||||
end
|
||||
YouAreNotPreparedFrame:Hide()
|
||||
end
|
||||
|
||||
elseif (event == "ADDON_LOADED") then
|
||||
local AddonName = select (1, ...)
|
||||
if (AddonName == "Details_YouAreNotPrepared") then
|
||||
|
||||
@@ -562,15 +579,16 @@
|
||||
local MINIMAL_DETAILS_VERSION_REQUIRED = 12
|
||||
|
||||
local default_settings = {
|
||||
shown_time = 30, --
|
||||
auto_open = true, --
|
||||
hide_on_combat = true, --
|
||||
shown_time = 30,
|
||||
auto_open = true,
|
||||
hide_on_combat = true,
|
||||
rightclick_closed = false,
|
||||
deaths_table = {}
|
||||
deaths_table = {},
|
||||
auto_close = true,
|
||||
}
|
||||
|
||||
--> install
|
||||
local install, saveddata, is_enabled = _G._detalhes:InstallPlugin ("TOOLBAR", Loc ["STRING_PLUGIN_NAME"], [[Interface\ICONS\Achievement_Boss_Illidan]], YouAreNotPrepared, "DETAILS_PLUGIN_YANP", MINIMAL_DETAILS_VERSION_REQUIRED, "Details! Team", "v1.1.2", default_settings)
|
||||
local install, saveddata, is_enabled = _G._detalhes:InstallPlugin ("TOOLBAR", Loc ["STRING_PLUGIN_NAME"], [[Interface\ICONS\Achievement_Boss_Illidan]], YouAreNotPrepared, "DETAILS_PLUGIN_YANP", MINIMAL_DETAILS_VERSION_REQUIRED, "Details! Team", YouAreNotPrepared.version, default_settings)
|
||||
if (type (install) == "table" and install.error) then
|
||||
return print (install.error)
|
||||
end
|
||||
@@ -583,6 +601,9 @@
|
||||
_G._detalhes:RegisterEvent (YouAreNotPrepared, "DETAILS_DATA_RESET")
|
||||
_G._detalhes:RegisterEvent (YouAreNotPrepared, "COMBAT_PLAYER_LEAVE")
|
||||
|
||||
YouAreNotPreparedFrame:RegisterEvent ("PLAYER_ALIVE")
|
||||
YouAreNotPreparedFrame:RegisterEvent ("PLAYER_UNGHOST")
|
||||
|
||||
--> register needed hooks
|
||||
_G._detalhes:InstallHook (DETAILS_HOOK_DEATH, YouAreNotPrepared.OnDeath)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user