diff options
| author | Michael <[email protected]> | 2017-07-05 13:15:00 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-07-05 13:15:00 -0400 |
| commit | de9bc8567b268e9659d174f65ce7dc23dff6fafe (patch) | |
| tree | b311f063400314c1ef7a348524935ff381d8253e /ShiftOS.Frontend/Apps | |
| parent | e7b288968b8923eb5a7b9c358de75e521f1d8bde (diff) | |
| download | shiftos_thereturn-de9bc8567b268e9659d174f65ce7dc23dff6fafe.tar.gz shiftos_thereturn-de9bc8567b268e9659d174f65ce7dc23dff6fafe.tar.bz2 shiftos_thereturn-de9bc8567b268e9659d174f65ce7dc23dff6fafe.zip | |
experimental stuff
Diffstat (limited to 'ShiftOS.Frontend/Apps')
| -rw-r--r-- | ShiftOS.Frontend/Apps/Pong.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ShiftOS.Frontend/Apps/Pong.cs b/ShiftOS.Frontend/Apps/Pong.cs index 595f8ce..aed7cf1 100644 --- a/ShiftOS.Frontend/Apps/Pong.cs +++ b/ShiftOS.Frontend/Apps/Pong.cs @@ -73,12 +73,12 @@ namespace ShiftOS.Frontend.Apps aiballYLocal -= ((double)paddleWidth / 2); - gfx.Clear(SkinEngine.LoadedSkin.ControlColor.ToMonoColor()); + base.OnPaint(gfx); //draw the ball if (doBallCalc) { - gfx.DrawRectangle((int)ballXLocal, (int)ballYLocal, paddleWidth, paddleWidth, SkinEngine.LoadedSkin.ControlTextColor.ToMonoColor()); + gfx.DrawRectangle((int)ballXLocal, (int)ballYLocal, paddleWidth, paddleWidth, UIManager.SkinTextures["ControlTextColor"]); } double playerYLocal = linear(playerY, -1.0, 1.0, 0, Height); double opponentYLocal = linear(opponentY, -1.0, 1.0, 0, Height); @@ -88,11 +88,11 @@ namespace ShiftOS.Frontend.Apps int paddleStart = paddleWidth; //draw player paddle - gfx.DrawRectangle(paddleWidth, (int)playerYLocal - (paddleHeight / 2), paddleWidth, paddleHeight, SkinEngine.LoadedSkin.ControlTextColor.ToMonoColor()); + gfx.DrawRectangle(paddleWidth, (int)playerYLocal - (paddleHeight / 2), paddleWidth, paddleHeight, UIManager.SkinTextures["ControlTextColor"]); //draw opponent - gfx.DrawRectangle(Width - (paddleWidth*2), (int)opponentYLocal - (paddleHeight / 2), paddleWidth, paddleHeight, SkinEngine.LoadedSkin.ControlTextColor.ToMonoColor()); + gfx.DrawRectangle(Width - (paddleWidth*2), (int)opponentYLocal - (paddleHeight / 2), paddleWidth, paddleHeight, UIManager.SkinTextures["ControlTextColor"]); string cp_text = Localization.Parse("{PONG_STATUSCP}", new Dictionary<string, string> { |
