private void OnEnable() { this.m_characterName.set_text(GarrisonStatus.CharacterName()); if (Main.instance.GetLocale() == "frFR") { this.m_characterClassName.set_text(string.Concat(new string[] { GarrisonStatus.CharacterClassName(), " ", StaticDB.GetString("LEVEL", null), " ", GarrisonStatus.CharacterLevel().ToString() })); } else { this.m_characterClassName.set_text(GeneralHelpers.TextOrderString(StaticDB.GetString("LEVEL", null), GarrisonStatus.CharacterLevel().ToString()) + " " + GarrisonStatus.CharacterClassName()); } this.m_characterListButton.set_text(StaticDB.GetString("CHARACTER_LIST", null)); Sprite sprite = GeneralHelpers.LoadClassIcon(GarrisonStatus.CharacterClassID()); if (sprite != null) { this.m_classIcon.set_sprite(sprite); } }
private void InitPlayerDisplay(int playerLevel) { this.m_characterName.text = GarrisonStatus.CharacterName(); if (Main.instance.GetLocale() == "frFR") { this.m_characterClassName.text = string.Concat(new string[] { GarrisonStatus.CharacterClassName(), " ", StaticDB.GetString("LEVEL", null), " ", playerLevel.ToString() }); } else { this.m_characterClassName.text = GeneralHelpers.TextOrderString(StaticDB.GetString("LEVEL", null), playerLevel.ToString()) + " " + GarrisonStatus.CharacterClassName(); } this.m_characterListButton.text = StaticDB.GetString("CHARACTER_LIST", null); Sprite sprite = GeneralHelpers.LoadClassIcon(GarrisonStatus.CharacterClassID()); if (sprite != null) { this.m_classIcon.sprite = sprite; } }