Page 1 of 1

How is the gui's image imported

Posted: Sun Mar 12, 2017 11:59 pm
by yoosir
The dir( game/gui) is default . But I can't find where the images are imported to

Re: How is the gui's image imported

Posted: Mon Mar 13, 2017 12:36 am
by SuperbowserX
Sorry, what are you asking here? Phrase your question clearly. What are you trying to do?

Re: How is the gui's image imported

Posted: Mon Mar 13, 2017 1:27 am
by indoneko
If you were looking for sprite/bg images, you could find them under the "images" folder, not the "gui" folder

Re: How is the gui's image imported

Posted: Mon Mar 13, 2017 2:37 am
by yoosir
watch the picture ,please!

Re: How is the gui's image imported

Posted: Mon Mar 13, 2017 7:46 am
by gas
No, really, you're not posing any question.
If you change those gui images, without changing any name, you don't have to "import" anything.

If you're trying to use images with different names, you have to specify the WHOLE path.

Re: How is the gui's image imported

Posted: Mon Mar 13, 2017 1:01 pm
by nyaatrap
I guess you're looking codes where gui button images are defined, but you couldn't find them.
In fact, there's no obvious code to define button styles.
They're defined in screens.rpy as the following style:

Code: Select all

style button:
    properties gui.button_properties("button")
I personally don't like this style definition. Because it's not written how styles are defined. Anyway, these lines import button images from gui/button images into your scripts.
read https://www.renpy.org/doc/html/gui.html ... -functions for more information

Edit:
I noticed, there're no description about this function on screen/style section on the ren'py document.

Re: How is the gui's image imported

Posted: Mon Mar 13, 2017 1:15 pm
by Ocelot
nyaatrap wrote: noticed, there're no description about this function on screen/style section on the ren'py document
This is my main problem with RenPy documentation: each item only exist in a single place. So if it is in quickstart, do not expect it to show up anywhere else. There are almost no crosslinking. It would be nice, if pages devoted to some topic contained at least links to everything related to this topic (e.g. Saving, Loading and Rollback page containing list of screen actions related to savind and links to them, allowing you to follow them for full description.)

Re: How is the gui's image imported

Posted: Mon Mar 13, 2017 10:25 pm
by yoosir
Yes, that's my puzzles。if i want to customize the style of Save/Load , it is difficult for me。But anyway ,thank you every body! I studied Renpy just two weeks,i'm trying now