From ab370c9489ff4009bfa295b84a36ff74528f3f91 Mon Sep 17 00:00:00 2001 From: Kistaro Windrider Date: Sun, 11 Feb 2024 18:35:27 -0800 Subject: [PATCH] add "awaken now" to menu --- vacation.p8 | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/vacation.p8 b/vacation.p8 index 6333dc1..061e5d1 100644 --- a/vacation.p8 +++ b/vacation.p8 @@ -257,6 +257,13 @@ end function arm_awakener() awakener_hold_frames=0 awakener_armed=true + menuitem(1, "awaken now", awaken_now) +end + +function awaken_now() + exit_dither = ditherer.new{di=1} + awakener_armed = false + menuitem(1) end function _update60() @@ -267,8 +274,7 @@ function _update60() awakener_hold_frames = 0 end if awakener_hold_frames == 90 then - exit_dither = ditherer.new{di=1} - awakener_armed = false + awaken_now() end end if exit_dither and exit_dither:update() then