private void InitializeFonts() { //Load Fonts _titleFont = new Killer1.Font(_textureManager.Get("title_font"), FontParser.Parse("Assets/title_font.fnt")); _generalFont = new Killer1.Font(_textureManager.Get("general_font"), FontParser.Parse("Assets/general_font.fnt")); _computerFont = new Killer1.Font(_textureManager.Get("computer_font2"), FontParser.Parse("Assets/computer_font2.fnt")); }
private void InitializeFonts() { // Fonts are loaded here. _titleFont = new Engine.Font(_textureManager.Get("title_font"), FontParser.Parse("title_font.fnt")); _generalFont = new Engine.Font(_textureManager.Get("general_font"), FontParser.Parse("general_font.fnt")); }
private void InitializeFonts() { // Fonts are loaded here _font = new PotatoEngine.Font(_textureManager.Get("font"), FontParser.Parse("Assets/Textures/Fonts/font.fnt")); _titleFont = new PotatoEngine.Font(_textureManager.Get("title_font"), FontParser.Parse("Assets/Textures/Fonts/title_font.fnt")); _generalFont = new PotatoEngine.Font(_textureManager.Get("general_font"), FontParser.Parse("Assets/Textures/Fonts/general_font.fnt")); }
private void InitializeFonts() { //Fonts are loaded here _fontManager.LoadFont("general_font", new ValueEngine.Font(_textureManager.Get("general_font"), FontParser.Parse("Assets/Fonts/general_font.fnt"))); _fontManager.LoadFont("title_font", new ValueEngine.Font(_textureManager.Get("title_font"), FontParser.Parse("Assets/Fonts/title_font.fnt"))); }
public TextTestState(TextureManager textureManager) { _textureManager = textureManager; _font = new Font(textureManager.Get("font"), FontParser.Parse("Fonts/Arial/font.fnt")); _hellowWorld = new Text("Hello", _font); }
/// <summary> /// 初始化字体 /// </summary> private void InitializeFonts() { _titleFont = new Engine.Font(_textureManager.Get("chinese_font"), FontParser.Parse("chinese_font.fnt", 2)); _generalFont = new Engine.Font(_textureManager.Get("chinese_yy"), FontParser.Parse("chinese_yy.fnt", 1)); }
public SwirlEffectState(TextureManager manager) { _font = new Font(manager.Get("font"), FontParser.Parse("font.fnt")); _text = new Text("Hello", _font); }
public FPSTestState(TextureManager textureManager) { _textureManager = textureManager; _font = new Font(textureManager.Get("font"), FontParser.Parse("Fonts/Arial/font.fnt")); _fpsText = new Text("FPS:", _font); }