[SOLVED] Alignment got messed up after I changed the background of my frame.

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
Exodus13
Newbie
Posts: 9
Joined: Fri May 13, 2022 9:47 am
Projects: Reanimated Heart
Organization: None
IRC Nick: Exodus
Github: Exodus13
Discord: purgatio
Contact:

[SOLVED] Alignment got messed up after I changed the background of my frame.

#1 Post by Exodus13 »

Code: Select all

define gui.confirm_frame_borders = Borders(752, 233, 0, 20)
The standard quit prompt did not look good enough for me, so I made a new frame and added it. I changed the dimensions of the frame to account for the new change in frame. However, both the text (yes/no) and the image are now out of bounds. How would I fix this?

Any help at all is appreciated. Thank you.
Last edited by Exodus13 on Mon May 08, 2023 6:53 pm, edited 1 time in total.

Xiael
Regular
Posts: 31
Joined: Thu Aug 06, 2020 9:13 am
itch: Xiael
Discord: message me first here
Contact:

Re: Alignment got messed up after I changed the background of my frame.

#2 Post by Xiael »

I would guess that the other screens were also dependent on that "gui.confirm_frame_borders" variable. I suggest you could change the borders of your new frame bg through its corresponding styles clause and don't refer to that variable above
Anime sprite commissions $30 per character: viewtopic.php?f=62&t=60703&p=536689#p536689

Exodus13
Newbie
Posts: 9
Joined: Fri May 13, 2022 9:47 am
Projects: Reanimated Heart
Organization: None
IRC Nick: Exodus
Github: Exodus13
Discord: purgatio
Contact:

Re: Alignment got messed up after I changed the background of my frame.

#3 Post by Exodus13 »

Gotcha. I fixed it. Thanks!

Post Reply

Who is online

Users browsing this forum: No registered users