Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
UIHeader.cs
Go to the documentation of this file.
1using UnityEngine;
2
3public class UIHeader : MonoBehaviour
4{
5 public string lang1;
6
7 public UIText text1;
8
9 public bool rebuildLayout;
10
11 private void Start()
12 {
13 if (!lang1.IsEmpty())
14 {
16 }
17 if (rebuildLayout)
18 {
19 text1.RebuildLayout();
20 this.RebuildLayout();
21 }
22 }
23
24 public void SetText(string s)
25 {
26 lang1 = null;
27 text1.SetText(s.lang().ToTitleCase());
28 text1.RebuildLayout();
29 this.RebuildLayout();
30 }
31}
bool rebuildLayout
Definition: UIHeader.cs:9
UIText text1
Definition: UIHeader.cs:7
void SetText(string s)
Definition: UIHeader.cs:24
void Start()
Definition: UIHeader.cs:11
string lang1
Definition: UIHeader.cs:5
Definition: UIText.cs:6
void SetText(string s)
Definition: UIText.cs:159
void SetLang(string idLang)
Definition: UIText.cs:240