Code: Select all
screen Green_button():
imagebutton auto "greenbutton_%s" xpos 20 ypos 20 action Show("Yellow_viewport")
screen Yellow_viewport():
modal True
frame:
background Solid("#5a5c5c")
xpos 20 ypos 18
xmaximum 1468
xminimum 1468
ymaximum 1045
yminimum 1045
viewport:
scrollbars "vertical"
mousewheel True
draggable True
show screen Player_affinity # <-----------------------------------------------------------------------------------This is the error causing line
screen Player_affinity():
hbox:
imagebutton auto "Good_%s" xpos 20 ypos 20 action [Show("Good_screen"). Hide("Player_affinity")]
imagebutton auto "Evil_%s" xpos 20 ypos 20 action [Show("Evil_screen"). Hide("Player_affinity")]
screen Good_screen():
hbox:
imagebutton auto "close_%s" xpos 1150 ypos 8 action Hide("charactersbutton"):
at transform:
zoom 0.2
vbox:
xpos 50
ypos 130
xmaximum 1468
xminimum 1468
spacing 30
hbox:
text "js;lfffffffffffffffffffffffffff"
Below are the images of what I want to accomplish. I have also written my question on the images.
If I click the square green imagebutton which is shown by a screen, another screen opens which has a viewport(the big yellow box). In this viewport I have two imagebuttons(Evil and Good and Evil. I plan to add more hence the scrollable viewport) which when clicked disappears and shows another screen which has text some texts and images inside the viewport ITSELF!
Below is what appears when I click the ‘Evil’ imagebutton. It contains several pics, texts, and other things. . This should appears within the already showing viewport. These images and texts are inside screens. And I want these to appear when I click the Evil or Good imagebuttons. Basically what I’m asking is, how to show a screen inside a viewport? or if it can’t how do I go about accomplishing what I want?
Thanks in advance!