Elin Decompiled Documentation EA 23.102 Nightly
|
Public Member Functions | |
void | SetAct (Chara _chara, Element e) |
void | OnDrag (PointerEventData data) |
override void | OnPointerUp (PointerEventData eventData) |
void | Use () |
void | HoldAbility () |
bool | CanAutoUse (Act _act) |
bool | ShowMouseHintLeft () |
string | GetTextMouseHintLeft () |
bool | ShowMouseHintRight () |
string | GetTextMouseHintRight () |
override bool | CanMiddleClick () |
override void | OnMiddleClick (bool forceClick) |
void | ToggleFav () |
void | RefreshFavIcon () |
![]() | |
virtual bool | CanMiddleClick () |
virtual void | OnMiddleClick (bool forceClick) |
void | SetItem (Item i) |
virtual void | RefreshItem () |
virtual void | OnHover () |
void | Toggle () |
void | ToggleCheck () |
void | SetCheck (bool check) |
void | SetToggle (bool isOn, Action< bool > onToggle=null) |
void | SetToggleWithScore (bool isOn, Action< bool > onToggle, int? score) |
void | SetTooltip (Action< UITooltip > onShowTooltip=null, bool enable=true) |
void | SetTooltip (string id, Action< UITooltip > onShowTooltip=null, bool enable=true) |
void | SetTooltipLang (string lang=null) |
virtual void | ShowTooltip () |
void | ShowTooltipForced (bool ignoreWhenRightClick=true) |
override void | OnPointerDown (PointerEventData eventData) |
override void | OnPointerClick (PointerEventData eventData) |
override void | OnPointerUp (PointerEventData eventData) |
void | OnPointerUpOnDrag (PointerEventData eventData) |
void | _OnPress () |
void | OnPress () |
void | AddHighlight (Func< bool > killCondition) |
void | DoHighlightTransition (bool instant=false) |
void | DoNormalTransition (bool instant=true) |
override Selectable | FindSelectableOnDown () |
override Selectable | FindSelectableOnUp () |
override Selectable | FindSelectableOnLeft () |
override Selectable | FindSelectableOnRight () |
void | SetNavigation (UIButton up, UIButton down=null, UIButton left=null, UIButton right=null) |
override bool | IsActive () |
void | SetInteractableWithAlpha (bool enable) |
virtual void | ApplySkin () |
void | ApplySkin () |
bool | ShowMouseHintLeft () |
string | GetTextMouseHintLeft () |
bool | ShowMouseHintRight () |
string | GetTextMouseHintRight () |
Static Public Member Functions | |
static bool | TryUse (Act act, Card tg=null, Point pos=null, Card catalyst=null, bool first=true, bool mouse=true) |
static bool | SpecialHoldAction (Act act) |
![]() | |
static void | UpdateButtons () |
static void | TryHihlight () |
static void | TryShowTip (Transform root=null, bool highlight=true, bool ignoreWhenRightClick=true) |
static void | TryShowTip< T > (Transform root=null, bool highlight=true, bool ignoreWhenRightClick=true) |
Public Attributes | |
SourceElement.Row | source |
IDragParent | dragParent |
UIText | textStock |
Image | imageType |
Image | imageFav |
Transform | attach |
Transform | transFav |
Chara | chara |
Act | act |
bool | dragged |
![]() | |
UIText | mainText |
UIText | subText |
UIText | subText2 |
UIText | keyText |
Image | icon |
Image | imageCheck |
Graphic[] | targetGraphics |
float | scaleIcon = 1f |
float | slideX |
float | navigationFix |
bool | isChecked |
bool | instantClick = true |
UISelectableGroup | group |
TooltipData | tooltip |
SoundData | soundClick |
SoundData | soundHighlight |
Transform | animeTarget |
Anime | animeClick |
Anime | animeHold |
ButtonType | buttonType |
BaseSkinRoot | skinRoot |
Action | onDoubleClick |
Action | onRightClick |
Action< int > | onInputWheel |
object | refObj |
int | refInt |
string | refStr |
bool | animating |
bool | selected |
Vector3 | originalIconScale = Vector3.one |
UIButton | highlightTarget |
Item | item |
Static Public Attributes | |
static Act | hotkeyAct |
static float | hotkeyTimer |
static bool | usedMouseKey |
static bool | lockUse |
![]() | |
static bool | DoSlide |
static bool | locked |
static UIButton | lastButton |
static UIButton | lastHovered |
static UIButton | currentHighlight |
static UIButton | currentPressedButton |
static float | lastClicked |
static float | doubleClickTime = 0.4f |
static Vector2 | buttonPos |
static Action | onPressed |
static List< UIButton > | buttons = new List<UIButton>() |
static Action | actionTooltip |
Additional Inherited Members | |
![]() | |
override void | Awake () |
override void | OnEnable () |
override void | DoStateTransition (SelectionState state, bool instant) |
![]() | |
List< Graphic > | Graphics [get] |
virtual bool | CanDragLeftButton [get] |
Definition at line 6 of file ButtonAbility.cs.
|
inline |
Definition at line 250 of file ButtonAbility.cs.
References EClass._zone, TargetType.CanSelectSelf, Spatial.IsRegion, Act.LocalAct, and Act.TargetType.
Referenced by ShowMouseHintRight(), and Use().
|
inlinevirtual |
Reimplemented from UIButton.
Definition at line 283 of file ButtonAbility.cs.
References EClass.ui.
|
inline |
|
inline |
Implements IMouseHint.
Definition at line 278 of file ButtonAbility.cs.
|
inline |
Definition at line 244 of file ButtonAbility.cs.
References EClass.player, Player.SetCurrentHotItem(), and source.
Referenced by OnMiddleClick(), and Use().
|
inline |
Definition at line 80 of file ButtonAbility.cs.
References dragged, dragParent, IDragParent.OnDrag(), UIButton.OnPointerUpOnDrag(), and IDragParent.OnStartDrag().
|
inlinevirtual |
Reimplemented from UIButton.
Definition at line 288 of file ButtonAbility.cs.
References ButtonState.clicked, EInput.Consume(), HoldAbility(), EInput.middleMouse, ToggleFav(), and EClass.ui.
|
inline |
Definition at line 97 of file ButtonAbility.cs.
References dragged, dragParent, and IDragParent.OnEndDrag().
|
inline |
Definition at line 320 of file ButtonAbility.cs.
References Player.favAbility, imageFav, EClass.player, and source.
Referenced by SetAct(), and ToggleFav().
Definition at line 37 of file ButtonAbility.cs.
References act, Game.altAbility, chara, ACT.Create(), Debug, Card.elements, EClass.game, UIButton.icon, TargetType.IconType, imageType, UIButton.mainText, Element.Name, UITooltip.note, UIButton.onRightClick, RefreshFavIcon(), Act.SetImage(), UIText.SetText(), UIButton.SetTooltip(), source, Element.source, Act.TargetType, textStock, EClass.ui, Use(), Element.vPotential, and Element.WriteNote().
Referenced by LayerAbility.SelectGroup().
|
inline |
Implements IMouseHint.
Definition at line 263 of file ButtonAbility.cs.
|
inline |
Implements IMouseHint.
Definition at line 273 of file ButtonAbility.cs.
References CanAutoUse(), ACT.Create(), and source.
|
inlinestatic |
Definition at line 209 of file ButtonAbility.cs.
References act, Card.elements, ElementContainer.GetElement(), Element.id, UIButton.item, ThingContainer.List(), Chara.mana, EClass.pc, Card.pos, Msg.Say(), Element.source, Card.things, Chara.UseAbility(), and Stats.value.
Referenced by TryUse().
|
inline |
Definition at line 304 of file ButtonAbility.cs.
References Player.favAbility, LayerAbility.Instance, LayerAbility.list, EClass.player, UIDynamicList.Redraw(), RefreshFavIcon(), and source.
Referenced by OnMiddleClick().
|
inlinestatic |
Definition at line 129 of file ButtonAbility.cs.
References act, BaseCore.actionsNextFrame, ButtonState.Consume(), Point.Copy(), EClass.core, Core.delta, Player.EndTurn(), EInput.GetHotkey(), Act.HaveLongPressAction, hotkeyAct, hotkeyTimer, lockUse, EClass.pc, EClass.player, Card.pos, ButtonState.pressedLong, ButtonState.pressing, EInput.rightMouse, LayerInventory.SetDirty(), Element.source, SpecialHoldAction(), TryUse(), Chara.UseAbility(), ButtonState.usedKey, and usedMouseKey.
Referenced by TraitCatalyst.OnUse(), HotItemAct.TrySetAct(), TraitCatalyst.TrySetHeldAct(), TryUse(), and Use().
|
inline |
Definition at line 110 of file ButtonAbility.cs.
References act, Chara.ai, CanAutoUse(), Player.EndTurn(), Chara.HasNoGoal, HoldAbility(), AIAct.IsNoGoal, EClass.pc, EClass.player, and TryUse().
Referenced by SetAct().
Act ButtonAbility.act |
Definition at line 24 of file ButtonAbility.cs.
Referenced by SetAct(), SpecialHoldAction(), TryUse(), and Use().
Transform ButtonAbility.attach |
Definition at line 18 of file ButtonAbility.cs.
Referenced by LayerAbility.ClearHotElement().
Chara ButtonAbility.chara |
Definition at line 22 of file ButtonAbility.cs.
Referenced by SetAct().
bool ButtonAbility.dragged |
Definition at line 27 of file ButtonAbility.cs.
Referenced by OnDrag(), and OnPointerUp().
IDragParent ButtonAbility.dragParent |
Definition at line 10 of file ButtonAbility.cs.
Referenced by OnDrag(), and OnPointerUp().
|
static |
Definition at line 29 of file ButtonAbility.cs.
Referenced by TryUse().
|
static |
Definition at line 31 of file ButtonAbility.cs.
Referenced by TryUse().
Image ButtonAbility.imageFav |
Definition at line 16 of file ButtonAbility.cs.
Referenced by RefreshFavIcon().
Image ButtonAbility.imageType |
Definition at line 14 of file ButtonAbility.cs.
Referenced by SetAct().
|
static |
Definition at line 35 of file ButtonAbility.cs.
Referenced by TryUse().
SourceElement.Row ButtonAbility.source |
Definition at line 8 of file ButtonAbility.cs.
Referenced by HoldAbility(), LayerAbility.OnDrag(), LayerAbility.OnUpdateInput(), RefreshFavIcon(), SetAct(), ShowMouseHintRight(), ToggleFav(), and ActionMode.UpdateInput().
UIText ButtonAbility.textStock |
Definition at line 12 of file ButtonAbility.cs.
Referenced by SetAct().
Transform ButtonAbility.transFav |
Definition at line 20 of file ButtonAbility.cs.
|
static |
Definition at line 33 of file ButtonAbility.cs.
Referenced by TryUse().