Streamline (Facial) Hair & Marking Character Customization, Port color_square to Clean Prefcode

This commit is contained in:
Atermonera
2020-05-29 23:05:22 -07:00
committed by Aronai Sieyes
parent 37ee2e500d
commit 9a6b5a71f3
6 changed files with 119 additions and 60 deletions
@@ -298,4 +298,8 @@
return 220
if(PREF_FBP_SOFTWARE)
return 150
return S.max_age // welp
return S.max_age // welp
/datum/category_item/player_setup_item/proc/color_square(red, green, blue, hex)
var/color = hex ? hex : "#[num2hex(red, 2)][num2hex(green, 2)][num2hex(blue, 2)]"
return "<span style='font-face: fixedsys; font-size: 14px; background-color: [color]; color: [color]'>___</span>"