Elin Decompiled Documentation EA 23.102 Nightly
|
Classes | |
class | Item |
Public Member Functions | |
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 () |
Static Public Member Functions | |
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 | |
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 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 |
Protected Member Functions | |
override void | Awake () |
override void | OnEnable () |
override void | DoStateTransition (SelectionState state, bool instant) |
Properties | |
List< Graphic > | Graphics [get] |
virtual bool | CanDragLeftButton [get] |
Private Member Functions | |
void | ColorTween (Color targetColor, bool instant) |
Private Attributes | |
List< Graphic > | m_graphics |
Tween | tween |
SelectionState | lastState |
Static Private Attributes | |
static bool | waiting |
Definition at line 9 of file UIButton.cs.
|
inline |
Definition at line 493 of file UIButton.cs.
Referenced by OnPointerDown().
|
inline |
Definition at line 521 of file UIButton.cs.
|
inlinevirtual |
Implements IUISkin.
Definition at line 743 of file UIButton.cs.
References Color, SkinAsset_Button.color, SkinAsset_Button.colorHighlight, SkinAsset_Button.spriteHighlight, SkinAsset_Button.spriteNormal, and SkinAsset_Button.transition.
Referenced by Awake().
|
inlineprotected |
Definition at line 221 of file UIButton.cs.
References ApplySkin(), icon, and originalIconScale.
|
inlinevirtual |
Reimplemented in ButtonAbility, and ButtonGrid.
Definition at line 212 of file UIButton.cs.
Referenced by ActionMode.UpdateInput().
|
inlineprivate |
Definition at line 637 of file UIButton.cs.
|
inline |
Definition at line 526 of file UIButton.cs.
Referenced by LayerList.LateUpdate(), UIContextMenu.LateUpdate(), OnEnable(), LayerList.OnInit(), UIList.Refresh(), UIDynamicList.RefreshHighlight(), UIList.Select(), LayerList.SetHighlightTarget(), TryHihlight(), LayerList.Update(), UIContextMenu.Update(), and UIDynamicList.UpdateRow().
|
inline |
Definition at line 531 of file UIButton.cs.
Referenced by UIContextMenu.Hide(), UIDynamicList.RefreshHighlight(), UISelectableGroup.SetButton(), WidgetHotbar.SetVisible(), and UIDynamicList.UpdateRow().
|
inlineprotected |
Definition at line 536 of file UIButton.cs.
References Color.
|
inline |
Definition at line 648 of file UIButton.cs.
|
inline |
Definition at line 666 of file UIButton.cs.
|
inline |
Definition at line 675 of file UIButton.cs.
|
inline |
Definition at line 657 of file UIButton.cs.
|
inline |
Definition at line 695 of file UIButton.cs.
|
inlineprotected |
Definition at line 234 of file UIButton.cs.
References DoHighlightTransition(), icon, imageCheck, isChecked, scaleIcon, and selected.
|
inlinevirtual |
Reimplemented in ButtonHotItem.
Definition at line 312 of file UIButton.cs.
References buttonPos, item, lastHovered, UIButton.Item.OnHover(), and UIContextMenu.timeSinceClosed.
|
inlinevirtual |
Reimplemented in ButtonAbility, and ButtonGrid.
Definition at line 217 of file UIButton.cs.
Referenced by ActionMode.UpdateInput().
|
inline |
Definition at line 446 of file UIButton.cs.
References currentPressedButton, BaseCore.Instance, instantClick, onPressed, EInput.skipFrame, BaseCore.WaitForEndOfFrame(), and waiting.
|
inline |
Definition at line 395 of file UIButton.cs.
References _OnPress(), animeClick, animeTarget, currentPressedButton, BaseCore.Instance, instantClick, EInput.IsConsumed, OnPointerDown(), OnPress(), onRightClick, Anime.Play(), EInput.rightMouse, EInput.skipFrame, BaseCore.WaitForEndOfFrame(), waiting, and ButtonState.wasConsumed.
Referenced by OnPointerDown().
|
inline |
Definition at line 478 of file UIButton.cs.
|
inline |
Definition at line 488 of file UIButton.cs.
Referenced by ButtonAbility.OnDrag(), and ButtonGridDrag.OnDrag().
|
inline |
Definition at line 516 of file UIButton.cs.
Referenced by OnPointerDown().
|
inlinevirtual |
Reimplemented in ButtonHotItem.
Definition at line 269 of file UIButton.cs.
References UIButton.Item.AdjustImageSize, buttonPos, EInput.Consume(), UIButton.Item.GetSprite(), UIButton.Item.Hidden, icon, item, UIButton.Item.OnClick(), UIButton.Item.SetSubText(), UIButton.Item.SpriteScale, subText, UIButton.Item.TextTip, and UIButton.Item.Transition.
Referenced by SetItem().
|
inline |
Definition at line 332 of file UIButton.cs.
References imageCheck, and isChecked.
Referenced by AM_Copy.OnSetSubMenuButton(), AM_Deconstruct.OnSetSubMenuButton(), UISelectableGroup.Select(), SetToggle(), LayerResource.ShowThings(), and ToggleCheck().
|
inline |
Definition at line 732 of file UIButton.cs.
Referenced by LayerUploader.Update().
|
inline |
Definition at line 259 of file UIButton.cs.
References item, UIButton.Item.OnSetItem(), and RefreshItem().
Referenced by WidgetMinimap.OnActivate().
|
inline |
Definition at line 684 of file UIButton.cs.
|
inline |
Definition at line 341 of file UIButton.cs.
References isChecked, and SetCheck().
Referenced by UINote.AddToggle(), ActionHint.AddToggle(), LayerMod.OnInit(), LayerUploader.OnInit(), LayerWorldSetting.OnInit(), ContentConfigGame.OnInstantiate(), ContentConfigInput.OnInstantiate(), ContentConfigOther.OnInstantiate(), ContentConfigTest.OnInstantiate(), ContentCodex.OnSwitchContent(), ContentTactics.Refresh(), LayerWorldSetting.Refresh(), PartialMapMenu.RefreshOptions(), LayerCraft.RefreshRecipe(), LayerEditHouse.SetBoard(), UICharaMaker.SetChara(), SetToggleWithScore(), and WindowChara.ToggleFeatMode().
|
inline |
Definition at line 355 of file UIButton.cs.
References SetToggle(), and subText.
|
inline |
Definition at line 361 of file UIButton.cs.
References SetTooltip().
Referenced by WindowChara.AddStatus(), UICharaMaker.ListJob(), UICharaMaker.ListRace(), BuildMenu.OnActivate(), ListPeopleBed.OnInstantiate(), ButtonElement.Refresh(), ItemCulture.Refresh(), WindowCharaMini.Refresh(), WindowCharaMini.RefreshEquipment(), WindowChara.RefreshEquipment(), ContentHomeReport.RefreshInfo(), UIHomeInfo.RefreshInfo(), UIHomeInfo.RefreshReport(), ButtonAbility.SetAct(), GridItemCard.SetButton(), GridItemCardSource.SetButton(), GridItemRecipe.SetButton(), ButtonElement.SetGrid(), and SetTooltip().
|
inline |
Definition at line 366 of file UIButton.cs.
|
inline |
Definition at line 373 of file UIButton.cs.
Referenced by LayerWorldSetting.Refresh(), UIInventory.RefreshMenu(), and LayerDragGrid.SetInv().
|
inlinevirtual |
Definition at line 379 of file UIButton.cs.
References TooltipData.enable, TooltipManager.Instance, EInput.isShiftDown, TooltipManager.ShowTooltip(), tooltip, and waiting.
Referenced by DropdownGrid.TrySelect().
|
inline |
Definition at line 387 of file UIButton.cs.
References TooltipData.enable, TooltipManager.Instance, EInput.isShiftDown, TooltipManager.ShowTooltip(), and tooltip.
Referenced by UICharaMaker.ListJob(), and UICharaMaker.ListRace().
|
inline |
Definition at line 322 of file UIButton.cs.
References group, isChecked, and UISelectableGroup.Select().
Referenced by UISelectableGroup.SetGroup().
|
inline |
Definition at line 327 of file UIButton.cs.
References isChecked, and SetCheck().
|
inlinestatic |
Definition at line 768 of file UIButton.cs.
References DoHighlightTransition(), and InputModuleEX.UpdateEventData().
Referenced by UI.FreezeScreen(), UIDynamicList.List(), and DramaActor.Talk().
|
inlinestatic |
Definition at line 778 of file UIButton.cs.
Referenced by InvOwnerIdentify._OnProcess(), UIInventory.CheckDirty(), Layer.Delay(), UI.EndDrag(), UIContextMenu.Hide(), UIDynamicList.List(), UICharaMaker.ListJob(), UICharaMaker.ListRace(), LayerInfo.OnKill(), InvOwnerDraglet.OnProcess(), UIInventory.RefreshGrid(), ButtonGrid.SetCardGrid(), LayerList.SetList2< TValue >(), LayerList.SetListCheck< TValue >(), UIInventory.Update(), and CoreDebug.UpdateAlways().
|
inlinestatic |
T | : | UIButton |
Definition at line 783 of file UIButton.cs.
References TooltipManager.HideTooltips(), TooltipManager.Instance, and InputModuleEX.UpdateEventData().
|
inlinestatic |
Definition at line 704 of file UIButton.cs.
References animating, icon, originalIconScale, scaleIcon, and tween.
Referenced by Scene.OnUpdate().
|
static |
Definition at line 184 of file UIButton.cs.
Referenced by Core.LateUpdate().
bool UIButton.animating |
Definition at line 160 of file UIButton.cs.
Referenced by UpdateButtons().
Anime UIButton.animeClick |
Definition at line 136 of file UIButton.cs.
Referenced by OnPointerDown().
Anime UIButton.animeHold |
Definition at line 138 of file UIButton.cs.
Transform UIButton.animeTarget |
Definition at line 134 of file UIButton.cs.
Referenced by OnPointerDown().
|
static |
Definition at line 98 of file UIButton.cs.
Referenced by HotItemContext.OnClick(), OnHover(), and RefreshItem().
Definition at line 182 of file UIButton.cs.
Referenced by WidgetHotbar.GetSwapButton(), and WidgetHotbar.RefreshButtons().
ButtonType UIButton.buttonType |
Definition at line 140 of file UIButton.cs.
|
static |
Definition at line 90 of file UIButton.cs.
Referenced by UI.ShowMouseHint().
|
static |
Definition at line 92 of file UIButton.cs.
Referenced by OnPointerClick(), and OnPointerDown().
|
static |
Definition at line 82 of file UIButton.cs.
|
static |
Definition at line 96 of file UIButton.cs.
UISelectableGroup UIButton.group |
Definition at line 126 of file UIButton.cs.
Referenced by UIList.Select(), and Toggle().
UIButton UIButton.highlightTarget |
Definition at line 169 of file UIButton.cs.
Image UIButton.icon |
Definition at line 110 of file UIButton.cs.
Referenced by WindowMenu._AddButton(), WidgetCurrentTool._RefreshCurrentHotItem(), UICurrency.Add(), WidgetInspector.AddButton(), Awake(), ItemGeneral.DisableIcon(), DragItemCard.DragItemCard(), DragItem.GetDragImage(), OnEnable(), LayerQuickMenu.OnInit(), NotificationBuff.OnInstantiate(), ListPeopleBed.OnInstantiate(), InvOwnerDraglet.OnProcess(), NotificationBuff.OnRefresh(), LayerAbility.OnStartDrag(), WidgetHotbar.OnStartDrag(), ButtonElement.Refresh(), LayerInspect.Refresh(), LayerTravel.Refresh(), LayerWorldSetting.Refresh(), UIDistribution.Refresh(), UIInspector.Refresh(), UIPlaceHelper.Refresh(), BaseSticky.RefreshButton(), LayerDragGrid.RefreshCost(), WindowCharaMini.RefreshEquipment(), WindowChara.RefreshEquipment(), UIInventory.RefreshGrid(), ButtonHotItem.RefreshItem(), RefreshItem(), ContentCodex.RefreshList(), LayerCraft.RefreshProduct(), LayerCraft.RefreshTrackButton(), LayerAbility.SelectGroup(), ButtonAbility.SetAct(), GridItemCard.SetButton(), GridItemCardSource.SetButton(), GridItemRecipe.SetButton(), LayerCollectible.SetButton(), ButtonGeneral.SetCard(), ButtonRoster.SetChara(), ItemGeneral.SetChara(), ButtonElement.SetGrid(), LayerDragGrid.SetInv(), ItemGeneral.SetMainText(), ButtonResourceTrack.SetProp(), ItemPopulation.SetTopic(), WidgetHotbar.SetVisible(), LayerCraftFloat.ShowContextMenu(), LayerInteraction.ShowPage(), TraitMapBoard.TrySetAct(), and UpdateButtons().
Image UIButton.imageCheck |
Definition at line 112 of file UIButton.cs.
Referenced by OnEnable(), ContentPolicy.RefreshPolicyIcons(), LayerPolicy.RefreshPolicyIcons(), and SetCheck().
bool UIButton.instantClick = true |
Definition at line 124 of file UIButton.cs.
Referenced by OnPointerClick(), OnPointerDown(), and ButtonHotItem.RefreshItem().
bool UIButton.isChecked |
Definition at line 122 of file UIButton.cs.
Referenced by OnEnable(), SetCheck(), SetToggle(), Toggle(), and ToggleCheck().
Item UIButton.item |
Definition at line 172 of file UIButton.cs.
Referenced by WidgetHotbar._OnDirtyInventory(), WidgetHotbar.CheckAutoHide(), Portrait.ListPortraits(), WidgetHotbar.OnEndDrag(), OnHover(), WidgetHotbar.OnSetContextMenu(), ButtonHotItem.Refresh(), WidgetHotbar.RefreshHighlight(), ButtonHotItem.RefreshItem(), RefreshItem(), ButtonElement.SetGrid(), SetItem(), UIButtonLR.SetOptions< T >(), WidgetHotbar.SetVisible(), ButtonAbility.SpecialHoldAction(), and WidgetHotbar.ToggleVisible().
UIText UIButton.keyText |
Definition at line 108 of file UIButton.cs.
Referenced by ItemGeneral.DisableIcon(), Dialog.OnUpdateInput(), LayerList.OnUpdateInput(), and UIList.Refresh().
|
static |
Definition at line 86 of file UIButton.cs.
|
static |
Definition at line 94 of file UIButton.cs.
|
static |
Definition at line 88 of file UIButton.cs.
Referenced by OnHover().
|
private |
Definition at line 178 of file UIButton.cs.
|
static |
Definition at line 84 of file UIButton.cs.
|
private |
Definition at line 174 of file UIButton.cs.
UIText UIButton.mainText |
Definition at line 102 of file UIButton.cs.
Referenced by UICurrency.Add(), Window.AddBottomButton(), WidgetInspector.AddButton(), LayerFaith.AddReligion(), ActionHint.AddToggle(), Window.BuildTabs(), TraitCrafter.Craft(), DragItemCard.DragItemCard(), BuildMenu.Init(), LayerNewspaper.OnClickPage(), LayerMod.OnInit(), LayerWorldSetting.OnInit(), NotificationHome.OnRefresh(), ContentKeyItem.OnSwitchContent(), ContentQuest.OnSwitchContent(), LayerConfig.OnSwitchContent(), LayerQuestBoard.OnSwitchContent(), ButtonElement.Refresh(), ButtonRoster.Refresh(), LayerTravel.Refresh(), LayerWorldSetting.Refresh(), PartialMapMenu.Refresh(), UIInspector.Refresh(), WindowCharaMini.Refresh(), UIMagicChest.RefreshBottom(), BaseSticky.RefreshButton(), LayerEditPortrait.RefreshButtons(), LayerCraftFloat.RefreshDisassemble(), UIHomeInfo.RefreshInfo(), LayerLoadGame.RefreshInfo(), ButtonHotItem.RefreshItem(), ContentCodex.RefreshList(), LayerEditPortrait.RefreshList(), LayerLoadGame.RefreshList(), ContentPolicy.RefreshPolicyList(), LayerPolicy.RefreshPolicyList(), UIHomeInfo.RefreshReport(), ContentConfigOther.RefreshRewardCode(), WidgetSearch.RefreshWords(), UIButtonLR.SelectOption(), ButtonAbility.SetAct(), GridItemCardSource.SetButton(), GridItemRecipe.SetButton(), ButtonGeneral.SetCard(), ItemGeneral.SetChara(), ButtonElement.SetGrid(), ItemGeneral.SetMainText(), BaseSticky.SetText(), TerrainMenu.Show(), LayerInteraction.ShowPage(), and Thing.ShowSplitMenu2().
float UIButton.navigationFix |
Definition at line 120 of file UIButton.cs.
Action UIButton.onDoubleClick |
Definition at line 144 of file UIButton.cs.
Action<int> UIButton.onInputWheel |
Definition at line 148 of file UIButton.cs.
Referenced by Scene.OnUpdate().
|
static |
Definition at line 100 of file UIButton.cs.
Referenced by OnPointerClick().
Action UIButton.onRightClick |
Definition at line 146 of file UIButton.cs.
Referenced by OnPointerDown(), ButtonHotItem.RefreshItem(), ButtonAbility.SetAct(), ButtonResourceTrack.SetCat(), and ButtonResourceTrack.SetProp().
Vector3 UIButton.originalIconScale = Vector3.one |
Definition at line 166 of file UIButton.cs.
Referenced by Awake(), and UpdateButtons().
int UIButton.refInt |
Definition at line 154 of file UIButton.cs.
object UIButton.refObj |
Definition at line 151 of file UIButton.cs.
string UIButton.refStr |
Definition at line 157 of file UIButton.cs.
float UIButton.scaleIcon = 1f |
Definition at line 116 of file UIButton.cs.
Referenced by OnEnable(), and UpdateButtons().
bool UIButton.selected |
Definition at line 163 of file UIButton.cs.
Referenced by OnEnable(), UIDynamicList.RefreshHighlight(), and UIDynamicList.UpdateRow().
BaseSkinRoot UIButton.skinRoot |
Definition at line 142 of file UIButton.cs.
Referenced by UIText.ApplySkin(), NotificationCondition.OnRefresh(), and NotificationStats.OnRefresh().
float UIButton.slideX |
Definition at line 118 of file UIButton.cs.
SoundData UIButton.soundClick |
Definition at line 130 of file UIButton.cs.
Referenced by DramaEventTalk.Play().
SoundData UIButton.soundHighlight |
Definition at line 132 of file UIButton.cs.
UIText UIButton.subText |
Definition at line 104 of file UIButton.cs.
Referenced by WidgetMenuPanel.AddButton(), LayerWidget.OnInit(), ButtonElement.Refresh(), ButtonHotItem.Refresh(), ButtonResourceTrack.Refresh(), LayerTravel.Refresh(), LayerFactions.RefreshFactions(), ContentFaction.RefreshFactions(), ButtonHotItem.RefreshItem(), RefreshItem(), LayerLoadGame.RefreshList(), UIInventory.RefreshList(), ContentPolicy.RefreshPolicyIcons(), LayerPolicy.RefreshPolicyIcons(), ButtonElement.SetGrid(), ItemResearch.SetPlan(), ItemHomeResource.SetResource(), ItemGeneral.SetSubText(), and SetToggleWithScore().
UIText UIButton.subText2 |
Definition at line 106 of file UIButton.cs.
Referenced by WidgetCurrentTool.RebuildSlots(), LayerTravel.Refresh(), ContentCodex.RefreshList(), LayerLoadGame.RefreshList(), and ItemGeneral.SetSubText2().
Graphic [] UIButton.targetGraphics |
Definition at line 114 of file UIButton.cs.
TooltipData UIButton.tooltip |
Definition at line 128 of file UIButton.cs.
Referenced by ShowTooltip(), and ShowTooltipForced().
|
private |
Definition at line 176 of file UIButton.cs.
Referenced by UpdateButtons().
|
staticprivate |
Definition at line 180 of file UIButton.cs.
Referenced by OnPointerClick(), OnPointerDown(), and ShowTooltip().
|
get |
Definition at line 210 of file UIButton.cs.
Referenced by ButtonGridDrag.OnDrag().
|
getprotected |
Definition at line 186 of file UIButton.cs.