custom ui for dialogue

All about user interface, be it customizing built-in UIs or adding new ones.
Post Reply
fastoriginal
Posts: 5
Joined: 22 Jun 2024 11:37

custom ui for dialogue

Post by fastoriginal »

hi I'm doing my project
on naninovel (it's my third attempt, first I tried with visual novel maker and with novelty. but when I reached a certain point in the work I realized that I couldn't do certain things that I needed and so here I am, on unity. )
I managed to set up the characters and the test script.
now I have also added a custom ui that acts as a layout for the dialogues but I can't view the text.
it's probably under the custom ui I put...
I tried to copy and paste the dialogue file into the prefab of the ui I'm using but nothing happens...
can you help me change the dialogue layout correctly?

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

Re: custom ui for dialogue

Post by idaot »

Text printers and Custom UI are not the same, to create and configure custom text printers you can follow this guide: https://naninovel.com/guide/text-printe ... m-printers

fastoriginal
Posts: 5
Joined: 22 Jun 2024 11:37

Re: custom ui for dialogue

Post by fastoriginal »

thankyou
I'm having trouble with scripting, specifically now with the hide command
because it does not work? if the character has appeared it means that it is configured correctly... and yet it doesn't disappear. the syntax is correct... how can I solve it?
ps. I also see some wallpapers that are not loaded yet the path is correct
Image

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

Re: custom ui for dialogue

Post by idaot »

This can happen if you're using the generic character implementation, in which case you will need to add a function to the On Visibility Changed event inside the prefab. This is explained in the Characters documentation: https://naninovel.com/guide/characters# ... characters

fastoriginal
Posts: 5
Joined: 22 Jun 2024 11:37

Re: custom ui for dialogue

Post by fastoriginal »

thanks dear!!!!
now i have a new problem with chat printing
i can do print the chat but to end conversation idk as to hide.
now i using
@clear Chat
@hidePrinter Chat
@hideChars
and i hide the print chat but when i try to print a other phrase without chat continue in the chat...
ho can stop the "chat mode" ?

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

Re: custom ui for dialogue

Post by idaot »

Use the @printer command if you want to switch the default printer: https://naninovel.com/api/#printer

Post Reply