In my options.rpy, in an init python block, I have added:
Code: Select all
config.layers = [ 'zero', 'master', 'transient', 'belowmid', 'midlayer', 'abovemid', 'backgrounds', 'textwindow', 'overlay2', 'screens', 'overlay']
In overlay.rpy I've got:
Code: Select all
screen basic_overlay():
layer "overlay2"
## Ensure this appears on top of other screens.
zorder 2
modal False
add "gui/overlay/app_overlay.png"
text hour() ypos 25 xpos 640
text daystate ypos 75 xpos 680
text weather ypos 125 xpos 680
text ("Day: %d"%calendar.game_day) ypos 175 xpos 680
text (calendar.month.join(" %d"%calendar.day)) ypos 225 xpos 620
frame:
xalign 0.0
yalign 0.0
xsize 543
yfill True
background None
add "protag" xalign 0.5
hbox:
xalign 0.92
yalign 0.0
spacing 20
imagebutton:
auto "gui/icons/righthand_icon_%s.png"
focus_mask True
#action [Hide("basic_overlay"), ShowMenu("book_shelf")]
imagebutton:
auto "gui/icons/lefthand_icon_%s.png"
focus_mask True
#action [Hide("basic_overlay"), ShowMenu("book_shelf")]
imagebutton:
auto "gui/icons/rightfoot_icon_%s.png"
focus_mask True
#action [Hide("basic_overlay"), ShowMenu("book_shelf")]
imagebutton:
auto "gui/icons/leftfoot_icon_%s.png"
focus_mask True
#action [Hide("basic_overlay"), ShowMenu("book_shelf")]
Code: Select all
screen nvl(dialogue, items=None):
layer "textwindow"