Why does Ren'Py create image files for GUI?

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
qirien
Veteran
Posts: 485
Joined: Thu Jul 31, 2003 10:06 pm
Organization: Metasepia Games
Deviantart: qirien
Github: qirien
itch: qirien
Location: New Mexico, USA
Contact:

Why does Ren'Py create image files for GUI?

#1 Post by qirien » Fri Feb 02, 2018 12:59 pm

In the new(-ish) Ren'Py when you start a game, it creates GUI images for you with the colors you select and puts them in the gui directory. It seems like it would be easier and take less space to just use Frame(Solid(whatever_color)) instead. Then if you wanted to change colors later it would not have to regenerate all the images, but could just change some color values in a file.

So I'm guessing there's some reason for doing this. Is it to have some dummy images so game creators can easily plop in their own graphics files? Or is it faster to load images from disk instead of generating them every time?

I'm asking because I'm using a lot of bars in my game (right now using Frame(Solid(color))) and I want them to be efficient.
Finished games:
Image
Image
Image
In progress: Our Personal Space 2: Space to Grow

User avatar
SundownKid
Lemma-Class Veteran
Posts: 2299
Joined: Mon Feb 06, 2012 9:50 pm
Completed: Icebound, Selenon Rising Ep. 1-2
Projects: Selenon Rising Ep. 3-4
Organization: Fastermind Games
Deviantart: sundownkid
Location: NYC
Contact:

Re: Why does Ren'Py create image files for GUI?

#2 Post by SundownKid » Fri Feb 02, 2018 1:35 pm

I'm guessing it's for ease of swapping out or editing GUI elements for people who aren't that great at programming Screen Language.

In terms of efficiency... I doubt it will make a smidgen of difference in performance.

User avatar
PyTom
Ren'Py Creator
Posts: 15447
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Why does Ren'Py create image files for GUI?

#3 Post by PyTom » Sat Feb 03, 2018 3:31 am

qirien wrote:
Fri Feb 02, 2018 12:59 pm
Is it to have some dummy images so game creators can easily plop in their own graphics files?
This is the reason. Solid is faster, but it's way easier to say "Replace the bar image" than walking through people through a ton of screen language before they can do that. The bars are a little on the big side of this reason - I want to have more space for different kinds of replacements.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
qirien
Veteran
Posts: 485
Joined: Thu Jul 31, 2003 10:06 pm
Organization: Metasepia Games
Deviantart: qirien
Github: qirien
itch: qirien
Location: New Mexico, USA
Contact:

Re: Why does Ren'Py create image files for GUI?

#4 Post by qirien » Sat Feb 03, 2018 11:29 am

OK, thank you! I have to remember most people aren't coming from a programming background... :D
Finished games:
Image
Image
Image
In progress: Our Personal Space 2: Space to Grow

Post Reply

Who is online

Users browsing this forum: Adrian_DVL, MaydohMaydoh