10 this.button = _button;
14 EClass.ui.hud.SetDragImage(this.button.icon,
null,
this.button.mainText);
20 public override UIButton Button
29 public override void OnStartDrag()
31 this.from.invOwner.OnStartDrag(this.from);
39 public override void OnEndDrag()
41 WidgetEquip.dragEquip =
null;
50 public override bool OnDrag(
bool execute,
bool cancel =
false)
53 bool flag = this.from.invOwner.OnDrag(this.from, dragInfo, execute, cancel);
54 if (flag &&
EClass.core.config.game.doubleClickToHold &&
EClass.ui.dragDuration < 0.35f && dragInfo.button ==
this.from.button &&
this.from.thing !=
null)
56 dragInfo.button.invOwner.TryHold(this.from.thing);
77 if (b && b.invOwner !=
null)
81 this.thing = b.card.Thing;
82 this.invX = this.thing.invX;
83 this.invY = this.thing.invY;
84 if (this.thing.isEquipped &&
this.thing.GetRootCard() ==
this.invOwner.owner)
86 this.equippedSlot = this.invOwner.owner.Chara.body.slots[this.thing.c_equippedSlot - 1];
93 this.invY = b.invOwner.destInvY;
100 public List<Thing> grid
104 return this.container.things.grid;
114 return this.button.invOwner;
120 public Card container
124 return this.invOwner.Container;
134 return this.button.GetComponentInParent<BaseList>();
140 public ContainerType ContainerType
144 return this.container.trait.ContainerType;