Skip to content

Commit

Permalink
Adds color to VV
Browse files Browse the repository at this point in the history
  • Loading branch information
cuddleandtea committed Apr 20, 2024
1 parent f99cf95 commit a1fa0d4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions code/__DEFINES/vv.dm
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#define VV_TYPE "Custom Typepath"
#define VV_FILE "File"
#define VV_LIST "List"
#define VV_COLOR "Color"
#define VV_NEW_ATOM "New Atom"
#define VV_NEW_DATUM "New Datum"
#define VV_NEW_TYPE "New Custom Typepath"
Expand Down
7 changes: 7 additions & 0 deletions code/modules/admin/view_variables/get_variables.dm
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
VV_DATUM_TYPE,
VV_TYPE,
VV_FILE,
VV_COLOR,
VV_NEW_ATOM,
VV_NEW_DATUM,
VV_NEW_TYPE,
Expand Down Expand Up @@ -190,6 +191,12 @@
.["class"] = null
return

if(VV_COLOR)
.["value"] = input("Pick color:", "Color", current_value) as null|color
if(.["value"] == null)
.["class"] = null
return

if(VV_ICON)
.["value"] = input("Pick icon:", "Icon") as null|icon
if(.["value"] == null)
Expand Down

0 comments on commit a1fa0d4

Please sign in to comment.