Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/datum/greyscale_layer/icon_state runs icon_states #34

Open
Mothblocks opened this issue Mar 5, 2023 · 0 comments
Open

/datum/greyscale_layer/icon_state runs icon_states #34

Mothblocks opened this issue Mar 5, 2023 · 0 comments

Comments

@Mothblocks
Copy link
Member

/datum/greyscale_layer/icon_state/Initialize(icon_file)
	. = ..()
	var/list/icon_states = icon_states(icon_file)
	if(!(icon_state in icon_states))
		CRASH("Configured icon state \[[icon_state]\] was not found in [icon_file]. Double check your json configuration.")

This code should only run behind a focus test.

However, just doing that would make the artist UX noticably worse. To counter this, we should have a GAGS debug panel that would show you this same information when clicked. We can make this interface better than a general runtime ever could.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

1 participant