mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-18 11:36:24 +01:00
[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user