| Core/GameEngine/Model/Config/CreateRoleConfig.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| Core/GameEngine/Model/Config/CreateRoleConfig.cs.meta | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| Lua/Gen/CreateRoleConfigWrap.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/Login/CreateRoleWin.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/Login/SelectRoleWin.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
Core/GameEngine/Model/Config/CreateRoleConfig.cs
@@ -1,6 +1,6 @@ //-------------------------------------------------------- // [Author]: Fish // [ Date ]: Thursday, February 14, 2019 // [ Date ]: Thursday, April 11, 2019 //-------------------------------------------------------- using System.Collections.Generic; @@ -17,7 +17,9 @@ public readonly string selectIcon; public readonly string unselectIcon; public readonly int skillid; public readonly string desc; public readonly string description; public readonly string jobName; public readonly string jobSign; public CreateRoleConfig() { @@ -37,7 +39,11 @@ int.TryParse(tables[3],out skillid); desc = tables[4]; description = tables[4]; jobName = tables[5]; jobSign = tables[6]; } catch (Exception ex) { Core/GameEngine/Model/Config/CreateRoleConfig.cs.meta
@@ -1,6 +1,6 @@ fileFormatVersion: 2 guid: 0a16c879bf3b127479edd80ebc3b6b35 timeCreated: 1550121231 timeCreated: 1554980817 licenseType: Pro MonoImporter: serializedVersion: 2 Lua/Gen/CreateRoleConfigWrap.cs
@@ -336,14 +336,6 @@ [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_desc(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); CreateRoleConfig gen_to_be_invoked = (CreateRoleConfig)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushstring(L, gen_to_be_invoked.desc); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } System/Login/CreateRoleWin.cs
@@ -21,11 +21,13 @@ [SerializeField] Button m_Back; [SerializeField] InputField m_NameInput; [SerializeField] Image m_Description; [SerializeField] Image m_JobName; [SerializeField] Image m_JobSign; [SerializeField] PositionTween m_LeftPostionTween; [SerializeField] PositionTween m_RightPositionTween; [SerializeField] UIAlphaTween m_AlphaTween; LoginModel model { get { return ModelCenter.Instance.GetModel<LoginModel>(); } } @@ -81,7 +83,6 @@ base.OnActived(); m_LeftPostionTween.Play(); m_RightPositionTween.Play(); m_AlphaTween.Play(); ChangeUserName(CreateRoleManager.Instance.selectedJob.value, true); DisplayDynamicInfo(true); @@ -105,7 +106,9 @@ m_JobSelect2.SetSelected(job == 2); var config = CreateRoleConfig.Get(job); m_Description.SetSprite(config.desc); m_Description.SetSprite(config.description); m_JobName.SetSprite(config.jobName); m_JobSign.SetSprite(config.jobSign); } } @@ -232,8 +235,9 @@ public void SetSelected(bool selected) { var config = CreateRoleConfig.Get(job); backGround.SetSprite(selected ? config.selectIcon : config.unselectIcon); icon.SetSprite(selected ? "CreateRole_Job1_Select" : "CreateRole_Job1_UnSelect"); backGround.SetSprite(selected ? "CreateRole_ChoosenBottom_a" : "CreateRole_UnChoosenBottom_a"); icon.SetSprite(selected ? config.selectIcon : config.unselectIcon); icon.SetNativeSize(); } } System/Login/SelectRoleWin.cs
@@ -18,8 +18,11 @@ [SerializeField] Text m_PlayerLevel; [SerializeField] Button m_Begin; [SerializeField] Image m_Description; [SerializeField] Button m_Back; [SerializeField] Image m_Description; [SerializeField] Image m_JobName; [SerializeField] Image m_JobSign; SelectRoleProcessor m_SelectRoleProcessor; SelectRoleProcessor selectRoleProcessor { @@ -103,7 +106,9 @@ m_PlayerName.text = PlayerDatas.Instance.loginInfo.PlayerName.ToString();//玩家昵称 m_PlayerLevel.text = Language.Get("Z1024", PlayerDatas.Instance.loginInfo.LV);//玩家等级 var config = CreateRoleConfig.Get(PlayerDatas.Instance.loginInfo.Job); m_Description.SetSprite(config.desc); m_Description.SetSprite(config.description); m_JobName.SetSprite(config.jobName); m_JobSign.SetSprite(config.jobSign); selectRoleProcessor.Show(PlayerDatas.Instance.loginInfo.Job); }