Plants vs. Zombies: Replanted - v1.0.3
    Preparing search index...

    Function apiMakeCheckAndDismissFunction

    • Creates a Vortex notification action that re-checks a condition and dismisses a notification if the condition is now satisfied.

      Typically used to allow the user to click "Check again" after installing a mod loader manually.

      Parameters

      • title: string

        Display title of the action button.

      • notificationId: string

        ID of the notification to potentially dismiss.

      • api: IExtensionApi

        Vortex extension API.

      • checkFunction: () => boolean

        Function that returns true when the condition is satisfied.

      Returns { action: () => void; title: string }

      A notification action descriptor.