diff options
| author | Michael <[email protected]> | 2017-03-09 09:53:00 -0500 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-03-09 09:53:00 -0500 |
| commit | 02fd7a883b4592a2200c4f3e912e56bdc09bfdbc (patch) | |
| tree | e8efda7855fcdbf32b721879977be6b09202d794 /ShiftOS_TheReturn/Infobox.cs | |
| parent | 8db3a2e11c6cc58adb2b62fbce1c1f63426b674c (diff) | |
| download | shiftos_thereturn-02fd7a883b4592a2200c4f3e912e56bdc09bfdbc.tar.gz shiftos_thereturn-02fd7a883b4592a2200c4f3e912e56bdc09bfdbc.tar.bz2 shiftos_thereturn-02fd7a883b4592a2200c4f3e912e56bdc09bfdbc.zip | |
callback action can be fired when user closes infobox
Diffstat (limited to 'ShiftOS_TheReturn/Infobox.cs')
| -rw-r--r-- | ShiftOS_TheReturn/Infobox.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ShiftOS_TheReturn/Infobox.cs b/ShiftOS_TheReturn/Infobox.cs index 3e8fa30..e3308dc 100644 --- a/ShiftOS_TheReturn/Infobox.cs +++ b/ShiftOS_TheReturn/Infobox.cs @@ -55,11 +55,11 @@ namespace ShiftOS.Engine /// </summary> /// <param name="title">Infobox title</param> /// <param name="message">Infobox message</param> - public static void Show(string title, string message) + public static void Show(string title, string message, Action callback = null) { title = Localization.Parse(title); message = Localization.Parse(message); - _infobox.Open(title, message); + _infobox.Open(title, message, callback); } public static void PromptText(string title, string message, Action<string> callback) @@ -89,7 +89,7 @@ namespace ShiftOS.Engine // Infobox Interface public interface IInfobox { - void Open(string title, string msg); + void Open(string title, string msg, Action callback = null); void PromptText(string title, string message, Action<string> callback); void PromptYesNo(string title, string message, Action<bool> callback); } |
