From ba981076a1de0b2e103447d4bfccda3d05a7ddc6 Mon Sep 17 00:00:00 2001 From: MinaciousGrace Date: Wed, 25 Jan 2017 00:00:26 -0500 Subject: [PATCH] add instant reset button bound to "`" --- .../ScreenGameplay overlay/WifeJudgmentSpotting.lua | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Themes/Til Death/BGAnimations/ScreenGameplay overlay/WifeJudgmentSpotting.lua b/Themes/Til Death/BGAnimations/ScreenGameplay overlay/WifeJudgmentSpotting.lua index 33fd95ea8f..bbea440e6c 100644 --- a/Themes/Til Death/BGAnimations/ScreenGameplay overlay/WifeJudgmentSpotting.lua +++ b/Themes/Til Death/BGAnimations/ScreenGameplay overlay/WifeJudgmentSpotting.lua @@ -52,6 +52,13 @@ end --==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==-- +-- restart button +local function froot(loop) + if loop.DeviceInput.button == "DeviceButton_`" then + SCREENMAN:GetTopScreen():SetPrevScreenName("ScreenStageInformation"):begin_backing_out() + end +end + --[[~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ **Wife deviance tracker. Basically half the point of the theme.** @@ -61,7 +68,10 @@ end ]] local t = Def.ActorFrame{ - Name = "WifePerch", + Name = "WifePerch", + OnCommand=function() + SCREENMAN:GetTopScreen():AddInputCallback(froot) + end, JudgmentMessageCommand=function(self, msg) if msg.Offset ~= nil then dvCur = msg.Offset