mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-01-31 13:25:00 +00:00
press with hold on gear button
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -218,11 +218,16 @@ namespace PepperDash.Essentials
|
||||
#warning Add press and hold to gear button here
|
||||
#warning CHANGE BACK THIS JOIN NUMBER to GearHeaderButtonPress!!!!!!
|
||||
// Hold button
|
||||
TriList.SetSigTrueAction(UIBoolJoin.GearButtonVisible, () => { //GearHeaderButtonPress
|
||||
new CTimer(o => {
|
||||
if (TriList.BooleanInput[UIBoolJoin.GearButtonVisible].BoolValue) //GearHeaderButtonPress
|
||||
ShowInterlockedModal(UIBoolJoin.TechPanelSetupVisible);
|
||||
}, 2000);
|
||||
CTimer GearButtonHoldTimer = null;
|
||||
TriList.SetBoolSigAction(UIBoolJoin.GearButtonVisible, b => { //GearHeaderButtonPress
|
||||
if (b)
|
||||
GearButtonHoldTimer = new CTimer(o =>
|
||||
{
|
||||
if (TriList.BooleanInput[UIBoolJoin.GearButtonVisible].BoolValue) //GearHeaderButtonPress
|
||||
ShowInterlockedModal(UIBoolJoin.TechPanelSetupVisible);
|
||||
}, 2000);
|
||||
else if (GearButtonHoldTimer != null)
|
||||
GearButtonHoldTimer.Stop();
|
||||
});
|
||||
TriList.SetSigFalseAction(UIBoolJoin.TechPagesExitButton, () =>
|
||||
HideCurrentInterlockedModal());
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user