8 public static bool IsActive()
14 public override void OnInit()
16 LayerDrama.Instance =
this;
17 LayerDrama.maxBGMVolume =
false;
21 private void LateUpdate()
23 if (this.drama.sequence.isExited &&
ELayer.ui.GetTopLayer() ==
this)
27 if (
ELayer.ui.TopLayer ==
this && !
this.isDestroyed)
29 ELayer.ui.hud.hint.cg.alpha = 0f;
32 ELayer.ui.hud.hint.cg.alpha = 1f;
36 public static LayerDrama ActivateMain(
string idSheet,
string idStep =
null,
Chara target =
null,
Card ref1 =
null,
string tag =
"")
38 return LayerDrama.Activate(
"_main", idSheet, idStep, target, ref1, tag);
42 public static LayerDrama Activate(
string book,
string idSheet,
string idStep,
Chara target =
null,
Card ref1 =
null,
string tag =
"")
54 LayerDrama.forceJump =
null;
57 layerDrama.setup.person =
new Person(target);
59 ELayer.ui.AddLayer(layerDrama);
60 layerDrama.drama.Play(layerDrama.setup);
65 public static LayerDrama ActivateNerun(
string idText)
67 if (
ELayer.debug.skipNerun)
77 TextAsset textAsset = Resources.Load<TextAsset>(CorePath.Text_DialogHelp + idText);
78 layerDrama.setup.textData =
GameLang.Convert(((textAsset !=
null) ? textAsset.text :
null) ?? (idText +
" not found."));
79 layerDrama.option.hideOthers =
false;
80 layerDrama.option.screenlockType = Layer.Option.ScreenlockType.DarkLight;
81 ELayer.ui.AddLayer(layerDrama);
82 layerDrama.drama.Play(layerDrama.setup);
87 public override void OnUpdateInput()
93 public override void OnKill()
96 LayerDrama.keepBGM =
false;
97 LayerDrama.haltPlaylist =
false;
98 SoundManager.current.haltUpdate =
false;
99 SoundManager.forceBGM =
false;
100 ELayer.ui.hud.hint.cg.alpha = 1f;
101 ELayer.scene.screenElin.focusOption =
null;
102 LayerDrama.alwaysVisible =
null;
103 EInput.requireConfirmReset =
true;
104 LayerDrama.maxBGMVolume =
false;
108 public static Quest currentQuest;
111 public static Religion currentReligion;
114 public static bool keepBGM;
117 public static bool haltPlaylist;
120 public static bool maxBGMVolume;
123 public static string forceJump;
129 public static Card alwaysVisible;
135 public CanvasGroup cg;