Skip to content

Visibility Modifiers Layers#6539

Open
Pok27 wants to merge 1 commit into
space-wizards:masterfrom
Pok27:RefreshVisibility
Open

Visibility Modifiers Layers#6539
Pok27 wants to merge 1 commit into
space-wizards:masterfrom
Pok27:RefreshVisibility

Conversation

@Pok27
Copy link
Copy Markdown
Contributor

@Pok27 Pok27 commented Apr 25, 2026

Adds RefreshVisibilityModifiersEvent so that systems can modify visibility layers without affecting the base layers

Required for space-wizards/space-station-14#43706

Copy link
Copy Markdown
Member

@iaada iaada left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is the best way to go about modifying the vismask. It enables us to not need to remember the original layer to reset it (fragile) when applying temporary effects, especially those defined through yaml.

Copy link
Copy Markdown
Member

@PJB3005 PJB3005 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems like a really bad idea from a performance PoV? Now every time visibility has to be recalculated, it has to raise an event recursively.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants