// Token: 0x06003345 RID: 13125 RVA: 0x0014D36F File Offset: 0x0014B76F private void onClickedItem(SleekItem item) { if (this.onSelectedItem != null) { this.onSelectedItem(this.page, 0, 0); } }
// Token: 0x06003346 RID: 13126 RVA: 0x0014D38F File Offset: 0x0014B78F private void onDraggedItem(SleekItem item) { if (this.onGrabbedItem != null) { this.onGrabbedItem(this.page, 0, 0, item); } }
// Token: 0x060032D6 RID: 13014 RVA: 0x00149988 File Offset: 0x00147D88 private void onDraggedItem(SleekItem item) { if (this.onGrabbedItem != null) { this.onGrabbedItem(this.page, (byte)(item.positionOffset_X / 50), (byte)(item.positionOffset_Y / 50), item); } }
// Token: 0x060032D5 RID: 13013 RVA: 0x00149956 File Offset: 0x00147D56 private void onClickedItem(SleekItem item) { if (this.onSelectedItem != null) { this.onSelectedItem(this.page, (byte)(item.positionOffset_X / 50), (byte)(item.positionOffset_Y / 50)); } }
private void onClickedButton(SleekItem item) { int num = base.search(item); if (num != -1 && this.onClickedJar != null) { this.onClickedJar(this, num); } }
// Token: 0x060032D3 RID: 13011 RVA: 0x00149864 File Offset: 0x00147C64 public void addItem(ItemJar jar) { SleekItem sleekItem = new SleekItem(jar); sleekItem.positionOffset_X = (int)(jar.x * 50); sleekItem.positionOffset_Y = (int)(jar.y * 50); sleekItem.onClickedItem = new ClickedItem(this.onClickedItem); sleekItem.onDraggedItem = new DraggedItem(this.onDraggedItem); base.add(sleekItem); this.items.Add(sleekItem); }
public SleekJars(float radius, List <InventorySearch> search) { base.init(); float num = 6.28318548f / (float)search.Count; for (int i = 0; i < search.Count; i++) { ItemJar jar = search[i].jar; ItemAsset itemAsset = (ItemAsset)Assets.find(EAssetType.ITEM, jar.item.id); if (itemAsset != null) { SleekItem sleekItem = new SleekItem(jar); sleekItem.positionOffset_X = (int)(Mathf.Cos(num * (float)i) * radius) - sleekItem.sizeOffset_X / 2; sleekItem.positionOffset_Y = (int)(Mathf.Sin(num * (float)i) * radius) - sleekItem.sizeOffset_Y / 2; sleekItem.positionScale_X = 0.5f; sleekItem.positionScale_Y = 0.5f; sleekItem.onClickedItem = new ClickedItem(this.onClickedButton); sleekItem.onDraggedItem = new DraggedItem(this.onClickedButton); base.add(sleekItem); } } }