Button on Hover Randomly Gets Thinner Borders

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
Windchimes
Veteran
Posts: 288
Joined: Fri Nov 27, 2015 9:02 am
Projects: Reanimation Scheme, Emberfate: Tempest of Elements
Organization: Wind Chimes Games
Contact:

Button on Hover Randomly Gets Thinner Borders

#1 Post by Windchimes »

Hi!

So I just ran into a really weird problem with buttons. For some reason, when I hover over the button, it makes the left border of the border randomly get thinner. Here's a gif demonstrating the problem: https://gyazo.com/755831aabb927df2c7db96016a350f2c

I have indeed double checked to make sure the idle and hover images have the exact same width of borders. It shouldn't be a problem with my images, and in fact, it seems to happen randomly, because I copy and pasted the exact same button code to the left side of my screen under an identical vbox (just with a different ypos), but the problem doesn't occur on the left side of the page: https://gyazo.com/0808ea8da61f25850228e9bd3d52bf05

The code for my button isn't anything special:

Code: Select all

        button:
            at music_button_transform  # just a simple transform that's like on idle: alpha 0.7 on hover: alpha 1.0
            xsize 347
            ysize 135
            insensitive_background "gui/music/locked_music_box.png"
            idle_background "gui/music/unlocked_music_box_idle.png"
            hover_background "gui/music/unlocked_music_box_hover.png"
            focus_mask True
            action mr.Play(<music track file path>)
I'm very confused. Would greatly appreciate any help! Thanks in advance!

Post Reply

Who is online

Users browsing this forum: Google [Bot]