public void SetUp() { _output = new TestOutput(); _paintshop = new PaintShop(new FakeUserInputStream(new List <string> { "4", "5" }), _output); }
public void SetUp() { _output = new TestOutput(); _paintshop = new PaintShop(new FakeUserInputStream(new List <string> { "2", "1" }), _output); _paintshop.MakeBusiness(); }
private void ApplyColor(Color color) { var carNode = Renderer?.CarNode; if (carNode == null) { return; } Renderer.SelectSkin(null); var paintable = PaintShop.GetPaintableItems(Car.Id, carNode.OriginalFile); var carPaint = paintable.OfType <PaintShop.CarPaint>().FirstOrDefault(); if (carPaint != null) { carPaint.SetRenderer(Renderer); carPaint.Color = color; carPaint.Flakes = MathUtils.Random() > 0.5; carPaint.ApplyImmediate(); } }
static void Main(string[] args) { PaintShop p = new PaintShop(); p.Menu(); }