Holy shift! After updating to 6.12 all my styles become a complete mess T_T
Just take a look and test it on 6.11 and 6.12...
6.12's troubles with Frames
-
- Veteran
- Posts: 206
- Joined: Tue Dec 30, 2008 9:18 am
- Projects: iichan erogame
- Contact:
6.12's troubles with Frames
- Attachments
-
- menu_612_fail.zip
- demo game
- (1008.51 KiB) Downloaded 35 times
Last edited by iichan_lolbot on Tue Feb 08, 2011 5:35 pm, edited 1 time in total.
- 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: 6.12's troubles with styles
That's not a problem with styles, it's a problem with Frames. What are your frames, and what do the textures look like?
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
Software > Drama • https://www.patreon.com/renpytom
-
- Veteran
- Posts: 206
- Joined: Tue Dec 30, 2008 9:18 am
- Projects: iichan erogame
- Contact:
Re: 6.12's troubles with styles
All attached to the post:
File comment: demo game
menu_612_fail.zip [1008.51 KiB]
Not downloaded yet
File comment: demo game
menu_612_fail.zip [1008.51 KiB]
Not downloaded yet
- 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: 6.12's troubles with styles
Sorry, I'm a bit under the weather right now. I'll look at this when I'm feeling better.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
Software > Drama • https://www.patreon.com/renpytom
- 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: 6.12's troubles with Frames
Okay. The antibiotics kicked in, so I have an explanation as to what's going on. In your code, you have:
So what you have there is a Frame you created where each corner is 126 pixels wide, and 15 tall. Your button is only 168 pixels wide, so you have an 84-pixel overlap - which is why you're seeing the artifacts you're seeing. You should drop the width of the Frame so it only covers the corner.
Older versions of Ren'Py handled the scaling differently, but for performance reasons, 6.12 does it in the GPU (giving a huge boost on Android). This means that the overlap is handled differently.
For backwards compatibility, I've changed Ren'Py so in the next version (6.12.1), it will prevent the overlap from showing up. It won't be pixel-per-pixel identical with 6.11, but it looks good enough. You should drop the width of the border, so that you get control over it, and it is never a problem.
Code: Select all
style.button.background = Frame("long_butt_01.png", 126, 15,)
Older versions of Ren'Py handled the scaling differently, but for performance reasons, 6.12 does it in the GPU (giving a huge boost on Android). This means that the overlap is handled differently.
For backwards compatibility, I've changed Ren'Py so in the next version (6.12.1), it will prevent the overlap from showing up. It won't be pixel-per-pixel identical with 6.11, but it looks good enough. You should drop the width of the border, so that you get control over it, and it is never a problem.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
Software > Drama • https://www.patreon.com/renpytom
Who is online
Users browsing this forum: No registered users