Merge pull request #34755 from ChuckTheSheep/Current-Color-as-Default-Color-in-Inputs

All color inputs use current color as default choice
This commit is contained in:
Jordan Brown
2018-01-24 19:13:58 -05:00
committed by GitHub
10 changed files with 18 additions and 18 deletions

View File

@@ -143,7 +143,7 @@
var/mob/user = usr
var/new_color
while(!new_color)
new_color = input(user, "Choose a new color for [src]'s flashlight.", "Light Color") as null|color
new_color = input(user, "Choose a new color for [src]'s flashlight.", "Light Color",light_color) as color|null
if(!new_color)
return
if(color_hex2num(new_color) < 200) //Colors too dark are rejected