mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-15 12:44:58 +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 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());
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user