public void Draw() { Game1.SpriteBatchGlobal.Draw(Game1.Textures["PanelBackground"], position: _position, sourceRectangle: new Rectangle(new Point(0, 0), new Point(512 + 128, 256))); _grabRed.Draw(); _grabGreen.Draw(); _grabBlue.Draw(); _texRed.Draw(); _texGreen.Draw(); _texBlue.Draw(); Game1.SpriteBatchGlobal.Draw(Game1.Textures["ColorPreviewPanel"], _position + new Vector2(256 + 128, 34) + new Vector2(64, 32)); Game1.SpriteBatchGlobal.Draw(Game1.Textures["ColorPanelBlank"], _position + new Vector2(256 + 128, 34) + Vector2.One + new Vector2(64, 32), new Color((byte)_grabRed.GetValue(), (byte)_grabGreen.GetValue(), (byte)_grabBlue.GetValue())); DrawRectangleBoundary.DrawBlue(new Rectangle(_position.ToPoint(), new Point(512 + 128, 256))); }
public void Draw() { if (_radios.IndexSelected == 0 || _radios.IndexSelected == 1) { Tiles.Draw(Game1.Win); } else { TilesPhysics.Draw(Game1.Win); } _transaprencyForeground.Draw(); _transaprencyBackground.Draw(); _transaprencyPhysics.Draw(); ForegroundVisibility.Draw(); BackgroundVisibility.Draw(); PhysicsVisibility.Draw(); _radios.Draw(); }