示例#1
0
        void ShowBottomBtn()
        {
            CommonBtnInfo btnInfo = new CommonBtnInfo(0, "JH_UI_Button_1116_06", "JH_UI_Button_1116_00", OnCloseBtnClick);

            commonUIBottomButtonTool.Show(new List <CommonBtnInfo>()
            {
                btnInfo
            });

            var btnInfoComponet = commonUIBottomButtonTool.GetButtonComponent(btnInfo);

            if (btnInfoComponet != null)
            {
                //TODO GuideBtnManager.Instance.RegGuideButton(btnInfoComponet.gameObject, UIType.Package, SubType.ButtomCommon, out m_guideBtnID);
            }
        }
示例#2
0
        void ShowBottomBtn()
        {
            CommonBtnInfo btnInfo        = new CommonBtnInfo(0, "JH_UI_Button_1116_06", "JH_UI_Button_1116_00", OnBackButtonTapped);
            CommonBtnInfo SearchBtnInfo  = new CommonBtnInfo(1, "JH_UI_Button_1116_19", "JH_UI_Button_1116_00", OnSearchRoomBtnClick);
            CommonBtnInfo newRoomBtnInfo = new CommonBtnInfo(2, "JH_UI_Button_1116_18", "JH_UI_Button_1116_00", CreatNewRoom);

            commonUIBottomButtonTool.Show(new List <CommonBtnInfo>()
            {
                btnInfo, SearchBtnInfo, newRoomBtnInfo
            });
            var btnInfoComponent = commonUIBottomButtonTool.GetButtonComponent(btnInfo);
            //if (btnInfoComponent != null)
            //TODO GuideBtnManager.Instance.RegGuideButton(btnInfoComponent.gameObject, UIType.MartialArtsRoom, SubType.ButtomCommon, out m_guideBtnID[2]);
            var btnInfo1Component = commonUIBottomButtonTool.GetButtonComponent(SearchBtnInfo);
            //if (btnInfo1Component != null)
            //TODO GuideBtnManager.Instance.RegGuideButton(btnInfo1Component.gameObject, UIType.MartialArtsRoom, SubType.ButtomCommon, out m_guideBtnID[3]);
            var btnInfo2Component = commonUIBottomButtonTool.GetButtonComponent(newRoomBtnInfo);
            //if (btnInfo2Component != null)
            //TODO GuideBtnManager.Instance.RegGuideButton(btnInfo2Component.gameObject, UIType.MartialArtsRoom, SubType.ButtomCommon, out m_guideBtnID[4]);
        }
示例#3
0
        void ShowBottomBtn()
        {
            commonUIBottomButtonTool = CreatObjectToNGUI.InstantiateObj(UIBottomBtnPrefab, CreatBottomBtnPoint).GetComponent <CommonUIBottomButtonTool>();
            CommonBtnInfo btnInfo  = new CommonBtnInfo(0, "JH_UI_Button_1116_06", "JH_UI_Button_1116_00", OnBackButtonTapped);
            CommonBtnInfo btnInfo1 = new CommonBtnInfo(1, "JH_UI_Button_1116_12", "JH_UI_Button_1116_00", OnTeamWorkBtnClick);
            CommonBtnInfo btnInfo2 = new CommonBtnInfo(2, "JH_UI_Button_1116_11", "JH_UI_Button_1116_00", OnTeamSpeedBtnClick);

            commonUIBottomButtonTool.Show(new List <CommonBtnInfo>()
            {
                btnInfo, btnInfo1, btnInfo2
            });

            var btnInfoComponent = commonUIBottomButtonTool.GetButtonComponent(btnInfo);
            //if(btnInfoComponent != null)
            //TODO GuideBtnManager.Instance.RegGuideButton(btnInfoComponent.gameObject, UIType.Battle, SubType.ButtomCommon, out m_guideBtnID[4]);
            var btnInfo1Component = commonUIBottomButtonTool.GetButtonComponent(btnInfo1);
            //if (btnInfo1Component != null)
            //TODO GuideBtnManager.Instance.RegGuideButton(btnInfo1Component.gameObject, UIType.Battle, SubType.ButtomCommon, out m_guideBtnID[5]);
            var btnInfo2Component = commonUIBottomButtonTool.GetButtonComponent(btnInfo2);
            //if (btnInfo2Component != null)
            //TODO GuideBtnManager.Instance.RegGuideButton(btnInfo2Component.gameObject, UIType.Battle, SubType.ButtomCommon, out m_guideBtnID[6]);
        }