added colour picking to VV (#58173)

Co-authored-by: Thunder12345 <stewart@critar.demon.co.uk>
This commit is contained in:
Thunder12345
2021-04-06 05:35:20 -07:00
committed by GitHub
co-authored by Thunder12345
parent c7494d96c2
commit e2d5c815b0
4 changed files with 12 additions and 2 deletions
@@ -11,6 +11,8 @@
else if(istext(var_value))
if(findtext(var_value, "\n"))
. = VV_MESSAGE
else if(findtext(var_value, GLOB.is_color))
. = VV_COLOR
else
. = VV_TEXT
@@ -54,6 +56,7 @@
VV_TEXT,
VV_MESSAGE,
VV_ICON,
VV_COLOR,
VV_ATOM_REFERENCE,
VV_DATUM_REFERENCE,
VV_MOB_REFERENCE,
@@ -269,3 +272,9 @@
while(!D)
.["type"] = D.type
.["value"] = D
if(VV_COLOR)
.["value"] = input("Enter new color:", "Color", current_value) as color|null
if(.["value"] == null)
.["class"] = null
return