mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-12 12:06:58 +00:00
press with hold on gear button
This commit is contained in:
parent
78529a4d56
commit
d5dddade85
7 changed files with 10 additions and 5 deletions
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 => {
|
||||
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.
Loading…
Add table
Add a link
Reference in a new issue