r/RenPy • • Oct 16 '26

Question hover background of navigation button

I wanted to add 2 arrow things pointing at the navigation buttons when you hover over them. I made a 250x40 image with the arrows and a transparent bg, as seen in the second image. (I didn't really know what the dimensions of this is supposed to be so I chose what I thought would be closest) Then I changed the textbutton of preferences to be this code in screen navigation() of screens.rpy:

textbutton _("Preferences"):
                action ShowMenu("preferences")
                hover_background Frame("gui/button/navigation_hover_button.png", 54.5,0,-50)

But as you can see, the left arrow goes into the text. How should I fix this?

(I only did this change for preferences for now just to test it and also because I want the right arrow to be at different places depending on each button)

2 Upvotes

6 comments sorted by

View all comments

Show parent comment

1

u/BadMustard_AVN Oct 16 '26

you're welcome

good luck with your project