Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
UIItem Class Reference
Inheritance diagram for UIItem:
ItemCulture ItemGeneral ItemResearch

Public Member Functions

void SetTopic (string lang1, string lang2)
 
void SetWidth (int w)
 
void Hyphenate ()
 

Public Attributes

UIText text1
 
UIText text2
 
UIText text3
 
UIText text4
 
Image image1
 
Image image2
 
UIButton button1
 
UIButton button2
 
UIButton button3
 
UIItem item
 
Toggle toggle
 
UIDropdown dd
 
object refObj
 

Detailed Description

Definition at line 4 of file UIItem.cs.

Member Function Documentation

◆ Hyphenate()

void UIItem.Hyphenate ( )
inline

Definition at line 45 of file UIItem.cs.

46 {
48 {
49 HyphenationJpn hyphenationJpn = text1.GetComponent<HyphenationJpn>() ?? text1.gameObject.AddComponent<HyphenationJpn>();
50 if ((bool)hyphenationJpn)
51 {
52 text1.hyphenation = hyphenationJpn;
53 hyphenationJpn.enabled = true;
54 text1.SetText(text1.text);
55 }
56 }
57 }
bool hyphenation
Definition: LangSetting.cs:38
Definition: Lang.cs:6
static LangSetting setting
Definition: Lang.cs:54
UIText text1
Definition: UIItem.cs:6
void SetText(string s)
Definition: UIText.cs:159

References LangSetting.hyphenation, UIText.SetText(), Lang.setting, and text1.

Referenced by UICharaMaker.ListJob(), UICharaMaker.ListRace(), UICharaMaker.Refresh(), UIFactionInfo.SetReligion(), and UIMapSelector.WriteNote().

◆ SetTopic()

void UIItem.SetTopic ( string  lang1,
string  lang2 
)
inline

Definition at line 32 of file UIItem.cs.

33 {
34 text1.SetText(lang1.lang());
35 text2.SetText(lang2.lang());
36 }
UIText text2
Definition: UIItem.cs:8

References UIText.SetText(), text1, and text2.

◆ SetWidth()

void UIItem.SetWidth ( int  w)
inline

Definition at line 38 of file UIItem.cs.

39 {
40 LayoutElement orCreate = this.GetOrCreate<LayoutElement>();
41 float preferredWidth = (orCreate.minWidth = w);
42 orCreate.preferredWidth = preferredWidth;
43 }

Referenced by SourceJob.Row.WriteNote().

Member Data Documentation

◆ button1

◆ button2

◆ button3

UIButton UIItem.button3

Definition at line 22 of file UIItem.cs.

Referenced by ContentQuest.OnSwitchContent().

◆ dd

UIDropdown UIItem.dd

Definition at line 28 of file UIItem.cs.

◆ image1

◆ image2

◆ item

UIItem UIItem.item

Definition at line 24 of file UIItem.cs.

Referenced by ItemCulture.Refresh().

◆ refObj

object UIItem.refObj

◆ text1

◆ text2

◆ text3

UIText UIItem.text3

Definition at line 10 of file UIItem.cs.

Referenced by Element._WriteNote().

◆ text4

UIText UIItem.text4

Definition at line 12 of file UIItem.cs.

◆ toggle

Toggle UIItem.toggle

Definition at line 26 of file UIItem.cs.


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