Exemplo n.º 1
0
 private void RefreshItemTree(bool created = false)
 {
     if (UnityEngine.Object.op_Equality((UnityEngine.Object) this.ItemTreeTemplate, (UnityEngine.Object)null) || UnityEngine.Object.op_Equality((UnityEngine.Object) this.ItemTreeParent, (UnityEngine.Object)null) || UnityEngine.Object.op_Equality((UnityEngine.Object) this.ItemTreeArrow, (UnityEngine.Object)null))
     {
         return;
     }
     for (int index = 0; index < this.ItemTree.Count; ++index)
     {
         this.ItemTree[index].get_gameObject().SetActive(false);
     }
     if (created && this.mItemParamTree.Count > 1)
     {
         RecipeItem recipeItem = Array.Find <RecipeItem>(MonoSingleton <GameManager> .Instance.GetRecipeParam(this.mItemParamTree[this.mItemParamTree.Count - 2].recipe).items, (Predicate <RecipeItem>)(p => p.iname == this.mItemParamTree[this.mItemParamTree.Count - 1].iname));
         if (recipeItem != null && MonoSingleton <GameManager> .Instance.Player.GetItemAmount(this.mItemParamTree[this.mItemParamTree.Count - 1].iname) >= recipeItem.num)
         {
             this.mItemParamTree.RemoveAt(this.mItemParamTree.Count - 1);
         }
     }
     for (int index = 0; index < this.mItemParamTree.Count; ++index)
     {
         if (index >= this.ItemTree.Count)
         {
             ((Component)this.ItemTreeTemplate).get_gameObject().SetActive(index > 0);
             ((Component)this.ItemTreeArrow).get_gameObject().SetActive(index > 0);
             ListItemEvents listItemEvents = (ListItemEvents)UnityEngine.Object.Instantiate <ListItemEvents>((M0)this.ItemTreeTemplate);
             ((Component)listItemEvents).get_transform().SetParent((Transform)this.ItemTreeParent, false);
             this.ItemTree.Add(((Component)listItemEvents).get_gameObject());
             ((Component)this.ItemTreeArrow).get_gameObject().SetActive(false);
             ((Component)this.ItemTreeTemplate).get_gameObject().SetActive(false);
         }
         ListItemEvents component = (ListItemEvents)this.ItemTree[index].GetComponent <ListItemEvents>();
         if (UnityEngine.Object.op_Inequality((UnityEngine.Object)component, (UnityEngine.Object)null))
         {
             component.OnSelect = new ListItemEvents.ListItemEvent(this.OnItemTreeSelect);
         }
         this.ItemTree[index].get_gameObject().SetActive(true);
         DataSource.Bind <ItemParam>(this.ItemTree[index].get_gameObject(), this.mItemParamTree[index]);
     }
     for (int index = 0; index < this.ItemTree.Count; ++index)
     {
         if (!UnityEngine.Object.op_Equality((UnityEngine.Object) this.ItemTree[index], (UnityEngine.Object)null))
         {
             EquipTree component = (EquipTree)this.ItemTree[index].GetComponent <EquipTree>();
             if (!UnityEngine.Object.op_Equality((UnityEngine.Object)component, (UnityEngine.Object)null))
             {
                 component.SetIsLast(this.mItemParamTree.Count - 1 == index);
             }
         }
     }
 }
Exemplo n.º 2
0
        private void RefreshRecipeItems()
        {
            if (Object.op_Equality((Object)this.RecipeParent, (Object)null) || Object.op_Equality((Object)this.SelectedItem, (Object)null))
            {
                return;
            }
            ((Component)this.RecipeParent).get_gameObject().SetActive(false);
            if (Object.op_Inequality((Object)this.CreateButton, (Object)null))
            {
                ((Component)this.CreateButton).get_gameObject().SetActive(false);
            }
            if (Object.op_Inequality((Object)this.CreateButtonAll, (Object)null))
            {
                ((Component)this.CreateButtonAll).get_gameObject().SetActive(false);
            }
            if (Object.op_Inequality((Object)this.ConfirmRecipeButton, (Object)null))
            {
                ((Component)this.ConfirmRecipeButton).get_gameObject().SetActive(false);
            }
            if (Object.op_Equality((Object)this.RecipeListItemTemplate, (Object)null) || Object.op_Equality((Object)this.RecipeListParent, (Object)null) || Object.op_Equality((Object)this.RecipeListLine, (Object)null))
            {
                return;
            }
            for (int index = 0; index < this.RecipeItems.Count; ++index)
            {
                this.RecipeItems[index].get_gameObject().SetActive(false);
            }
            int index1 = this.mItemParamTree.Count - 1;

            DataSource.Bind <ItemParam>(((Component)this.SelectedItem).get_gameObject(), this.mItemParamTree[index1]);
            RecipeParam recipeParam = MonoSingleton <GameManager> .Instance.GetRecipeParam(this.mItemParamTree[index1].recipe);

            if (recipeParam == null)
            {
                return;
            }
            if (Object.op_Inequality((Object)this.ConfirmRecipeButton, (Object)null))
            {
                ((Component)this.ConfirmRecipeButton).get_gameObject().SetActive(true);
            }
            ((Component)this.RecipeParent).get_gameObject().SetActive(true);
            for (int index2 = 0; index2 < recipeParam.items.Length; ++index2)
            {
                if (index2 >= this.RecipeItems.Count)
                {
                    ((Component)this.RecipeListItemTemplate).get_gameObject().SetActive(index2 > 0);
                    ((Component)this.RecipeListLine).get_gameObject().SetActive(index2 > 0);
                    ListItemEvents listItemEvents = (ListItemEvents)Object.Instantiate <ListItemEvents>((M0)this.RecipeListItemTemplate);
                    ((Component)listItemEvents).get_transform().SetParent((Transform)this.RecipeListParent, false);
                    this.RecipeItems.Add(((Component)listItemEvents).get_gameObject());
                    ((Component)this.RecipeListLine).get_gameObject().SetActive(false);
                    ((Component)this.RecipeListItemTemplate).get_gameObject().SetActive(false);
                }
                ListItemEvents component = (ListItemEvents)this.RecipeItems[index2].GetComponent <ListItemEvents>();
                if (Object.op_Inequality((Object)component, (Object)null))
                {
                    component.OnSelect = new ListItemEvents.ListItemEvent(this.OnRecipeItemSelect);
                }
                this.RecipeItems[index2].get_gameObject().SetActive(true);
                RecipeItem          recipeItem = recipeParam.items[index2];
                RecipeItemParameter data       = new RecipeItemParameter();
                data.Item = MonoSingleton <GameManager> .Instance.GetItemParam(recipeItem.iname);

                data.RecipeItem = recipeItem;
                data.Amount     = MonoSingleton <GameManager> .Instance.Player.GetItemAmount(data.Item.iname);

                data.RequiredAmount = recipeItem.num;
                DataSource.Bind <RecipeItemParameter>(this.RecipeItems[index2].get_gameObject(), data);
            }
            int cost = 0;
            Dictionary <string, int> consumes = (Dictionary <string, int>)null;
            bool is_ikkatsu = false;

            if (!MonoSingleton <GameManager> .GetInstanceDirect().Player.CheckEnableCreateItem(this.mItemParamTree[index1], ref is_ikkatsu, ref cost, ref consumes))
            {
                return;
            }
            if (is_ikkatsu)
            {
                if (!Object.op_Inequality((Object)this.CreateButtonAll, (Object)null))
                {
                    return;
                }
                ((Component)this.CreateButtonAll).get_gameObject().SetActive(true);
            }
            else
            {
                if (!Object.op_Inequality((Object)this.CreateButton, (Object)null))
                {
                    return;
                }
                ((Component)this.CreateButton).get_gameObject().SetActive(true);
            }
        }
Exemplo n.º 3
0
        public void Refresh()
        {
            if (UnityEngine.Object.op_Equality((UnityEngine.Object) this.ItemSlotTemplate, (UnityEngine.Object)null) || this.ShowUnusedSlots && UnityEngine.Object.op_Equality((UnityEngine.Object) this.UnusedSlotTemplate, (UnityEngine.Object)null))
            {
                return;
            }
            this.mCurrentUnit = this.Unit == null ? MonoSingleton <GameManager> .Instance.Player.FindUnitDataByUniqueID((long)GlobalVars.SelectedUnitUniqueID) : this.Unit;

            if (this.mCurrentUnit == null)
            {
                return;
            }
            GameUtility.DestroyGameObjects(this.mItems);
            this.mItems.Clear();
            DataSource.Bind <UnitData>(((Component)this).get_gameObject(), this.mCurrentUnit);
            GameParameter.UpdateAll(((Component)this).get_gameObject());
            string      key           = (string)null;
            bool        flag          = this.mCurrentUnit.CheckUnitRarityUp();
            RecipeParam currentRecipe = this.GetCurrentRecipe(this.mCurrentUnit);

            DataSource.Bind <RecipeParam>(((Component)this).get_gameObject(), currentRecipe);
            if (key == null && currentRecipe != null && currentRecipe.cost > MonoSingleton <GameManager> .Instance.Player.Gold)
            {
                key  = "sys.GOLD_NOT_ENOUGH";
                flag = false;
            }
            if (key == null && this.mCurrentUnit.Lv < this.mCurrentUnit.GetRarityLevelCap(this.mCurrentUnit.Rarity))
            {
                key  = "sys.LEVEL_NOT_ENOUGH";
                flag = false;
            }
            if (currentRecipe != null)
            {
                for (int index = 0; index < currentRecipe.items.Length; ++index)
                {
                    RecipeItem recipeItem = currentRecipe.items[index];
                    if (recipeItem == null || string.IsNullOrEmpty(recipeItem.iname))
                    {
                        if (this.ShowUnusedSlots)
                        {
                            GameObject gameObject = (GameObject)UnityEngine.Object.Instantiate <GameObject>((M0)this.UnusedSlotTemplate);
                            gameObject.get_transform().SetParent((Transform)this.ListParent, false);
                            this.mItems.Add(gameObject);
                            gameObject.SetActive(true);
                        }
                    }
                    else
                    {
                        ListItemEvents listItemEvents = (ListItemEvents)UnityEngine.Object.Instantiate <ListItemEvents>((M0)this.ItemSlotTemplate);
                        ((Component)listItemEvents).get_transform().SetParent((Transform)this.ListParent, false);
                        this.mItems.Add(((Component)listItemEvents).get_gameObject());
                        listItemEvents.OnSelect = new ListItemEvents.ListItemEvent(this.OnItemSelect);
                        ((Component)listItemEvents).get_gameObject().SetActive(true);
                        ItemParam itemParam = MonoSingleton <GameManager> .Instance.GetItemParam(recipeItem.iname);

                        JobEvolutionRecipe data = new JobEvolutionRecipe();
                        data.Item       = itemParam;
                        data.RecipeItem = recipeItem;
                        data.Amount     = MonoSingleton <GameManager> .Instance.Player.GetItemAmount(recipeItem.iname);

                        data.RequiredAmount = recipeItem.num;
                        if (data.Amount < data.RequiredAmount)
                        {
                            flag = false;
                            if (key == null)
                            {
                                key = "sys.ITEM_NOT_ENOUGH";
                            }
                        }
                        DataSource.Bind <JobEvolutionRecipe>(((Component)listItemEvents).get_gameObject(), data);
                    }
                }
            }
            if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.HelpText, (UnityEngine.Object)null))
            {
                ((Component)this.HelpText).get_gameObject().SetActive(key != null);
                if (key != null)
                {
                    this.HelpText.set_text(LocalizedText.Get(key));
                }
            }
            if (!UnityEngine.Object.op_Inequality((UnityEngine.Object) this.EvolveButton, (UnityEngine.Object)null))
            {
                return;
            }
            ((Selectable)this.EvolveButton).set_interactable(flag);
        }
Exemplo n.º 4
0
        public void Refresh2()
        {
            if (UnityEngine.Object.op_Equality((UnityEngine.Object) this.ItemSlotTemplate, (UnityEngine.Object)null))
            {
                DebugUtility.LogWarning("UnitEvolutionWindow.cs => Refresh2():ItemSlotTemplate is Null or Empty!");
            }
            else if (UnityEngine.Object.op_Equality((UnityEngine.Object) this.ItemSlotRoot, (UnityEngine.Object)null))
            {
                DebugUtility.LogWarning("UnitEvolutionWindow.cs => Refresh2():ItemSlotRoot is Null or Empty!");
            }
            else if (UnityEngine.Object.op_Equality((UnityEngine.Object) this.ItemSlotBox, (UnityEngine.Object)null))
            {
                DebugUtility.LogWarning("UnitEvolutionWindow.cs => Refresh2():ItemSlotBox is Null or Empty!");
            }
            else if (UnityEngine.Object.op_Equality((UnityEngine.Object) this.SubPanel, (UnityEngine.Object)null))
            {
                DebugUtility.LogWarning("UnitEvolutionWindow.cs => Refresh2():SubPanel is Null References!");
            }
            else
            {
                this.SubPanel.SetActive(false);
                if (UnityEngine.Object.op_Equality((UnityEngine.Object) this.MainPanelCloseBtn, (UnityEngine.Object)null))
                {
                    DebugUtility.LogWarning("UnitEvolutionWindow.cs => Refresh2():MainPanelCloseBtn is Null References!");
                }
                else
                {
                    ((Component)this.MainPanelCloseBtn).get_gameObject().SetActive(true);
                    GameManager instanceDirect = MonoSingleton <GameManager> .GetInstanceDirect();

                    if (UnityEngine.Object.op_Equality((UnityEngine.Object)instanceDirect, (UnityEngine.Object)null))
                    {
                        return;
                    }
                    UnitData unitData = this.Unit == null?instanceDirect.Player.FindUnitDataByUniqueID((long)GlobalVars.SelectedUnitUniqueID) : this.Unit;

                    if (unitData == null)
                    {
                        return;
                    }
                    this.mCurrentUnit = unitData;
                    GameUtility.DestroyGameObjects(this.mItems);
                    this.mItems.Clear();
                    GameUtility.DestroyGameObjects(this.mBoxs);
                    this.mBoxs.Clear();
                    DataSource.Bind <UnitData>(((Component)this).get_gameObject(), unitData);
                    GameParameter.UpdateAll(((Component)this).get_gameObject());
                    string      key           = (string)null;
                    bool        flag          = unitData.CheckUnitRarityUp();
                    RecipeParam currentRecipe = this.GetCurrentRecipe(unitData);
                    DataSource.Bind <RecipeParam>(((Component)this).get_gameObject(), currentRecipe);
                    if (string.IsNullOrEmpty(key) && currentRecipe != null && currentRecipe.cost > instanceDirect.Player.Gold)
                    {
                        key  = "sys.GOLD_NOT_ENOUGH";
                        flag = false;
                    }
                    if (string.IsNullOrEmpty(key) && unitData.Lv < unitData.GetRarityLevelCap(unitData.Rarity))
                    {
                        key  = "sys.LEVEL_NOT_ENOUGH";
                        flag = false;
                    }
                    if (currentRecipe == null)
                    {
                        return;
                    }
                    if (currentRecipe.items == null || currentRecipe.items.Length <= 0)
                    {
                        DebugUtility.LogWarning("UnitEvolutionWindow.cs => Refresh2():recipe_param.items is Null or Count 0!");
                    }
                    else
                    {
                        int             length    = currentRecipe.items.Length;
                        GridLayoutGroup component = (GridLayoutGroup)this.ItemSlotBox.GetComponent <GridLayoutGroup>();
                        if (UnityEngine.Object.op_Equality((UnityEngine.Object)component, (UnityEngine.Object)null))
                        {
                            DebugUtility.LogWarning("UnitEvolutionWindow.cs => Refresh2():gridlayout is Not Component [GridLayoutGroup]!");
                        }
                        else
                        {
                            GameObject gameObject1 = (GameObject)UnityEngine.Object.Instantiate <GameObject>((M0)this.ItemSlotBox);
                            gameObject1.get_transform().SetParent(this.ItemSlotRoot.get_transform(), false);
                            gameObject1.SetActive(true);
                            this.mBoxs.Add(gameObject1);
                            if (length > component.get_constraintCount())
                            {
                                GameObject gameObject2 = (GameObject)UnityEngine.Object.Instantiate <GameObject>((M0)this.ItemSlotBox);
                                gameObject2.get_transform().SetParent(this.ItemSlotRoot.get_transform(), false);
                                gameObject2.SetActive(true);
                                this.mBoxs.Add(gameObject2);
                            }
                            for (int index1 = 0; index1 < length; ++index1)
                            {
                                RecipeItem recipeItem = currentRecipe.items[index1];
                                if (recipeItem != null && !string.IsNullOrEmpty(recipeItem.iname))
                                {
                                    int index2 = 0;
                                    if (length > component.get_constraintCount())
                                    {
                                        if (length % 2 == 0)
                                        {
                                            if (index1 >= component.get_constraintCount() - 1)
                                            {
                                                index2 = 1;
                                            }
                                        }
                                        else if (index1 >= component.get_constraintCount())
                                        {
                                            index2 = 1;
                                        }
                                    }
                                    ListItemEvents listItemEvents = (ListItemEvents)UnityEngine.Object.Instantiate <ListItemEvents>((M0)this.ItemSlotTemplate);
                                    ((Component)listItemEvents).get_transform().SetParent(this.mBoxs[index2].get_transform(), false);
                                    this.mItems.Add(((Component)listItemEvents).get_gameObject());
                                    listItemEvents.OnSelect = new ListItemEvents.ListItemEvent(this.OnItemSelect2);
                                    ((Component)listItemEvents).get_gameObject().SetActive(true);
                                    ItemParam itemParam = instanceDirect.GetItemParam(recipeItem.iname);
                                    if (itemParam == null)
                                    {
                                        DebugUtility.LogWarning("UnitEvolutionWindow.cs => Refresh2():item_param is Null References!");
                                        return;
                                    }
                                    DataSource.Bind <ItemParam>(((Component)listItemEvents).get_gameObject(), itemParam);
                                    JobEvolutionRecipe data = new JobEvolutionRecipe();
                                    data.Item           = itemParam;
                                    data.RecipeItem     = recipeItem;
                                    data.Amount         = instanceDirect.Player.GetItemAmount(recipeItem.iname);
                                    data.RequiredAmount = recipeItem.num;
                                    if (data.Amount < data.RequiredAmount)
                                    {
                                        flag = false;
                                        if (key == null)
                                        {
                                            key = "sys.ITEM_NOT_ENOUGH";
                                        }
                                    }
                                    DataSource.Bind <JobEvolutionRecipe>(((Component)listItemEvents).get_gameObject(), data);
                                }
                            }
                            if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.HelpText, (UnityEngine.Object)null))
                            {
                                ((Component)this.HelpText).get_gameObject().SetActive(!string.IsNullOrEmpty(key));
                                if (!string.IsNullOrEmpty(key))
                                {
                                    this.HelpText.set_text(LocalizedText.Get(key));
                                }
                            }
                            if (!UnityEngine.Object.op_Inequality((UnityEngine.Object) this.EvolveButton, (UnityEngine.Object)null))
                            {
                                return;
                            }
                            ((Selectable)this.EvolveButton).set_interactable(flag);
                        }
                    }
                }
            }
        }
Exemplo n.º 5
0
        private void RefreshRecipeItems()
        {
            if (UnityEngine.Object.op_Equality((UnityEngine.Object) this.RecipeParent, (UnityEngine.Object)null) || UnityEngine.Object.op_Equality((UnityEngine.Object) this.SelectedItem, (UnityEngine.Object)null))
            {
                return;
            }
            ((Component)this.RecipeParent).get_gameObject().SetActive(false);
            if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.CreateButton, (UnityEngine.Object)null))
            {
                ((Component)this.CreateButton).get_gameObject().SetActive(false);
            }
            if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.CreateButtonAll, (UnityEngine.Object)null))
            {
                ((Component)this.CreateButtonAll).get_gameObject().SetActive(false);
            }
            if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.ConfirmRecipeButton, (UnityEngine.Object)null))
            {
                ((Component)this.ConfirmRecipeButton).get_gameObject().SetActive(false);
            }
            if (UnityEngine.Object.op_Equality((UnityEngine.Object) this.RecipeListItemTemplate, (UnityEngine.Object)null) || UnityEngine.Object.op_Equality((UnityEngine.Object) this.RecipeListParent, (UnityEngine.Object)null) || UnityEngine.Object.op_Equality((UnityEngine.Object) this.RecipeListLine, (UnityEngine.Object)null))
            {
                return;
            }
            for (int index = 0; index < this.RecipeItems.Count; ++index)
            {
                ((Component)this.RecipeItems[index]).get_gameObject().SetActive(false);
            }
            int index1 = this.mItemParamTree.Count - 1;

            DataSource.Bind <ItemParam>(((Component)this.SelectedItem).get_gameObject(), this.mItemParamTree[index1]);
            RecipeParam recipeParam = MonoSingleton <GameManager> .Instance.GetRecipeParam(this.mItemParamTree[index1].recipe);

            if (recipeParam == null)
            {
                return;
            }
            if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.ConfirmRecipeButton, (UnityEngine.Object)null))
            {
                ((Component)this.ConfirmRecipeButton).get_gameObject().SetActive(true);
            }
            ((Component)this.RecipeParent).get_gameObject().SetActive(true);
            this.ActiveCommonEquipButton(this.IsCommonEquipUI((long)GlobalVars.SelectedUnitUniqueID, (int)GlobalVars.SelectedEquipmentSlot));
            for (int index2 = 0; index2 < recipeParam.items.Length; ++index2)
            {
                if (index2 >= this.RecipeItems.Count)
                {
                    ((Component)this.RecipeListItemTemplate).get_gameObject().SetActive(index2 > 0);
                    ((Component)this.RecipeListLine).get_gameObject().SetActive(index2 > 0);
                    ListItemEvents listItemEvents = (ListItemEvents)UnityEngine.Object.Instantiate <ListItemEvents>((M0)this.RecipeListItemTemplate);
                    ((Component)listItemEvents).get_transform().SetParent((Transform)this.RecipeListParent, false);
                    this.RecipeItems.Add((EquipRecipeItem)((Component)listItemEvents).get_gameObject().GetComponent <EquipRecipeItem>());
                    ((Component)this.RecipeListLine).get_gameObject().SetActive(false);
                    ((Component)this.RecipeListItemTemplate).get_gameObject().SetActive(false);
                }
                ListItemEvents component = (ListItemEvents)((Component)this.RecipeItems[index2]).GetComponent <ListItemEvents>();
                if (UnityEngine.Object.op_Inequality((UnityEngine.Object)component, (UnityEngine.Object)null))
                {
                    component.OnSelect = new ListItemEvents.ListItemEvent(this.OnRecipeItemSelect);
                }
                ((Component)this.RecipeItems[index2]).get_gameObject().SetActive(true);
                RecipeItem          recipeItem = recipeParam.items[index2];
                RecipeItemParameter data       = new RecipeItemParameter();
                data.Item = MonoSingleton <GameManager> .Instance.GetItemParam(recipeItem.iname);

                data.RecipeItem = recipeItem;
                data.Amount     = MonoSingleton <GameManager> .Instance.Player.GetItemAmount(data.Item.iname);

                data.RequiredAmount = recipeItem.num;
                DataSource.Bind <RecipeItemParameter>(((Component)this.RecipeItems[index2]).get_gameObject(), data);
            }
            int cost = 0;
            Dictionary <string, int> consumes = (Dictionary <string, int>)null;
            bool is_ikkatsu = false;

            this.mNeedEquipItemList = new NeedEquipItemList();
            bool flag1 = MonoSingleton <GameManager> .GetInstanceDirect().Player.CheckEnableCreateItem(this.mItemParamTree[index1], ref is_ikkatsu, ref cost, ref consumes, this.mNeedEquipItemList);

            List <RecipeTree> recipeTreeChildren = this.mNeedEquipItemList.GetCurrentRecipeTreeChildren();
            bool            flag2      = recipeTreeChildren != null && recipeTreeChildren.Count > 0;
            EquipRecipeItem component1 = (EquipRecipeItem)((Component)this.SelectedItem).GetComponent <EquipRecipeItem>();

            if (UnityEngine.Object.op_Inequality((UnityEngine.Object)component1, (UnityEngine.Object)null))
            {
                component1.SetIsCommonLine(this.mNeedEquipItemList.IsEnoughCommon());
            }
            for (int index2 = 0; index2 < this.RecipeItems.Count; ++index2)
            {
                // ISSUE: object of a compiler-generated type is created
                // ISSUE: variable of a compiler-generated type
                UnitEquipmentWindow.\u003CRefreshRecipeItems\u003Ec__AnonStorey391 itemsCAnonStorey391 = new UnitEquipmentWindow.\u003CRefreshRecipeItems\u003Ec__AnonStorey391();
                this.RecipeItems[index2].SetIsCommonLine(flag2 && !flag1 && this.mNeedEquipItemList.IsEnoughCommon());
                // ISSUE: reference to a compiler-generated field
                itemsCAnonStorey391.recipe = DataSource.FindDataOfClass <RecipeItemParameter>(((Component)this.RecipeItems[index2]).get_gameObject(), (RecipeItemParameter)null);
                // ISSUE: reference to a compiler-generated method
                RecipeTree recipeTree = !flag2 ? (RecipeTree)null : recipeTreeChildren.Find(new Predicate <RecipeTree>(itemsCAnonStorey391.\u003C\u003Em__452));
                bool       flag3      = this.mNeedEquipItemList.IsEnoughCommon();
                this.RecipeItems[index2].SetIsCommon(recipeTree != null && (recipeTree.IsCommon && flag3));
            }
            if (!flag1 && !this.mNeedEquipItemList.IsEnoughCommon())
            {
                return;
            }
            if (is_ikkatsu)
            {
                if (!UnityEngine.Object.op_Inequality((UnityEngine.Object) this.CreateButtonAll, (UnityEngine.Object)null))
                {
                    return;
                }
                ((Component)this.CreateButtonAll).get_gameObject().SetActive(true);
            }
            else
            {
                if (!UnityEngine.Object.op_Inequality((UnityEngine.Object) this.CreateButton, (UnityEngine.Object)null))
                {
                    return;
                }
                ((Component)this.CreateButton).get_gameObject().SetActive(true);
            }
        }