Problem with markup position

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
21on
Posts: 5
Joined: Wed Aug 23, 2023 12:43 pm

Problem with markup position

Post by 21on »

Hello, I'm trying to assign an option to a specific button.
Right now I have 3 buttons (button0, button1, button2) that I set up using this guidehttps://www.pixelcrushers.com/phpbb/vie ... php?t=7087

But for some reason, nothing happens when I run the scene. In this case, the second option will always be on button1 and not on button2.

What am I doing wrong?

User avatar
Tony Li
Posts: 22116
Joined: Thu Jul 18, 2013 1:27 pm

Re: Problem with markup position

Post by Tony Li »

Hi,

On your Standard UI Menu Panel component, are the buttons assigned to the Buttons list? The [position=#] tag isn't meant to be used with buttons that are instantiated from the Button Template. To see an example that uses buttons assigned to the Buttons list, examine the Wheel dialogue UI prefab.
21on
Posts: 5
Joined: Wed Aug 23, 2023 12:43 pm

Re: Problem with markup position

Post by 21on »

Yes they are assigned exactly like in the Wheel Prefab.



User avatar
Tony Li
Posts: 22116
Joined: Thu Jul 18, 2013 1:27 pm

Re: Problem with markup position

Post by Tony Li »

Hi,

Sorry I missed this before: Your Menu Text is set to "3". This means the response menu will use "3" for the menu button, not "[position=2]Testo...". Try changing the Menu Text to "[position=2]3" or clear the Menu Text if you want to use "Testo..." for the button.
21on
Posts: 5
Joined: Wed Aug 23, 2023 12:43 pm

Re: Problem with markup position

Post by 21on »

Ah, that works! Thanks, Tony, you are awesome!
User avatar
Tony Li
Posts: 22116
Joined: Thu Jul 18, 2013 1:27 pm

Re: Problem with markup position

Post by Tony Li »

Glad to help!
Post Reply