public CirclePieceCP() { NeedsHighlighting = false; _borderPaint = MiscHelpers.GetStrokePaint(SKColors.Black, 3); // i think 3 is fine. _thickBorder = MiscHelpers.GetStrokePaint(SKColors.Black, 5); _whitePaint = MiscHelpers.GetSolidPaint(SKColors.White); }
public UnoGraphicsCP() { _redBrush = MiscHelpers.GetSolidPaint(SKColors.Red); _yellowBrush = MiscHelpers.GetSolidPaint(SKColors.Yellow); _blueBrush = MiscHelpers.GetSolidPaint(SKColors.Blue); _greenBrush = MiscHelpers.GetSolidPaint(SKColors.Green); }
public void Init() { MainGraphics !.OriginalSize = new SKSize(55, 72); //change to what the original size is. _darkSlateBluePaint = MiscHelpers.GetSolidPaint(SKColors.DarkSlateBlue); _whitePaint = MiscHelpers.GetSolidPaint(SKColors.White); _blackBorder = MiscHelpers.GetStrokePaint(SKColors.Black, 2); }
private void DrawSpace(SKCanvas canvas, TempSpace thisItem) { var thisPaint = MiscHelpers.GetSolidPaint(thisItem.Fill); var ThisRect = thisItem.Bounds; canvas.DrawRect(ThisRect, _borderPaint); canvas.DrawRect(ThisRect, thisPaint); SKPaint textPaint; int number; number = _spaceList.GetKey(thisItem); if (number == 100) { textPaint = MiscHelpers.GetTextPaint(SKColors.Yellow, (thisItem.Bounds.Height * 4) / 9, "Comic Sans MS"); } else if ((number % 10) == 0) { textPaint = MiscHelpers.GetTextPaint(SKColors.Red, (thisItem.Bounds.Height * 21) / 36, "Comic Sans MS"); } else { textPaint = MiscHelpers.GetTextPaint(SKColors.Red, (thisItem.Bounds.Height * 5) / 9, "Comic Sans MS"); } textPaint.FakeBoldText = true; canvas.DrawCustomText(number.ToString(), TextExtensions.EnumLayoutOptions.Center, TextExtensions.EnumLayoutOptions.Center, textPaint, thisItem.Bounds, out _); }
private void CreateBrushes() { _redSolidBrush = MiscHelpers.GetSolidPaint(SKColors.Red); _redPenBrush = MiscHelpers.GetStrokePaint(SKColors.Red, 1); _slateGrayPenBrush = MiscHelpers.GetStrokePaint(SKColors.SlateGray, 1); _blackPenBrush = MiscHelpers.GetStrokePaint(SKColors.Black, 1); _darkGrayPenBrush = MiscHelpers.GetStrokePaint(SKColors.DarkGray, 1); }
public void Init() { MainGraphics !.OriginalSize = new SKSize(107, 135); //change to what the original size is. _pDrewPaint = MainGraphics.GetStandardDrewPaint(); _selectPaint = BaseDeckGraphicsCP.GetStandardSelectPaint(); _blackBorder = MiscHelpers.GetStrokePaint(SKColors.Black, 1); _greenPaint = MiscHelpers.GetSolidPaint(SKColors.Green); }
public TicTacToeGraphicsCP(TicTacToeMainGameClass mainGame) { _spaceList = mainGame.SaveRoot !.GameBoard; _blackPen = MiscHelpers.GetStrokePaint(SKColors.Black, 2); _whitePaint = MiscHelpers.GetSolidPaint(SKColors.White); _winPen = MiscHelpers.GetStrokePaint(SKColors.Red, 8); _bluePen = MiscHelpers.GetStrokePaint(SKColors.Blue, 2); }
public void Init() { MainGraphics !.OriginalSize = new SKSize(230, 130); //change to what the original size is. _whitePaint = MiscHelpers.GetSolidPaint(SKColors.White); _yellowPaint = MiscHelpers.GetSolidPaint(SKColors.Yellow); _redPaint = MiscHelpers.GetSolidPaint(SKColors.Red); _thickBorder = MiscHelpers.GetStrokePaint(SKColors.Black, 2); }
public void Init() { MainGraphics !.OriginalSize = new SKSize(80, 100); //change to what the original size is. _pDrewPaint = MainGraphics.GetStandardDrewPaint(); _selectPaint = BaseDeckGraphicsCP.GetStandardSelectPaint(); _blackBorder = MiscHelpers.GetStrokePaint(SKColors.Black, 1); _redPaint = MiscHelpers.GetSolidPaint(SKColors.Red); _yellowPaint = MiscHelpers.GetSolidPaint(SKColors.Yellow); }
public void Init() { MainGraphics !.OriginalSize = new SKSize(107, 135); _redFill = MiscHelpers.GetSolidPaint(SKColors.Red); _aquaPen = MiscHelpers.GetStrokePaint(SKColors.Aqua, 5); _maroonFill = MiscHelpers.GetSolidPaint(SKColors.Maroon); _borderTextPaint = MiscHelpers.GetStrokePaint(SKColors.Black, 1); _thisAssembly = Assembly.GetAssembly(this.GetType()); }
public PieceCP() { OriginalSize = new SKSize(60, 138); // can be adjusted as needed _redPaint = MiscHelpers.GetSolidPaint(SKColors.Red); _yellowPaint = MiscHelpers.GetSolidPaint(SKColors.Yellow); _whitePaint = MiscHelpers.GetSolidPaint(SKColors.White); NeedsHighlighting = true; _borderPaint = MiscHelpers.GetStrokePaint(SKColors.Black, 1); }
public MiscGraphicsCP() { MainColor = cs.Transparent; _yellowPaint = MiscHelpers.GetSolidPaint(SKColors.Yellow); _borderPaint = MiscHelpers.GetStrokePaint(SKColors.Black, 2); _text1Paint = MiscHelpers.GetStrokePaint(SKColors.Black, 1); _whitePaint = MiscHelpers.GetSolidPaint(SKColors.White); _grayPaint = MiscHelpers.GetSolidPaint(SKColors.Gray); }
protected override void SetUpPaints() { Assembly thisA = Assembly.GetAssembly(GetType()); _fillPaint = MiscHelpers.GetSolidPaint(SKColors.LightGray); _borderPaint = MiscHelpers.GetStrokePaint(SKColors.White, 3); // try 3 _publicBit = ImageExtensions.GetSkBitmap(thisA, "publictrain.png"); _playerBit = ImageExtensions.GetSkBitmap(thisA, "playertrain.png"); // for testing, will be this one. _bitPaint = MiscHelpers.GetBitmapPaint(); _redPaint = MiscHelpers.GetSolidPaint(SKColors.Red); }
private void PopulateFill() { _fillPaint = Color switch { EnumColorType.Blue => MiscHelpers.GetSolidPaint(SKColors.Blue), EnumColorType.Green => MiscHelpers.GetSolidPaint(SKColors.Green), EnumColorType.Red => MiscHelpers.GetSolidPaint(SKColors.Red), EnumColorType.Yellow => MiscHelpers.GetSolidPaint(SKColors.Yellow), _ => throw new BasicBlankException("Not Found"), }; }
protected override void SetUpPaints() { _brownLine = MiscHelpers.GetStrokePaint(SKColors.Brown, 2); _greenLine = MiscHelpers.GetStrokePaint(SKColors.Green, 2); _redSolid = MiscHelpers.GetSolidPaint(SKColors.Red); _blueSolid = MiscHelpers.GetSolidPaint(SKColors.Blue); _whitePaint = MiscHelpers.GetSolidPaint(SKColors.White); _blackPaint = MiscHelpers.GetSolidPaint(SKColors.Black); _thickSelect = MiscHelpers.GetStrokePaint(SKColors.Black, 4); _yellowPaint = MiscHelpers.GetSolidPaint(SKColors.Yellow); }
public void Init() { MainGraphics !.OriginalSize = new SKSize(107, 135); //change to what the original size is. _blackBorders = MiscHelpers.GetStrokePaint(SKColors.Black, 1); _blackPaint = MiscHelpers.GetSolidPaint(SKColors.Black); _lightBluePaint = MiscHelpers.GetSolidPaint(SKColors.LightBlue); _redPaint = MiscHelpers.GetSolidPaint(SKColors.Red); _thickBorders = MiscHelpers.GetStrokePaint(SKColors.Black, 2); _pDrewPaint = MainGraphics.GetStandardDrewPaint(); _selectPaint = BaseDeckGraphicsCP.GetStandardSelectPaint(); }
public void Init() { MainGraphics !.OriginalSize = new SKSize(60, 40); //change to what the original size is. _pDrewPaint = MainGraphics.GetStandardDrewPaint(); _selectPaint = BaseDeckGraphicsCP.GetStandardSelectPaint(); SKColor thisColor = SKColors.Purple; //we can change as needed. SKColor otherColor = new SKColor(thisColor.Red, thisColor.Green, thisColor.Blue, 40); _altDrewPaint = MiscHelpers.GetSolidPaint(otherColor); _blackPaint = MiscHelpers.GetSolidPaint(SKColors.Black); _blackBorder = MiscHelpers.GetStrokePaint(SKColors.Black, 2); }
public override void DrawImage(SKCanvas dc) { var thisRect = GetRectangle(); SKPaint thisPaint; thisPaint = MiscHelpers.GetSolidPaint(FillColor); dc.DrawRect(thisRect, thisPaint); thisPaint = MiscHelpers.GetStrokePaint(BorderColor, BorderWidth); dc.DrawRect(thisRect, thisPaint); thisPaint = MiscHelpers.GetTextPaint(TextColor, FontSize); dc.DrawCustomText(Text, TextExtensions.EnumLayoutOptions.Center, TextExtensions.EnumLayoutOptions.Center, thisPaint, thisRect, out _); }
public BaseGraphicsCP() { MinimumHeight = 20; MinimumWidth = 20; MainPaint = new SKPaint(); MainPaint.Style = SKPaintStyle.Fill; MainPaint.IsAntialias = true; _limePaint = MiscHelpers.GetSolidPaint(SKColors.LimeGreen); _aquaPaint = MiscHelpers.GetSolidPaint(SKColors.Aqua); _disablePaint = MiscHelpers.GetSolidPaint(SKColors.LightGray); // i think UpdateMainPaint(); }
private static void CreatePaints() { if (_penUsed == null) { _penUsed = MiscHelpers.GetStrokePaint(SKColors.Black, 1); _darkOrangePaint = MiscHelpers.GetSolidPaint(SKColors.DarkOrange); _bluePaint = MiscHelpers.GetSolidPaint(SKColors.Blue); _firstCube = MiscHelpers.ColorFromArgb(0, 255, 255, 255); _secondCube = MiscHelpers.ColorFromArgb(100, 255, 255, 255); _thirdCube = MiscHelpers.ColorFromArgb(150, 0, 0, 0); } }
public void Init() { MainGraphics !.OriginalSize = new SKSize(55, 72); _pDrewPaint = MainGraphics.GetStandardDrewPaint(); _selectPaint = BaseDeckGraphicsCP.GetStandardSelectPaint(); _safefyPaint = MiscHelpers.GetSolidPaint(SKColors.Blue); // this is blue for safeties _basicPen = MiscHelpers.GetStrokePaint(SKColors.Black, 1); // try this way. _whitePaint = MiscHelpers.GetSolidPaint(SKColors.White); _redFill = MiscHelpers.GetSolidPaint(SKColors.Red); _blackPaint = MiscHelpers.GetSolidPaint(SKColors.Black); _grayPaint = MiscHelpers.GetSolidPaint(SKColors.Gray); _greenPaint = MiscHelpers.GetSolidPaint(SKColors.Green); }
public void Init() { MainGraphics !.OriginalSize = new SKSize(55, 72); //change to what the original size is. _thisAssembly = Assembly.GetAssembly(this.GetType()); GetImages(); _pDrewPaint = MainGraphics.GetStandardDrewPaint(); _selectPaint = BaseDeckGraphicsCP.GetStandardSelectPaint(); _redPaint = MiscHelpers.GetSolidPaint(SKColors.Red); _limePaint = MiscHelpers.GetSolidPaint(SKColors.Lime); _textBorder = MiscHelpers.GetStrokePaint(SKColors.Black, 2); _chocolatePaint = MiscHelpers.GetSolidPaint(SKColors.Chocolate); _backPaint = MiscHelpers.GetSolidPaint(SKColors.Aqua); _blackPaint = MiscHelpers.GetSolidPaint(SKColors.Black); }
public void Init() { _thisA = Assembly.GetAssembly(GetType()); MainGraphics !.OriginalSize = new SKSize(80, 100); //change to what the original size is. _pDrewPaint = MainGraphics.GetStandardDrewPaint(); _selectPaint = BaseDeckGraphicsCP.GetStandardSelectPaint(); _whiteBorder = MiscHelpers.GetStrokePaint(SKColors.White, 1); _steelBluePaint = MiscHelpers.GetSolidPaint(SKColors.SteelBlue); _whitePaint = MiscHelpers.GetSolidPaint(SKColors.White); _bluePaint = MiscHelpers.GetSolidPaint(SKColors.Blue); _darkOrangePaint = MiscHelpers.GetSolidPaint(SKColors.DarkOrange); _blackBorder = MiscHelpers.GetStrokePaint(SKColors.Black, 1); _purplePaint = MiscHelpers.GetSolidPaint(SKColors.Purple); _greenPaint = MiscHelpers.GetSolidPaint(SKColors.Green); //no option to show you can select unknown cards. }
public void Init() { MainGraphics !.OriginalSize = new SKSize(55, 72); //change to what the original size is. SKColor thisColor = SKColors.Black; SKColor otherColor = new SKColor(thisColor.Red, thisColor.Green, thisColor.Blue, 70); //can experiment as needed. _selectPaint = MiscHelpers.GetSolidPaint(otherColor); thisColor = SKColors.White; otherColor = new SKColor(thisColor.Red, thisColor.Green, thisColor.Blue, 150); _pDrewPaint = MiscHelpers.GetSolidPaint(otherColor); _redPaint = MiscHelpers.GetSolidPaint(SKColors.Red); _bluePaint = MiscHelpers.GetSolidPaint(SKColors.Blue); _yellowPaint = MiscHelpers.GetSolidPaint(SKColors.Yellow); _whitePaint = MiscHelpers.GetSolidPaint(SKColors.White); _thickBorder = MiscHelpers.GetStrokePaint(SKColors.Black, 3); }
public void Init() { MainGraphics !.OriginalSize = new SKSize(55, 72); //change to what the original size is. _thisAssembly = Assembly.GetAssembly(this.GetType()); _pDrewPaint = MainGraphics.GetStandardDrewPaint(); _selectPaint = BaseDeckGraphicsCP.GetStandardSelectPaint(); _purplePaint = MiscHelpers.GetSolidPaint(SKColors.Purple); _aquaPaint = MiscHelpers.GetSolidPaint(SKColors.Aqua); _fuchsiaPaint = MiscHelpers.GetSolidPaint(SKColors.Fuchsia); _darkOrangePaint = MiscHelpers.GetSolidPaint(SKColors.DarkOrange); _redPaint = MiscHelpers.GetSolidPaint(SKColors.Red); _yellowPaint = MiscHelpers.GetSolidPaint(SKColors.Yellow); _greenPaint = MiscHelpers.GetSolidPaint(SKColors.Green); _darkBluePaint = MiscHelpers.GetSolidPaint(SKColors.DarkBlue); _whitePaint = MiscHelpers.GetSolidPaint(SKColors.White); _blackBorder1 = MiscHelpers.GetStrokePaint(SKColors.Black, 1); }
public void Init() { MainGraphics !.OriginalSize = new SKSize(55, 72); //change to what the original size is. _borderPaint = MiscHelpers.GetStrokePaint(SKColors.Black, 1); _thickBorder = MiscHelpers.GetStrokePaint(SKColors.Black, 2); _blackPaint = MiscHelpers.GetSolidPaint(SKColors.Black); _yellowPaint = MiscHelpers.GetSolidPaint(SKColors.Yellow); _bluePaint = MiscHelpers.GetSolidPaint(SKColors.Blue); _greenPaint = MiscHelpers.GetSolidPaint(SKColors.Green); _redPaint = MiscHelpers.GetSolidPaint(SKColors.Red); _pDrewPaint = MainGraphics.GetStandardDrewPaint(); _selectPaint = BaseDeckGraphicsCP.GetStandardSelectPaint(); SKColor thisColor = SKColors.Black; SKColor otherColor = new SKColor(thisColor.Red, thisColor.Green, thisColor.Blue, 70); //can experiment as needed. _tempPaint = MiscHelpers.GetSolidPaint(otherColor); _thisAssembly = Assembly.GetAssembly(this.GetType()); }
public void Init() { MainGraphics !.OriginalSize = new SKSize(55, 72); //change to what the original size is. _thisAssembly = Assembly.GetAssembly(this.GetType()); SKColor ThisColor = SKColors.Black; SKColor OtherColor = new SKColor(ThisColor.Red, ThisColor.Green, ThisColor.Blue, 70); //can experiment as needed. _selectPaint = MiscHelpers.GetSolidPaint(OtherColor); ThisColor = SKColors.White; OtherColor = new SKColor(ThisColor.Red, ThisColor.Green, ThisColor.Blue, 150); _pDrewPaint = MiscHelpers.GetSolidPaint(OtherColor); _cutImage = ImageExtensions.GetSkBitmap(_thisAssembly, "cut.png"); _flipImage = ImageExtensions.GetSkBitmap(_thisAssembly, "flip.png"); _redBrush = MiscHelpers.GetSolidPaint(SKColors.Red); _yellowBrush = MiscHelpers.GetSolidPaint(SKColors.Yellow); _blueBrush = MiscHelpers.GetSolidPaint(SKColors.Blue); _greenBrush = MiscHelpers.GetSolidPaint(SKColors.Green); _textBorder = MiscHelpers.GetStrokePaint(SKColors.Black, 2); _backPaint = MiscHelpers.GetSolidPaint(SKColors.Aqua); }
public override void DrawImage(SKCanvas dc) { if (NeedsToClear == true) { dc.Clear();// needs to always clear. } if (Number == 0) { return; } SKColor thisColor; var tempColor = MainColor.ToSKColor(); thisColor = new SKColor(tempColor.Red, tempColor.Green, tempColor.Blue, 150); // i think var thisPaint = MiscHelpers.GetSolidPaint(thisColor); var thisRect = GetMainRect(); dc.DrawOval(thisRect, thisPaint); dc.DrawOval(thisRect, _borderPaint); var thisText = MiscHelpers.GetTextPaint(SKColors.White, thisRect.Height * 0.7f); dc.DrawCustomText(Number.ToString(), TextExtensions.EnumLayoutOptions.Center, TextExtensions.EnumLayoutOptions.Center, thisText, thisRect, out _); }
public ButtonDiceGraphicsCP() { _blackBorder = MiscHelpers.GetStrokePaint(SKColors.Black, 1); _fillPaint = MiscHelpers.GetSolidPaint(SKColors.White); _selectPaint = BaseDeckGraphicsCP.GetStandardSelectPaint(); }
public void DrawPeg(SKCanvas Canvas, SKRect pegShape, SKColor color) { var thisPaint = MiscHelpers.GetSolidPaint(color); Canvas.DrawOval(pegShape, thisPaint); }