Prevent dialogue choice group from pushing dialogue

NodeCanvas Forums Support Prevent dialogue choice group from pushing dialogue

Tagged: ,

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #15441
    procopy
    Participant

    I tried just about anything to prevent choice group from pushing dialogue text, but could not figure a way to absolutely position both of them without interference. AFAIK UI groups will push each other, right? How can I ensure that dialogue always stays in place (in my case at the bottom of the screen), while choices are displayed?

    And why even if I zero out all delays, dialogue is still delayed “typewriter” style?

    Thanks.

    Attachments:
    You must be logged in to view attached files.
    #15443
    Gavalakis
    Keymaster

    Hello,

    The Dialogue UI included is an example/template which works a specific way (eg pushing dialogue up to show choices and typewriting the text). You are totally free to change the UI in any way you like though, since it is completely decoupled from the actual dialogue (graph) functionality. I would suggest to for example make a copy of the GUI as a starting base and modify it to fit your project needs by altering the code and/or of course the UI elements themselves.  All the relevant code can be found in DialogueUGUI.cs file (the component attached on the @DialogueUGUI prefab gameobject). The part for example where the dialogue is pushed up, can be found on line #244 in that script.

    Please let me know if that helps or if I can assist you in any other way.

    Thanks!

    Join us on Discord: https://discord.gg/97q2Rjh

    #15450
    procopy
    Participant

    I figured I’d rather clone the prefab structure and experiment with it before posting here, but did not look at the actual code at the time. Commenting out and altering couple of lines did the trick. Thanks for the help.

    #15470
    Gavalakis
    Keymaster

    Thanks for letting me know. I am glad this works for you! 🙂

    Join us on Discord: https://discord.gg/97q2Rjh

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.