/// <summary> /// 初始化树形菜单界面 /// </summary> public void initTreeMenu(string knowType, TrainUI.TrainMode mode) { change.setYesSwitchClick(changeMode); uiTool.setReturnBtnClick(backMenu); uiTool.setNextBtnClick(setNextBtnClick); uiTool.setPreBtnClick(setBackBtnClick); uiTool.setRatateBtnClick(setRotateBtnClick); //popWindows.GetComponent<PopWindowsInit>().setItemClick(setPopItemClick); tabStrip.init(1, tabStripClick, 0); //tabStrip.setTabActiveState(0); clear(); kemu = knowType; treeMenu.init(); this.equipKnows = InitConfigs.Instance.SubjectDic[knowType]; List <MyTreeMenuItemVO> vos = EquipKnowSwitchTreeItem(equipKnows); treeMenu.setValue(vos, leafNodesClick, true); if (mode == TrainUI.TrainMode.Exam) { tempMode = mode; changeMode(); } info.text = "学员" + H5Camera.GetComponent <UICommunicationsScript>().getUsetName() + ",欢迎来到S700K学习模式"; info.gameObject.SetActive(true); circuitUIStart.SetActive(true); circuitUIIsStart = false; treeMenu.treeGrid.repositionNow = true; treeMenu.treeGrid.Reposition(); //leafNodesClick("Circle001", true); //treeTitle.Play(true); //toolTitle.Play(true); //specificInfoUI.setValue(null, null); }
private void initToolMenu() { tabStrip.init(1, tabStripClick, Convert.ToInt32(currentTrainMode)); tabStripClick((int)currentTrainMode); toolMenu.initToolMenu(toolMenuItemClick); }