Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
InputModuleEX Class Reference
Inheritance diagram for InputModuleEX:

Static Public Member Functions

static void UpdateEventData ()
 
static PointerEventData GetPointerEventData (int pointerId=-1)
 
static List< GameObject > GetList ()
 
static bool IsPointerOverRoot (Component c)
 
static bool IsPointerOver (Component c)
 
static bool IsPointerChildOf (Component c)
 
static T GetComponentOf< T > ()
 
static T GetTopComponentOf< T > ()
 

Static Public Attributes

static PointerEventData eventData
 
static GameObject topGameObject
 
static List< GameObject > list
 
static InputModuleEX Instance
 

Protected Member Functions

override void Awake ()
 

Detailed Description

Definition at line 5 of file InputModuleEX.cs.

Member Function Documentation

◆ Awake()

override void InputModuleEX.Awake ( )
inlineprotected

Definition at line 97 of file InputModuleEX.cs.

98 {
99 base.Awake();
100 Instance = this;
102 }
static void UpdateEventData()
static InputModuleEX Instance

References Instance, and UpdateEventData().

◆ GetComponentOf< T >()

static T InputModuleEX.GetComponentOf< T > ( )
inlinestatic
Type Constraints
T :Component 

Definition at line 69 of file InputModuleEX.cs.

69 : Component
70 {
71 foreach (GameObject item in list)
72 {
73 if ((bool)item)
74 {
75 T component = item.GetComponent<T>();
76 if ((bool)component)
77 {
78 return component;
79 }
80 }
81 }
82 return null;
83 }
static List< GameObject > list

References item, and list.

◆ GetList()

static List< GameObject > InputModuleEX.GetList ( )
inlinestatic

Definition at line 27 of file InputModuleEX.cs.

28 {
29 return eventData.hovered;
30 }
static PointerEventData eventData
Definition: InputModuleEX.cs:7

References eventData.

Referenced by Window.CursorOverCaption().

◆ GetPointerEventData()

static PointerEventData InputModuleEX.GetPointerEventData ( int  pointerId = -1)
inlinestatic

Definition at line 22 of file InputModuleEX.cs.

23 {
24 return eventData;
25 }

References eventData.

Referenced by UI.CheckWindowOrder(), Layer.IsPointerOnLayer(), UI.RefreshActiveState(), and UICharaMaker.RefreshPortraitZoom().

◆ GetTopComponentOf< T >()

static T InputModuleEX.GetTopComponentOf< T > ( )
inlinestatic
Type Constraints
T :Component 

Definition at line 85 of file InputModuleEX.cs.

85 : Component
86 {
87 foreach (GameObject item in list)
88 {
89 if ((bool)item)
90 {
91 return item.GetComponent<T>();
92 }
93 }
94 return null;
95 }

References item, and list.

◆ IsPointerChildOf()

static bool InputModuleEX.IsPointerChildOf ( Component  c)
inlinestatic

Definition at line 57 of file InputModuleEX.cs.

58 {
59 foreach (GameObject item in list)
60 {
61 if ((bool)item && item.IsChildOf(c.gameObject))
62 {
63 return true;
64 }
65 }
66 return false;
67 }

References item, and list.

Referenced by Scene.OnUpdate(), and WidgetMemo.Update().

◆ IsPointerOver()

static bool InputModuleEX.IsPointerOver ( Component  c)
inlinestatic

Definition at line 44 of file InputModuleEX.cs.

45 {
46 Transform transform = c.transform;
47 foreach (GameObject item in list)
48 {
49 if ((bool)item && item.transform == transform)
50 {
51 return true;
52 }
53 }
54 return false;
55 }

References item, and list.

Referenced by WidgetHotbar.CheckAutoHide(), LayerRegisterHotbar.GetButton(), WidgetHotbar.GetSwapButton(), UIContextMenu.Hide(), LayerList.OnKill(), LayerQuickMenu.OnUpdateInput(), UI.ShowMouseHint(), TooltipManager.ShowTooltip(), LayerEditPCC.Update(), LayerTextureViewer.Update(), UIBook.Update(), Window.Update(), WidgetMascot.Update(), and Layer.UpdateInput().

◆ IsPointerOverRoot()

static bool InputModuleEX.IsPointerOverRoot ( Component  c)
inlinestatic

Definition at line 32 of file InputModuleEX.cs.

33 {
34 foreach (GameObject item in list)
35 {
36 if ((bool)item && item.IsChildOf(c.gameObject))
37 {
38 return true;
39 }
40 }
41 return false;
42 }

References item, and list.

Referenced by Layer.UpdateInput().

◆ UpdateEventData()

static void InputModuleEX.UpdateEventData ( )
inlinestatic

Definition at line 15 of file InputModuleEX.cs.

16 {
17 Instance.GetPointerData(-1, out eventData, create: true);
18 list = eventData.hovered;
19 topGameObject = ((list.Count == 0) ? null : list[list.Count - 1]);
20 }
static GameObject topGameObject
Definition: InputModuleEX.cs:9

References eventData, Instance, list, and topGameObject.

Referenced by Awake(), UIButton.TryHihlight(), UIButton.TryShowTip< T >(), and Core.Update().

Member Data Documentation

◆ eventData

PointerEventData InputModuleEX.eventData
static

Definition at line 7 of file InputModuleEX.cs.

Referenced by GetList(), GetPointerEventData(), and UpdateEventData().

◆ Instance

InputModuleEX InputModuleEX.Instance
static

Definition at line 13 of file InputModuleEX.cs.

Referenced by Awake(), and UpdateEventData().

◆ list

List<GameObject> InputModuleEX.list
static

◆ topGameObject

GameObject InputModuleEX.topGameObject
static

Definition at line 9 of file InputModuleEX.cs.

Referenced by UpdateEventData().


The documentation for this class was generated from the following file: