As I'm developing it in a text-based style, so the menu choices are in a sequential text-based list, as coded here (and I believe shared by someone on this forum):
Due to carefully layout and positioning of choices, say, and other vbox-based text (all using '0.412'-style positioning instructions and sizes), in regular windowed mode, the game looks pixel perfect; each piece of text is exactly 12 pixels from the borders, the menu text and the choices line up vertically... it all looks incredibly neat.screen choice(items):
frame:
# pos (0.035, 0.654)
# xysize (0.95, 0.4)
background "Transparent.png"
pos (0.0412, 0.609)
xysize (0.90, 0.5)
xpadding 0
ypadding 0
vbox:
spacing 0
$ assignKey = 0
for i, (caption, action, chosen) in enumerate(items):
$ assignKey = (assignKey + 1)
if action:
if assignKey < 10:
key str(assignKey) action action
text caption style "menu_choice" xalign 0
else:
text caption style "menu_caption" xalign 0
But when I press F to put the game into fullscreen, the spacing goes out of the window. Individual menu choices shift one pixel to the right from the rest of the choices; a vbox with the same co-ordinates as the first menu choice (which appears in exactly the right place in windowed mode) again appears a few pixels out; the neat spacing of text from the borders vary depending on the text, ranging from being 15 pixels to 18 pixels from the border.
I feel like it would be a bad move for me to just disable the option to go fullscreen (the window itself is 1024x768 by default, so it is pretty large), so I want to see if this problem could be solved instead; unfortunately, I have no clue for where to begin.
Is there a solution? Or should I just disable fullscreen?