Since the intro was previously tied to the character menu, a new hook is added called CharacterListLoaded. This hook is called after all the character list is loaded for the character menu. This hook is then used to call the NutScriptLoaded hook, which is ran once the local player entity is valid and other NS data is loaded. The NutScriptLoaded then calls the CreateIntroduction hook, which returns a panel for the intro. If a panel is returned, the character menu only shows after the panel is removed. Otherwise, if no panel is returned, then the character menu is shown.
The plugin uses the CreateIntroduction to create the current intro panel.
This PR moves the NS introduction into a plugin.
Since the intro was previously tied to the character menu, a new hook is added called
CharacterListLoaded
. This hook is called after all the character list is loaded for the character menu. This hook is then used to call theNutScriptLoaded
hook, which is ran once the local player entity is valid and other NS data is loaded. TheNutScriptLoaded
then calls theCreateIntroduction
hook, which returns a panel for the intro. If a panel is returned, the character menu only shows after the panel is removed. Otherwise, if no panel is returned, then the character menu is shown.The plugin uses the
CreateIntroduction
to create the current intro panel.