I keep getting the error "can't mutiply sequences by non-int of type 'float' ". The problem seems to be the text in the choice screen. When i remove the style, it works but once i add a style to it, be it directly or per style prefix to the screen, i get the error.
I tested this before in another file and there it worked just fine, in both cases nothng had been changed aside of in the screen directly.
The code:
Code: Select all
## Choice Screen
screen choice(items):
vbox:
xalign 0.5
yanchor 0.5
ypos 400
spacing 20
for i in items:
button:
idle_background "gui/choice/choice_idle.png"
hover_background "choice_hover"
xysize (1280, 54)
text i.caption style "choice_button_text" xalign 0.5 yalign 0.5
action i.action
## When this is true, menu captions will be spoken by the narrator. When false,
## menu captions will be displayed as empty buttons.
define config.narrator_menu = True
## Choice Style
style choice_button_text:
font "fonts/DoppioOne-Regular.ttf"
size "20"
idle_color "#ffb378"
hover_color "#ff9b4f"