How to add frame padding [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
oatnoodles
Regular
Posts: 71
Joined: Tue Aug 03, 2021 6:26 pm
Projects: Samuda Interval
Organization: Tomuwa Entertainment
Deviantart: oatnoodles
Github: oatnoodles
itch: oatnoodles
Discord: oatnoodles
Contact:

How to add frame padding [Solved]

#1 Post by oatnoodles »

I want to add padding to a frame. Currently when I add an hbox into my frame, there is no padding at all.
Image

I've done some googling but couldn't find anything. I checked renpy.org but I really don't know how to implement styles, if that's how I need to go about it.

My current code is:

Code: Select all

#Health icon
    frame:
        xpos 405
        ypos 850
        hbox:
            spacing 25
            yalign 0.5
            if health == "Exhausted":
                add "gui/health/exhausted.png"
            if health == "Tired":
                add "gui/health/tired.png"
            if health == "Fine":
                add "gui/health/fine.png"
            if health == "Healthy":
                add "gui/health/healthy.png"
            if health == "Vigourous":
                add "gui/health/vigourous.png"

            #Health text
            if health == "Exhausted":
                text "{color=#414141}Exhausted{/color}" size 50
            if health == "Tired":
                text "{color=#414141}Tired{/color}" size 50
            if health == "Fine":
                text "{color=#414141}Fine{/color}" size 50
            if health == "Healthy":
                text "{color=#414141}Healthy{/color}" size 50
            if health == "Vigourous":
                text "{color=#414141}Vigourous{/color}" size 50
Last edited by oatnoodles on Fri Aug 06, 2021 3:04 pm, edited 1 time in total.
Ren'py amateur looking to learn as much as possible! Please be patient with me.

User avatar
Ocelot
Lemma-Class Veteran
Posts: 2384
Joined: Tue Aug 23, 2016 10:35 am
Github: MiiNiPaa
Discord: MiiNiPaa#4384
Contact:

Re: How to add frame padding

#2 Post by Ocelot »

< < insert Rick Cook quote here > >

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot]