How do I make a textbutton that displays text below it when clicked?
I need multiple buttons on a screen that each show a different block of text when clicked.
I'm currently using this, which doesn't damn well work, clicking the button takes me to the start label, and I must keep hovering the textbutton for the text to show. Also, I hate the new way of doing tooltips. Just thought I'd mention that. Why was it ever changed? Its so confusing now.
Code: Select all
textbutton _("Pancakes") action NullAction tooltip "135g/4¾oz plain flour\n1 tsp baking powder\n½ tsp salt\n2 tbsp caster sugar\n130ml/4½fl oz milk\n1 large egg, lightly beaten\n2 tbsp olive oil"
$ tooltip = GetTooltip()
if tooltip:
text "[tooltip]"
Hopefully this makes it a little easier to understand why I can't use a simple screen within the screen.
https://puu.sh/zPOTF/a4f849f32f.zip