Windowed mode checkbox in the options menu ignores me :<

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
Alem
Regular
Posts: 38
Joined: Wed Mar 15, 2017 7:53 am
Contact:

Windowed mode checkbox in the options menu ignores me :<

#1 Post by Alem » Sat May 06, 2017 10:23 am

Hi, I have a bit of the problem with radio buttons for the options, namely the “windowed” option in the display section. In the display options, if you choose 'Fullscreen', a tick mark appears next to it. If you choose the windowed mode, the tick box stays empty. Switching into the windowed more via Alt + Enter doesn’t change a thing.

The GUI is based on a modern scheme and configured for 1920x1080 resolution.

Here the dev build to test the issue – direct download.

I checked the code for these buttons against a fresh project and trust that the code remained untouched from the beginning. Here it is:

Code: Select all

    use game_menu(_("Options"), scroll="viewport"):

        vbox:

            hbox:
                box_wrap True

                if renpy.variant("pc"):

                    vbox:
                        style_prefix "radio"
                        label _("Display")
                        textbutton _("Window") action Preference("display", "window")
                        textbutton _("Fullscreen") action Preference("display", "fullscreen")
Any thought on the cause? Thanks in advance.

User avatar
Ocelot
Eileen-Class Veteran
Posts: 1883
Joined: Tue Aug 23, 2016 10:35 am
Github: MiiNiPaa
Discord: MiiNiPaa#4384
Contact:

Re: Windowed mode checkbox in the options menu ignores me :<

#2 Post by Ocelot » Sat May 06, 2017 10:42 am

It is a known problem. This button would only be ticked when game render window is exactly the size you provided in config (In your case 1920x1080). This is only possible if resolution of your display is higher (To display a rectangle with width 1920 you need about 1960 pixels — window borders take extra space). You can either use sensitive property to explicitely tell if button need to be rendered as checked, or use Preference("display", "any window") instead.
< < insert Rick Cook quote here > >

Alem
Regular
Posts: 38
Joined: Wed Mar 15, 2017 7:53 am
Contact:

Re: Windowed mode checkbox in the options menu ignores me :<

#3 Post by Alem » Sat May 06, 2017 11:20 am

Got it, thanks for the quick response.

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], span4ev