1
0
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:
Niccep 2022-06-25 13:09:01 +03:00 committed by GitHub
parent ef0eb39606
commit af7b32835f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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))