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

Public Member Functions

void HideMouseInfo ()
 
void SetDragImage (Image i, string text=null, UIText uiText=null)
 
void SetDragText (string text=null, string text2=null)
 

Public Attributes

ActionHint hint
 
Transform frame
 
UIHangIcon hangCorner
 
Image imageDrag
 
Image imageCover
 
CanvasGroup cgDrag
 
UIText textDrag
 
UIText textDrag2
 
UIText textMouseHintRight
 
UIText textMouseHintLeft
 
Vector3 imageDragFix
 
Vector3 imageDragFix2
 
Vector3 textMouseHintFix
 
Vector3 textMouseHintFixLeft
 
int marginImageDrag
 
Image imageRight
 
UIText textRight
 
UIText textLeft
 
UIText textMiddle
 
UIText textWheel
 
Transform transRight
 
Vector2 rightTextPos
 
Vector2 leftTextPos
 
Vector2 wheelTextPos
 
Vector2 wheelTextPos2
 
Vector3 transRightPos
 

Additional Inherited Members

- Static Public Member Functions inherited from EClass
static int rnd (int a)
 
static int curve (int a, int start, int step, int rate=75)
 
static int rndHalf (int a)
 
static float rndf (float a)
 
static int rndSqrt (int a)
 
static void Wait (float a, Card c)
 
static void Wait (float a, Point p)
 
static int Bigger (int a, int b)
 
static int Smaller (int a, int b)
 
- Static Public Attributes inherited from EClass
static Core core
 
- Properties inherited from EClass
static Game game [get]
 
static bool AdvMode [get]
 
static Player player [get]
 
static Chara pc [get]
 
static UI ui [get]
 
static Map _map [get]
 
static Zone _zone [get]
 
static FactionBranch Branch [get]
 
static FactionBranch BranchOrHomeBranch [get]
 
static Faction Home [get]
 
static Faction Wilds [get]
 
static Scene scene [get]
 
static BaseGameScreen screen [get]
 
static GameSetting setting [get]
 
static GameData gamedata [get]
 
static ColorProfile Colors [get]
 
static World world [get]
 
static SourceManager sources [get]
 
static SourceManager editorSources [get]
 
static SoundManager Sound [get]
 
static CoreDebug debug [get]
 

Detailed Description

Definition at line 6 of file HUD.cs.

Member Function Documentation

◆ HideMouseInfo()

void HUD.HideMouseInfo ( )
inline

Definition at line 60 of file HUD.cs.

61 {
62 transRight.SetActive(enable: false);
63 }
Transform transRight
Definition: HUD.cs:48

References transRight.

Referenced by UI.OnChangeLayer().

◆ SetDragImage()

void HUD.SetDragImage ( Image  i,
string  text = null,
UIText  uiText = null 
)
inline

Definition at line 65 of file HUD.cs.

66 {
67 if (i == null)
68 {
69 imageDrag.SetActive(enable: false);
71 return;
72 }
73 imageDrag.sprite = i.sprite;
74 imageDrag.SetNativeSize();
75 imageDrag.color = i.color;
76 RectTransform rectTransform = imageDrag.Rect();
77 RectTransform rectTransform2 = i.Rect();
78 rectTransform.sizeDelta = rectTransform2.sizeDelta;
79 rectTransform.localScale = rectTransform2.localScale;
80 rectTransform.pivot = rectTransform2.pivot;
81 if ((bool)uiText)
82 {
83 RectTransform rectTransform3 = textDrag2.rectTransform;
84 RectTransform rectTransform4 = uiText.rectTransform;
85 rectTransform3.pivot = rectTransform4.pivot;
86 rectTransform3.anchorMin = rectTransform4.anchorMin;
87 rectTransform3.anchorMax = rectTransform4.anchorMax;
88 textDrag2.size = uiText.size;
89 textDrag2.fontStyle = uiText.fontStyle;
90 imageDrag.transform.position = i.transform.position;
91 rectTransform3.position = rectTransform4.position;
92 }
93 imageDrag.transform.position = EInput.mpos + (EClass.game.UseGrid ? imageDragFix2 : imageDragFix2);
94 SetDragText(text);
96 imageDrag.SetActive(enable: true);
97 }
Image imageDrag
Definition: HUD.cs:14
int marginImageDrag
Definition: HUD.cs:36
UIText textDrag2
Definition: HUD.cs:22
void SetDragText(string text=null, string text2=null)
Definition: HUD.cs:99
Vector3 imageDragFix2
Definition: HUD.cs:30
int size
Definition: UIText.cs:19
Definition: Util.cs:10
static void ClampToScreen(RectTransform rect, int margin=0)
Definition: Util.cs:110

References imageDrag, imageDragFix2, marginImageDrag, SetDragText(), UIText.size, textDrag2, and Util.

Referenced by UI.EndDrag().

◆ SetDragText()

void HUD.SetDragText ( string  text = null,
string  text2 = null 
)
inline

Definition at line 99 of file HUD.cs.

100 {
101 if (text != null && text != textDrag.text)
102 {
103 textDrag.text = text.lang();
104 }
105 textDrag.transform.parent.SetActive(!text.IsEmpty());
106 if (text2 != null && text2 != textDrag2.text)
107 {
108 textDrag2.text = text2.lang();
109 }
110 textDrag2.SetActive(!text2.IsEmpty());
111 }
UIText textDrag
Definition: HUD.cs:20
string lang
Definition: UIText.cs:9

References UIText.lang, textDrag, and textDrag2.

Referenced by SetDragImage().

Member Data Documentation

◆ cgDrag

CanvasGroup HUD.cgDrag

Definition at line 18 of file HUD.cs.

◆ frame

Transform HUD.frame

Definition at line 10 of file HUD.cs.

◆ hangCorner

UIHangIcon HUD.hangCorner

Definition at line 12 of file HUD.cs.

Referenced by UI.OnActivateZone().

◆ hint

ActionHint HUD.hint

Definition at line 8 of file HUD.cs.

Referenced by UI.OnChangeLayer(), AM_Dig.OnSelectEnd(), and AM_Dig.OnSelectStart().

◆ imageCover

Image HUD.imageCover

Definition at line 16 of file HUD.cs.

Referenced by UI.HideCover(), and UI.ShowCover().

◆ imageDrag

Image HUD.imageDrag

Definition at line 14 of file HUD.cs.

Referenced by UI.OnUpdate(), and SetDragImage().

◆ imageDragFix

Vector3 HUD.imageDragFix

Definition at line 28 of file HUD.cs.

◆ imageDragFix2

Vector3 HUD.imageDragFix2

Definition at line 30 of file HUD.cs.

Referenced by UI.OnUpdate(), and SetDragImage().

◆ imageRight

Image HUD.imageRight

Definition at line 38 of file HUD.cs.

◆ leftTextPos

Vector2 HUD.leftTextPos

Definition at line 52 of file HUD.cs.

◆ marginImageDrag

int HUD.marginImageDrag

Definition at line 36 of file HUD.cs.

Referenced by UI.OnUpdate(), and SetDragImage().

◆ rightTextPos

Vector2 HUD.rightTextPos

Definition at line 50 of file HUD.cs.

◆ textDrag

UIText HUD.textDrag

Definition at line 20 of file HUD.cs.

Referenced by SetDragText().

◆ textDrag2

UIText HUD.textDrag2

Definition at line 22 of file HUD.cs.

Referenced by SetDragImage(), and SetDragText().

◆ textLeft

UIText HUD.textLeft

Definition at line 42 of file HUD.cs.

◆ textMiddle

UIText HUD.textMiddle

Definition at line 44 of file HUD.cs.

◆ textMouseHintFix

Vector3 HUD.textMouseHintFix

Definition at line 32 of file HUD.cs.

Referenced by UI.ShowMouseHint().

◆ textMouseHintFixLeft

Vector3 HUD.textMouseHintFixLeft

Definition at line 34 of file HUD.cs.

Referenced by UI.ShowMouseHint().

◆ textMouseHintLeft

UIText HUD.textMouseHintLeft

Definition at line 26 of file HUD.cs.

Referenced by UI.HideMouseHint(), and UI.ShowMouseHint().

◆ textMouseHintRight

UIText HUD.textMouseHintRight

Definition at line 24 of file HUD.cs.

Referenced by UI.HideMouseHint(), and UI.ShowMouseHint().

◆ textRight

UIText HUD.textRight

Definition at line 40 of file HUD.cs.

◆ textWheel

UIText HUD.textWheel

Definition at line 46 of file HUD.cs.

◆ transRight

Transform HUD.transRight

Definition at line 48 of file HUD.cs.

Referenced by HideMouseInfo().

◆ transRightPos

Vector3 HUD.transRightPos

Definition at line 58 of file HUD.cs.

◆ wheelTextPos

Vector2 HUD.wheelTextPos

Definition at line 54 of file HUD.cs.

◆ wheelTextPos2

Vector2 HUD.wheelTextPos2

Definition at line 56 of file HUD.cs.


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