示例#1
0
 protected void GobalSelectSelfCloseOtherSelect(ShopItemBase type, int index)
 {
     UIShop.Instance.ShopItemAll[UIShop.ShopSelectType.TypeAfter].SelectSelfCloseOtherSelect(type, index);
     UIShop.Instance.ShopItemAll[UIShop.ShopSelectType.TypeBuy].SelectSelfCloseOtherSelect(type, index);
     UIShop.Instance.ShopItemAll[UIShop.ShopSelectType.TypeCompose].SelectSelfCloseOtherSelect(type, index);
     UIShop.Instance.ShopItemAll[UIShop.ShopSelectType.TypeUser].SelectSelfCloseOtherSelect(type, index);
 }
示例#2
0
    public override void ToggleSelectItem(ShopItemBase from, int item)
    {
        if (from == this)
        {
            return;
        }

        ItemsInUserInterface.Clear();
        if (item == 0 || !ConfigReader.CombineXmlInfoDict.ContainsKey(item))
        {
            this.OnShowItemInUserInterface();
            return;
        }
        SelectSelfCloseOtherSelect(this, -1);

        ItemsInUserInterface.Add(item);
        if (item != 0 && ConfigReader.CombineXmlInfoDict[item].un32ChildID1 != 0 && ConfigReader.CombineXmlInfoDict[item].un32ChildID2 != 0)
        {
            ItemsInUserInterface.Add(ConfigReader.CombineXmlInfoDict[item].un32ChildID1);
            ItemsInUserInterface.Add(ConfigReader.CombineXmlInfoDict[item].un32ChildID2);
            ItemsInUserInterface.Add(ConfigReader.CombineXmlInfoDict[ItemsInUserInterface[1]].un32ChildID1);
            ItemsInUserInterface.Add(ConfigReader.CombineXmlInfoDict[ItemsInUserInterface[1]].un32ChildID2);
            ItemsInUserInterface.Add(ConfigReader.CombineXmlInfoDict[ItemsInUserInterface[2]].un32ChildID1);
            ItemsInUserInterface.Add(ConfigReader.CombineXmlInfoDict[ItemsInUserInterface[2]].un32ChildID2);
        }
        this.OnShowItemInUserInterface();
    }
示例#3
0
 public virtual void SelectSelfCloseOtherSelect(ShopItemBase type, int index)
 {
     if (type != this)
     {
         index = -1;
     }
     for (int i = 0; i < ButtonUis.Count; i++)
     {
         if (i == index)
         {
             SetSelectSpriteVisiable(i, true);
         }
         else
         {
             SetSelectSpriteVisiable(i, false);
         }
     }
 }
示例#4
0
    public override void ToggleSelectItem(ShopItemBase from, int item)
    {
        if (from == this)
        {
            return;
        }
        ItemsInUserInterface.Clear();
        if (item == 0)
        {
            this.OnShowItemInUserInterface();
            return;
        }

        foreach (var it in ConfigReader.CombineXmlInfoDict)
        {
            if (it.Value.un32ChildID1 == item || it.Value.un32ChildID2 == item)
            {
                ItemsInUserInterface.Add(it.Key);
            }
        }

        AutoCreateItems(ItemsInUserInterface.Count, afterPackHead, GameDefine.GameConstDefine.AfterPackItemPath);
        this.OnShowItemInUserInterface();
    }
示例#5
0
 public override void ToggleSelectItem(ShopItemBase from, int item)
 {
     //   ItemsInUserInterface = PlayerManager.Instance.LocalPlayer.UserGameItems;
     //  this.OnShowItemInUserInterface();
 }
示例#6
0
 /// <summary>
 /// 显示商店选中的物品信息
 /// </summary>
 /// <param name="item"></param>
 /// 选中的物品Id
 public void ToggleSelectPageItem(ShopItemBase from, int item)
 {
     ShopItemAll[ShopSelectType.TypeCompose].ToggleSelectItem(from, item);
     ShopItemAll[ShopSelectType.TypeAfter].ToggleSelectItem(from, item);
     ShopItemAll[ShopSelectType.TypeUser].ToggleSelectItem(from, item);
 }
示例#7
0
 /// <summary>
 /// 重置物品选择
 /// </summary>
 /// <param name="item"></param>
 /// 物品Id
 public virtual void ToggleSelectItem(ShopItemBase from, int item)
 {
 }