Skip to content

Commit

Permalink
add instant reset button bound to "`"
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed Jan 25, 2017
1 parent a83ab16 commit ba98107
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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.**
Expand All @@ -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
Expand Down

0 comments on commit ba98107

Please sign in to comment.