public static Font getFont(NxFonts _font, int size) { if (!m_initialized) { initialize(); } bool missing = true; if (m_fonts.ContainsKey(_font)) { if (m_fonts[_font].ContainsKey(size)) { missing = false; } } if (missing) { Font f = new Font(m_fontNames[_font], size, GraphicsUnit.Pixel); if (!m_fonts.ContainsKey(_font)) { m_fonts.Add(_font, new Dictionary <int, Font>()); } m_fonts[_font].Add(size, f); } return(m_fonts[_font][size]); }
public NxTextbox(int _x, int _y, int _width, int _height, string _text, Color _color, int _size = 16, NxFonts _font = NxFonts.EuroStile) { text = _text; Color = _color; font = _font; size = _size; width = _width; height = _height; x = _x; y = _y; }