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

Public Member Functions

void RefreshPosition ()
 
void SetText (string t="")
 

Public Attributes

UIText text
 
UIText textCost
 
Image imageRange
 
string willShow
 

Private Member Functions

void OnEnable ()
 
void LateUpdate ()
 

Detailed Description

Definition at line 4 of file UIMouseInfo.cs.

Member Function Documentation

◆ LateUpdate()

void UIMouseInfo.LateUpdate ( )
inlineprivate

Definition at line 20 of file UIMouseInfo.cs.

21 {
23 }
void RefreshPosition()
Definition: UIMouseInfo.cs:25

References RefreshPosition().

◆ OnEnable()

void UIMouseInfo.OnEnable ( )
inlineprivate

Definition at line 14 of file UIMouseInfo.cs.

15 {
16 textCost.SetActive(enable: false);
18 }
UIText textCost
Definition: UIMouseInfo.cs:8

References RefreshPosition(), and textCost.

◆ RefreshPosition()

void UIMouseInfo.RefreshPosition ( )
inline

Definition at line 25 of file UIMouseInfo.cs.

26 {
27 base.transform.position = Input.mousePosition;
29 {
30 if (willShow != null)
31 {
32 text.text = willShow;
33 willShow = null;
34 }
35 if (text.text.IsEmpty())
36 {
37 this.SetActive(enable: false);
38 }
39 }
40 }
static int ignoreCount
Definition: CursorSystem.cs:26
string willShow
Definition: UIMouseInfo.cs:12
UIText text
Definition: UIMouseInfo.cs:6

References CursorSystem.ignoreCount, text, and willShow.

Referenced by LateUpdate(), and OnEnable().

◆ SetText()

void UIMouseInfo.SetText ( string  t = "")
inline

Definition at line 42 of file UIMouseInfo.cs.

43 {
45 {
46 text.text = t;
47 willShow = null;
48 this.SetActive(!t.IsEmpty());
49 }
50 else
51 {
52 willShow = t;
53 }
54 }

References CursorSystem.ignoreCount, and willShow.

Member Data Documentation

◆ imageRange

Image UIMouseInfo.imageRange

Definition at line 10 of file UIMouseInfo.cs.

◆ text

UIText UIMouseInfo.text

Definition at line 6 of file UIMouseInfo.cs.

Referenced by RefreshPosition().

◆ textCost

UIText UIMouseInfo.textCost

Definition at line 8 of file UIMouseInfo.cs.

Referenced by OnEnable().

◆ willShow

string UIMouseInfo.willShow

Definition at line 12 of file UIMouseInfo.cs.

Referenced by RefreshPosition(), and SetText().


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