3using UnityEngine.EventSystems;
48 imageType.sprite = iconType;
74 e._WriteNote(t.note, chara, act);
80 public void OnDrag(PointerEventData data)
82 if (
dragParent !=
null && data.button == PointerEventData.InputButton.Left)
106 base.OnPointerUp(eventData);
171 TryUse(
act, tg, pos, catalyst, first:
false, mouse);
177 EInput.rightMouse.down =
false;
178 EInput.rightMouse.consumed =
false;
179 EInput.rightMouse.pressing =
true;
182 EInput.rightMouse.usedKey =
true;
186 EInput.rightMouse.usedMouse =
true;
202 if (catalyst !=
null)
215 if (
id == 8230 ||
id == 8232)
221 if (!
item.IsIdentified)
227 if (
item.rarity <
Rarity.Mythical || act2.id != 8230)
237 Msg.
Say(
"identify_nothing");
280 return "actUse".lang();
285 return EClass.
ui.AllowInventoryInteractions;
294 EInput.middleMouse.pressedLongAction = delegate
296 if (
EClass.
ui.AllowInventoryInteractions)
static Act Create(int id)
virtual TargetType TargetType
virtual bool HaveLongPressAction
new void SetImage(Image image)
List< Action > actionsNextFrame
ElementContainerCard elements
bool UseAbility(string idAct, Card tc=null, Point pos=null, bool pt=false)
Element GetElement(string alias)
void WriteNote(UINote n, ElementContainer owner=null, Action< UINote > onWriteNote=null)
static LayerAbility Instance
static void SetDirty(Thing t)
static string Say(string idLang, string ref1, string ref2=null, string ref3=null, string ref4=null)
void EndTurn(bool consume=true)
HashSet< int > favAbility
void SetCurrentHotItem(HotItem item)
virtual bool CanSelectSelf
List< Thing > List(Func< Thing, bool > func, bool onlyAccessible=false)
void OnEndDrag(UIButton b, bool cancel=false)
void OnStartDrag(UIButton b)