mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-30 00:29:02 +01:00
[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:
co-authored by
Emmett Gaines
parent
955eaaea3c
commit
29c9908e09
@@ -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)))
|
||||
|
||||
Reference in New Issue
Block a user