custom ui for dialogue

Posted: 22 Jun 2024 11:51
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?


Re: custom ui for dialogue

Posted: 22 Jun 2024 19:53
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


Re: custom ui for dialogue

Posted: 23 Jun 2024 16:58
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


Re: custom ui for dialogue

Posted: 28 Jun 2024 05:09
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


Re: custom ui for dialogue

Posted: 14 Jul 2024 01:46
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" ?


Re: custom ui for dialogue

Posted: 17 Jul 2024 19:21
by idaot

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