Changing UI visuals based on variables

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
lostmushroom
Posts: 195
Joined: Mon Jul 01, 2019 1:21 pm

Changing UI visuals based on variables

Post by lostmushroom »

Hey Tony, is there a way to change the sprites used for dialogue UI elements depending on variables? I'd like to have the dialogue and response boxes change visually according to choices the player makes.

Thanks!
User avatar
Tony Li
Posts: 22140
Joined: Thu Jul 18, 2013 1:27 pm

Re: Changing UI visuals based on variables

Post by Tony Li »

You could do that with some scripting, but the usual way is to set up different subtitle panels and/or menu panels with different visuals. Then use the [panel=#] markup tag and/or SetPanel() and SetMenuPanel() sequencer commands. This doesn't require any scripting at all.
lostmushroom
Posts: 195
Joined: Mon Jul 01, 2019 1:21 pm

Re: Changing UI visuals based on variables

Post by lostmushroom »

Thanks, I think that will work for what I need. I'm always happy when I don't have to do any scripting :D
User avatar
Tony Li
Posts: 22140
Joined: Thu Jul 18, 2013 1:27 pm

Re: Changing UI visuals based on variables

Post by Tony Li »

Glad to help!
Post Reply