public override void OnNotify(NOTIFY_FLAG flags)
    {
        if ((flags & (NOTIFY_FLAG.UPDATE_SKILL_FAVORITE | NOTIFY_FLAG.UPDATE_ITEM_INVENTORY | NOTIFY_FLAG.UPDATE_SKILL_INVENTORY)) != (NOTIFY_FLAG)0L)
        {
            inventory = new ItemStorageTop.SkillItemInventory((!isExceed) ? SortSettings.SETTINGS_TYPE.GROW_SKILL_ITEM : SortSettings.SETTINGS_TYPE.EXCEED_SKILL_ITEM, SKILL_SLOT_TYPE.NONE, true);
            sorting();
            skillItem = MonoBehaviourSingleton <InventoryManager> .I.skillItemInventory.Find(skillItem.uniqueID);

            List <SkillItemInfo> del_list = new List <SkillItemInfo>();
            materialSkillItem.ForEach(delegate(SkillItemInfo skill)
            {
                SkillItemInfo skillItemInfo  = MonoBehaviourSingleton <InventoryManager> .I.skillItemInventory.Find(skill.uniqueID);
                SkillItemInfo skillItemInfo2 = MonoBehaviourSingleton <InventoryManager> .I.skillMaterialInventory.Find(skill.uniqueID);
                if ((skillItemInfo == null && skillItemInfo2 == null) || (skillItemInfo != null && skillItemInfo.isFavorite))
                {
                    del_list.Add(skill);
                }
            });
            del_list.ForEach(delegate(SkillItemInfo delitem)
            {
                materialSkillItem.Remove(delitem);
            });
            inventory = null;
            RefreshUI();
        }
        base.OnNotify(flags);
    }
    public override void OnNotify(NOTIFY_FLAG flags)
    {
        bool flag = false;

        if ((flags & NOTIFY_FLAG.UPDATE_QUEST_ITEM_INVENTORY) != (NOTIFY_FLAG)0L)
        {
            SetDirty(UI.GRD_ORDER_QUEST);
            questItemAry = null;
        }
        if ((flags & NOTIFY_FLAG.UPDATE_DELIVERY_OVER) != (NOTIFY_FLAG)0L)
        {
            flag = true;
            MonoBehaviourSingleton <DeliveryManager> .I.SendDeliveryUpdate(delegate
            {
                GetDeliveryList();
                SetDirty(UI.GRD_AREA);
                SetDirty(UI.GRD_DELIVERY);
                base.OnNotify(flags);
            });
        }
        if ((flags & NOTIFY_FLAG.UPDATE_DELIVERY_UPDATE) != (NOTIFY_FLAG)0L)
        {
            GetDeliveryList();
            SetDirty(UI.GRD_AREA);
            SetDirty(UI.GRD_DELIVERY);
        }
        if (!flag)
        {
            base.OnNotify(flags);
        }
    }
    public override void OnNotify(NOTIFY_FLAG flags)
    {
        if ((flags & (NOTIFY_FLAG.UPDATE_SKILL_FAVORITE | NOTIFY_FLAG.UPDATE_ITEM_INVENTORY | NOTIFY_FLAG.UPDATE_SKILL_INVENTORY)) != (NOTIFY_FLAG)0L)
        {
            skillItem = MonoBehaviourSingleton <InventoryManager> .I.skillItemInventory.Find(skillItem.uniqueID);

            if (material != null)
            {
                List <SkillItemInfo> list = new List <SkillItemInfo>();
                int i = 0;
                for (int num = material.Length; i < num; i++)
                {
                    SkillItemInfo skillItemInfo = MonoBehaviourSingleton <InventoryManager> .I.skillItemInventory.Find(material[i].uniqueID);

                    if (skillItemInfo != null && !skillItemInfo.isFavorite)
                    {
                        list.Add(material[i]);
                    }
                }
                material = list.ToArray();
            }
            SetDirty(UI.GRD_MATERIAL);
        }
        base.OnNotify(flags);
    }
Esempio n. 4
0
 public override void OnNotify(NOTIFY_FLAG flags)
 {
     if ((flags & NOTIFY_FLAG.UPDATE_EQUIP_CHANGE) != (NOTIFY_FLAG)0L)
     {
         SetDirty(UI.GRD_REQUEST_HOUND);
     }
     base.OnNotify(flags);
 }
Esempio n. 5
0
 public override void OnNotify(NOTIFY_FLAG flags)
 {
     base.OnNotify(flags);
     if ((NOTIFY_FLAG.FACEBOOK_LOGIN & flags) != (NOTIFY_FLAG)0L)
     {
         RefreshUI();
     }
 }
 public override void OnNotify(NOTIFY_FLAG flags)
 {
     base.OnNotify(flags);
     if ((flags & NOTIFY_FLAG.PRETREAT_SCENE) != (NOTIFY_FLAG)0L)
     {
         NoEventReleaseTouchAndReleases(touchAndReleaseButtons);
     }
 }
Esempio n. 7
0
 public override void OnNotify(NOTIFY_FLAG flags)
 {
     if ((flags & NOTIFY_FLAG.UPDATE_GUILD_LIST) != (NOTIFY_FLAG)0L)
     {
         RefreshUI();
     }
     base.OnNotify(flags);
 }
 public override void OnNotify(NOTIFY_FLAG flags)
 {
     if ((flags & NOTIFY_FLAG.UPDATE_SKILL_CHANGE) != (NOTIFY_FLAG)0L)
     {
         MonoBehaviourSingleton <StatusManager> .I.ReplaceEquipSet(localEquipSet, selfCharaEquipSetNo);
     }
     base.OnNotify(flags);
 }
 public override void OnNotify(NOTIFY_FLAG flags)
 {
     if ((flags & NOTIFY_FLAG.UPDATE_FRIEND_LIST) != (NOTIFY_FLAG)0L)
     {
         SetDirty(UI.GRD_LIST);
     }
     base.OnNotify(flags);
 }
Esempio n. 10
0
 public override void OnNotify(NOTIFY_FLAG notify_flags)
 {
     if ((notify_flags & NOTIFY_FLAG.UPDATE_TASK_LIST) != (NOTIFY_FLAG)0L)
     {
         InitTaskDataLists();
         base.OnNotify(notify_flags);
     }
 }
Esempio n. 11
0
 public override void OnNotify(NOTIFY_FLAG flags)
 {
     if ((flags & NOTIFY_FLAG.UPDATE_ITEM_INVENTORY) != (NOTIFY_FLAG)0L)
     {
         SetDirty(SelectListTarget(showInventoryMode));
         RefreshUI();
     }
     base.OnNotify(flags);
 }
Esempio n. 12
0
 public override void OnNotify(NOTIFY_FLAG flags)
 {
     base.OnNotify(flags);
     if ((flags & NOTIFY_FLAG.PRETREAT_SCENE) != (NOTIFY_FLAG)0L)
     {
         NoEventReleaseTouchAndReleases(touchAndReleaseList);
         OnQuery_RELEASE_ABILITY();
     }
 }
Esempio n. 13
0
 public override void OnNotify(NOTIFY_FLAG flags)
 {
     if ((flags & NOTIFY_FLAG.UPDATE_ABILITY_ITEM_INVENTORY) != (NOTIFY_FLAG)0L)
     {
         inventory = null;
         SetDirty(GetCurrentInventoryRoot());
     }
     base.OnNotify(flags);
 }
 public override void OnNotify(NOTIFY_FLAG flags)
 {
     base.OnNotify(flags);
     if ((flags & NOTIFY_FLAG.PRETREAT_SCENE) != (NOTIFY_FLAG)0L)
     {
         UIGrid           component = base.GetComponent <UIGrid>((Enum)UI.GRD_ABILITY);
         List <Transform> childList = component.GetChildList();
         NoEventReleaseTouchAndReleases(childList);
         OnQuery_RELEASE_ABILITY();
     }
 }
Esempio n. 15
0
    public override void OnNotify(NOTIFY_FLAG flags)
    {
        if ((flags & (NOTIFY_FLAG.UPDATE_SKILL_GROW | NOTIFY_FLAG.UPDATE_SKILL_FAVORITE | NOTIFY_FLAG.UPDATE_ITEM_INVENTORY | NOTIFY_FLAG.UPDATE_SKILL_INVENTORY)) != (NOTIFY_FLAG)0L)
        {
            equipSkillItem = MonoBehaviourSingleton <InventoryManager> .I.skillItemInventory.Find(inventory.datas[selectIndex].GetUniqID());

            selectSkillItem = null;
            updateInventory = true;
            MonoBehaviourSingleton <StatusManager> .I.isEquipSetCalcUpdate = true;
        }
        base.OnNotify(flags);
    }
 public override void OnNotify(NOTIFY_FLAG flags)
 {
     if ((flags & NOTIFY_FLAG.UPDATE_FRIEND_PARAM) != (NOTIFY_FLAG)0L)
     {
         isInitializeSendReopen = true;
     }
     if ((flags & NOTIFY_FLAG.UPDATE_FRIEND_LIST) != (NOTIFY_FLAG)0L)
     {
         SetDirtyTable();
     }
     base.OnNotify(flags);
 }
Esempio n. 17
0
 public override void OnNotify(NOTIFY_FLAG flags)
 {
     if ((flags & (NOTIFY_FLAG.UPDATE_SKILL_CHANGE | NOTIFY_FLAG.UPDATE_SKILL_FAVORITE)) != (NOTIFY_FLAG)0L)
     {
         EquipItemInfo equipItemInfo = eventData as EquipItemInfo;
         if (equipItemInfo != null)
         {
             eventData = MonoBehaviourSingleton <InventoryManager> .I.equipItemInventory.Find(equipItemInfo.uniqueID);
         }
     }
     base.OnNotify(flags);
 }
Esempio n. 18
0
 public override void OnNotify(NOTIFY_FLAG flags)
 {
     if ((flags & NOTIFY_FLAG.UPDATE_USER_STATUS) != (NOTIFY_FLAG)0L)
     {
         CheckUpdateCrystalNum();
         if (!isRetry)
         {
             SetLabelText((Enum)UI.LBL_CRYSTAL_NUM, MonoBehaviourSingleton <UserInfoManager> .I.userStatus.crystal.ToString());
         }
     }
     base.OnNotify(flags);
 }
    public override void OnNotify(NOTIFY_FLAG flags)
    {
        bool flag = false;

        if ((flags & NOTIFY_FLAG.UPDATE_QUEST_ITEM_INVENTORY) != (NOTIFY_FLAG)0L)
        {
            SetDirty(UI.GRD_ORDER_QUEST);
        }
        if (!flag)
        {
            base.OnNotify(flags);
        }
    }
Esempio n. 20
0
    public override void OnNotify(NOTIFY_FLAG flags)
    {
        if ((flags & NOTIFY_FLAG.UPDATE_QUEST_ITEM_INVENTORY) != (NOTIFY_FLAG)0L)
        {
            QuestItemInfo questItem = MonoBehaviourSingleton <InventoryManager> .I.GetQuestItem(data.GetTableID());

            if (questItem != null && questItem.infoData != null && questItem.infoData.questData.num > 0)
            {
                data = new QuestSortData();
                data.SetItem(questItem);
            }
        }
        base.OnNotify(flags);
    }
    public override void OnNotify(NOTIFY_FLAG flags)
    {
        if ((flags & NOTIFY_FLAG.UPDATE_ITEM_INVENTORY) != (NOTIFY_FLAG)0L)
        {
            ItemInfo itemInfo = MonoBehaviourSingleton <InventoryManager> .I.itemInventory.Find(data.GetUniqID());

            if (itemInfo != null && itemInfo.num > 0)
            {
                data = new ItemSortData();
                data.SetItem(itemInfo);
            }
        }
        base.OnNotify(flags);
    }
Esempio n. 22
0
 public override void OnNotify(NOTIFY_FLAG flags)
 {
     if ((flags & (NOTIFY_FLAG.UPDATE_SKILL_CHANGE | NOTIFY_FLAG.UPDATE_SKILL_FAVORITE)) != (NOTIFY_FLAG)0L)
     {
         Array.ForEach(equipAndSkill, delegate(EquipItemAndSkillData data)
         {
             if (data != null && data.equipItemInfo != null)
             {
                 EquipItemInfo equipItem = MonoBehaviourSingleton <InventoryManager> .I.GetEquipItem(data.equipItemInfo.uniqueID);
                 data.skillSlotUIData    = GetSkillSlotData(equipItem);
             }
         });
     }
     base.OnNotify(flags);
 }
Esempio n. 23
0
 public override void OnNotify(NOTIFY_FLAG notify_flags)
 {
     if ((notify_flags & NOTIFY_FLAG.UPDATE_PRESENT_NUM) != (NOTIFY_FLAG)0L && (notify_flags & NOTIFY_FLAG.UPDATE_PRESENT_LIST) == (NOTIFY_FLAG)0L)
     {
         int num  = (MonoBehaviourSingleton <PresentManager> .I.presentNum > 0) ? ((MonoBehaviourSingleton <PresentManager> .I.presentNum - 1) / MonoBehaviourSingleton <UserInfoManager> .I.userInfo.constDefine.LIST_NUM_PER_PAGE) : 0;
         int page = Mathf.Min(num, MonoBehaviourSingleton <PresentManager> .I.page);
         SetDirty(UI.GRD_LIST);
         MovePage(page, false);
     }
     else if ((notify_flags & NOTIFY_FLAG.UPDATE_PRESENT_LIST) != (NOTIFY_FLAG)0L)
     {
         SetDirty(UI.GRD_LIST);
     }
     base.OnNotify(notify_flags);
 }
 public override void OnNotify(NOTIFY_FLAG flags)
 {
     if ((flags & NOTIFY_FLAG.UPDATE_SKILL_FAVORITE) != (NOTIFY_FLAG)0L)
     {
         if (!isSelfSectionChange)
         {
             updateInventory = true;
         }
     }
     else if ((flags & NOTIFY_FLAG.UPDATE_SKILL_INVENTORY) != (NOTIFY_FLAG)0L && !isSelfSectionChange)
     {
         updateInventory = true;
     }
     base.OnNotify(flags);
     isSelfSectionChange = false;
 }
Esempio n. 25
0
 public override void OnNotify(NOTIFY_FLAG flags)
 {
     //IL_0025: Unknown result type (might be due to invalid IL or missing references)
     //IL_0033: Unknown result type (might be due to invalid IL or missing references)
     base.OnNotify(flags);
     if ((flags & NOTIFY_FLAG.TRANSITION_END) != (NOTIFY_FLAG)0L)
     {
         if (!IsPlayableVersion(out Network.EventData notPlayableEventData))
         {
             this.StartCoroutine(WaitAndStartNotPlayable(notPlayableEventData));
         }
         else
         {
             this.StartCoroutine(WaitAndStartAutoComplete());
         }
     }
 }
Esempio n. 26
0
    public override void OnNotify(NOTIFY_FLAG flags)
    {
        if ((flags & NOTIFY_FLAG.UPDATE_SKILL_CHANGE) != (NOTIFY_FLAG)0L)
        {
            EquipItemInfo equipItemInfo = detailItemData as EquipItemInfo;
            if (equipItemInfo != null)
            {
                equipItemInfo = MonoBehaviourSingleton <InventoryManager> .I.GetEquipItem(equipItemInfo.uniqueID);

                equipAttachSkill = GetSkillSlotData(equipItemInfo);
            }
        }
        if ((flags & NOTIFY_FLAG.PRETREAT_SCENE) != (NOTIFY_FLAG)0L)
        {
            NoEventReleaseTouchAndReleases(touchAndReleaseButtons);
            OnQuery_RELEASE_ABILITY();
        }
        base.OnNotify(flags);
    }
Esempio n. 27
0
    public override void OnNotify(NOTIFY_FLAG notify_flags)
    {
        if ((notify_flags & NOTIFY_FLAG.UPDATE_EQUIP_FAVORITE) != (NOTIFY_FLAG)0L)
        {
            if (detailItem != null)
            {
                EquipItemInfo equipItem = MonoBehaviourSingleton <InventoryManager> .I.GetEquipItem(detailItem.uniqueID);

                MonoBehaviourSingleton <StatusManager> .I.UpdateLocalInventory(equipItem);

                InitLocalInventory();
            }
        }
        else if ((notify_flags & (NOTIFY_FLAG.UPDATE_SKILL_CHANGE | NOTIFY_FLAG.UPDATE_EQUIP_INVENTORY)) != (NOTIFY_FLAG)0L)
        {
            InitLocalInventory();
            if (sortSettings.Sort(localInventoryEquipData as EquipItemSortData[]))
            {
                selectInventoryIndex = GetSelectItemIndex();
                if (selectInventoryIndex == -1)
                {
                    EquipItemInfo compareItemData = GetCompareItemData();
                    if (compareItemData != null)
                    {
                        EquipItem            = compareItemData;
                        selectInventoryIndex = GetSelectItemIndex();
                    }
                    else if (!IsCreateRemoveButton())
                    {
                        selectInventoryIndex = 0;
                    }
                }
                EquipItem = ((selectInventoryIndex == -1) ? null : (localInventoryEquipData[selectInventoryIndex].GetItemData() as EquipItemInfo));
                if (MonoBehaviourSingleton <StatusStageManager> .IsValid())
                {
                    MonoBehaviourSingleton <StatusStageManager> .I.SetEquipInfo(EquipItem);
                }
                SetDirty(InventoryUI);
            }
        }
        base.OnNotify(notify_flags);
    }
Esempio n. 28
0
 public override void OnNotify(NOTIFY_FLAG flags)
 {
     if (flags == NOTIFY_FLAG.UPDATE_DEGREE_FRAME)
     {
         ProfileChangeDegreeFrame.ChangeFrame changeFrame = GameSection.GetEventData() as ProfileChangeDegreeFrame.ChangeFrame;
         if (changeFrame != null)
         {
             currentDegrees[0] = (int)changeFrame.changeData.id;
             if (changeFrame.changeData.type == DEGREE_TYPE.SPECIAL_FRAME)
             {
                 currentSelectData = null;
             }
             else
             {
                 currentSelectData = Singleton <DegreeTable> .I.GetData((uint)currentDegrees[(int)currentTab]);
             }
         }
     }
     base.OnNotify(flags);
 }
	public override void OnNotify(NOTIFY_FLAG notify_flags)
	{
		if ((notify_flags & (NOTIFY_FLAG.UPDATE_EQUIP_GROW | NOTIFY_FLAG.UPDATE_EQUIP_EVOLVE | NOTIFY_FLAG.UPDATE_EQUIP_FAVORITE)) != (NOTIFY_FLAG)0L)
		{
			SmithManager.SmithGrowData smithData = MonoBehaviourSingleton<SmithManager>.I.GetSmithData<SmithManager.SmithGrowData>();
			if (smithData != null && smithData.selectEquipData != null)
			{
				smithData.selectEquipData = MonoBehaviourSingleton<InventoryManager>.I.GetEquipItem(smithData.selectEquipData.uniqueID);
			}
		}
		if ((notify_flags & NOTIFY_FLAG.UPDATE_EQUIP_INVENTORY) != (NOTIFY_FLAG)0L || (notify_flags & NOTIFY_FLAG.UPDATE_SKILL_INVENTORY) != (NOTIFY_FLAG)0L)
		{
			InitLocalInventory();
			if (GetSelectItemIndex() < 0)
			{
				SelectingInventoryFirst();
			}
		}
		base.OnNotify(notify_flags);
	}
Esempio n. 30
0
 public override void OnNotify(NOTIFY_FLAG flags)
 {
     if ((flags & NOTIFY_FLAG.UPDATE_EQUIP_FAVORITE) != (NOTIFY_FLAG)0L)
     {
         localEquipSetUpdate();
         if (visualDetailEquip != null && visualDetailItemIndex != -1)
         {
             visualEquip.visualItem[visualDetailItemIndex] = MonoBehaviourSingleton <InventoryManager> .I.GetEquipItem(visualDetailEquip.uniqueID);
         }
     }
     if ((flags & NOTIFY_FLAG.UPDATE_SKILL_CHANGE) != (NOTIFY_FLAG)0L)
     {
         MonoBehaviourSingleton <StatusManager> .I.ReplaceEquipSet(localEquipSet[equipSetNo], equipSetNo);
     }
     if ((flags & NOTIFY_FLAG.UPDATE_EQUIP_SET_INFO) != (NOTIFY_FLAG)0L)
     {
         ForceSettingEquipSetInfo();
         DrawEquipSetModel();
     }
     base.OnNotify(flags);
 }