General round of fixes, implementations and polishing
- Polished tooltips from damage and healing done. - Added new sound: "Details Truck". - Added 'right click to close' icons before the phrase, also the text is move visible now. - Added ReopenAllWindows() as alias for a Portuguese function named ReabrirTodasInstancias(). - Added a close button for the breakdown options panel. - Added support for mask in the spec icons shown in the regular window. Require to add: Instance.row_info.icon_mas = masktexture. - Event "COMBAT_MYTHICPLUS_OVERALL_READY" now sends the overall mythic+ combat as payload.
This commit is contained in:
@@ -3961,7 +3961,6 @@ function damageClass:ToolTip_DamageDone (instancia, numero, barra, keydown)
|
||||
end
|
||||
|
||||
GameCooltip:SetOption("AlignAsBlizzTooltip", false)
|
||||
GameCooltip:SetOption("AlignAsBlizzTooltipFrameHeightOffset", -6)
|
||||
GameCooltip:SetOption("YSpacingMod", -6)
|
||||
local iconSize = Details.DefaultTooltipIconSize
|
||||
|
||||
|
||||
+24
-11
@@ -1041,6 +1041,13 @@ end
|
||||
end
|
||||
end
|
||||
|
||||
---reopen all closed windows that does not have the option "Ignore Mass Toogle" enabled
|
||||
---@param ... unknown
|
||||
---@return nil
|
||||
function Details:ReopenAllWindows(...)
|
||||
return Details:ReabrirTodasInstancias(...)
|
||||
end
|
||||
|
||||
-- reabre todas as instancias
|
||||
function Details:ReabrirTodasInstancias (temp)
|
||||
for index = math.min (#Details.tabela_instancias, Details.instances_amount), 1, -1 do
|
||||
@@ -3180,6 +3187,19 @@ function Details:ChangeIcon(icon)
|
||||
skin = Details.skins [Details.default_skin_to_use]
|
||||
end
|
||||
|
||||
local titleBarIconSize
|
||||
|
||||
local iconSizeFromInstance = self.attribute_icon_size
|
||||
if (iconSizeFromInstance and iconSizeFromInstance ~= 0) then
|
||||
titleBarIconSize = iconSizeFromInstance
|
||||
|
||||
elseif (skin.attribute_icon_size) then
|
||||
titleBarIconSize = skin.attribute_icon_size
|
||||
|
||||
else
|
||||
titleBarIconSize = 16
|
||||
end
|
||||
|
||||
if (not self.hide_icon) then
|
||||
if (skin.icon_on_top) then
|
||||
self.baseframe.cabecalho.atributo_icon:SetParent(self.floatingframe)
|
||||
@@ -3194,8 +3214,7 @@ function Details:ChangeIcon(icon)
|
||||
self.baseframe.cabecalho.atributo_icon:SetTexCoord(5/64, 60/64, 3/64, 62/64)
|
||||
|
||||
local icon_size = skin.icon_plugins_size
|
||||
self.baseframe.cabecalho.atributo_icon:SetWidth(icon_size[1])
|
||||
self.baseframe.cabecalho.atributo_icon:SetHeight(icon_size[2])
|
||||
self.baseframe.cabecalho.atributo_icon:SetSize(titleBarIconSize, titleBarIconSize)
|
||||
local icon_anchor = skin.icon_anchor_plugins
|
||||
|
||||
self.baseframe.cabecalho.atributo_icon:ClearAllPoints()
|
||||
@@ -3214,8 +3233,7 @@ function Details:ChangeIcon(icon)
|
||||
self.baseframe.cabecalho.atributo_icon:SetTexCoord(5/64, 60/64, 3/64, 62/64)
|
||||
|
||||
local icon_size = skin.icon_plugins_size
|
||||
self.baseframe.cabecalho.atributo_icon:SetWidth(icon_size[1])
|
||||
self.baseframe.cabecalho.atributo_icon:SetHeight(icon_size[2])
|
||||
self.baseframe.cabecalho.atributo_icon:SetSize(titleBarIconSize, titleBarIconSize)
|
||||
local icon_anchor = skin.icon_anchor_plugins
|
||||
|
||||
self.baseframe.cabecalho.atributo_icon:ClearAllPoints()
|
||||
@@ -3233,7 +3251,7 @@ function Details:ChangeIcon(icon)
|
||||
|
||||
local p = 0.125 --32/256
|
||||
self.baseframe.cabecalho.atributo_icon:SetTexCoord(p * (self.sub_atributo-1), p * (self.sub_atributo), 0, 1)
|
||||
self.baseframe.cabecalho.atributo_icon:SetSize(16, 16)
|
||||
self.baseframe.cabecalho.atributo_icon:SetSize(titleBarIconSize, titleBarIconSize)
|
||||
|
||||
self.baseframe.cabecalho.atributo_icon:ClearAllPoints()
|
||||
if (self.menu_attribute_string) then
|
||||
@@ -3245,13 +3263,8 @@ function Details:ChangeIcon(icon)
|
||||
self.baseframe.cabecalho.atributo_icon:ClearAllPoints()
|
||||
self.baseframe.cabecalho.atributo_icon:SetPoint("topleft", self.baseframe.cabecalho.ball_point, "topleft", skin.attribute_icon_anchor[1], skin.attribute_icon_anchor[2])
|
||||
end
|
||||
|
||||
if (skin.attribute_icon_size) then
|
||||
self.baseframe.cabecalho.atributo_icon:SetSize(unpack(skin.attribute_icon_size))
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
elseif (self.modo == modo_raid) then --raid
|
||||
--icon is set by the plugin
|
||||
end
|
||||
|
||||
@@ -182,6 +182,8 @@ _detalhes.instance_defaults = {
|
||||
show_timer_bg = true, --show the timer within battleground, the timer is the elapsed battleground time
|
||||
show_timer_arena = true, ---show the timer within arena, the timer is the elapsed time of the arena match
|
||||
},
|
||||
--attribute icon size
|
||||
attribute_icon_size = 0,
|
||||
--auto hide window borders statusbar main menu
|
||||
menu_alpha = {enabled = false, iconstoo = true, onenter = 1, onleave = 1, ignorebars = false},
|
||||
--instance button anchor store the anchor point of instance and delete button
|
||||
@@ -191,6 +193,8 @@ _detalhes.instance_defaults = {
|
||||
--row animation when show
|
||||
row_show_animation = {anim = "Fade", options = {}},
|
||||
|
||||
rounded_corner_enabled = false,
|
||||
|
||||
--use one fontstring for each value in the lines, e.g. one fontstring to damage done, another fontstring to dps and another to percent amount
|
||||
use_multi_fontstrings = true,
|
||||
use_auto_align_multi_fontstrings = true,
|
||||
@@ -284,12 +288,14 @@ _detalhes.instance_defaults = {
|
||||
fixed_texture_background_color = {0, 0, 0, 0},
|
||||
--space between bars
|
||||
space = {left = 3, right = -5, between = 1},
|
||||
row_offsets = {left = 0, right = 0, top = 0, bottom = 0},
|
||||
--icon file
|
||||
icon_size_offset = 0,
|
||||
icon_file = [[Interface\AddOns\Details\images\classes_small]],
|
||||
no_icon = false,
|
||||
start_after_icon = true,
|
||||
icon_grayscale = false,
|
||||
icon_mask = "",
|
||||
--icon offset
|
||||
icon_offset = {0, 0}, --x y
|
||||
--percent type
|
||||
|
||||
Reference in New Issue
Block a user