| | |
| | |
|
| | | protected override void BindController()
|
| | | {
|
| | | m_TitleIcon = this.GetComponent<Image>("Pivot/Container_BackGround/Img_Title"); |
| | | m_Group = this.GetComponent<FunctionButtonGroup>("Pivot/Container_Functions"); |
| | | m_Left = this.GetComponent<Button>("Pivot/Container_Buttons/Btn_Left"); |
| | | m_Right = this.GetComponent<Button>("Pivot/Container_Buttons/Btn_Right"); |
| | | m_Close = this.GetComponent<Button>("Pivot/Container_Buttons/Btn_Close"); |
| | | |
| | | m_SubWindowContainer = this.GetComponent<RectTransform>("Pivot/Container_SubWindow"); |
| | | |
| | | var name = this.GetType().Name; |
| | | var infos = WindowConfig.GetWindowFunctionInfos(name); |
| | | foreach (var info in infos) |
| | | { |
| | | m_TitleIcon = this.GetComponent<Image>("Pivot/Container_BackGround/Img_Title");
|
| | | m_Group = this.GetComponent<FunctionButtonGroup>("Pivot/Container_Functions");
|
| | | m_Left = this.GetComponent<Button>("Pivot/Container_Buttons/Btn_Left");
|
| | | m_Right = this.GetComponent<Button>("Pivot/Container_Buttons/Btn_Right");
|
| | | m_Close = this.GetComponent<Button>("Pivot/Container_Buttons/Btn_Close");
|
| | |
|
| | | m_SubWindowContainer = this.GetComponent<RectTransform>("Pivot/Container_SubWindow");
|
| | |
|
| | | var name = this.GetType().Name;
|
| | | var infos = WindowConfig.GetWindowFunctionInfos(name);
|
| | | foreach (var info in infos)
|
| | | {
|
| | | m_FunctionButtons.Add(info.order,
|
| | | m_Group.AddFunction("FunctionButton_Pattern_1", info.order, info.functionId, Language.Get(info.titleKey), info.redPointId)); |
| | | } |
| | | |
| | | m_TitleIcon.SetSprite(WindowConfig.GetTitleIconKey(name)); |
| | | m_Group.AddFunction("FunctionButton_Pattern_1", info.order, info.functionId, Language.Get(info.titleKey), info.redPointId));
|
| | | }
|
| | |
|
| | | m_TitleIcon.SetSprite(WindowConfig.GetTitleIconKey(name));
|
| | | m_TitleIcon.SetNativeSize();
|
| | | }
|
| | |
|
| | |
| | |
|
| | | private void DisplayButtons()
|
| | | {
|
| | | var petHorseAwaking = LuaUtility.Global.Get<IPetHorseAwaking>("PetHorseAwakingModel");
|
| | | if (petHorseAwaking != null)
|
| | | var type = ILLauncherProxy.Instance.appdomain.LoadedTypes["PetHorseAwakingModel"];
|
| | | var get_Instance = type.GetMethod("get_Instance", 0);
|
| | | var isOpenM = type.GetMethod("IsOpen", 0);
|
| | | var instance = ILLauncherProxy.Instance.appdomain.Invoke(get_Instance, null);
|
| | | // var petHorseAwaking = LuaUtility.Global.Get<IPetHorseAwaking>("PetHorseAwakingModel");
|
| | | if (instance != null)
|
| | | {
|
| | | var isOpen = petHorseAwaking.IsOpen();
|
| | | var isOpen = (bool)ILLauncherProxy.Instance.appdomain.Invoke(isOpenM, instance);
|
| | | m_FunctionButtons[2].gameObject.SetActive(isOpen);
|
| | | m_FunctionButtons[2].state = isOpen ? TitleBtnState.Normal : TitleBtnState.Locked;
|
| | | }
|