Additional "Tips" Categories

Using Naninovel C# APIs: adding custom actor implementations or commands, overriding engine services, integrating with other systems, etc.
Post Reply
malbritten
Posts: 1
Joined: 22 Mar 2022 15:36

Additional "Tips" Categories

Post by malbritten »

My goal is to use the tips functionality for several different types of "tips" broken into different categories. For the sake of simplicity, let's say I want a tips UI for just People and one for Places. My first instinct is to make a copy of all the tip related scripts and UI prefabs and have one look at a people.txt and one at a places.txt, but I am not sure where to start on editing the scripts to look for and manage that content.

Is this plausible at all for someone with nearly no experience programming from scratch?

idaot
support
Posts: 262
Joined: 01 Aug 2020 08:25

Re: Additional "Tips" Categories

Post by idaot »

By copying all the Tips files, you'd still need to override the OnPointerClick method in NaninovelTMProText to handle the clicking behaviour. The most simple option is probably to override TipsPanel and add several presentation modes and split the entries into several grids/lists akin to SaveLoadUI. Then on SelectTipRecord you can have it change the presentation mode/layout based on the category of the string.

Post Reply