Ports color_square from Paradise to Clean up Prefcode & Fix Alignment

Fixes an alignment issue with inline tables nested inside table rows & cleans up code.
This commit is contained in:
KasparoVy
2020-05-30 01:41:42 -04:00
parent 1561cd7de6
commit b4ef771626
3 changed files with 15 additions and 11 deletions
@@ -304,4 +304,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>"