Mercurial > wow > hansgar_and_franzok_assist
comparison Libs/DF/button.lua @ 19:215f0dd37a6c
library update.
| author | Tercio |
|---|---|
| date | Sat, 18 Jul 2015 17:32:30 -0300 |
| parents | 2f09fe4be15c |
| children | dc1c77254f80 |
comparison
equal
deleted
inserted
replaced
| 18:680465749fc7 | 19:215f0dd37a6c |
|---|---|
| 986 return ButtonObject | 986 return ButtonObject |
| 987 | 987 |
| 988 end | 988 end |
| 989 | 989 |
| 990 local pickcolor_callback = function (self, r, g, b, a, button) | 990 local pickcolor_callback = function (self, r, g, b, a, button) |
| 991 a = abs (a-1) | |
| 991 button.MyObject.color_texture:SetVertexColor (r, g, b, a) | 992 button.MyObject.color_texture:SetVertexColor (r, g, b, a) |
| 992 button.MyObject:color_callback (r, g, b, a) | 993 button.MyObject:color_callback (r, g, b, a) |
| 993 end | 994 end |
| 994 local pickcolor = function (alpha, param2, self) | 995 local pickcolor = function (self, alpha, param2) |
| 995 local r, g, b, a = self.MyObject.color_texture:GetVertexColor() | 996 local r, g, b, a = self.MyObject.color_texture:GetVertexColor() |
| 997 a = abs (a-1) | |
| 996 DF:ColorPick (self, r, g, b, a, pickcolor_callback) | 998 DF:ColorPick (self, r, g, b, a, pickcolor_callback) |
| 997 end | 999 end |
| 998 | 1000 |
| 999 local color_button_height = 16 | 1001 local color_button_height = 16 |
| 1000 local color_button_width = 16 | 1002 local color_button_width = 16 |
| 1001 | 1003 |
| 1002 local set_colorpick_color = function (button, r, g, b, a) | 1004 local set_colorpick_color = function (button, r, g, b, a) |
| 1005 a = a or 1 | |
| 1003 button.color_texture:SetVertexColor (r, g, b, a) | 1006 button.color_texture:SetVertexColor (r, g, b, a) |
| 1004 end | 1007 end |
| 1005 | 1008 |
| 1006 local colorpick_cancel = function (self) | 1009 local colorpick_cancel = function (self) |
| 1007 ColorPickerFrame:Hide() | 1010 ColorPickerFrame:Hide() |
