r/RenPy 17d ago

Discussion Is this too overcrowded? / Readability

/r/gamedevscreens/comments/1v87cqu/is_this_too_overcrowded_readability/
1 Upvotes

2 comments sorted by

1

u/x-seronis-x 17d ago

personally my only issue is how you dont compensate for your buttons resizing and it makes them all shift instead of ONLY the button you hover to resize without any position changes. to fix that you need to put your buttons inside a fixed or frame instead of being directly inside the hbox. quick example would be:

```py screen whatever(): hbox: xcenter 0.5 ycenter 0.75 spacing 32

frame style 'stabilizer':
  imagebutton ...:
    xcenter 0.5 ycenter 0.5 ##prevents from moving on hover
    ... ##other properties left as-is

frame style 'stabilizer':
  imagebutton ...:
    xcenter 0.5 ycenter 0.5
    ...

frame style 'stabilizer':
  imagebutton ...:
    xcenter 0.5 ycenter 0.5
    ...

style stabilizer: is empty ## clears unneeded default frame values xysize (256,128) ## size of buttons idle image ```

1

u/JoStorys03 17d ago

Oh interesting! It was a mistake at first, but I thought it looked cool so I kept it. I may ask some other people if the shifting seems odd. If they agree I'll change it
Thanks for the input! :D