From 7b5b5d0ee73598666f0456406f7e484a2c5a9968 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Wed, 19 Dec 2018 11:43:50 +0000 Subject: Fix up menu --- scripts/toy.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/toy.groovy b/scripts/toy.groovy index 0a30c4d..3e1334d 100644 --- a/scripts/toy.groovy +++ b/scripts/toy.groovy @@ -1544,12 +1544,11 @@ while (true) { show("Mistress will summon you when required."); if (showButton("Please, Miss?", cycleTime) < cycleTime) { def opts = [ - [ lbl: "Status", act: setupShowState ], [ lbl: "Calendar", act: setupShowCalendar ], [ lbl: "Confess", act: confess ], - [ lbl: "Back", act: null ], ]; if (is("DEBUG")) { + opts.push([ lbl: "Status", act: setupShowState ]); opts.push([ lbl: "Play", act: playEvent, arg: true ]); opts.push([ lbl: "Begin plan", act: beginPlan, arg: LUNCH ]); } @@ -1559,6 +1558,7 @@ while (true) { TOYTOYS.findAll { is(it) }.each { opts.push([ lbl: "May I be un-$it".toString(), act: requestRelease, arg: it ]); }; + opts.push([ lbl: "Back", act: null ]); def opt = getSelectedValue("Yes, toy?", opts.collect { it.lbl }); def act = opts[opt].act; if (act) -- cgit v1.2.3