diff options
| author | Michael <[email protected]> | 2017-08-05 22:57:40 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-08-05 22:57:40 -0400 |
| commit | 97a5a97370bc8f4d721791457d551c6bd2b0b67c (patch) | |
| tree | cf4bcc05af8f6153fd35fcd2e6a2f6e21945b27a /ShiftOS.Frontend/Commands.cs | |
| parent | f4d11fcdad5fdfc7c25cf3c6f96516b2330dca1c (diff) | |
| download | shiftos_thereturn-97a5a97370bc8f4d721791457d551c6bd2b0b67c.tar.gz shiftos_thereturn-97a5a97370bc8f4d721791457d551c6bd2b0b67c.tar.bz2 shiftos_thereturn-97a5a97370bc8f4d721791457d551c6bd2b0b67c.zip | |
skin loader and ui tint
Diffstat (limited to 'ShiftOS.Frontend/Commands.cs')
| -rw-r--r-- | ShiftOS.Frontend/Commands.cs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ShiftOS.Frontend/Commands.cs b/ShiftOS.Frontend/Commands.cs index 19d229c..29d8409 100644 --- a/ShiftOS.Frontend/Commands.cs +++ b/ShiftOS.Frontend/Commands.cs @@ -41,11 +41,25 @@ using ShiftOS.Objects; using ShiftOS.Engine.Scripting; using ShiftOS.Objects.ShiftFS; using ShiftOS.Engine; +using Microsoft.Xna.Framework; +using ShiftOS.Frontend.GraphicsSubsystem; namespace ShiftOS.Frontend { public static class FrontendDebugCommands { + [Command("set_ui_tint")] + [RequiresArgument("color")] + [ShellConstraint("shiftos_debug> ")] + public static void SetUITint (Dictionary<string, object> args) + { + string[] split = args["color"].ToString().Split(';'); + int r = MathHelper.Clamp(Convert.ToInt32(split[0]), 0, 255); + int g = MathHelper.Clamp(Convert.ToInt32(split[1]), 0, 255); + int b = MathHelper.Clamp(Convert.ToInt32(split[2]), 0, 255); + UIManager.SetUITint(new Color(r, g, b, 255)); + } + [Command("drop_opener")] [ShellConstraint("shiftos_debug> ")] public static void DropOpener(Dictionary<string, object> args) |
