private void LoadFrontCard() { var textObj = new TextObj(Game.JunicodeFont); textObj.Text = ""; textObj.FontSize = 10f; textObj.ForceDraw = true; textObj.TextureColor = Color.Black; m_playerName = (textObj.Clone() as TextObj); m_playerName.Text = "Sir Archibald the IV"; m_playerName.Position = new Vector2(50f, 43f); m_frontCard.AddChild(m_playerName); m_money = (textObj.Clone() as TextObj); m_money.Position = new Vector2(m_frontCard.GetChildAt(3).X + 30f, m_playerName.Y); m_money.Text = "0"; m_frontCard.AddChild(m_money); m_levelClass = (textObj.Clone() as TextObj); m_levelClass.Text = "Lvl 43 Knight"; m_levelClass.Position = new Vector2(m_playerName.X, 370f); m_frontCard.AddChild(m_levelClass); m_playerBG = new SpriteObj("CardDungeonBG_Sprite"); m_playerBG.Position = new Vector2(45f, 80f); m_frontCard.AddChildAt(1, m_playerBG); m_playerHUD = new PlayerHUDObj(); m_playerHUD.ForceDraw = true; m_playerHUD.ShowBarsOnly = true; m_playerHUD.SetPosition(new Vector2(m_frontCard.X + 46f, m_frontCard.Y + 64f)); m_frontCard.AddChild(m_playerHUD); m_frontTrait1 = new TextObj(Game.JunicodeFont); m_frontTrait1.FontSize = 7f; m_frontTrait1.TextureColor = Color.Black; m_frontTrait1.Position = new Vector2(50f, 550f); m_frontTrait1.Text = "Color Blind"; m_frontCard.AddChild(m_frontTrait1); m_frontTrait2 = (m_frontTrait1.Clone() as TextObj); m_frontTrait2.Y -= 20f; m_frontTrait2.Text = "Myopic"; m_frontCard.AddChild(m_frontTrait2); m_classDescription = new TextObj(Game.JunicodeFont); m_classDescription.FontSize = 8f; m_classDescription.TextureColor = Color.Black; m_classDescription.Text = "0"; m_classDescription.Position = new Vector2(50f, 410f); m_frontCard.AddChild(m_classDescription); m_author = new TextObj(Game.JunicodeFont); m_author.FontSize = 8f; m_author.TextureColor = Color.White; m_author.Text = "Glauber Kotaki"; m_author.X = m_playerName.X; m_author.Y = 590f; m_frontCard.AddChild(m_author); m_playerStats = (textObj.Clone() as TextObj); m_playerStats.Text = "10/10"; m_playerStats.Align = Types.TextAlign.Centre; m_playerStats.Position = new Vector2(387f, 579f); m_frontCard.AddChild(m_playerStats); }