| | |
| | | |
| | | public partial class OccupationNameConfig |
| | | { |
| | | public static string GetOccupationName(int occupa, int classLv) |
| | | public static string GetOccupationName(int occupa) |
| | | { |
| | | var cfg = OccupationNameConfig.Get(occupa * 100 + classLv); |
| | | var cfg = OccupationNameConfig.Get(occupa * 100 + 1); |
| | | if (cfg != null) |
| | | { |
| | | return cfg.name; |
| | | } |
| | | DebugEx.LogError(string.Format("表格中没有{0}职业{1}阶级对应的名称", occupa, classLv)); |
| | | DebugEx.LogError(string.Format("表格中没有{0}职业阶级对应的名称", occupa)); |
| | | return string.Empty; |
| | | } |
| | | } |
| | |
| | | |
| | | |
| | | { |
| | | int _occupa = LuaAPI.xlua_tointeger(L, 1); |
| | | int _classLv = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | string gen_ret = OccupationNameConfig.GetOccupationName( _occupa, _classLv ); |
| | | LuaAPI.lua_pushstring(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | |
| | | m_NameTxt.color = new Color32(64, 28, 6, 255); ;
|
| | | }
|
| | | m_NameTxt.text = data.PlayerName;
|
| | | m_JobTxt.text = OccupationNameConfig.GetOccupationName(data.Job, 1);
|
| | | m_JobTxt.text = OccupationNameConfig.GetOccupationName(data.Job);
|
| | | RealmConfig presentCfg = RealmConfig.Get(data.Realm);
|
| | | if (data.Realm > 0 && presentCfg != null)
|
| | | {
|
| | |
| | | realmIcon.SetSprite(realmConfig == null ? "NoRealm" : realmConfig.Img);
|
| | | fightPowerText.text = StringUtility.Contact(Language.Get("MainInterfacePanel_HeadPortraitTip_ZL"),playerInfo.FightPower);
|
| | | UpdateAssistState(playerInfo.PlayerID);
|
| | | jobNameText.text = OccupationNameConfig.GetOccupationName(playerInfo.Job,1);
|
| | | jobNameText.text = OccupationNameConfig.GetOccupationName(playerInfo.Job);
|
| | | UpdateAssistReward();
|
| | | UpdateRelation();
|
| | | int nirvanaLv = playerInfo.LV - friendsModel.OpenGreatLV;
|
| | |
| | | int.TryParse(jobStr[jobStr.Length - 1].ToString(), out occupa);
|
| | | int classLv = 0;
|
| | | int.TryParse(jobStr.Substring(0, jobStr.Length - 1), out classLv);
|
| | | jobText.text = OccupationNameConfig.GetOccupationName(occupa, 1);
|
| | | jobText.text = OccupationNameConfig.GetOccupationName(occupa);
|
| | | int realmLv = 0;
|
| | | switch ((RankType)data.type)
|
| | | {
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | m_Job.text = OccupationNameConfig.GetOccupationName(_mate.job, _mate.jobLevel);
|
| | | m_Job.text = OccupationNameConfig.GetOccupationName(_mate.job);
|
| | |
|
| | | var level = _mate.id == PlayerDatas.Instance.baseData.PlayerID ? PlayerDatas.Instance.baseData.LV : _mate.level;
|
| | | m_LevelSign.gameObject.SetActive(false);
|
| | |
| | | m_Realm.SetSprite(realmConfig.Img); |
| | | } |
| | | } |
| | | m_Job.text = OccupationNameConfig.GetOccupationName(application.job, application.jobLevel); |
| | | m_Job.text = OccupationNameConfig.GetOccupationName(application.job); |
| | | m_LevelSign.gameObject.SetActive(false); |
| | | m_Level.text = application.playerLevel.ToString(); |
| | | } |
| | |
| | | }
|
| | |
|
| | | m_PlayerName.text = invitation.playerName;
|
| | | m_Job.text = OccupationNameConfig.GetOccupationName(invitation.job, invitation.jobLevel);
|
| | | m_Job.text = OccupationNameConfig.GetOccupationName(invitation.job);
|
| | | m_LevelSign.gameObject.SetActive(false);
|
| | | m_Level.text =invitation.level.ToString();
|
| | |
|
| | |
| | | |
| | | m_Icon.SetSprite(GeneralDefine.GetOtherJobHeadPortrait(invite.job, 0)); |
| | | m_PlayerName.text = invite.playerName; |
| | | m_Job.text = OccupationNameConfig.GetOccupationName(invite.job, invite.jobLevel); |
| | | m_Job.text = OccupationNameConfig.GetOccupationName(invite.job); |
| | | |
| | | m_Realm.gameObject.SetActive(invite.realm > 0); |
| | | if (invite.realm > 0) |