[MIRROR] Allows admins to pick colours in VV (#4698)

* added colour picking to VV (#58173)

Co-authored-by: Thunder12345 <stewart@ critar.demon.co.uk>

* Allows admins to pick colours in VV

Co-authored-by: Thunder12345 <Thunder12345@users.noreply.github.com>
Co-authored-by: Thunder12345 <stewart@ critar.demon.co.uk>
This commit is contained in:
SkyratBot
2021-04-06 14:44:00 +02:00
committed by GitHub
parent d21165c7d0
commit 1048fc554f
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