13 public virtual InvOwnerDraglet.ProcessType processType
23 public virtual bool ShowFuel
33 public virtual bool CanTargetAlly
43 public virtual string langWhat
53 public override bool AllowTransfer
63 public override bool AllowAutouse
73 public override bool AllowContext
82 public override bool AllowHold(
Thing t)
89 public override bool UseGuide
99 public override bool CopyOnTransfer
109 public override bool InvertSell
119 public override bool DenyImportant
138 public InvOwnerDraglet(
Card owner =
null,
Card container =
null, CurrencyType _currency = CurrencyType.Money) : base(owner, container, _currency, PriceType.Default)
143 public override void OnInit()
147 this.currency = CurrencyType.None;
149 if (!this.langWhat.IsEmpty())
151 Msg.Say(this.langWhat);
156 public override void OnClick(
ButtonGrid button)
158 if (button.card !=
null)
160 if (button.index == 0)
162 this.dragGrid.ClearButtons();
166 button.SetCard(
null,
ButtonGrid.Mode.Default,
null);
167 this.dragGrid.RefreshCurrentGrid();
172 EClass.pc.ai.Success(
null);
178 public override void OnRightClick(
ButtonGrid button)
180 this.OnClick(button);
184 public override int GetPrice(
Thing t, CurrencyType currency,
int num,
bool sell)
190 public override string GetTextDetail(
Thing t, CurrencyType currency,
int num,
bool sell)
192 int num2 = this.GetPrice(t, currency, num, sell);
193 return "invInteraction2".lang(num.ToString() ??
"",
this.langTransfer.lang(),
null,
null,
null) + ((num2 == 0) ?
"" :
"invInteraction3".lang(num2.ToString() ??
"",
EClass.sources.things.map[base.IDCurrency].GetName(),
null,
null,
null));
197 public sealed override void OnProcess(
Thing t)
199 if (!this.dragGrid.IsAllGridSet())
201 this.dragGrid.RefreshCurrentGrid();
202 t.PlaySoundDrop(
false);
206 UIButton.TryShowTip(
null,
true,
true);
210 EInput.haltInput =
true;
211 using (List<ButtonGrid>.Enumerator enumerator = this.dragGrid.buttons.GetEnumerator())
213 while (enumerator.MoveNext())
216 b.icon.rectTransform.DOScale(0f, 0.3f).SetEase(Ease.InBack).OnComplete(delegate
218 if (b.transform !=
null)
220 b.icon.rectTransform.localScale = Vector3.one;
221 b.SetCardGrid(
null, b.invOwner);
224 EInput.haltInput =
false;
237 this.dragGrid.Close();
240 if (!this.langWhat.IsEmpty())
242 Msg.Say(this.langWhat);
248 public virtual void _OnProcess(
Thing t)
253 public virtual void OnAfterRefuel()
258 public void RedrawButton()
260 this.dragGrid.RefreshCost();
261 this.dragGrid.RefreshCurrentGrid();
265 public override void BuildUICurrency(
UICurrency uiCurrency,
bool canReroll =
false)
267 base.BuildUICurrency(uiCurrency,
false);
268 uiCurrency.SetActive(this.price != 0);
272 public int count = -1;
275 public BlessedState state;
281 public enum ProcessType