mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 04:30:44 +01:00
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.
This commit is contained in:
@@ -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