45 base.config.fix.snapType = b;
49 base.config.fix.divider = b;
50 EClass.core.screen.RefreshScreenSize();
54 base.config.other.antiMissClick = (int)a;
55 EInput.antiMissClick = 0.1f * a;
56 return Lang.
Get(
"antiMissClick") +
"(" + 0.1f * a +
"s)";
60 base.config.other.bgmInterval = (int)a;
61 base.config.ApplyVolume();
62 return Lang.
Get(
"bgmInterval") +
"(" + a * 5f +
"sec)";
66 base.config.other.syncMods = on;
70 base.config.other.disableMods = on;
74 base.config.other.exceptionPopup = on;
78 base.config.other.noCensor = on;
83 base.config.other.runBackground = on;
88 base.config.other.muteBackground = on;
93 base.config.game.altInv = on;
94 EClass.
ui.layerFloat.RemoveLayers(removeImportant:
true);
98 base.config.game.altAbility = on;
99 EClass.
ui.layerFloat.RemoveLayers(removeImportant:
true);
103 base.config.other.showTestOptions = on;
141 Dialog.
InputName(
"dialogBackerCode",
"", delegate(
bool cancel,
string text)
147 base.config.rewardCode = text;
149 EClass.ui.GetLayer<LayerConfig>().Close();
150 EClass.ui.AddLayer<LayerConfig>();
154 Dialog.Ok(
"invalidRewardCode".lang(text));
166 if (!
string.IsNullOrEmpty(text))
170 TextAsset textAsset = Resources.Load(
"Etc/wallpaper") as TextAsset;
171 Debug.Log(textAsset);
172 File.WriteAllBytes(text, textAsset.bytes);
186 buttonBackerCode.interactable = !base.config.HasBackerRewardCode() ||
EClass.
debug.
enable;
187 if (base.config.HasBackerRewardCode())
void WaitForEndOfFrame(Action action)
UIButton toggleMuteBackground
UIButton toggleExceptionPopup
void OpenBackerCodeInput()
override void OnInstantiate()
UIButton toggleAltAbility
UIButton toggleRunBackground
void OnClickDownloadWallpaper()
UIButton toggleDisableMods
UIButton buttonBackerCode
void SetSlider(Slider slider, float value, Func< float, string > action)
static Dialog YesNo(string langDetail, Action actionYes, Action actionNo=null, string langYes="yes", string langNo="no")
static Dialog InputName(string langDetail, string text, Action< bool, string > onClose, InputType inputType=InputType.Default)
static bool IsValid(string code)
static string Get(string id)
static string SaveFilePanel(string title, string directory, string defaultName, string extension)
static Dictionary< string, SaveData > dictData