- If the skin selected does not exists, use the default skin.
- Added 'icon_offset' member into instances to offset the class icon. - Event Tracker not uses the cooldown and crowd control lists from the framework. - Added new gradient wallpapers.
This commit is contained in:
@@ -2636,6 +2636,9 @@ end
|
||||
function _detalhes:ChangeIcon (icon)
|
||||
|
||||
local skin = _detalhes.skins [self.skin]
|
||||
if (not skin) then
|
||||
skin = _detalhes.skins [_detalhes.default_skin_to_use]
|
||||
end
|
||||
|
||||
if (not self.hide_icon) then
|
||||
if (skin.icon_on_top) then
|
||||
@@ -2703,6 +2706,15 @@ function _detalhes:ChangeIcon (icon)
|
||||
if (self.menu_attribute_string) then
|
||||
self.baseframe.cabecalho.atributo_icon:SetPoint ("right", self.menu_attribute_string.widget, "left", -4, -1)
|
||||
end
|
||||
|
||||
if (skin.attribute_icon_anchor) then
|
||||
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
|
||||
|
||||
-- local icon_anchor = skin.icon_anchor_main
|
||||
-- self.baseframe.cabecalho.atributo_icon:SetPoint ("TOPRIGHT", self.baseframe.cabecalho.ball_point, "TOPRIGHT", icon_anchor[1], icon_anchor[2])
|
||||
@@ -3533,3 +3545,5 @@ function _detalhes:envia_relatorio (linhas, custom)
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
-- enda elsef
|
||||
|
||||
@@ -232,6 +232,8 @@ _detalhes.instance_defaults = {
|
||||
no_icon = false,
|
||||
start_after_icon = true,
|
||||
icon_grayscale = false,
|
||||
--icon offset
|
||||
icon_offset = {0, 0}, --x y
|
||||
--percent type
|
||||
percent_type = 1,
|
||||
--backdrop
|
||||
|
||||
Reference in New Issue
Block a user