Page 1 of 1

6.12's troubles with Frames

Posted: Tue Feb 08, 2011 5:26 pm
by iichan_lolbot
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...

Re: 6.12's troubles with styles

Posted: Tue Feb 08, 2011 5:31 pm
by PyTom
That's not a problem with styles, it's a problem with Frames. What are your frames, and what do the textures look like?

Re: 6.12's troubles with styles

Posted: Tue Feb 08, 2011 5:33 pm
by iichan_lolbot
All attached to the post:

File comment: demo game
menu_612_fail.zip [1008.51 KiB]
Not downloaded yet

Re: 6.12's troubles with styles

Posted: Tue Feb 08, 2011 6:01 pm
by PyTom
Sorry, I'm a bit under the weather right now. I'll look at this when I'm feeling better.

Re: 6.12's troubles with Frames

Posted: Tue Feb 08, 2011 10:47 pm
by PyTom
Okay. The antibiotics kicked in, so I have an explanation as to what's going on. In your code, you have:

Code: Select all

    style.button.background = Frame("long_butt_01.png", 126, 15,)
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.