mirror of
https://github.com/Earu/EasyChat.git
synced 2025-03-04 03:13:20 -05:00
Make the color picker text update realtime to see how it would look like (#90)
* Update color_picker.lua sets the text color in the little box to demonstrate how text would look like * Update color_picker.lua https://i.imgur.com/dW3n7Mf.png god i hate github
This commit is contained in:
parent
ef0eb39606
commit
af7b32835f
@ -17,6 +17,7 @@ local PICKER = {
|
||||
self.Mixer.ValueChanged = function(_, new_col)
|
||||
local col_str = ("<color=%d,%d,%d>"):format(new_col.r or 255, new_col.g or 255, new_col.b or 255)
|
||||
self.BtnColor:SetText(col_str)
|
||||
self.BtnColor:SetColor(new_col)
|
||||
self.BtnColor.CurrentColorString = col_str
|
||||
end
|
||||
self.Mixer:SetColor(table.Copy(color_white))
|
||||
|
Loading…
Reference in New Issue
Block a user