So, I've been trying to put in my game a choice menu where you get some text telling you who's there and stuff. For now the way I've done is I've mixed the tooltip example from the documentation and parts of the choice screen. This works, but I was wondering if I could instead have some text spoken by a certain character (the one who is gonna be talking) appear in the textbox when hovering over a specific choice. This is what I've been using for now:
Code: Select all
screen tooltip_example():
vbox:
style_prefix "tooltip_example"
if hall_intro_done == False:
textbutton "The hall.":
action Jump("hall_intro")
tooltip "Here's some people."
if lib_intro_done == False:
textbutton "The library":
action Jump("lib_intro")
tooltip "Here's some other people."
if cafe_intro_done == False:
textbutton "The cafeteria.":
action Jump("cafe_intro")
tooltip "There are more people here."
textbutton "I'm ok.":
action Jump("introductions_over")
tooltip "Skip introductions?"
$ tooltip = GetTooltip()
if tooltip:
frame:
xcenter 0.5
text "[tooltip]" color "ff5ccd"
style tooltip_example_vbox is vbox
style tooltip_example_button is button
style tooltip_example_button_text is button_text
style tooltip_example_vbox:
xalign 0.5
ypos 0.2
spacing gui.choice_spacing
style tooltip_example_button is default:
properties gui.button_properties("choice_button")
style tooltip_example_button_text is default:
properties gui.button_text_properties("choice_button")
Code: Select all
use say
Code: Select all
hovered Jump("example")
Also I found this thread while looking for a solution, but there's no explanation on how it worked.
Thanks anyone and sorry for my English!