Code: Select all
screen your_turn(unit):
modal True
vbox:
xpos 20
ypos 60
imagebutton auto "gui/Battle/phase_button_%s.png" action SensitiveIf(unit.move_flag)
imagebutton auto "gui/Battle/phase_button_%s.png" action SensitiveIf(unit.attack_flag)
imagebutton auto "gui/Battle/phase_button_%s.png" action Show("your_turn2", None, unit)
imagebutton auto "gui/Battle/phase_button_%s.png" action Return()
vbox:
xpos 25
ypos 65
spacing 4
text "Move"
text "Attack"
text unit.name
text "End"
screen your_turn2(unit):
modal True
vbox:
xpos 270
ypos 140
imagebutton auto "gui/Battle/phase_button_%s.png" action NullAction()
imagebutton auto "gui/Battle/phase_button_%s.png" action Hide("Your_turn2",fade)
vbox:
xpos 275
ypos 145
spacing 4
text "Summon"
text "Back"
Code: Select all
screen your_turn(unit):
modal True
vbox:
xpos 20
ypos 60
imagebutton auto "gui/Battle/phase_button_%s.png" action SensitiveIf(unit.move_flag)
imagebutton auto "gui/Battle/phase_button_%s.png" action SensitiveIf(unit.attack_flag)
imagebutton auto "gui/Battle/phase_button_%s.png" action [SetVariable(unit.name_flag, True), SelectedIf(unit.name_flag), Show("your_turn2", None, unit)]
imagebutton auto "gui/Battle/phase_button_%s.png" action Return()
vbox:
xpos 25
ypos 65
spacing 4
text "Move"
text "Attack"
text unit.name
text "End"
screen your_turn2(unit):
modal True
vbox:
xpos 270
ypos 140
imagebutton auto "gui/Battle/phase_button_%s.png" action NullAction()
imagebutton auto "gui/Battle/phase_button_%s.png" action [SetVariable(unit.name_flag, False), Hide("Your_turn2",fade)]
vbox:
xpos 275
ypos 145
spacing 4
text "Summon"
text "Back"