Displaying window/fullscreen radio button as image? [SOLVED]

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
ourdecemberdreams
Regular
Posts: 58
Joined: Sat Apr 15, 2017 3:26 pm
Projects: The Last December
Tumblr: ourdecemberdreams
Deviantart: ourdecemberdreams
itch: ourdecemberdreams
Contact:

Displaying window/fullscreen radio button as image? [SOLVED]

#1 Post by ourdecemberdreams »

So, the code originally works perfectly fine when it was a text button, but I want to have a hover version for the text, so I replaced the text button with a image button

Code: Select all

hbox:
     style_prefix "radio"
     label _("DISPLAY")

     null width 120
     imagebutton auto "gui/button/windows_%s.png" action Preference("display", "window") activate_sound "sfx/click.wav" hover_sound "sfx/hover.wav":
             xpos 40
             yalign 1.0

       null width 70
       imagebutton auto "gui/button/fullscreen_%s.png" action Preference("display", "fullscreen") activate_sound "sfx/click.wav" hover_sound "sfx/hover.wav":
               xpos 40
               yalign 1.0
I have these images:
radio_selected_foreground.png
radio_foreground.png
windows_hover.png
windows_idle.png
fullscreen_hover.png
fullscreen_idle.png

but the "tick" just doesn't appear beside the selected option :(
I've even tried adding the following images, but those didn't work as well
windows_selected.png
fullscreen_selected.png
check_selected_foreground.png
check_foreground.png

please help!



EDIT:
I figured I just have to use these haha:
windows_selected_hover.png
windows_selected_idle.png
fullscreen_selected_hover.png
fullscreen_selected_idle.png

Post Reply

Who is online

Users browsing this forum: Google [Bot], voluorem