8 public override void OnInstantiate()
10 this.ddSnap.SetList<
CoreConfig.ScreenSnapType>((int)base.config.fix.snapType, Util.EnumToList<
CoreConfig.ScreenSnapType>(), (CoreConfig.ScreenSnapType a,
int b) => a.ToString().lang(), delegate(
int a,
CoreConfig.ScreenSnapType b)
12 base.config.fix.snapType = b;
14 this.ddDivider.SetList<
CameraSupport.Divider>((int)base.config.fix.divider, Util.EnumToList<
CameraSupport.Divider>(), (CameraSupport.Divider a,
int b) => a.ToString().lang(), delegate(
int a,
CameraSupport.Divider b)
16 base.config.fix.divider = b;
17 EClass.core.screen.RefreshScreenSize();
19 base.SetSlider(this.sliderMissClick, (
float)base.config.other.antiMissClick, delegate(
float a)
21 base.config.other.antiMissClick = (int)a;
22 EInput.antiMissClick = 0.1f * a;
23 return Lang.Get(
"antiMissClick") +
"(" + (0.1f * a).ToString() +
"s)";
25 base.SetSlider(this.sliderBGMInterval, base.config.other.bgmInterval, delegate(
float a)
27 base.config.other.bgmInterval = (float)((
int)a);
28 base.config.ApplyVolume();
29 return Lang.Get(
"bgmInterval") +
"(" + (a * 5f).ToString() +
"sec)";
31 this.toggleSyncMod.SetToggle(base.config.other.syncMods, delegate(
bool on)
33 base.config.other.syncMods = on;
35 this.toggleNoCensor.SetToggle(base.config.other.noCensor, delegate(
bool on)
37 base.config.other.noCensor = on;
40 this.toggleRunBackground.SetToggle(base.config.other.runBackground, delegate(
bool on)
42 base.config.other.runBackground = on;
45 this.toggleAltInv.SetToggle(base.config.game.altInv, delegate(
bool on)
47 base.config.game.altInv = on;
48 EClass.ui.layerFloat.RemoveLayers(
true);
50 this.toggleAltAbility.SetToggle(base.config.game.altAbility, delegate(
bool on)
52 base.config.game.altAbility = on;
53 EClass.ui.layerFloat.RemoveLayers(
true);
55 this.toggleTest.SetToggle(base.config.other.showTestOptions, delegate(
bool on)
57 base.config.other.showTestOptions = on;
61 this.RefreshRewardCode();
67 Util.ShowExplorer(CorePath.RootSave,
false);
71 public void OoenConfigFolder()
73 Util.ShowExplorer(CorePath.RootSave +
"config.txt",
false);
77 public void OpenPackage()
79 Util.ShowExplorer(CorePath.rootMod +
"_Elona",
false);
83 public void OpenUser()
85 Util.ShowExplorer(CorePath.user +
"PCC",
false);
89 public void ResetWindows()
91 Dialog.YesNo(
"dialogResetWindow", delegate
93 Window.dictData.Clear();
94 },
null,
"yes",
"no");
98 public void OpenBackerCodeInput()
100 Dialog.InputName(
"dialogBackerCode",
"", delegate(
bool cancel,
string text)
104 if (ElinEncoder.IsValid(text))
106 base.config.rewardCode = text;
111 Dialog.Ok(
"invalidRewardCode".lang(text,
null,
null,
null,
null));
113 this.RefreshRewardCode();
115 },
Dialog.InputType.Default);
119 public void RefreshRewardCode()
121 this.buttonBackerCode.interactable = (!base.config.HasBackerRewardCode() ||
EClass.debug.enable);
122 if (base.config.HasBackerRewardCode())
124 this.buttonBackerCode.mainText.SetText(
"rewardCodeActive".lang());
129 public UIButton toggleSyncMod;
132 public UIButton toggleNoCensor;
135 public UIButton toggleRunBackground;
138 public UIButton toggleTest;
141 public UIButton toggleAltInv;
144 public UIButton toggleAltAbility;
147 public UIButton buttonBackerCode;
150 public UIDropdown ddSnap;
153 public UIDropdown ddDivider;
156 public Slider sliderMissClick;
159 public Slider sliderBGMInterval;
162 public UIText textBackerCode;