43 base.config.fix.snapType = b;
47 base.config.fix.divider = b;
48 EClass.core.screen.RefreshScreenSize();
52 base.config.other.antiMissClick = (int)a;
53 EInput.antiMissClick = 0.1f * a;
54 return Lang.
Get(
"antiMissClick") +
"(" + 0.1f * a +
"s)";
58 base.config.other.bgmInterval = (int)a;
59 base.config.ApplyVolume();
60 return Lang.
Get(
"bgmInterval") +
"(" + a * 5f +
"sec)";
64 base.config.other.syncMods = on;
68 base.config.other.disableMods = on;
72 base.config.other.noCensor = on;
77 base.config.other.runBackground = on;
82 base.config.other.muteBackground = on;
87 base.config.game.altInv = on;
88 EClass.
ui.layerFloat.RemoveLayers(removeImportant:
true);
92 base.config.game.altAbility = on;
93 EClass.
ui.layerFloat.RemoveLayers(removeImportant:
true);
97 base.config.other.showTestOptions = on;
135 Dialog.
InputName(
"dialogBackerCode",
"", delegate(
bool cancel,
string text)
141 base.config.rewardCode = text;
143 EClass.ui.GetLayer<LayerConfig>().Close();
144 EClass.ui.AddLayer<LayerConfig>();
148 Dialog.Ok(
"invalidRewardCode".lang(text));
160 if (!
string.IsNullOrEmpty(text))
164 TextAsset textAsset = Resources.Load(
"Etc/wallpaper") as TextAsset;
165 Debug.Log(textAsset);
166 File.WriteAllBytes(text, textAsset.bytes);
180 buttonBackerCode.interactable = !base.config.HasBackerRewardCode() ||
EClass.
debug.
enable;
181 if (base.config.HasBackerRewardCode())
if(item3.idFile==idFirstFile &&item3.id==idFirstTopic)
void WaitForEndOfFrame(Action action)
UIButton toggleMuteBackground
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