少年修仙传客户端代码仓库
client_Wu Xijin
2019-04-29 0c025e8d5b6afcbdcdbfd91f68b09f942a98f4ca
System/WindowBase/OneLevelWin.cs
@@ -33,14 +33,14 @@
            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));
@@ -73,6 +73,8 @@
        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);
        }