public static void OpenEquipWin() { if (ItemModeLocator.AlreadyMainRequest == false) { ItemModeLocator.Instance.GetItemPos = ItemType.GetItemInPanel; var csmsg = new CSQueryAllItems { BagType = ItemType.MainItemBagType }; NetManager.SendMessage(csmsg); } else { WindowManager.Instance.Show<UIItemCommonWindow>(true); } }
private void ToEquipHandler(GameObject obj) { WindowManager.Instance.Show(WindowGroupType.Popup, false); if (ItemModeLocator.AlreadyMainRequest == false) { ItemModeLocator.Instance.GetItemPos = ItemType.GetItemInPanel; var csmsg = new CSQueryAllItems { BagType = ItemType.MainItemBagType }; NetManager.SendMessage(csmsg); } else { WindowManager.Instance.Show<UIItemCommonWindow>(true); } }
private void OpenSelectHandler(GameObject obj) { NGUITools.SetActive(highLightFrame, true); highLightFrame.transform.position = obj.transform.position; if(selectPosEquipObj) { var heroEquipControl = selectPosEquipObj.GetComponent<HeroEquipControl>(); SendChangeEquipMessage(heroEquipControl); } selectPosEquipObj = obj; cachedEquipUuid = obj.GetComponent<HeroEquipControl>().Uuid; if (!ItemModeLocator.AlreadyMainRequest) { ItemModeLocator.Instance.GetItemPos = ItemType.GetItemInHeroInfo; var csmsg = new CSQueryAllItems { BagType = ItemType.MainItemBagType }; NetManager.SendMessage(csmsg); } else { RefreshCanEquipItems(); } }