FINALLY modularizes Polychromic Clothes AND modernizes all polychromic code! (#5269)

* FINALLY AFTER 2 MONTHS

WOOOOOOOOOOOOOOO

* Updates all polychromic code

This makes the default argument of all polychromic color input menus the last chosen color.
This commit is contained in:
Michiyamenotehifunana
2018-02-06 19:08:08 -06:00
committed by Poojawa
parent faf0c5f020
commit 389e6de8f5
10 changed files with 125 additions and 101 deletions
+1 -1
View File
@@ -32,7 +32,7 @@
to_chat(user, "<span class='warning'>You can't do that right now!</span>")
return
if(alert("Are you sure you want to recolor your id?", "Confirm Repaint", "Yes", "No") == "Yes")
var/energy_color_input = input(usr,"Choose Energy Color") as color|null
var/energy_color_input = input(usr,"","Choose Energy Color",id_color) as color|null
if(energy_color_input)
id_color = sanitize_hexcolor(energy_color_input, desired_format=6, include_crunch=1)
update_icon()