Code: Select all
hbox:
label "blablabla" xalign .5
Code: Select all
hbox:
label "blablabla" xalign .5
Code: Select all
label "blablabla" xanchor 'center' xalign .5
Code: Select all
screen getactionsfortoday:
modal True
python:
def setactivetimeaction(active_day_action,actionnumber):
global day_action
day_action[active_day_action] = actionnumber
renpy.restart_interaction()
return
sata = renpy.curry(setactivetimeaction)
frame:
xcenter .5
ycenter .5
vbox:
text "Wähle deine Aktionen für heute:"
text " "
vbox:
hbox:
label "Morgens" xminimum 200 xanchor 'center' xalign .5 # <-- THIS
label "Mittags" xminimum 200 xanchor 'center' xalign .5 # <-- THIS
label "Abends" xminimum 200 xanchor 'center' xalign .5 # <-- THIS
hbox:
textbutton "[action_name[0]]" xminimum 200 action [sata(0, 0),SelectedIf(day_action[0]==0)]
textbutton "[action_name[0]]" xminimum 200 action [sata(1, 0),SelectedIf(day_action[1]==0)]
textbutton "[action_name[0]]" xminimum 200 action [sata(2, 0),SelectedIf(day_action[2]==0)]
hbox:
textbutton "[action_name[1]]" xminimum 200 action [sata(0, 1),SelectedIf(day_action[0]==1)]
textbutton "[action_name[1]]" xminimum 200 action [sata(1, 1),SelectedIf(day_action[1]==1)]
textbutton "[action_name[1]]" xminimum 200 action [sata(2, 1),SelectedIf(day_action[2]==1)]
# ... and so on
text " "
textbutton "Fertig!" action Return([day_action[0],day_action[1],day_action[2]]) xcenter .5
Code: Select all
frame:
xfill True # delete this if you don't want the frame to fill the whole screen side to side.
xcenter .5
yfill True # delete this if you don't want the frame to fill the whole screen top to bottom.
ycenter .5
label "Morgens" xanchor 'center' xalign .2
label "Mittags" xanchor 'center' xalign .5
label "Abends" xanchor 'center' xalign .8
textbutton "action_name_0" xanchor 'center' xalign .2 ypos 50
textbutton "action_name_0" xanchor 'center' xalign .5 ypos 50
textbutton "action_name_0" xanchor 'center' xalign .8 ypos 50 # For some reason, this is off to the left a bit.
textbutton "action_name_1" xanchor 'center' xalign .2 ypos 100
textbutton "action_name_1" xanchor 'center' xalign .5 ypos 100
textbutton "action_name_1" xanchor 'center' xalign .8 ypos 100 # For some reason, this is off to the left a bit xalign .85 might fit better.
Users browsing this forum: No registered users