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.
-
zmook
- Veteran
- Posts: 421
- Joined: Wed Aug 26, 2020 6:44 pm
-
Contact:
#1
Post
by zmook » Sat Feb 20, 2021 7:14 pm
The
docs say:
A frame is a window that contains a background that is intended for displaying user-interface elements like buttons, bars, and text
and
A window is a window that contains a background that is intended for displaying in-game dialogue.
They seem to take the same properties. What's the difference? Does "intended for…" actually matter?
colin r
➔ if you're an artist and need a bit of help coding your game, feel free to send me a PM
-
Imperf3kt
- Lemma-Class Veteran
- Posts: 3636
- Joined: Mon Dec 14, 2015 5:05 am
- Location: Your monitor
-
Contact:
#2
Post
by Imperf3kt » Sat Feb 20, 2021 8:08 pm
A window in this context is referring to the dialogue window specifically.
For other GUI elements, you use a Frame.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project:
GGD Mentor
Free Android GUI - Updated occasionally
Twitter
Imperf3kt Blackjack - a WIP blackjack game for Android made using Ren'Py
-
midgethetree
- Regular
- Posts: 39
- Joined: Wed Dec 30, 2020 3:51 pm
- Completed: Appetité Amor, The Mother of Pearls, Anise Flowers, Sinless: on Middle Ground, Back When, I'm Just Here to Change the Lights, DUFE: Masquerade
- Projects: When Everyone's Watching
- Github: midgethetree
- itch: midge-the-tree
- Discord: rainafc#3353
-
Contact:
#3
Post
by midgethetree » Sat Feb 20, 2021 10:49 pm
No, it doesn't matter if you use windows outside their intended purpose as dialogue windows, underneath the hood frames are just windows with a different default style suffix. I find windows are useful for spacing/sizing things with the window properties (padding, size_group) in cases where I don't want the default frame style (otherwise I have to write something like "style 'empty'" or "background None" to keep it from getting the frame background - using window feels cleaner).
-
zmook
- Veteran
- Posts: 421
- Joined: Wed Aug 26, 2020 6:44 pm
-
Contact:
#4
Post
by zmook » Sun Feb 21, 2021 1:01 am
So they're interchangeable, but have different default styles. Got it.
colin r
➔ if you're an artist and need a bit of help coding your game, feel free to send me a PM
-
m_from_space
- Veteran
- Posts: 302
- Joined: Sun Feb 21, 2021 3:36 am
-
Contact:
#5
Post
by m_from_space » Sun Feb 21, 2021 4:43 am
Also you can just use a "fixed", it automatically stretches itself to the size of its parent.

Users browsing this forum: Ocelot