private void ChangeEquipOrProperty(int currentBtn = 1) { if (currentBtn == 1) { base.FindTransform("EquipPanel").get_gameObject().SetActive(true); base.FindTransform("ActorPropertyPanel").get_gameObject().SetActive(false); this.BtnEquip.get_transform().FindChild("Unselect").get_gameObject().SetActive(false); this.BtnProperty.get_transform().FindChild("Unselect").get_gameObject().SetActive(true); } else if (currentBtn == 2) { base.FindTransform("EquipPanel").get_gameObject().SetActive(false); base.FindTransform("ActorPropertyPanel").get_gameObject().SetActive(true); this.BtnEquip.get_transform().FindChild("Unselect").get_gameObject().SetActive(true); this.BtnProperty.get_transform().FindChild("Unselect").get_gameObject().SetActive(false); ActorPropertyUI component = base.FindTransform("ActorPropertyPanel").GetComponent <ActorPropertyUI>(); component.RefreshUI(EntityWorld.Instance.EntSelf); } }
private void OnFindBuddyRes(short state, FindBuddyRes down = null) { if (state != 0) { StateManager.Instance.StateShow(state, 0); return; } if (down != null) { UIManagerControl.Instance.HideUI("ChatUI"); UIManagerControl.Instance.OpenUI("RoleShowUI", UINodesManager.NormalUIRoot, true, UIType.FullScreen); RoleShowUIViewModel.Instance.TextLv = down.info.lv.ToString(); RoleShowUIViewModel.Instance.TextName = down.info.name; RoleShowUIViewModel.Instance.TextPower = down.info.fighting.ToString(); RoleShowUIViewModel.Instance.ShowRoleModel(down.info.career, down.equipInfos, down.fashionList, down.wearWing); RoleShowUIViewModel.Instance.SetEquipItems(down.equipInfos); ActorPropertyUI actorPropertyUI = UIManagerControl.Instance.OpenUI("ActorPropertyUI", RoleShowUIView.Instance.PanelProperty, false, UIType.NonPush) as ActorPropertyUI; actorPropertyUI.RefreshUI(down); RoleShowUIViewModel.Instance.level = down.info.lv; RoleShowUIViewModel.Instance.BuddyPetFormations = down.petFormation; } }
private void RefreshRightUIState(ActorUI.RightState state) { switch (this.m_LastState) { case ActorUI.RightState.Property: UIManagerControl.Instance.HideUI("ActorPropertyUI"); break; case ActorUI.RightState.Title: UIManagerControl.Instance.HideUI("TitleUI"); break; case ActorUI.RightState.Wing: UIManagerControl.Instance.HideUI("WingUI"); break; } switch (state) { case ActorUI.RightState.Property: { ActorPropertyUI actorPropertyUI = UIManagerControl.Instance.OpenUI("ActorPropertyUI", this.RightTransRoot, false, UIType.NonPush) as ActorPropertyUI; actorPropertyUI.RefreshUI(EntityWorld.Instance.EntSelf); break; } case ActorUI.RightState.Title: UIManagerControl.Instance.OpenUI("TitleUI", this.RightTransRoot, false, UIType.NonPush); break; case ActorUI.RightState.Wing: { UIBase uIBase = UIManagerControl.Instance.OpenUI("WingUI", this.RightTransRoot, false, UIType.NonPush); uIBase.get_transform().set_localPosition(new Vector3(344f, -73f)); break; } } }