- Jun 16, 2018
- 419
- 766
Code:
screen choice(items):
style_prefix "choice"
vbox:
for i in items:
textbutton i.caption action i.action
define config.narrator_menu = True
style choice_vbox is vbox
style choice_button is button
style choice_button_text is button_text
style choice_vbox:
xalign 0.5
ypos 405
yanchor 0.5
spacing gui.choice_spacing
style choice_button is default:
properties gui.button_properties("choice_button")
style choice_button_text is default:
properties gui.button_text_properties("choice_button")
This is the choice screen, from the screens.rpy, as provided by Ren’Py. I was wondering how it could be adapted it to provide, when hovered, an additional piece of information. I would like the information to not be displayed within the text button but rather elsewhere on the screen. The idea being when the user hovers their cursor over the choice they would be given additional insight into what they were choosing, but when they withdraw their cursor the additional information is removed. This information would, of course, be determined within the script.rpy, much like the i.caption and i.action. Thank you in advance.