From 3a41ba45e7ac0df930066a79540f82544dbd8114 Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 2 Feb 2017 13:51:29 -0500 Subject: Redesign the Infobox, categorize AL items --- ShiftOS_TheReturn/Desktop.cs | 5 ++++- ShiftOS_TheReturn/Infobox.cs | 6 ++++++ 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'ShiftOS_TheReturn') 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 /// The text displayed on the launcher item /// Whether or not an upgrade must be installed to see the launcher /// The ID of the upgrade - leave blank if requiresUpgrade is false. - public LauncherAttribute(string name, bool requiresUpgrade, string upgradeID = "") + /// The category that the item will appear in. + 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 callback) + { + _infobox.PromptYesNo(title, message, callback); + } + /// /// Inits an infobox /// @@ -80,5 +85,6 @@ namespace ShiftOS.Engine { void Open(string title, string msg); void PromptText(string title, string message, Action callback); + void PromptYesNo(string title, string message, Action callback); } } -- cgit v1.2.3