9 public static Core core
19 public static Game game
29 public static bool AdvMode
33 return ELayer.scene.actionMode ==
ActionMode.Adv;
39 public static Player player
43 return ELayer.core.game.player;
49 public static Chara pc
53 return ELayer.core.game.player.chara;
63 return ELayer.core.game.activeZone.branch;
73 return ELayer.core.game.factions.Home;
89 public static Map _map
93 return ELayer.core.game.activeZone.map;
99 public static Zone _zone
103 return ELayer.core.game.activeZone;
109 public static Scene scene
123 return ELayer.core.screen;
133 return ELayer.core.config;
143 return ELayer.core.gameSetting;
153 return ELayer.core.Colors;
163 return ELayer.core.sources;
169 public static World world
173 return ELayer.core.game.world;
179 public static SoundManager Sound
183 return SoundManager.current;
198 public static int rnd(
int a)
200 return Rand.Range(0, a);
209 return ELayer.ui.layerFloat.layers.Contains(
this);
215 public virtual string IdHelp
219 return base.GetType().Name;
224 public override void OnBeforeAddLayer()
226 if (
ELayer.core.IsGameStarted &&
this.defaultActionMode)
233 public void InitInspector()
239 public sealed override void Init()
242 if (this.closeOthers)
244 ELayer.ui.RemoveLayers(
false);
250 public override void OnAfterAddLayer()
257 public void TryShowHelp()
259 bool flag = Resources.Load<TextAsset>(CorePath.Text_DialogHelp + this.IdHelp);
260 if (flag && !
ELayer.core.config.helpFlags.Contains(
this.IdHelp))
263 ELayer.core.config.helpFlags.Add(this.IdHelp);
265 if (this.windows.Count > 0 &&
this.windows[0].buttonHelp)
267 this.windows[0].buttonHelp.SetActive(flag);
270 this.windows[0].buttonHelp.onClick.AddListener(delegate()
279 public void AddLayerToUI(
string id)
285 protected sealed override void _Close()
288 EInput.Consume(
false, 1);
289 if (!this.option.consumeInput)
291 EInput.rightMouse.consumed =
false;
292 EInput.rightMouse.ignoreClick =
true;
297 protected sealed override void Kill()
299 if (this.isDestroyed || base.gameObject ==
null)
303 if (this.itemTalk !=
null)
305 this.itemTalk.important =
false;
306 WidgetFeed.Instance.pop.Kill(this.itemTalk,
false);
309 if (this.option.playlist &&
ELayer.core.IsGameStarted)
311 ELayer._zone.RefreshBGM();
313 if (
ELayer.debug.alwaysResetWindow)
315 Window.dictData.Clear();
317 if (this.option.hideFloatUI)
321 if (this.option.hideWidgets)
328 public void TryShowHint(
string _langHint =
null)
330 if (!_langHint.IsEmpty() && Lang.Has(_langHint))
332 this.langHint = _langHint;
334 string text =
"h_" + base.GetType().Name;
335 if (!this.langHint.IsEmpty())
337 ELayer.ui.hud.hint.Show(this.langHint.lang(),
true);
342 ELayer.ui.hud.hint.Show(text,
true);
345 if (!this.option.dontRefreshHint)
347 ELayer.ui.hud.hint.Refresh();
352 public void TalkHomeMemeber(
string id)
354 Msg.TalkHomeMemeber(
id);
358 public void TalkMaid(
string id)
364 public override void OnRightClick()
367 if (componentOf && componentOf.invOwner !=
null)
375 private PopItem itemTalk;