diff options
| author | Michael <[email protected]> | 2017-02-02 13:51:29 -0500 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-02-02 13:51:29 -0500 |
| commit | 3a41ba45e7ac0df930066a79540f82544dbd8114 (patch) | |
| tree | 341d707da673b0db997b5b4f93a4a3e42d047259 /ShiftOS_TheReturn | |
| parent | e55e195d88ba4a3bfea47cb8784564a43f426e48 (diff) | |
| download | shiftos_thereturn-3a41ba45e7ac0df930066a79540f82544dbd8114.tar.gz shiftos_thereturn-3a41ba45e7ac0df930066a79540f82544dbd8114.tar.bz2 shiftos_thereturn-3a41ba45e7ac0df930066a79540f82544dbd8114.zip | |
Redesign the Infobox, categorize AL items
Diffstat (limited to 'ShiftOS_TheReturn')
| -rw-r--r-- | ShiftOS_TheReturn/Desktop.cs | 5 | ||||
| -rw-r--r-- | ShiftOS_TheReturn/Infobox.cs | 6 |
2 files changed, 10 insertions, 1 deletions
diff --git a/ShiftOS_TheReturn/Desktop.cs b/ShiftOS_TheReturn/Desktop.cs index cadfa6d..3f9a88c 100644 --- a/ShiftOS_TheReturn/Desktop.cs +++ b/ShiftOS_TheReturn/Desktop.cs @@ -44,8 +44,10 @@ namespace ShiftOS.Engine /// <param name="name">The text displayed on the launcher item</param> /// <param name="requiresUpgrade">Whether or not an upgrade must be installed to see the launcher</param> /// <param name="upgradeID">The ID of the upgrade - leave blank if requiresUpgrade is false.</param> - public LauncherAttribute(string name, bool requiresUpgrade, string upgradeID = "") + /// <param name="category">The category that the item will appear in.</param> + public LauncherAttribute(string name, bool requiresUpgrade, string upgradeID = "", string category = "Other") { + Category = category; Name = name; RequiresUpgrade = requiresUpgrade; ID = upgradeID; @@ -54,6 +56,7 @@ namespace ShiftOS.Engine public string Name { get; set; } public bool RequiresUpgrade { get; set; } public string ID { get; set; } + public string Category { get; private set; } public bool UpgradeInstalled { get diff --git a/ShiftOS_TheReturn/Infobox.cs b/ShiftOS_TheReturn/Infobox.cs index dfc72c2..8854b88 100644 --- a/ShiftOS_TheReturn/Infobox.cs +++ b/ShiftOS_TheReturn/Infobox.cs @@ -65,6 +65,11 @@ namespace ShiftOS.Engine _infobox.PromptText(title, message, callback); } + public static void PromptYesNo(string title, string message, Action<bool> callback) + { + _infobox.PromptYesNo(title, message, callback); + } + /// <summary> /// Inits an infobox /// </summary> @@ -80,5 +85,6 @@ namespace ShiftOS.Engine { void Open(string title, string msg); void PromptText(string title, string message, Action<string> callback); + void PromptYesNo(string title, string message, Action<bool> callback); } } |
