Is there a way to use the [br] function in @choice?

All about user interface, be it customizing built-in UIs or adding new ones.
Post Reply
booksuny
Posts: 47
Joined: 26 Sep 2022 12:37

Is there a way to use the [br] function in @choice?

Post by booksuny »

Code: Select all

@choice "2Restoration[br]({SAM}remaining potion)" handler:ButtonArea button:MapButtons/att pos:0,-150 goto:.Heal

I want to make a choice button divided into two lines. I thought I made a button in the UI and finished all preparations, but I am embarrassed because [br] is not applied in the choice.

Is there a way to divide the choice phrase into two lines?

idaot
support
Posts: 275
Joined: 01 Aug 2020 08:25

Re: Is there a way to use the [br] function in @choice?

Post by idaot »

It should be possible by converting the button to use TextMeshPro instead of Unity text and using <br>.

booksuny
Posts: 47
Joined: 26 Sep 2022 12:37

Re: Is there a way to use the [br] function in @choice?

Post by booksuny »

Thank you for your quick response as always.

Post Reply