[Solved]Custom Screens
Posted: Wed Sep 29, 2021 11:19 am
Hi
The following code works.
But when write the following code I get an error. Can you tell me what i am missing or doing wrong?
I get error in the last line - syntax error
The following code works.
Code: Select all
screen customscreen:
modal True
zorder 200
style_prefix "confirm"
add "gui/overlay/confirm.png"
frame:
vbox:
xalign .5
yalign .5
spacing 45
label _("Not Yet Implemented"):
style "confirm_prompt"
xalign 0.5
textbutton _("OK") xalign 0.5 action Hide("customscreen")
key "game_menu" action Hide("customscreen")
textbutton _("Google") xpos 960 ypos 540 action Show("customscreen")
Code: Select all
screen customscreen(custommessage):
modal True
zorder 200
style_prefix "confirm"
add "gui/overlay/confirm.png"
frame:
vbox:
xalign .5
yalign .5
spacing 45
label _(custommessage):
style "confirm_prompt"
xalign 0.5
textbutton _("OK") xalign 0.5 action Hide("customscreen")
key "game_menu" action Hide("customscreen")
textbutton _("Google") xpos 960 ypos 540 action Show("customscreen(_("Not Yet Implemented"))")