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

Public Member Functions

virtual UIButton AddChoice (DramaChoice choice, string text, Action func=null, bool deactivateOnChoice=true)
 
void ClearChoice ()
 
virtual void SetText (string detail="", bool center=false)
 
void Deactivate ()
 

Public Attributes

Text textName
 
Text textBio
 
Text textAffinity
 
Text textNoInterest
 
Text textFav
 
Text textRank
 
GameObject transInterest
 
GameObject transAffinity
 
GameObject transFav
 
GameObject transRank
 
UIText textMain
 
HyphenationJpn hypen
 
Transform transChoices
 
GameObject iconNext
 
GameObject goAffinity
 
Portrait portrait
 
LayoutGroup layoutInterest
 
Transform moldInterest
 
Font fontRune
 
Glitch glitch
 

Private Member Functions

void Awake ()
 

Private Attributes

UIButton moldButton
 
bool warned
 

Additional Inherited Members

- Static Public Member Functions inherited from EMono
static int rnd (int a)
 
- Static Public Attributes inherited from EMono
static Core core
 
- Properties inherited from EMono
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 Scene scene [get]
 
static BaseGameScreen screen [get]
 
static GameSetting setting [get]
 
static GameData gamedata [get]
 
static ColorProfile Colors [get]
 
static World world [get]
 
static SoundManager Sound [get]
 
static SourceManager sources [get]
 
static SourceManager editorSources [get]
 
static CoreDebug debug [get]
 

Detailed Description

Definition at line 6 of file DialogDrama.cs.

Member Function Documentation

◆ AddChoice()

virtual UIButton DialogDrama.AddChoice ( DramaChoice  choice,
string  text,
Action  func = null,
bool  deactivateOnChoice = true 
)
inlinevirtual

Definition at line 58 of file DialogDrama.cs.

59 {
60 if (!transChoices.gameObject.activeSelf)
61 {
62 transChoices.gameObject.SetActive(value: true);
63 }
65 uIButton.mainText.text = text;
66 if (deactivateOnChoice)
67 {
68 uIButton.onClick.AddListener(Deactivate);
69 }
70 if (func != null)
71 {
72 uIButton.onClick.AddListener(delegate
73 {
74 func();
75 });
76 }
77 uIButton.RebuildLayout();
78 choice.button = uIButton;
79 return uIButton;
80 }
Transform transChoices
Definition: DialogDrama.cs:33
UIButton moldButton
Definition: DialogDrama.cs:35
void Deactivate()
Definition: DialogDrama.cs:105
Definition: Util.cs:10
static Transform Instantiate(string path, Component parent=null)
Definition: Util.cs:67

References Deactivate(), moldButton, transChoices, and Util.

Referenced by DramaActor.SetChoice().

◆ Awake()

void DialogDrama.Awake ( )
inlineprivate

Definition at line 53 of file DialogDrama.cs.

54 {
55 moldButton = transChoices.CreateMold<UIButton>();
56 }

References moldButton, and transChoices.

◆ ClearChoice()

void DialogDrama.ClearChoice ( )
inline

Definition at line 82 of file DialogDrama.cs.

83 {
84 transChoices.DestroyChildren();
85 transChoices.gameObject.SetActive(value: false);
86 }

References transChoices.

Referenced by DramaActor.Talk().

◆ Deactivate()

void DialogDrama.Deactivate ( )
inline

Definition at line 105 of file DialogDrama.cs.

106 {
107 }

Referenced by AddChoice().

◆ SetText()

virtual void DialogDrama.SetText ( string  detail = "",
bool  center = false 
)
inlinevirtual

Definition at line 88 of file DialogDrama.cs.

89 {
90 if ((bool)fontRune)
91 {
92 if (detail.StartsWith("#rune"))
93 {
94 detail = detail.Replace("#rune", "");
95 }
96 else
97 {
99 }
100 }
101 textMain.SetText(detail);
102 textMain.RebuildLayoutTo<LayerDrama>();
103 }
UIText textMain
Definition: DialogDrama.cs:29
Font fontRune
Definition: DialogDrama.cs:47
void ApplySkin()
Definition: UIText.cs:38
void SetText(string s)
Definition: UIText.cs:159

References UIText.ApplySkin(), fontRune, UIText.SetText(), and textMain.

Referenced by DramaActor.Talk().

Member Data Documentation

◆ fontRune

Font DialogDrama.fontRune

Definition at line 47 of file DialogDrama.cs.

Referenced by SetText().

◆ glitch

Glitch DialogDrama.glitch

Definition at line 49 of file DialogDrama.cs.

Referenced by DramaActor.Talk().

◆ goAffinity

GameObject DialogDrama.goAffinity

Definition at line 39 of file DialogDrama.cs.

Referenced by DramaActor.Talk().

◆ hypen

HyphenationJpn DialogDrama.hypen

Definition at line 31 of file DialogDrama.cs.

◆ iconNext

GameObject DialogDrama.iconNext

Definition at line 37 of file DialogDrama.cs.

Referenced by DramaActor.Talk().

◆ layoutInterest

LayoutGroup DialogDrama.layoutInterest

Definition at line 43 of file DialogDrama.cs.

Referenced by DramaActor.Talk().

◆ moldButton

UIButton DialogDrama.moldButton
private

Definition at line 35 of file DialogDrama.cs.

Referenced by AddChoice(), and Awake().

◆ moldInterest

Transform DialogDrama.moldInterest

Definition at line 45 of file DialogDrama.cs.

Referenced by DramaActor.Talk().

◆ portrait

Portrait DialogDrama.portrait

Definition at line 41 of file DialogDrama.cs.

Referenced by DramaActor.Talk().

◆ textAffinity

Text DialogDrama.textAffinity

Definition at line 13 of file DialogDrama.cs.

◆ textBio

Text DialogDrama.textBio

Definition at line 11 of file DialogDrama.cs.

◆ textFav

Text DialogDrama.textFav

Definition at line 17 of file DialogDrama.cs.

◆ textMain

UIText DialogDrama.textMain

Definition at line 29 of file DialogDrama.cs.

Referenced by DramaEventTalk.Play(), and SetText().

◆ textName

Text DialogDrama.textName

Definition at line 9 of file DialogDrama.cs.

◆ textNoInterest

Text DialogDrama.textNoInterest

Definition at line 15 of file DialogDrama.cs.

Referenced by DramaActor.Talk().

◆ textRank

Text DialogDrama.textRank

Definition at line 19 of file DialogDrama.cs.

◆ transAffinity

GameObject DialogDrama.transAffinity

Definition at line 23 of file DialogDrama.cs.

◆ transChoices

Transform DialogDrama.transChoices

Definition at line 33 of file DialogDrama.cs.

Referenced by AddChoice(), Awake(), ClearChoice(), and DramaActor.Talk().

◆ transFav

GameObject DialogDrama.transFav

Definition at line 25 of file DialogDrama.cs.

Referenced by DramaActor.Talk().

◆ transInterest

GameObject DialogDrama.transInterest

Definition at line 21 of file DialogDrama.cs.

◆ transRank

GameObject DialogDrama.transRank

Definition at line 27 of file DialogDrama.cs.

Referenced by DramaActor.Talk().

◆ warned

bool DialogDrama.warned
private

Definition at line 51 of file DialogDrama.cs.


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