Page 1 of 1

How to add frame padding [Solved]

Posted: Thu Aug 05, 2021 7:21 pm
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

Re: How to add frame padding

Posted: Thu Aug 05, 2021 7:24 pm
by Ocelot