Search found 849 matches

by Ocelot
Fri Sep 30, 2016 8:11 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] How to call 2 screens at once?
Replies: 2
Views: 311

Re: How to call 2 screens at once?

Did you try

Code: Select all

show screen gallerybg
show screen gallerypopup
#or call screen gallerypopup
by Ocelot
Thu Sep 29, 2016 4:48 pm
Forum: Ren'Py Questions and Announcements
Topic: Remebring old saves and progress resets with boolean
Replies: 6
Views: 406

Re: Remebring old saves and progress resets with boolean

You can check if variable was set and set it to some default value: label i_have_saved_here: #.... #Just before our check python: if not ("boolean_variable" in globals()): boolean_variable = True # We agreed to choice by default if boolean_variable: # if we have agreed to some question before that p...
by Ocelot
Thu Sep 29, 2016 4:06 am
Forum: Ren'Py Questions and Announcements
Topic: How to bring hovered imagebutton on top?
Replies: 3
Views: 383

Re: How to bring hovered imagebutton on top?

Solved it. Here is what I have done: Added another two static images, same as idle state of my buttons, positioned the same way as my buttons, but drawn before them. Essentiallly hidden behind them. On second though I just added them to the background, but this might not be suited for all. Creates c...
by Ocelot
Wed Sep 28, 2016 1:42 pm
Forum: Ren'Py Questions and Announcements
Topic: Too much data in translation variable
Replies: 2
Views: 293

Re: Too much data in translation variable

Did you try to fill it sequentially? init python: translation = {} translation["settings"] = { "english" : "SETTINGS", None : "НАСТРОЙКИ", "spanish" : "OPCIONES", "italian" : "IMPOSTAZIONI", "japanese" : "設定", } translation["start"] = { "english" : "START", None : "СТАРТ", "spanish" : "COMIENZO", "i...
by Ocelot
Wed Sep 28, 2016 9:06 am
Forum: Ren'Py Questions and Announcements
Topic: Error: UserParser object has no attribute 'nchildren'
Replies: 2
Views: 365

Re: Error: UserParser object has no attribute 'nchildren'

Default game_menu screen with scroll="viewport" uses following code: vbox: transclude In your use statement you have has statement. According to documentation , vbox cannot have has statement. I think you just need to remove line has vbox: . Otherwise you will have vbox in vbox in vbox which does no...
by Ocelot
Wed Sep 28, 2016 8:21 am
Forum: Ren'Py Questions and Announcements
Topic: How to bring hovered imagebutton on top?
Replies: 3
Views: 383

How to bring hovered imagebutton on top?

I have two buttons on screen defined like that: imagebutton auto 'images/menu/door_left_%s.png' focus_mask "images/menu/door_left_mask.png" action Quit(False) imagebutton auto 'images/menu/door_right_%s.png' focus_mask "images/menu/door_right_mask.png" action Quit(False) The problem is in "hovered" ...
by Ocelot
Wed Aug 24, 2016 12:37 pm
Forum: Ren'Py Questions and Announcements
Topic: How to make all items in vbox to have same xsize?
Replies: 5
Views: 857

Re: How to make all items in vbox to have same xsize?

I might not understood your proposal, but the problem is finding exact size. As I said, vpgrid width will change, and I do not want to hardcode sizes. For now I set second viewport size manually by inspecting vpgrid in Displayable Inspector and looking at its size, but I want more robust solution. I...
by Ocelot
Wed Aug 24, 2016 11:58 am
Forum: Ren'Py Questions and Announcements
Topic: How to make all items in vbox to have same xsize?
Replies: 5
Views: 857

Re: How to make all items in vbox to have same xsize?

Sadly size_group didn't work for me: it seems to expand all widgets width to the width of largest one. I have opposite problem: "text" displayable tries to use as much width as possible before starting to wrap words to the next line. I want to limit it to the width of vpgrid defined before.
by Ocelot
Tue Aug 23, 2016 11:16 am
Forum: Ren'Py Questions and Announcements
Topic: How to make all items in vbox to have same xsize?
Replies: 5
Views: 857

How to make all items in vbox to have same xsize?

I have a vbox, which has a vpgrid. That grid manages own width just fine and I do not want to set it explicitely. After it I have viewport which uses another screen, containing ton of text, so, if I do not set width explicitely, it will atempt to fill rest of the screen. I want second viewport to ha...