Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
LayerDrama Class Reference
Inheritance diagram for LayerDrama:
ELayer Layer IUISkin

Public Member Functions

override void OnInit ()
 
override void OnUpdateInput ()
 
override void OnKill ()
 
- Public Member Functions inherited from ELayer
override void OnBeforeAddLayer ()
 
void InitInspector ()
 
sealed override void Init ()
 
override void OnAfterAddLayer ()
 
void TryShowHelp ()
 
void AddLayerToUI (string id)
 
void TryShowHint (string _langHint=null)
 
void TalkHomeMemeber (string id)
 
void TalkMaid (string id)
 
override void OnRightClick ()
 
- Public Member Functions inherited from Layer
virtual string GetTextHeader (Window window)
 
virtual bool HeaderIsListOf (int id)
 
virtual void Init ()
 
virtual void OnInit ()
 
virtual void OnAfterInit ()
 
virtual void ApplySkin ()
 
void ShowScreenLock (string id)
 
void UpdateInput ()
 
virtual void OnUpdateInput ()
 
virtual void OnRightClick ()
 
virtual bool OnBack ()
 
virtual void OnChangeLayer ()
 
virtual void OnCreate ()
 
void _AddLayer (string id)
 
Layer AddLayer (string id)
 
AddLayer< T > ()
 
AddLayer< T > (string id)
 
AddLayerDontCloseOthers< T > ()
 
Layer AddLayerDontCloseOthers (Layer l)
 
GetOrAddLayer< T > ()
 
virtual void OnBeforeAddLayer ()
 
virtual void OnAfterAddLayer ()
 
Layer AddLayer (Layer l)
 
void ToggleLayer (string id)
 
ToggleLayer< T > (string id=null)
 
void WaitAndClose ()
 
void OnClickClose ()
 
virtual void Close ()
 
void CloseLayers ()
 
void RemoveLayers (bool removeImportant=false)
 
bool RemoveLayer< T > ()
 
void RemoveLayer (Layer l)
 
virtual void OnKill ()
 
Layer SetOnKill (Action action)
 
void DisableClose ()
 
void Delay (float duration=0.05f)
 
Layer SetDelay (float d)
 
Layer GetLayer (string id)
 
GetLayer< T > (bool fromTop=false)
 
Layer GetTopLayer ()
 
void SwitchContent (int idWindow, int i)
 
virtual void OnSwitchContent (Window window)
 
Layer SetTitles (string langList, string idHeaderRow=null)
 
bool IsBlockWidgetClick ()
 
bool IsHideHud ()
 
bool IsAllowGeneralInput ()
 
bool IsUseBlur ()
 
bool IsPointerOnLayer ()
 
void ApplySkin ()
 

Static Public Member Functions

static bool IsActive ()
 
static LayerDrama ActivateMain (string idSheet, string idStep=null, Chara target=null, Card ref1=null, string tag="")
 
static LayerDrama Activate (string book, string idSheet, string idStep, Chara target=null, Card ref1=null, string tag="")
 
static LayerDrama ActivateNerun (string idText)
 
- Static Public Member Functions inherited from ELayer
static int rnd (int a)
 
- Static Public Member Functions inherited from Layer
static T Create< T > ()
 
static T Create< T > (string path)
 
static Layer Create (string path)
 

Public Attributes

DramaManager drama
 
CanvasGroup cg
 
DramaSetup setup
 
- Public Attributes inherited from Layer
Option option
 
UnityEvent onKill
 
Anime animeIn
 
Anime animeOut
 
bool closeOthers
 
bool defaultActionMode = true
 
Button screenLock
 
Layer parent
 
string idLayer
 
List< Layerlayers = new List<Layer>()
 
Vector2 lastParentPos
 
List< Windowwindows = new List<Window>()
 
string langHint
 

Static Public Attributes

static Quest currentQuest
 
static Religion currentReligion
 
static bool keepBGM
 
static bool haltPlaylist
 
static bool maxBGMVolume
 
static bool fromBook
 
static string forceJump
 
static LayerDrama Instance
 
static Card alwaysVisible
 
static Action refAction1
 
static Action refAction2
 
- Static Public Attributes inherited from Layer
static int skipInput
 
static bool closeOnRightClick
 
static bool rightClicked
 
static bool cancelKeyDown
 
static bool ignoreSounds
 
static Transform blurStopInstance
 
static string[] searchPath = new string[3] { "Layer", "Layer/Dialog", "Layer/LayerHome" }
 

Private Member Functions

void LateUpdate ()
 

Additional Inherited Members

- Protected Member Functions inherited from ELayer
sealed override void _Close ()
 
sealed override void Kill ()
 
- Protected Member Functions inherited from Layer
virtual void Awake ()
 
virtual void _Close ()
 
virtual void Kill ()
 
- Protected Attributes inherited from Layer
RectTransform _rect
 
bool isDestroyed
 
- Properties inherited from ELayer
static Core core [get]
 
static Game game [get]
 
static bool AdvMode [get]
 
static Player player [get]
 
static Chara pc [get]
 
static FactionBranch Branch [get]
 
static Faction Home [get]
 
static UI ui [get]
 
static Map _map [get]
 
static Zone _zone [get]
 
static Scene scene [get]
 
static BaseGameScreen screen [get]
 
static CoreConfig config [get]
 
static GameSetting setting [get]
 
static ColorProfile Colors [get]
 
static SourceManager sources [get]
 
static World world [get]
 
static SoundManager Sound [get]
 
static CoreDebug debug [get]
 
bool IsFloat [get]
 
virtual string IdHelp [get]
 
- Properties inherited from Layer
Layer TopLayer [get]
 
string uid [get]
 
virtual RectTransform rectLayers [get]
 
virtual bool blockWidgetClick [get]
 

Detailed Description

Definition at line 4 of file LayerDrama.cs.

Member Function Documentation

◆ Activate()

static LayerDrama LayerDrama.Activate ( string  book,
string  idSheet,
string  idStep,
Chara  target = null,
Card  ref1 = null,
string  tag = "" 
)
inlinestatic

Definition at line 66 of file LayerDrama.cs.

67 {
68 LayerDrama layerDrama = Layer.Create<LayerDrama>();
69 layerDrama.setup = new DramaSetup
70 {
71 book = book,
72 sheet = idSheet,
73 step = idStep,
74 ref1 = ref1,
76 tag = tag
77 };
78 forceJump = null;
79 if (target != null)
80 {
81 layerDrama.setup.person = new Person(target);
82 }
83 ELayer.ui.AddLayer(layerDrama);
84 layerDrama.drama.Play(layerDrama.setup);
85 return layerDrama;
86 }
DramaSequence Play(DramaSetup setup)
Definition: DramaManager.cs:87
Definition: ELayer.cs:4
static UI ui
Definition: ELayer.cs:21
static string forceJump
Definition: LayerDrama.cs:18
DramaManager drama
Definition: LayerDrama.cs:28
DramaSetup setup
Definition: LayerDrama.cs:32
Definition: Layer.cs:9
static Layer Create(string path)
Definition: Layer.cs:299
Definition: Person.cs:6

References book, Layer.Create(), drama, forceJump, DramaManager.Play(), setup, and ELayer.ui.

Referenced by Chara._ShowDialog(), ActivateMain(), MeetingManager.CallNext(), TraitStoryBookHome.OnRead(), TraitDaggerGrave.OnUse(), Player.Flags.PlayStory(), Chara.TryDropBossLoot(), and TraitAltar.TrySetAct().

◆ ActivateMain()

static LayerDrama LayerDrama.ActivateMain ( string  idSheet,
string  idStep = null,
Chara  target = null,
Card  ref1 = null,
string  tag = "" 
)
inlinestatic

Definition at line 61 of file LayerDrama.cs.

62 {
63 return Activate("_main", idSheet, idStep, target, ref1, tag);
64 }
static LayerDrama Activate(string book, string idSheet, string idStep, Chara target=null, Card ref1=null, string tag="")
Definition: LayerDrama.cs:66

References Activate().

Referenced by CoreDebug.COM_PlayStartDrama(), Zone_Nymelle.OnBeforeSimulate(), StickyMenu.OnClick(), MeetingFarris.PlayDrama(), Chara.ShowDialog(), and LayerWorldSetting.StartGame().

◆ ActivateNerun()

static LayerDrama LayerDrama.ActivateNerun ( string  idText)
inlinestatic

Definition at line 88 of file LayerDrama.cs.

89 {
91 {
92 return null;
93 }
94 LayerDrama layerDrama = Layer.Create<LayerDrama>();
95 layerDrama.setup = new DramaSetup
96 {
97 book = "_nerun",
98 step = "6-1"
99 };
100 TextAsset textAsset = Resources.Load<TextAsset>(CorePath.Text_DialogHelp + idText);
101 layerDrama.setup.textData = GameLang.Convert(textAsset?.text ?? (idText + " not found."));
102 layerDrama.option.hideOthers = false;
103 layerDrama.option.screenlockType = Option.ScreenlockType.DarkLight;
104 ELayer.ui.AddLayer(layerDrama);
105 layerDrama.drama.Play(layerDrama.setup);
106 return layerDrama;
107 }
bool skipNerun
Definition: CoreDebug.cs:163
static CoreDebug debug
Definition: ELayer.cs:43
static string Convert(string text)
Definition: GameLang.cs:106

References book, GameLang.Convert(), Layer.Create(), ELayer.debug, drama, DramaManager.Play(), setup, CoreDebug.skipNerun, and ELayer.ui.

Referenced by StickyTutorial.OnClick(), and ELayer.TryShowHelp().

◆ IsActive()

static bool LayerDrama.IsActive ( )
inlinestatic

Definition at line 34 of file LayerDrama.cs.

35 {
36 return ELayer.ui.GetLayer<LayerDrama>();
37 }

References ELayer.ui.

Referenced by Card.DamageHP(), and Scene.OnUpdate().

◆ LateUpdate()

void LayerDrama.LateUpdate ( )
inlineprivate

Definition at line 45 of file LayerDrama.cs.

46 {
47 if (drama.sequence.isExited && ELayer.ui.GetTopLayer() == this)
48 {
49 Close();
50 }
51 if (ELayer.ui.TopLayer == this && !isDestroyed)
52 {
53 ELayer.ui.hud.hint.cg.alpha = 0f;
54 }
55 else
56 {
57 ELayer.ui.hud.hint.cg.alpha = 1f;
58 }
59 }
DramaSequence sequence
Definition: DramaManager.cs:27
bool isDestroyed
Definition: Layer.cs:98
virtual void Close()
Definition: Layer.cs:463

References Layer.Close(), drama, Layer.isDestroyed, DramaSequence.isExited, DramaManager.sequence, and ELayer.ui.

◆ OnInit()

override void LayerDrama.OnInit ( )
inlinevirtual

Reimplemented from Layer.

Definition at line 39 of file LayerDrama.cs.

40 {
41 Instance = this;
42 maxBGMVolume = false;
43 }
static bool maxBGMVolume
Definition: LayerDrama.cs:14
static LayerDrama Instance
Definition: LayerDrama.cs:20

References Instance, and maxBGMVolume.

◆ OnKill()

override void LayerDrama.OnKill ( )
inlinevirtual

Reimplemented from Layer.

Definition at line 114 of file LayerDrama.cs.

115 {
116 ELayer.ui.Show();
117 keepBGM = false;
118 haltPlaylist = false;
119 fromBook = false;
120 SoundManager.current.haltUpdate = false;
121 SoundManager.forceBGM = false;
122 ELayer.ui.hud.hint.cg.alpha = 1f;
123 ELayer.scene.screenElin.focusOption = null;
124 alwaysVisible = null;
125 EInput.requireConfirmReset = true;
126 maxBGMVolume = false;
127 }
static bool fromBook
Definition: LayerDrama.cs:16
static bool keepBGM
Definition: LayerDrama.cs:10
static Card alwaysVisible
Definition: LayerDrama.cs:22
static bool haltPlaylist
Definition: LayerDrama.cs:12

References alwaysVisible, fromBook, haltPlaylist, keepBGM, maxBGMVolume, and ELayer.ui.

◆ OnUpdateInput()

override void LayerDrama.OnUpdateInput ( )
inlinevirtual

Reimplemented from Layer.

Definition at line 109 of file LayerDrama.cs.

110 {
111 base.OnUpdateInput();
112 }

Member Data Documentation

◆ alwaysVisible

Card LayerDrama.alwaysVisible
static

Definition at line 22 of file LayerDrama.cs.

Referenced by BaseTileMap.DrawTile(), and OnKill().

◆ cg

CanvasGroup LayerDrama.cg

Definition at line 30 of file LayerDrama.cs.

◆ currentQuest

Quest LayerDrama.currentQuest
static

Definition at line 6 of file LayerDrama.cs.

Referenced by DramaManager.ParseLine().

◆ currentReligion

Religion LayerDrama.currentReligion
static

Definition at line 8 of file LayerDrama.cs.

Referenced by DramaActor.ConvertAdv(), and DramaManager.ParseLine().

◆ drama

DramaManager LayerDrama.drama

Definition at line 28 of file LayerDrama.cs.

Referenced by Activate(), ActivateNerun(), and LateUpdate().

◆ forceJump

string LayerDrama.forceJump
static

Definition at line 18 of file LayerDrama.cs.

Referenced by Activate(), and Chara.ShowDialog().

◆ fromBook

bool LayerDrama.fromBook
static

Definition at line 16 of file LayerDrama.cs.

Referenced by OnKill(), and DramaManager.ParseLine().

◆ haltPlaylist

bool LayerDrama.haltPlaylist
static

Definition at line 12 of file LayerDrama.cs.

Referenced by Core.Awake(), and OnKill().

◆ Instance

◆ keepBGM

bool LayerDrama.keepBGM
static

Definition at line 10 of file LayerDrama.cs.

Referenced by Core.Awake(), OnKill(), and Zone.RefreshBGM().

◆ maxBGMVolume

bool LayerDrama.maxBGMVolume
static

Definition at line 14 of file LayerDrama.cs.

Referenced by OnInit(), and OnKill().

◆ refAction1

Action LayerDrama.refAction1
static

Definition at line 24 of file LayerDrama.cs.

Referenced by DramaManager.ParseLine().

◆ refAction2

Action LayerDrama.refAction2
static

Definition at line 26 of file LayerDrama.cs.

Referenced by DramaManager.ParseLine().

◆ setup

DramaSetup LayerDrama.setup

Definition at line 32 of file LayerDrama.cs.

Referenced by Activate(), and ActivateNerun().


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