This commit is contained in:
tercio
2014-04-16 22:17:50 -03:00
parent a569c7fbc4
commit 5c621d6c20
35 changed files with 2473 additions and 789 deletions
+5
View File
@@ -761,12 +761,17 @@ local set_colorpick_color = function (button, r, g, b, a)
button.color_texture:SetVertexColor (r, g, b, a)
end
local colorpick_cancel = function (self)
ColorPickerFrame:Hide()
end
function gump:NewColorPickButton (parent, name, member, callback, alpha)
--button
local button = gump:NewButton (parent, _, name, member, color_button_width, color_button_height, pickcolor, alpha, "param2")
button:InstallCustomTexture()
button.color_callback = callback
button.Cancel = colorpick_cancel
button.SetColor = set_colorpick_color
button:SetBackdrop ({edgeFile = [[Interface\Tooltips\UI-Tooltip-Border]], edgeSize = 6,