- Core version up for plugins compatibility.

- Added support to shadow plugins icons.
- Fixed few issues on icon alignment.
This commit is contained in:
tercio
2014-10-18 20:48:47 -03:00
parent 44cdcf50c1
commit c0a0b8fec1
4 changed files with 20 additions and 8 deletions
+4 -4
View File
File diff suppressed because one or more lines are too long
+16 -4
View File
@@ -4208,6 +4208,8 @@ function _detalhes:ToolbarMenuSetButtonsOptions (spacement, shadow)
return self:ToolbarMenuSetButtons()
end
-- search key: ~buttons
local tbuttons = {}
function _detalhes:ToolbarMenuSetButtons (_mode, _segment, _attributes, _report, _reset, _close)
@@ -4337,15 +4339,15 @@ function _detalhes:ToolbarMenuSetButtons (_mode, _segment, _attributes, _report,
if (got_anchor) then
if (self.plugins_grow_direction == 2) then --right
if (self.menu_anchor.side == 1) then --left
button:SetPoint ("left", self.lastIcon.widget or self.lastIcon, "right")
button:SetPoint ("left", self.lastIcon.widget or self.lastIcon, "right", space, 0)
elseif (self.menu_anchor.side == 2) then --right
button:SetPoint ("left", last_plugin_icon or self.firstIcon.widget or self.firstIcon, "right")
button:SetPoint ("left", last_plugin_icon or self.firstIcon.widget or self.firstIcon, "right", space, 0)
end
elseif (self.plugins_grow_direction == 1) then --left
if (self.menu_anchor.side == 1) then --left
button:SetPoint ("right", last_plugin_icon or self.firstIcon.widget or self.firstIcon, "left")
button:SetPoint ("right", last_plugin_icon or self.firstIcon.widget or self.firstIcon, "left", -space, 0)
elseif (self.menu_anchor.side == 2) then --right
button:SetPoint ("right", self.lastIcon.widget or self.lastIcon, "left")
button:SetPoint ("right", self.lastIcon.widget or self.lastIcon, "left", -space, 0)
end
end
else
@@ -4362,6 +4364,16 @@ function _detalhes:ToolbarMenuSetButtons (_mode, _segment, _attributes, _report,
button:Show()
button:SetSize (16*size, 16*size)
if (shadow and button.shadow) then
button:SetNormalTexture (button.__icon .. "_shadow")
button:SetPushedTexture (button.__icon .. "_shadow")
button:SetHighlightTexture (button.__icon .. "_shadow", "ADD")
else
button:SetNormalTexture (button.__icon)
button:SetPushedTexture (button.__icon)
button:SetHighlightTexture (button.__icon, "ADD")
end
end
end
end
Binary file not shown.
Binary file not shown.