Skip to content

Conversation

@SilverDorian46
Copy link
Contributor

this PR adds some alternative ways for modders to apply their Screen Wipes to a map.
this mainly serves to give unique identifiers to the Screen Wipes, so that the game doesn't have to check for their full type names, and their classes can be freely reorganised if needed.

Everest.Events.MapMeta.OnParseWipe accepts a method that returns an Action<Scene, bool, Action> and takes the argument string wipe, which is the value of the current Wipe metadata being parsed.
the parameters of the returned Action are similar to the constructor for a Screen Wipe: (Scene scene, bool wipeIn, Action onComplete).

the [CustomWipe] attribute should be placed on a class that extends ScreenWipe, and is used to give it a unique identifier. the class requires one of the following in order to be registered as a custom wipe:

  • a public static generator method (called Load by default) that returns ScreenWipe and has the signature (Scene scene, bool wipeIn, Action onComplete), or...
  • a constructor with the signature (Scene scene, bool wipeIn, Action onComplete).

@maddie480-bot maddie480-bot added the review needed This PR needs 2 approvals to be merged (bot-managed) label Dec 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review needed This PR needs 2 approvals to be merged (bot-managed)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants