Lots of f-words

This commit is contained in:
Heath Volmer
2017-08-21 16:41:18 -06:00
parent 6656e67085
commit f10e20b78a
8 changed files with 75 additions and 59 deletions

View File

@@ -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);
}
}
}