Well, I've never encountered this before, and my games' choices were displaying perfectly.
But now after deleting a game's persistent data, the first time I'll launch that game, all choices will appear all condensed like this :
Then, if I simply reload the game (through the dev' console) or relaunch it, they'll appear like they have to be :
It's the same case for other people who have tried that game on their computers.
I also tried to launch some older games of mine after deleting their persistent data too, and the same thing happened :
After reload/relaunch :
The choices were displayed correctly at the time I released those games (around last year for the lastest one).
I wonder if it has to do with the new GUI thing ? I'm currently using the older code, I planned to switch to the new one later
Also, that problem only occurs when I've placed my choices in the textbox.
I've tried my older games where they are simply in the middle of the screen, and one where they are slighty positionned to the right, and everything is ok, even after deleting persistent data.
The rest of the text doesn't have this problem.
Here is the code I use to show choices in the textbox :
Code: Select all
screen choice:
window:
style "menu_window"
xalign 0.77
ypos 830
vbox:
style "menu"
spacing 2
for caption, action, chosen in items:
if action:
button:
action action
style "menu_choice_button"
text caption style "menu_choice"
else:
text caption style "menu_caption"
init -2 python:
config.narrator_menu = True
style.menu_window.set_parent(style.default)
style.menu_choice.clear()
style.menu_choice_button.set_parent(style.button)
style.menu_choice_button.xminimum = int(config.screen_width * 0.52)
style.menu_choice_button.xmaximum = int(config.screen_width * 0.52)
#style.menu_choice.text_align = 0.0
style.menu_choice.xpos = 20
style.menu_choice.color = "#fbbdb6"
style.menu_choice.hover_color = "#fff"
style.menu_choice.hover_italic = True
style.menu_choice_button.background = Frame("button_idle_choix.png", 5, 5, -30, -30)
style.menu_choice_button.hover_background = Frame("button_hover_choix.png", 5, 5, -30, -30)
Thanks in advance for your attention !