Elin Modding Docs Doc
Loading...
Searching...
No Matches
LayerEditBio.cs
1using System;
2using System.Runtime.CompilerServices;
3using DG.Tweening;
4using UnityEngine.Events;
5using UnityEngine.UI;
6
7// Token: 0x0200053C RID: 1340
8public class LayerEditBio : ELayer
9{
10 // Token: 0x06002446 RID: 9286 RVA: 0x000CC638 File Offset: 0x000CA838
11 public override void OnAfterAddLayer()
12 {
13 if (ELayer.game == null)
14 {
15 Game.Create(null);
16 }
17 if (!LayerTitle.actor)
18 {
19 LayerTitle.actor = Util.Instantiate<EmbarkActor>(this.moldActor, null);
20 }
21 this.SetChara(ELayer.pc, null);
22 ELayer.ui.hud.hint.Show("hintEmbarkTop".lang(), false);
23 this.imageBG.SetAlpha(0f);
24 this.imageBG.DOFade(0.15f, 10f);
25 }
26
27 // Token: 0x06002447 RID: 9287 RVA: 0x000CC6C0 File Offset: 0x000CA8C0
28 public void SetChara(Chara c, UnityAction _onKill = null)
29 {
30 this.chara = (c ?? ELayer.player.chara);
31 this.maker.SetChara(this.chara);
32 if (_onKill != null)
33 {
34 this.onKill.AddListener(_onKill);
35 }
36 }
37
38 // Token: 0x06002448 RID: 9288 RVA: 0x000CC6F8 File Offset: 0x000CA8F8
39 public void OnClickStart()
40 {
41 if (!ELayer.game.Difficulty.allowManualSave)
42 {
43 Dialog.YesNo("dialog_warnManualSave".lang(ELayer.game.Difficulty.Name, null, null, null, null), delegate
44 {
45 this.<OnClickStart>g__Start|7_0();
46 }, null, "yes", "no");
47 return;
48 }
49 this.<OnClickStart>g__Start|7_0();
50 }
51
52 // Token: 0x06002449 RID: 9289 RVA: 0x000CC757 File Offset: 0x000CA957
53 public void OnClickHelp()
54 {
55 LayerHelp.Toggle("general", "3");
56 }
57
58 // Token: 0x0600244B RID: 9291 RVA: 0x000CC770 File Offset: 0x000CA970
59 [CompilerGenerated]
60 private void <OnClickStart>g__Start|7_0()
61 {
62 if (this.started)
63 {
64 return;
65 }
66 this.started = true;
67 if (!ELayer.debug.skipInitialQuest)
68 {
69 if (!LayerDrama.Instance)
70 {
71 LayerDrama.ActivateMain("mono", "1-1", null, null, "");
72 return;
73 }
74 LayerTitle.KillActor();
75 ELayer.game.StartNewGame();
76 }
77 }
78
79 // Token: 0x040013B5 RID: 5045
80 public UICharaMaker maker;
81
82 // Token: 0x040013B6 RID: 5046
83 public Chara chara;
84
85 // Token: 0x040013B7 RID: 5047
86 public EmbarkActor moldActor;
87
88 // Token: 0x040013B8 RID: 5048
89 public Image imageBG;
90
91 // Token: 0x040013B9 RID: 5049
92 private bool started;
93}
Definition Chara.cs:12
Definition Game.cs:10