[MIRROR] Adds icon state configuration to GAS (#4990)

* Adds icon state configuration to GAS (#58487)

Relatively simple change that allows you to specify icon states in greyscale config so as to allow generating icon files with multiple states. This is a requisite for GAS to work with icon smoothing.

Also a couple bits of additional warnings and documentation.

* Adds icon state configuration to GAS

Co-authored-by: Emmett Gaines <ninjanomnom@gmail.com>
This commit is contained in:
SkyratBot
2021-04-18 01:24:43 +01:00
committed by GitHub
co-authored by Emmett Gaines
parent 955eaaea3c
commit 29c9908e09
12 changed files with 56 additions and 41 deletions
+2 -1
View File
@@ -83,10 +83,11 @@
split_colors += "#[raw_colors[i]]"
/datum/greyscale_modify_menu/proc/refresh_preview()
var/list/data = SSgreyscale.configurations["[target.greyscale_config]"].GenerateDebug(split_colors)
var/list/data = SSgreyscale.configurations["[target.greyscale_config]"].GenerateDebug(split_colors.Join())
sprite_data = list()
var/list/steps = list()
sprite_data["steps"] = steps
for(var/step in data["steps"])
CHECK_TICK
steps += list(list("layer"=icon2html(data["steps"][step], user, sourceonly=TRUE), "result"=icon2html(step, user, sourceonly=TRUE)))