Problem with ‘Display’ box in ‘settings’ [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
User avatar
IrinaLazareva
Veteran
Posts: 399
Joined: Wed Jun 08, 2016 1:49 pm
Projects: Legacy
Organization: SunShI
Location: St.Petersburg, Russia
Contact:

Problem with ‘Display’ box in ‘settings’ [Solved]

#1 Post by IrinaLazareva »

If change resolution in the lines config.screen_width (height) in options.rpy.
Then to start the project and to come into ‘settings’, in the ‘Display’ box there are active both buttons (‘windows’ and ‘fullscreen’)
In the full-screen mode everything is good (one ‘window’ button is active), and in the window mode, no :(
That is being in the window mode there is possible a pressing the ‘transition to the window mode’ button. What, in principle, shouldn't be…
Image
If to return resolution by default (800x600) and to clear constant data, then everything will earn.

How to correct it for other resolutions?
___
Ren'Py 6.99.8 version
also I tested on version 6.99.10
in the Ren'Py 6.99.4 version of such mistake isn't present (it seems).

P.S. I apologize for weak English O:-)
Last edited by IrinaLazareva on Thu Jun 09, 2016 10:32 am, edited 1 time in total.

User avatar
theCodeCat
Regular
Posts: 62
Joined: Sun Sep 06, 2015 8:40 pm
Projects: Lucid9, Mystic Destinies: Serendipity of Aeons
Skype: theCodeCat
Contact:

Re: Problem with ‘Display’ box in ‘settings’

#2 Post by theCodeCat »

In screens.rpy for the preferences screen, try changing the bit that says

Code: Select all

action Preference("display", "window")
to

Code: Select all

action [Preference("display", "window"), SelectedIf(_preferences.fullscreen==False)]

User avatar
IrinaLazareva
Veteran
Posts: 399
Joined: Wed Jun 08, 2016 1:49 pm
Projects: Legacy
Organization: SunShI
Location: St.Petersburg, Russia
Contact:

#3 Post by IrinaLazareva »

OK, visually better.
Thank You :)

Only, the button remains acting.
Being in the window mode, it is all the same possible to press the button 'window' and there will be a transition from the "window mode" to "window mode"... :/

User avatar
Donmai
Eileen-Class Veteran
Posts: 1960
Joined: Sun Jun 10, 2012 1:45 am
Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
Projects: Slumberland
Location: Brazil
Contact:

Re: Problem with ‘Display’ box in ‘settings’

#4 Post by Donmai »

try

Code: Select all

action Preference("display", "any window")
Image
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)

User avatar
IrinaLazareva
Veteran
Posts: 399
Joined: Wed Jun 08, 2016 1:49 pm
Projects: Legacy
Organization: SunShI
Location: St.Petersburg, Russia
Contact:

Re: Problem with ‘Display’ box in ‘settings’

#5 Post by IrinaLazareva »

Donmai wrote:try

Code: Select all

action Preference("display", "any window")
ОH Yes! :)
Thank You very much!!

Post Reply

Who is online

Users browsing this forum: Bing [Bot], voluorem