Adding Custom Title Image to History Screen [SOLVED]

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
sasquatchii
Miko-Class Veteran
Posts: 552
Joined: Fri Jul 04, 2014 7:48 am
Completed: A Day in the Life of a Slice of Bread
Deviantart: sasquatchix
Soundcloud: sasquatchii
itch: sasquatchii
Location: South Carolina
Contact:

Adding Custom Title Image to History Screen [SOLVED]

#1 Post by sasquatchii »

Hello! I am currently working on customizing the History screen in my game. I am trying to add a decorative/fancy title that says "History" @ the top so it looks like this:

Image

But here's what it currently looks like:

Image

If you look closely at the screenshot, you'll see the history title is behind the rest of the transparent dark background for that screen.

I've saved a .png of the screen with the History title + decorative element by itself, and tried to add it to the screens.rpy file using this bit of code:

Code: Select all

screen history():
    
    add "gui/history-menu-title.png"
So my question is, is there a way to play with zorder or a better way to do this, so that my title is in front of everything, rather than behind?

Any ideas or input would be much appreciated!
Last edited by sasquatchii on Sat Aug 19, 2017 8:04 pm, edited 1 time in total.
ImageImage

User avatar
PyTom
Ren'Py Creator
Posts: 16096
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: Adding Custom Title Image to History Screen

#2 Post by PyTom »

The things in a fixed (which is the layout used for a screen) are drawn back to front. So if you make it the last thing in the fixed, it will be drawn on top.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

User avatar
sasquatchii
Miko-Class Veteran
Posts: 552
Joined: Fri Jul 04, 2014 7:48 am
Completed: A Day in the Life of a Slice of Bread
Deviantart: sasquatchix
Soundcloud: sasquatchii
itch: sasquatchii
Location: South Carolina
Contact:

Re: Adding Custom Title Image to History Screen [SOLVED]

#3 Post by sasquatchii »

Thank you, PyTom!! That worked! :)
ImageImage

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot]