Hi!
I worked this agenda editing.
the agenda works well.
but as you can see in my code I want to allow players to modify this schedule.
In the last part of my code I managed to put the renpy input I wanted to put in, I didn't do it before because I didn't do it with vboxes, now, it works.
unfortunately I can't get out of this code to go back to my story in a correct way.
When I click on work to modify the sunday morning I can change free by what I want. But I can't go back to the calendar and close the screens previously opened.
The image of the calendar remains open and I find myself following my story without being able to return to the computer screen.
I've tried many methods to get out of this, but I can't.
I tried this code...:
with a screen or a label... I tried to finish it with a hide, return... or I tried to add an imagebutton to close it, I don't succeed.
every time I try to modify it, this code automatically opens as soon as I come to the agenda and I can no longer modify the text because it runs as a loop as if it automatically restarts uninterrupted and continuous.
Thanks for your help!
I worked this agenda editing.
the agenda works well.
but as you can see in my code I want to allow players to modify this schedule.
In the last part of my code I managed to put the renpy input I wanted to put in, I didn't do it before because I didn't do it with vboxes, now, it works.
unfortunately I can't get out of this code to go back to my story in a correct way.
When I click on work to modify the sunday morning I can change free by what I want. But I can't go back to the calendar and close the screens previously opened.
The image of the calendar remains open and I find myself following my story without being able to return to the computer screen.
I've tried many methods to get out of this, but I can't.
Code:
label theevencalorbed:
menu:
"Work Computer.":
call screen thecomputer
"Go to bedroom.":
return
return
screen thecomputer():
add "computer"
imagebutton auto "icon/buttonclose_%s.png" align (0.99, 0.01):
action Return
imagebutton auto "icon/foldcalen_%s.png" align (0.05, 0.25):
action Show("theelpicalendar")
screen theelpicalendar():
add "elpithecal"
imagebutton auto "icon/buttonclose_%s.png" align (0.99, 0.01):
action Hide("theelpicalendar")
textbutton "Work" action Jump("modifcalen"):
xalign 0.9
yalign 0.9
vbox:
style_prefix "yourstatstyle"
align(0.14, 0.20)
text "[calsunmo]"
vbox:
style_prefix "yourstatstyle"
align(0.27, 0.20)
text "[calmonmo]"
vbox:
style_prefix "yourstatstyle"
align(0.40, 0.20)
text "[caltuemo]"
vbox:
style_prefix "yourstatstyle"
align(0.53, 0.20)
text "[calwedmo]"
vbox:
style_prefix "yourstatstyle"
align(0.66, 0.20)
text "[calthumo]"
vbox:
style_prefix "yourstatstyle"
align(0.79, 0.20)
text "[calfrimo]"
vbox:
style_prefix "yourstatstyle"
align(0.92, 0.20)
text "[calsatmo]"
vbox:
style_prefix "yourstatstyle"
align(0.14, 0.40)
text "[calsunaf]"
vbox:
style_prefix "yourstatstyle"
align(0.27, 0.40)
text "[calmonaf]"
vbox:
style_prefix "yourstatstyle"
align(0.40, 0.40)
text "[caltueaf]"
vbox:
style_prefix "yourstatstyle"
align(0.53, 0.40)
text "[calwedaf]"
vbox:
style_prefix "yourstatstyle"
align(0.66, 0.40)
text "[calthuaf]"
vbox:
style_prefix "yourstatstyle"
align(0.79, 0.40)
text "[calfriaf]"
vbox:
style_prefix "yourstatstyle"
align(0.92, 0.40)
text "[calsataf]"
vbox:
style_prefix "yourstatstyle"
align(0.14, 0.60)
text "[calsunla]"
vbox:
style_prefix "yourstatstyle"
align(0.27, 0.60)
text "[calmonla]"
vbox:
style_prefix "yourstatstyle"
align(0.40, 0.60)
text "[caltuela]"
vbox:
style_prefix "yourstatstyle"
align(0.53, 0.60)
text "[calwedla]"
vbox:
style_prefix "yourstatstyle"
align(0.66, 0.60)
text "[calthula]"
vbox:
style_prefix "yourstatstyle"
align(0.79, 0.60)
text "[calfrila]"
vbox:
style_prefix "yourstatstyle"
align(0.92, 0.60)
text "[calsatla]"
vbox:
style_prefix "yourstatstyle"
align(0.14, 0.80)
text "[calsunev]"
vbox:
style_prefix "yourstatstyle"
align(0.27, 0.80)
text "[calmonev]"
vbox:
style_prefix "yourstatstyle"
align(0.40, 0.80)
text "[caltueev]"
vbox:
style_prefix "yourstatstyle"
align(0.53, 0.80)
text "[calwedev]"
vbox:
style_prefix "yourstatstyle"
align(0.66, 0.80)
text "[calthuev]"
vbox:
style_prefix "yourstatstyle"
align(0.79, 0.80)
text "[calfriev]"
vbox:
style_prefix "yourstatstyle"
align(0.92, 0.80)
text "[calsatev]"
default calsunmo = "Free"
default calmonmo = "Free"
default caltuemo = "Free"
default calwedmo = "Free"
default calthumo = "Free"
default calfrimo = "Free"
default calsatmo = "Free"
default calsunaf = "free"
default calmonaf = "Free"
default caltueaf = "Free"
default calwedaf = "Free"
default calthuaf = "Free"
default calfriaf = "Free"
default calsataf = "Free"
default calsunla = "free"
default calmonla = "Free"
default caltuela = "Free"
default calwedla = "Free"
default calthula = "Free"
default calfrila = "Free"
default calsatla = "Free"
default calsunev = "free"
default calmonev = "Free"
default caltueev = "Free"
default calwedev = "Free"
default calthuev = "Free"
default calfriev = "Free"
default calsatev = "Free"
label modifcalen:
$ calsunmo = renpy.input("Sunday Morning")
$ calsunmo = calsunmo.strip()
if not calsunmo:
$ calsunmo = "Free"
I tried this code...:
Code:
label modifcalen:
$ calsunmo = renpy.input("Sunday Morning")
$ calsunmo = calsunmo.strip()
if not calsunmo:
$ calsunmo = "Free"
every time I try to modify it, this code automatically opens as soon as I come to the agenda and I can no longer modify the text because it runs as a loop as if it automatically restarts uninterrupted and continuous.
Thanks for your help!