diff options
| author | Michael <[email protected]> | 2017-07-05 22:24:17 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-07-05 22:24:17 -0400 |
| commit | 38774ba7930f9d6fa2111c8b71f1056125ab75b5 (patch) | |
| tree | 68ded6b8c8b848b517dff872bb04d9311fbb3e98 /ShiftOS.Frontend/GraphicsSubsystem/UIManager.cs | |
| parent | de9bc8567b268e9659d174f65ce7dc23dff6fafe (diff) | |
| download | shiftos_thereturn-38774ba7930f9d6fa2111c8b71f1056125ab75b5.tar.gz shiftos_thereturn-38774ba7930f9d6fa2111c8b71f1056125ab75b5.tar.bz2 shiftos_thereturn-38774ba7930f9d6fa2111c8b71f1056125ab75b5.zip | |
all the work I've done for the day
Diffstat (limited to 'ShiftOS.Frontend/GraphicsSubsystem/UIManager.cs')
| -rw-r--r-- | ShiftOS.Frontend/GraphicsSubsystem/UIManager.cs | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/ShiftOS.Frontend/GraphicsSubsystem/UIManager.cs b/ShiftOS.Frontend/GraphicsSubsystem/UIManager.cs index 1157070..d8fdf2e 100644 --- a/ShiftOS.Frontend/GraphicsSubsystem/UIManager.cs +++ b/ShiftOS.Frontend/GraphicsSubsystem/UIManager.cs @@ -59,7 +59,7 @@ namespace ShiftOS.Frontend.GraphicsSubsystem { for (int i = 5; i > 0; i--) { - batch.Draw(_target, new Rectangle(ctrl.X + i, ctrl.Y + i, ctrl.Width, ctrl.Height), new Color(Color.Black, 255 / (i * 2))); + batch.Draw(_target, new Rectangle(ctrl.X - i, ctrl.Y - i, ctrl.Width+(i*2), ctrl.Height+(i*2)), new Color(Color.Black, 255 / (i * 2))); } } @@ -69,7 +69,7 @@ namespace ShiftOS.Frontend.GraphicsSubsystem } public static void SendToBack(Control ctrl) - { + { topLevels.Remove(ctrl); topLevels.Insert(0, ctrl); } @@ -171,6 +171,10 @@ namespace ShiftOS.Frontend.GraphicsSubsystem { byte r = data[i]; byte b = data[i + 2]; + if (r == 1 && b == 1 && data[i + 1] == 1) + { + data[i + 3] = 0; + } data[i] = b; data[i + 2] = r; } @@ -187,6 +191,9 @@ namespace ShiftOS.Frontend.GraphicsSubsystem tex2.SetData<byte>(new[] { color.B, color.G, color.R, color.A }); SkinTextures.Add(colorfield.Name, tex2); } + + + } |
