コード例 #1
0
ファイル: ShopSellWindow.cs プロジェクト: zunaalabaya/TAC-BOT
 private void OnSort()
 {
     this.sortType = (ShopSellWindow.SortTypes)((int)(this.sortType + 1) % Enum.GetNames(typeof(ShopSellWindow.SortTypes)).Length);
     this.Refresh();
 }
コード例 #2
0
ファイル: ShopSellWindow.cs プロジェクト: zunaalabaya/TAC-BOT
        protected override void Start()
        {
            base.Start();
            if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.ItemTemplate, (UnityEngine.Object)null))
            {
                this.ItemTemplate.get_transform().SetSiblingIndex(0);
                this.ItemTemplate.SetActive(false);
            }
            if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.ToggleShowAll, (UnityEngine.Object)null))
            {
                // ISSUE: method pointer
                ((UnityEvent <bool>) this.ToggleShowAll.onValueChanged).AddListener(new UnityAction <bool>((object)this, __methodptr(\u003CStart\u003Em__408)));
            }
            if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.ToggleShowUsed, (UnityEngine.Object)null))
            {
                // ISSUE: method pointer
                ((UnityEvent <bool>) this.ToggleShowUsed.onValueChanged).AddListener(new UnityAction <bool>((object)this, __methodptr(\u003CStart\u003Em__409)));
            }
            if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.ToggleShowEquip, (UnityEngine.Object)null))
            {
                // ISSUE: method pointer
                ((UnityEvent <bool>) this.ToggleShowEquip.onValueChanged).AddListener(new UnityAction <bool>((object)this, __methodptr(\u003CStart\u003Em__40A)));
            }
            if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.ToggleShowUnitPierce, (UnityEngine.Object)null))
            {
                // ISSUE: method pointer
                ((UnityEvent <bool>) this.ToggleShowUnitPierce.onValueChanged).AddListener(new UnityAction <bool>((object)this, __methodptr(\u003CStart\u003Em__40B)));
            }
            if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.ToggleShowItemPierce, (UnityEngine.Object)null))
            {
                // ISSUE: method pointer
                ((UnityEvent <bool>) this.ToggleShowItemPierce.onValueChanged).AddListener(new UnityAction <bool>((object)this, __methodptr(\u003CStart\u003Em__40C)));
            }
            if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.ToggleShowMaterial, (UnityEngine.Object)null))
            {
                // ISSUE: method pointer
                ((UnityEvent <bool>) this.ToggleShowMaterial.onValueChanged).AddListener(new UnityAction <bool>((object)this, __methodptr(\u003CStart\u003Em__40D)));
            }
            if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.BtnSort, (UnityEngine.Object)null))
            {
                // ISSUE: method pointer
                ((UnityEvent)this.BtnSort.get_onClick()).AddListener(new UnityAction((object)this, __methodptr(OnSort)));
            }
            if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.BtnCleared, (UnityEngine.Object)null))
            {
                // ISSUE: method pointer
                ((UnityEvent)this.BtnCleared.get_onClick()).AddListener(new UnityAction((object)this, __methodptr(OnCleared)));
            }
            if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.BtnSell, (UnityEngine.Object)null))
            {
                // ISSUE: method pointer
                ((UnityEvent)this.BtnSell.get_onClick()).AddListener(new UnityAction((object)this, __methodptr(OnSell)));
            }
            this.mPageSize = this.CellCount;
            List <ItemData> currentItem = this.getCurrentItem();

            this.mSellItemList         = new List <SellItem>();
            this.mSellItemListSelected = new List <SellItem>(10);
            this.mSellItemGameObjects  = new List <GameObject>(currentItem.Count);
            this.firstSetupDisplayItem();
            this.sortType    = ShopSellWindow.SortTypes.Index;
            this.mFilterType = ShopSellWindow.FilterTypes.All;
            ((Component)this.ItemLayoutParent).get_transform().set_position(new Vector3((float)(Screen.get_width() / 2), (float)((Component)this.ItemLayoutParent).get_transform().get_position().y, (float)((Component)this.ItemLayoutParent).get_transform().get_position().z));
        }