It looks okay on me though. I just copied and pasted your code in this one, left the styles to default and didn't add any. So I suggest checking your styles if ever you changed the styles for the slots or confirm.
If you really cant figure out why it has a gap then maybe try the inspector? On one of your saves, hover your cursor onto the screenshot of the save then hit
shift + i then see the structure in the inspector and click the style for the
vbox or the
viewport to see if you added some styles that might have caused the gap.
Maybe its because of this part? Not sure though, but you wont be needing this. It's only applicable in your old method where you're using a grid instead of vbox. Vboxes don't throw an error when there's a missing child or what.
In my previous post, I actually eliminated the conditionals, the
if FileLoadable(slot) part.
This one...
Is kinda bad though, I tried this one, if you have no saves (empty) then click the save button, the first save slot wont show even though its saved, on the 2nd click of the save button it will show one save instead of showing 2.
And it works well for me without any issue with this line of code being dropped and with the save button's action that I suggested.
I'm working on an old Macbook so I don't know how to find the saves on the temp folder you mentioned
In your
config.rpy you should find a variable
config.save_directory or
config.savedir, something like that. It should contain the path to the temp folder of the game. Another option would be, while in game press
shift + o then type
config.savedir or
config.save_directory then press
enter and you should see the path in the console where the temp folder is located.
This might also help, the official doc says...
https://www.renpy.org/doc/html/config.h ... _directory
This is used to generate the directory in which games and persistent information are saved. The name generated depends on the platform:
Windows
%APPDATA%/RenPy/save_directory
Mac OS X
~/Library/RenPy/save_directory
Linux/Other
~/.renpy/save_directory
But if not then try the first workarounds that I suggested.
If you found it then it should look something like this.
Overall, this how it looks on my side, with the line of code that I said being dropped. (GIF)