mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-20 12:35:33 +01:00
add support for GAGS to design asset list generation (#60366)
This commit is contained in:
@@ -377,9 +377,15 @@
|
||||
if (machine)
|
||||
item = machine
|
||||
|
||||
icon_file = initial(item.icon)
|
||||
icon_state = initial(item.icon_state)
|
||||
// Check for GAGS support where necessary
|
||||
var/greyscale_config = initial(item.greyscale_config)
|
||||
var/greyscale_colors = initial(item.greyscale_colors)
|
||||
if (greyscale_config && greyscale_colors)
|
||||
icon_file = SSgreyscale.GetColoredIconByType(greyscale_config, greyscale_colors)
|
||||
else
|
||||
icon_file = initial(item.icon)
|
||||
|
||||
icon_state = initial(item.icon_state)
|
||||
if(!(icon_state in icon_states(icon_file)))
|
||||
warning("design [D] with icon '[icon_file]' missing state '[icon_state]'")
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user