private int tile_width = 14; // Width of the control in 8px*8px tiles #endregion Fields #region Constructors public nbajamTextBox() { scale_factor= ScaleFactor; tile_width=TilesWide ; tile_height= TilesHigh ; internal_text = this.Text; theFontColorOptions = FontColorOptions.Pallete_3; InitializeComponent(); InitializePalette(); InitializeFont(); }
//sets the font color from the palette (0-15) public void setFontColorbyIndex(int color) { FontColorOptions test = (FontColorOptions)color; theFontColorOptions = test; redrawFlag = true; this.Invalidate(); }