press with hold on gear button

This commit is contained in:
Heath Volmer
2017-08-23 21:46:23 -06:00
parent 78529a4d56
commit d5dddade85
7 changed files with 10 additions and 5 deletions

View File

@@ -218,11 +218,16 @@ namespace PepperDash.Essentials
#warning Add press and hold to gear button here #warning Add press and hold to gear button here
#warning CHANGE BACK THIS JOIN NUMBER to GearHeaderButtonPress!!!!!! #warning CHANGE BACK THIS JOIN NUMBER to GearHeaderButtonPress!!!!!!
// Hold button // Hold button
TriList.SetSigTrueAction(UIBoolJoin.GearButtonVisible, () => { //GearHeaderButtonPress CTimer GearButtonHoldTimer = null;
new CTimer(o => { TriList.SetBoolSigAction(UIBoolJoin.GearButtonVisible, b => { //GearHeaderButtonPress
if (TriList.BooleanInput[UIBoolJoin.GearButtonVisible].BoolValue) //GearHeaderButtonPress if (b)
ShowInterlockedModal(UIBoolJoin.TechPanelSetupVisible); GearButtonHoldTimer = new CTimer(o =>
}, 2000); {
if (TriList.BooleanInput[UIBoolJoin.GearButtonVisible].BoolValue) //GearHeaderButtonPress
ShowInterlockedModal(UIBoolJoin.TechPanelSetupVisible);
}, 2000);
else if (GearButtonHoldTimer != null)
GearButtonHoldTimer.Stop();
}); });
TriList.SetSigFalseAction(UIBoolJoin.TechPagesExitButton, () => TriList.SetSigFalseAction(UIBoolJoin.TechPagesExitButton, () =>
HideCurrentInterlockedModal()); HideCurrentInterlockedModal());