Page 1 of 1

Changing UI visuals based on variables

Posted: Wed Dec 28, 2022 7:35 am
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!

Re: Changing UI visuals based on variables

Posted: Wed Dec 28, 2022 10:30 am
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.

Re: Changing UI visuals based on variables

Posted: Fri Dec 30, 2022 5:13 am
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

Re: Changing UI visuals based on variables

Posted: Fri Dec 30, 2022 8:33 am
by Tony Li
Glad to help!