Elin Decompiled Documentation EA 23.102 Nightly
|
Public Member Functions | |
void | OnPointerEnter (PointerEventData data) |
void | OnPointerExit (PointerEventData data) |
void | Show (UIItem i) |
void | Show (UIButton b) |
void | Show (Vector2 pos) |
void | Show () |
void | Hide () |
void | ClearItems () |
void | AddSeparator (int index=0) |
void | AddButton (Func< string > funcText, UnityAction action=null) |
UIButton | AddButton (string idLang="", Action action=null, bool hideAfter=true) |
UIContextMenuItem | AddToggle (string idLang="", bool isOn=false, UnityAction< bool > action=null) |
UIContextMenuItem | AddSlider (string text, Func< float, string > textFunc, float value, Action< float > action, float min=0f, float max=1f, bool isInt=false, bool hideOther=true, bool useInput=false) |
UIContextMenuItem | AddSlider (string id, string text, Func< float, string > textFunc, float value, Action< float > action, float min=0f, float max=1f, bool isInt=false, bool hideOther=true, bool useInput=false) |
UIContextMenuItem | AddSlider (UIContextMenuItem item, string text, Func< float, string > textFunc, float value, Action< float > action, float min=0f, float max=1f, bool isInt=false, bool hideOther=true, bool useInput=false) |
GridLayoutGroup | AddGridLayout () |
GridLayoutGroup | AddGridLayout (string id) |
T | AddGameObject< T > (T c) |
T | AddGameObject< T > (string id) |
UIContextMenu | AddOrGetChild (string idLang="Child") |
UIContextMenu | AddChild (string idLang, TextAnchor anchor) |
UIContextMenu | AddChild (string idLang="Child") |
UIContextMenu | SetHighlightTarget (UIItem i) |
UIContextMenu | SetHighlightTarget (UIButton t) |
Public Attributes | |
UIContextMenuItem | defaultButton |
UIContextMenuPopper | defaultPopper |
UIContextMenuItem | defaultToggle |
UIContextMenuItem | defaultSlider |
GridLayoutGroup | defaultGridLayout |
Transform | logo |
CanvasGroup | cg |
GameObject[] | separators |
Action | onDestroy |
Action | onUpdate |
UIContextMenuPopper | popper |
bool | destroyOnHide |
bool | wasCanceled |
Material | matBlur |
bool | system |
bool | alwaysPopLeft |
Image | bg |
SoundData | soundPop |
Vector2 | margin |
Vector2 | fixPos |
UIButton | highlightTarget |
bool | hideOnMouseLeave |
VerticalLayoutGroup | layoutGroup |
RectTransform | _rect |
bool | isPointerOver |
int | depth |
UIContextMenu | parent |
float | timeSinceOpen |
float | timeSincePointerLeft |
float | updatesSinceOpen |
bool | isDestroyed |
Static Public Attributes | |
static UIContextMenu | Current |
static float | timeSinceClosed |
static bool | closeOnMouseLeave |
Properties | |
bool | isChild [get] |
UIContextMenu | Root [get] |
Private Member Functions | |
void | Awake () |
void | Update () |
void | LateUpdate () |
void | PositionMenu () |
Private Attributes | |
Vector2 | showPos |
Definition at line 8 of file UIContextMenu.cs.
|
inline |
Definition at line 273 of file UIContextMenu.cs.
References Button, defaultButton, item, and layoutGroup.
Referenced by BaseListPeople.OnClick(), ListPeopleExpedition.OnClick(), LayerAbility.OnInit(), LayerMod.OnInit(), AM_EditArea.OnProcessTiles(), AM_MoveInstalled.OnProcessTiles(), WidgetHotbar.OnSetContextMenu(), WidgetMainText.OnSetContextMenu(), WidgetRoster.OnSetContextMenu(), WidgetSideScreen.OnSetContextMenu(), WidgetTracker.OnSetContextMenu(), HotAction.OnShowContextMenu(), HotItemEQSet.OnShowContextMenu(), HotItemLayout.OnShowContextMenu(), HotItemWidgetSet.OnShowContextMenu(), LayerSkinDeco.OnUpdateInput(), ItemCulture.Refresh(), UIInventory.RefreshMenu(), Widget.SetBaseContextMenu(), Widget.SetGridContextMenu(), WidgetHotbar.SetShortcutMenu(), HotItemContext.Show(), InvOwner.ShowContextMenu(), Thing.ShowSplitMenu(), Thing.ShowSplitMenu2(), TraitBed.TrySetAct(), and LayerTextureViewer.Update().
|
inline |
Definition at line 292 of file UIContextMenu.cs.
References defaultButton, Lang.Get(), Hide(), layoutGroup, UIContextMenuPopper.parent, and popper.
|
inline |
Definition at line 496 of file UIContextMenu.cs.
References AddChild().
Referenced by AddChild(), AddOrGetChild(), LayerAbility.OnInit(), BaseWidgetNotice.OnSetContextMenu(), WidgetBottomBar.OnSetContextMenu(), WidgetCurrentTool.OnSetContextMenu(), WidgetDate.OnSetContextMenu(), WidgetEquip.OnSetContextMenu(), WidgetFeed.OnSetContextMenu(), WidgetHotbar.OnSetContextMenu(), WidgetHP.OnSetContextMenu(), WidgetInspector.OnSetContextMenu(), WidgetMainText.OnSetContextMenu(), WidgetMenuPanel.OnSetContextMenu(), WidgetMinimap.OnSetContextMenu(), WidgetRoster.OnSetContextMenu(), WidgetSideMenu.OnSetContextMenu(), WidgetSideScreen.OnSetContextMenu(), WidgetStatsBar.OnSetContextMenu(), WidgetSticky.OnSetContextMenu(), WidgetUnityChan.OnSetContextMenu(), LayerSkinDeco.OnUpdateInput(), UIInventory.RefreshMenu(), Widget.SetBaseContextMenu(), WidgetHotbar.SetShortcutMenu(), HotItemContext.Show(), and LayerCraftFloat.ShowContextMenu().
|
inline |
Definition at line 503 of file UIContextMenu.cs.
References alwaysPopLeft, UIContextMenuItem.button, ClearItems(), UIContextMenuPopper.CreateMenu(), defaultPopper, Lang.Get(), layoutGroup, and UIContextMenuPopper.menu.
|
inline |
T | : | Component |
Definition at line 479 of file UIContextMenu.cs.
References layoutGroup, and Util.
|
inline |
T | : | Component |
Definition at line 473 of file UIContextMenu.cs.
References layoutGroup.
|
inline |
Definition at line 461 of file UIContextMenu.cs.
References defaultGridLayout, and layoutGroup.
Referenced by UIInventory.RefreshMenu(), UIInventory.ShowDistribution(), and TraitMapBoard.TrySetAct().
|
inline |
Definition at line 468 of file UIContextMenu.cs.
References layoutGroup, and Util.
|
inline |
Definition at line 484 of file UIContextMenu.cs.
References AddChild(), UIContextMenuPopper.id, and UIContextMenuPopper.menu.
Referenced by Widget.SetBaseContextMenu().
|
inline |
Definition at line 268 of file UIContextMenu.cs.
References layoutGroup, and separators.
Referenced by HotItemContext.Show().
|
inline |
Definition at line 335 of file UIContextMenu.cs.
References AddSlider(), item, and Util.
|
inline |
Definition at line 329 of file UIContextMenu.cs.
References AddSlider(), defaultSlider, and item.
Referenced by ActPlan._Update(), AddSlider(), LayerHoard.OnClickConfig(), LayerAbility.OnInit(), BaseWidgetNotice.OnSetContextMenu(), WidgetBottomBar.OnSetContextMenu(), WidgetCurrentTool.OnSetContextMenu(), WidgetFeed.OnSetContextMenu(), WidgetHotbar.OnSetContextMenu(), WidgetHP.OnSetContextMenu(), WidgetInspector.OnSetContextMenu(), WidgetMainText.OnSetContextMenu(), WidgetMenuPanel.OnSetContextMenu(), WidgetMinimap.OnSetContextMenu(), WidgetRoster.OnSetContextMenu(), WidgetSideMenu.OnSetContextMenu(), WidgetSideScreen.OnSetContextMenu(), WidgetSticky.OnSetContextMenu(), LayerSkinDeco.OnUpdateInput(), LayerCollectible.Refresh(), UIInventory.RefreshMenu(), Widget.SetBaseContextMenu(), Widget.SetGridContextMenu(), HotItemContext.Show(), Thing.ShowSplitMenu(), Thing.ShowSplitMenu2(), TraitEffect.TrySetAct(), TraitFigure.TrySetAct(), TraitMapBoard.TrySetAct(), and TraitPaintBoard.TrySetAct().
|
inline |
Definition at line 341 of file UIContextMenu.cs.
References cg, UiInputField.Clear(), Current, Hide(), isPointerOver, item, layoutGroup, Root, and Util.
|
inline |
Definition at line 316 of file UIContextMenu.cs.
References defaultToggle, layoutGroup, and UIContextMenuItem.toggle.
Referenced by LayerHoard.OnClickConfig(), LayerAbility.OnInit(), WidgetBottomBar.OnSetContextMenu(), WidgetDate.OnSetContextMenu(), WidgetEquip.OnSetContextMenu(), WidgetHotbar.OnSetContextMenu(), WidgetHP.OnSetContextMenu(), WidgetInspector.OnSetContextMenu(), WidgetMainText.OnSetContextMenu(), WidgetMascot.OnSetContextMenu(), WidgetMinimap.OnSetContextMenu(), WidgetNotice.OnSetContextMenu(), WidgetRoster.OnSetContextMenu(), WidgetSideScreen.OnSetContextMenu(), WidgetStatsBar.OnSetContextMenu(), WidgetSticky.OnSetContextMenu(), WidgetTracker.OnSetContextMenu(), WidgetUnityChan.OnSetContextMenu(), HotItemContext.OnShowContextMenu(), LayerSkinDeco.OnUpdateInput(), LayerCollectible.Refresh(), UIInventory.RefreshMenu(), Widget.SetBaseContextMenu(), HotItemContext.Show(), and UIInventory.ShowDistribution().
|
inlineprivate |
Definition at line 103 of file UIContextMenu.cs.
References _rect, and layoutGroup.
|
inline |
|
inline |
Definition at line 226 of file UIContextMenu.cs.
References UIContextMenuManager.autoClose, BaseCore.ConsumeInput(), destroyOnHide, EInput.DisableIME(), UIButton.DoNormalTransition(), BaseCore.eventSystem, highlightTarget, BaseCore.Instance, UIContextMenuManager.Instance, isDestroyed, InputModuleEX.IsPointerOver(), isPointerOver, onDestroy, and UIButton.TryShowTip().
Referenced by AddButton(), AddSlider(), UIContextMenuManager.Create(), UIContextMenuPopper.Depop(), Scene.OnUpdate(), LayerSkinDeco.OnUpdateInput(), Widget.SetBaseContextMenu(), LayerCraftFloat.ShowContextMenu(), and Update().
|
inlineprivate |
Definition at line 157 of file UIContextMenu.cs.
References UIButton.DoHighlightTransition(), and highlightTarget.
|
inline |
Definition at line 165 of file UIContextMenu.cs.
References isPointerOver.
|
inline |
Definition at line 170 of file UIContextMenu.cs.
References isPointerOver.
|
inlineprivate |
Definition at line 517 of file UIContextMenu.cs.
References _rect, margin, and showPos.
Referenced by Show().
|
inline |
Definition at line 536 of file UIContextMenu.cs.
References highlightTarget.
|
inline |
Definition at line 531 of file UIContextMenu.cs.
References UIItem.button1, and SetHighlightTarget().
Referenced by SetHighlightTarget(), and Show().
|
inline |
Definition at line 192 of file UIContextMenu.cs.
References Current, fixPos, hideOnMouseLeave, TooltipManager.HideTooltips(), TooltipManager.Instance, isChild, PositionMenu(), showPos, soundPop, EInput.uiMousePosition, and wasCanceled.
Referenced by Show().
|
inline |
Definition at line 180 of file UIContextMenu.cs.
References SetHighlightTarget(), and Show().
|
inline |
Definition at line 175 of file UIContextMenu.cs.
References UIItem.button1, and Show().
Referenced by ActPlan._Update(), BaseListPeople.OnClick(), ListPeopleExpedition.OnClick(), LayerHoard.OnClickConfig(), WidgetHotbar.OnClickEmptyItem(), LayerAbility.OnInit(), LayerMod.OnInit(), AM_EditArea.OnProcessTiles(), AM_MoveInstalled.OnProcessTiles(), AM_Select.OnUpdateInput(), LayerSkinDeco.OnUpdateInput(), UIContextMenuPopper.Pop(), ItemCulture.Refresh(), LayerCollectible.Refresh(), Widget.ShowContextMenu(), InvOwner.ShowContextMenu(), LayerCraftFloat.ShowContextMenu(), Thing.ShowSplitMenu(), Thing.ShowSplitMenu2(), TraitEffect.TrySetAct(), TraitFigure.TrySetAct(), TraitMapBoard.TrySetAct(), TraitPaintBoard.TrySetAct(), and LayerTextureViewer.Update().
|
inline |
|
inlineprivate |
Definition at line 110 of file UIContextMenu.cs.
References Current, UIButton.DoHighlightTransition(), Hide(), hideOnMouseLeave, highlightTarget, isChild, isPointerOver, UIContextMenuPopper.isPointerOver, onUpdate, popper, timeSinceOpen, timeSincePointerLeft, updatesSinceOpen, and wasCanceled.
RectTransform UIContextMenu._rect |
Definition at line 66 of file UIContextMenu.cs.
Referenced by Awake(), PositionMenu(), and UIContextMenuPopper.PositionMenu().
bool UIContextMenu.alwaysPopLeft |
Definition at line 46 of file UIContextMenu.cs.
Referenced by AddChild(), and UIContextMenuPopper.PositionMenu().
Image UIContextMenu.bg |
Definition at line 48 of file UIContextMenu.cs.
CanvasGroup UIContextMenu.cg |
Definition at line 28 of file UIContextMenu.cs.
Referenced by AddSlider().
|
static |
Definition at line 14 of file UIContextMenu.cs.
|
static |
Definition at line 10 of file UIContextMenu.cs.
Referenced by AddSlider(), UIMagicChest.Init(), UIMagicChest.LateUpdate(), Scene.OnUpdate(), UIContextMenuPopper.Pop(), UIMagicChest.RefreshCats(), Show(), TooltipManager.ShowTooltip(), Update(), and UIContextMenuPopper.Update().
UIContextMenuItem UIContextMenu.defaultButton |
Definition at line 16 of file UIContextMenu.cs.
Referenced by AddButton().
GridLayoutGroup UIContextMenu.defaultGridLayout |
Definition at line 24 of file UIContextMenu.cs.
Referenced by AddGridLayout().
UIContextMenuPopper UIContextMenu.defaultPopper |
Definition at line 18 of file UIContextMenu.cs.
Referenced by AddChild().
UIContextMenuItem UIContextMenu.defaultSlider |
Definition at line 22 of file UIContextMenu.cs.
Referenced by AddSlider().
UIContextMenuItem UIContextMenu.defaultToggle |
Definition at line 20 of file UIContextMenu.cs.
Referenced by AddToggle().
int UIContextMenu.depth |
Definition at line 72 of file UIContextMenu.cs.
bool UIContextMenu.destroyOnHide |
Definition at line 38 of file UIContextMenu.cs.
Referenced by Hide().
Vector2 UIContextMenu.fixPos |
Definition at line 54 of file UIContextMenu.cs.
Referenced by Show().
bool UIContextMenu.hideOnMouseLeave |
Definition at line 58 of file UIContextMenu.cs.
Referenced by UIContextMenuPopper.Pop(), Show(), Update(), and UIContextMenuPopper.Update().
UIButton UIContextMenu.highlightTarget |
Definition at line 56 of file UIContextMenu.cs.
Referenced by Hide(), LateUpdate(), SetHighlightTarget(), and Update().
bool UIContextMenu.isDestroyed |
Definition at line 87 of file UIContextMenu.cs.
Referenced by Hide().
bool UIContextMenu.isPointerOver |
Definition at line 69 of file UIContextMenu.cs.
Referenced by AddSlider(), Hide(), OnPointerEnter(), OnPointerExit(), Update(), and UIContextMenuPopper.Update().
VerticalLayoutGroup UIContextMenu.layoutGroup |
Definition at line 63 of file UIContextMenu.cs.
Referenced by AddButton(), AddChild(), AddGameObject< T >(), AddGridLayout(), AddSeparator(), AddSlider(), AddToggle(), Awake(), ClearItems(), and UIInventory.RefreshMenu().
Transform UIContextMenu.logo |
Definition at line 26 of file UIContextMenu.cs.
Referenced by UIContextMenuManager.Create().
Vector2 UIContextMenu.margin |
Definition at line 52 of file UIContextMenu.cs.
Referenced by PositionMenu().
Material UIContextMenu.matBlur |
Definition at line 42 of file UIContextMenu.cs.
Referenced by UIContextMenuPopper.CreateMenu().
Action UIContextMenu.onDestroy |
Definition at line 32 of file UIContextMenu.cs.
Referenced by Hide().
Action UIContextMenu.onUpdate |
Definition at line 34 of file UIContextMenu.cs.
Referenced by Update().
UIContextMenu UIContextMenu.parent |
Definition at line 75 of file UIContextMenu.cs.
UIContextMenuPopper UIContextMenu.popper |
Definition at line 36 of file UIContextMenu.cs.
Referenced by AddButton(), and Update().
GameObject [] UIContextMenu.separators |
Definition at line 30 of file UIContextMenu.cs.
Referenced by AddSeparator().
|
private |
Definition at line 60 of file UIContextMenu.cs.
Referenced by PositionMenu(), and Show().
SoundData UIContextMenu.soundPop |
Definition at line 50 of file UIContextMenu.cs.
Referenced by Show().
bool UIContextMenu.system |
Definition at line 44 of file UIContextMenu.cs.
Referenced by UIContextMenuPopper.CreateMenu().
|
static |
Definition at line 12 of file UIContextMenu.cs.
Referenced by UIButton.OnHover().
float UIContextMenu.timeSinceOpen |
Definition at line 78 of file UIContextMenu.cs.
Referenced by Update(), and UIContextMenuPopper.Update().
float UIContextMenu.timeSincePointerLeft |
Definition at line 81 of file UIContextMenu.cs.
Referenced by Update().
float UIContextMenu.updatesSinceOpen |
Definition at line 84 of file UIContextMenu.cs.
Referenced by Update().
bool UIContextMenu.wasCanceled |
Definition at line 40 of file UIContextMenu.cs.
Referenced by Show(), Thing.ShowSplitMenu(), and Update().
|
get |
Definition at line 89 of file UIContextMenu.cs.
|
get |
Definition at line 91 of file UIContextMenu.cs.
Referenced by AddSlider().