- Changed few icons on damage done tooltip.
- Fixed the class color on texts for healing attribute. - Added options for change the tooltip border's size, color and texture. - Added buttons for test interrupt and cooldown announcers under raid tools section. - New API: _detalhes:SetTooltipBackdrop (border_texture, border_size, border_color) set tooltip border configs.
This commit is contained in:
@@ -208,6 +208,19 @@ function gump:BuildMenu (parent, menu, x_offset, y_offset, height)
|
||||
if (size > max_x) then
|
||||
max_x = size
|
||||
end
|
||||
|
||||
elseif (widget_table.type == "execute" or widget_table.type == "button") then
|
||||
|
||||
local button = self:NewButton (parent, nil, "$parentWidget", nil, 120, 18, widget_table.func, widget_table.param1, widget_table.param2, nil, widget_table.name)
|
||||
button:InstallCustomTexture()
|
||||
button:SetPoint (cur_x, cur_y)
|
||||
button.tooltip = widget_table.desc
|
||||
|
||||
local size = button:GetWidth() + 4
|
||||
if (size > max_x) then
|
||||
max_x = size
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
cur_y = cur_y - 20
|
||||
|
||||
Reference in New Issue
Block a user