| | |
| | | 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>("Container_SubWindow"); |
| | | m_SubWindowContainer = this.GetComponent<RectTransform>("Pivot/Container_SubWindow"); |
| | | |
| | | var name = this.GetType().Name; |
| | | var children = WindowConfig.GetChildWindows(name); |
| | | foreach (var child in children) |
| | | { |
| | | var info = WindowConfig.GetWindowFunctionInfo(name, child); |
| | | m_Group.AddFunction(info.order, info.functionId, Language.Get(info.titleKey), info.redPointId); |
| | | m_Group.AddFunction("FunctionButton_Pattern_1", info.order, info.functionId, Language.Get(info.titleKey), info.redPointId); |
| | | } |
| | | |
| | | m_TitleIcon.SetSprite(WindowConfig.GetTitleIconKey(name)); |
| | |
| | | protected override void OnActived() |
| | | { |
| | | base.OnActived(); |
| | | |
| | | m_Group.TriggerByOrder(functionOrder); |
| | | m_Left.gameObject.SetActive(m_Group.unLockedCount > 1); |
| | | m_Right.gameObject.SetActive(m_Group.unLockedCount > 1); |
| | | } |