public void Draw(Box box) { box.DrawRectangle(Color.Black, rectangle); box.DrawText(_label, Color.Black, SplashKit.FontNamed("fontBold"), 18, _x + 5, _y - 20); if (IsReading) { SplashKit.DrawCollectedText(Color.Black, SplashKit.FontNamed("fontThin"), 18, SplashKit.OptionDefaults()); } else { SplashKit.DrawText(Convert.ToString(value), Color.Black, SplashKit.FontNamed("fontThin"), 18, _x, _y); } }
public override void Draw(Box box) { base.Draw(box); box.DrawText(label, Color.Black, SplashKit.FontNamed("fontBold"), 16, x + 5, y - 20); if (IsReading) { SplashKit.DrawCollectedText(Color.Black, SplashKit.FontNamed("fontThin"), 18, SplashKit.OptionDefaults()); } else { SplashKit.DrawText(Convert.ToString(value), Color.Black, SplashKit.FontNamed("fontThin"), 18, x, y); } }