private void createTextBlocks(Player i_Player) { Vector2 delta = new Vector2(k_SpaceBetweenUIObject, k_SpaceBetweenUIObject * (1f + (k_SpaceBetweenTextBlocks * ((float)i_Player.Index)))); string msg = string.Format(k_FontText, i_Player.Index + 1, 0); TextBlockcs scoreText = new TextBlockcs(k_FontAssetName, Game, delta, msg, i_Player.Color); this.Add(scoreText); r_Scores.Add(scoreText); }
private void creatTextBlocks() { this.Add(m_BigTextBlockcs = new TextBlockcs(k_BigFontAssetName, Game, k_BigFontText, Color.White)); this.Add(m_SmallTextBlockcs = new TextBlockcs(k_SmallFontAssetName, Game, k_SmallFontText, Color.White)); }
private void creatTextBlock(int i_Level) { string msg = string.Format(k_FontText, i_Level); this.Add(m_TextBlockcs = new TextBlockcs(k_FontAssetName, Game, Vector2.Zero, msg, Color.Yellow)); }
public WelcomeScreen(Game i_Game) : base(i_Game) { this.Add(m_WelcomeMessage = new Sprite2D(@"Sprites\Titles\WelcomeMenu", i_Game)); this.Add(m_TextBlockcsButtoms = new TextBlockcs(k_FontAssetName, i_Game, k_PreesButtomsText, Color.Yellow)); }
private void creatTextBlocks() { m_TextBlockcsOne = new TextBlockcs(k_SmallFontAssetName, Game, k_SummryText, Color.White); m_TextBlockcsTwo = new TextBlockcs(k_SmallFontAssetName, Game, k_KeysText, Color.Yellow); }