public void OnClickRevert() { Modal.PushConfirmModal("This will revert all unsaved settings changes", "Revert Changes", null, null, null, (status, tag, result) => { if (status == ModalStatusCode.Complete && result) { PaintValues(); } else { } }, true); }
public void HandleReloadButtonClicked() { string saveName = SaveUtils.GetLastSave(); if (string.IsNullOrEmpty(saveName)) { Modal.PushConfirmModal("There is no previous save to load", "Save Not Found", "Main Menu", "Close", null, (status, tag, result) => { if (result) { SharedUtils.EndGame(); } }); } else { SharedUtils.LoadGame(saveName, false); } }
static void TestConfirmModal() { Modal.PushConfirmModal("If a tree falls in the forest and nobody is around to hear it, does it make a sound?", "ConfirmModalTest", "Yes", "No", "not a tag", TestConfirmModalCallback); }