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

Public Member Functions

void Refresh (float current, float max)
 
void Refresh (float progress)
 

Public Attributes

Image image
 
Text textInfo
 
bool autoHide
 

Detailed Description

Definition at line 4 of file UIBar.cs.

Member Function Documentation

◆ Refresh() [1/2]

void UIBar.Refresh ( float  current,
float  max 
)
inline

Definition at line 12 of file UIBar.cs.

13 {
14 Refresh(current / max);
15 }
list. Refresh()

References Refresh().

Referenced by WindowChara.AddNeeds().

◆ Refresh() [2/2]

void UIBar.Refresh ( float  progress)
inline

Definition at line 17 of file UIBar.cs.

18 {
19 image.Rect().SetAnchor(0f, 0f, Mathf.Clamp(progress + 0.1f, 0.1f, 1f), 1f);
20 if (autoHide)
21 {
22 if (progress >= 1f && base.gameObject.activeSelf)
23 {
24 base.gameObject.SetActive(value: false);
25 }
26 else if (progress < 1f && !base.gameObject.activeSelf)
27 {
28 base.gameObject.SetActive(value: true);
29 }
30 }
31 }
bool autoHide
Definition: UIBar.cs:10
Image image
Definition: UIBar.cs:6

References autoHide, and image.

Member Data Documentation

◆ autoHide

bool UIBar.autoHide

Definition at line 10 of file UIBar.cs.

Referenced by Refresh().

◆ image

Image UIBar.image

Definition at line 6 of file UIBar.cs.

Referenced by Refresh().

◆ textInfo

Text UIBar.textInfo

Definition at line 8 of file UIBar.cs.


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