How is the gui's image imported

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
yoosir
Regular
Posts: 25
Joined: Thu Mar 09, 2017 10:09 am
Contact:

How is the gui's image imported

#1 Post by yoosir » Sun Mar 12, 2017 11:59 pm

The dir( game/gui) is default . But I can't find where the images are imported to
Attachments
QQ图片20170313115618.png
QQ图片20170313115618.png (9.95 KiB) Viewed 596 times

User avatar
SuperbowserX
Veteran
Posts: 264
Joined: Sat Jan 07, 2017 3:09 pm
Contact:

Re: How is the gui's image imported

#2 Post by SuperbowserX » Mon Mar 13, 2017 12:36 am

Sorry, what are you asking here? Phrase your question clearly. What are you trying to do?

User avatar
indoneko
Miko-Class Veteran
Posts: 528
Joined: Sat Sep 03, 2016 4:00 am
Contact:

Re: How is the gui's image imported

#3 Post by indoneko » Mon Mar 13, 2017 1:27 am

If you were looking for sprite/bg images, you could find them under the "images" folder, not the "gui" folder
My avatar is courtesy of Mellanthe

yoosir
Regular
Posts: 25
Joined: Thu Mar 09, 2017 10:09 am
Contact:

Re: How is the gui's image imported

#4 Post by yoosir » Mon Mar 13, 2017 2:37 am

watch the picture ,please!
Attachments
Q2.jpg

User avatar
gas
Miko-Class Veteran
Posts: 546
Joined: Mon Jan 26, 2009 7:21 pm
Contact:

Re: How is the gui's image imported

#5 Post by gas » Mon Mar 13, 2017 7:46 am

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.
10 ? "RENPY"
20 GOTO 10

RUN

User avatar
nyaatrap
Crawling Chaos
Posts: 1824
Joined: Mon Feb 13, 2012 5:37 am
Location: Kimashi Tower, Japan
Contact:

Re: How is the gui's image imported

#6 Post by nyaatrap » Mon Mar 13, 2017 1:01 pm

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.

User avatar
Ocelot
Miko-Class Veteran
Posts: 849
Joined: Tue Aug 23, 2016 10:35 am
Skype: miinipaa
Contact:

Re: How is the gui's image imported

#7 Post by Ocelot » Mon Mar 13, 2017 1:15 pm

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.)
< < insert Rick Cook quote here > >

yoosir
Regular
Posts: 25
Joined: Thu Mar 09, 2017 10:09 am
Contact:

Re: How is the gui's image imported

#8 Post by yoosir » Mon Mar 13, 2017 10:25 pm

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

Post Reply

Who is online

Users browsing this forum: Google [Bot]