Jump to content
HotosHideout

cutText in menu screen?

Recommended Posts

Hello,

I recently implemented an abort delay timer and wish to display text in the open space to the right of the menu while the timer is counting down. I've tried to find any information to change the text in the abort button so I can display a wait time, but i'll settle for using cutText if possible. Also, if the user leaves the menu and returns to game i need the text to delete. I've also tried to force the layer that its showing on but it appears that the menu screen is on a higher layer then layer 100. Any help is appreciated.

  • Like 1

Share this post


Link to post
Share on other sites

Structured text area under a transparent no-text button can do the trick. So, you keep the onButtonClick code (button) and you apply any scripted code on the structured text with ctrlSetStructuredText.

 For layer, the lower, the "closer". The higher, the deeper. But that's for different display.

In your case, the button and the text area can be inside the same display (with different idc of course).

Then, don't forget to declare controls[]= {...};  in the true order. In your case button first, structured text to follow (I know it's counter-intuitive).

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×