OOC Color Default In Input

Added the "default" field in the input when selecting an OOC color so
that it starts on the current color instead of black.
This commit is contained in:
ChuckTheSheep
2014-01-07 01:04:45 -05:00
parent 5426868c53
commit b5ba90cc6f
+1 -1
View File
@@ -71,7 +71,7 @@ var/global/normal_ooc_colour = "#002eb8"
if(!holder || check_rights_for(src, R_ADMIN))
if(!is_content_unlocked()) return
var/new_ooccolor = input(src, "Please select your OOC colour.", "OOC colour") as color|null
var/new_ooccolor = input(src, "Please select your OOC colour.", "OOC colour", prefs.ooccolor) as color|null
if(new_ooccolor)
prefs.ooccolor = sanitize_ooccolor(new_ooccolor)
prefs.save_preferences()