mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-12 12:06:58 +00:00
Lots of f-words
This commit is contained in:
parent
6656e67085
commit
f10e20b78a
8 changed files with 75 additions and 59 deletions
Binary file not shown.
|
|
@ -77,7 +77,6 @@ namespace PepperDash.Essentials.Core
|
|||
BasicTriList TriList;
|
||||
|
||||
Action<uint> ModalCompleteAction;
|
||||
//CTimer Timer;
|
||||
|
||||
static object CompleteActionLock = new object();
|
||||
|
||||
|
|
@ -148,13 +147,21 @@ namespace PepperDash.Essentials.Core
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// Hide dialog from elsewhere, fires no actions^
|
||||
/// Hide dialog from elsewhere, fires CompleteAction
|
||||
/// </summary>
|
||||
public void CancelDialog()
|
||||
{
|
||||
OnModalComplete(0);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Hides dialog. Fires no action
|
||||
/// </summary>
|
||||
public void HideDialog()
|
||||
{
|
||||
TriList.BooleanInput[ModalVisibleJoin].BoolValue = false;
|
||||
}
|
||||
|
||||
// When the modal is cleared or times out, clean up the various bits
|
||||
void OnModalComplete(uint buttonNum)
|
||||
{
|
||||
|
|
@ -162,10 +169,7 @@ namespace PepperDash.Essentials.Core
|
|||
|
||||
var action = ModalCompleteAction;
|
||||
if (action != null)
|
||||
{
|
||||
//Debug.Console(2, "Modal complete action");
|
||||
action(buttonNum);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue