diff options
| author | TheRandomMelon <[email protected]> | 2017-01-08 20:03:03 -0600 |
|---|---|---|
| committer | TheRandomMelon <[email protected]> | 2017-01-08 20:03:03 -0600 |
| commit | 7d176cf6473400c2532d1eed5900ce057a550f2f (patch) | |
| tree | 782dc72649ccfa4ff09461de6ea111beeb2a2849 /ShiftOS_TheReturn | |
| parent | ce3fa2c4004e7e5143ff5fdcc84b8c746d29f8a0 (diff) | |
| parent | 5ba9d870cdf0abeff4f18e4db9bf9ed0c5416cb1 (diff) | |
| download | shiftos_thereturn-7d176cf6473400c2532d1eed5900ce057a550f2f.tar.gz shiftos_thereturn-7d176cf6473400c2532d1eed5900ce057a550f2f.tar.bz2 shiftos_thereturn-7d176cf6473400c2532d1eed5900ce057a550f2f.zip | |
Merge branch 'master' of https://github.com/shiftos-game/ShiftOS
Diffstat (limited to 'ShiftOS_TheReturn')
| -rw-r--r-- | ShiftOS_TheReturn/Commands.cs | 7 | ||||
| -rw-r--r-- | ShiftOS_TheReturn/Infobox.cs | 24 |
2 files changed, 27 insertions, 4 deletions
diff --git a/ShiftOS_TheReturn/Commands.cs b/ShiftOS_TheReturn/Commands.cs index d2bfbfd..4571387 100644 --- a/ShiftOS_TheReturn/Commands.cs +++ b/ShiftOS_TheReturn/Commands.cs @@ -169,6 +169,13 @@ namespace ShiftOS.Engine { AppearanceManager.ConsoleOut.Clear(); return true; } + + [Command("echo")] + [RequiresArgument("text")] + public static bool Echo(Dictionary<string, object> args) { + Console.WriteLine(args["text"]); + return true; + } } #if DEVEL diff --git a/ShiftOS_TheReturn/Infobox.cs b/ShiftOS_TheReturn/Infobox.cs index e45ac69..4e7a87b 100644 --- a/ShiftOS_TheReturn/Infobox.cs +++ b/ShiftOS_TheReturn/Infobox.cs @@ -36,25 +36,41 @@ namespace ShiftOS.Engine { public class Infobox { + // Set the infobox's interface to null private static IInfobox _infobox = null; - + + /// <summary> + /// Creates a new infobox + /// </summary> + /// <param name="title">Infobox title</param> + /// <param name="message">Infobox message</param> [Obsolete("Please use Infobox.Show instead.")] public Infobox(string title, string message) { Infobox.Show(title, message); } - + + /// <summary> + /// Shows an infobox + /// </summary> + /// <param name="title">Infobox title</param> + /// <param name="message">Infobox message</param> public static void Show(string title, string message) { _infobox.Open(title, message); } - + + /// <summary> + /// Inits an infobox + /// </summary> + /// <param name="info">Interface for infobox</param> public static void Init(IInfobox info) { _infobox = info; } } - + + // Infobox Interface public interface IInfobox { void Open(string title, string msg); |
