Elin Decompiled Documentation EA 23.199 Nightly
Loading...
Searching...
No Matches
CoreConfig.cs
Go to the documentation of this file.
1using System;
2using System.Collections.Generic;
3using System.IO;
4using System.Text.RegularExpressions;
5using Newtonsoft.Json;
6using UnityEngine;
7using UnityEngine.UI;
8
9[Serializable]
10[JsonObject(MemberSerialization.OptOut)]
11public class CoreConfig : EClass
12{
13 public enum GameFunc
14 {
15 None,
17 ShowInv,
23 EmuAlt,
27 Talk,
29 Fire,
32 }
33
34 public enum GameFuncBuild
35 {
36 None,
38 Rotate,
46 }
47
48 public enum ScreenSnapType
49 {
50 None,
51 Default,
52 Floor,
53 Ceil,
54 Hack3,
55 Hack4,
56 Hack5,
57 Hack6,
58 Hack7,
59 Hack8,
60 Hack9,
61 Grid
62 }
63
64 [Serializable]
65 public class CameraConfig
66 {
67 public bool invertX;
68
69 public bool invertY;
70
71 public bool edgeScroll;
72
73 public bool zoomToMouse;
74
75 public bool extendZoomMin;
76
77 public bool extendZoomMax;
78
79 public bool linearZoom;
80
81 public bool smoothFollow;
82
83 public bool smoothMove;
84
85 public float senseKeyboard;
86
87 public float sensEdge;
88
89 public float sensDrag;
90
91 public float momentum;
92
93 public float zoomSpeed;
94
95 public int defaultZoom;
96
97 public int moveframe;
98
99 public float[] zooms;
100 }
101
102 [Serializable]
103 public class GameConfig
104 {
105 public int numBackup;
106
107 public int backupInterval;
108
109 public bool autoBackup;
110
111 public bool sortEach;
112
113 public bool antiSpider;
114
115 public bool autopause;
116
117 public bool showQuickMenuHint;
118
120
121 public bool freePos;
122
123 public bool showOffhand;
124
125 public bool confirmGive;
126
127 public bool confirmMapExit;
128
130
131 public bool doubleClickToHold;
132
134
135 public float runDistance;
136
137 public float angleMargin;
138
139 public int newlineCount;
140
141 public int showBorder;
142
143 public int showRide;
144
145 public int waiter;
146
147 public bool altUI;
148
149 public bool altInv;
150
151 public bool altAbility;
152
153 public bool altCraft;
154
155 public bool autoSave;
156
158
159 public bool showInvBG;
160
161 public bool useGrid;
162
163 public bool rightScroll;
164
165 public bool tutorial;
166
167 public bool advancedMenu;
168
169 public bool warnCrime;
170
171 public bool warnMana;
172
173 public bool warnDisassemble;
174
175 public bool hideWeapons;
176
177 public bool disableAutoStairs;
178
179 public bool smoothPick;
180
181 public bool markStack;
182
183 public bool waitOnRange;
184
185 public bool waitOnDebuff;
186
187 public bool waitOnMelee;
188
189 public bool highlightEnemy;
190
192
194
195 public bool haltOnSpotEnemy;
196
197 public bool haltOnSpotTrap;
198
199 [NonSerialized]
200 [JsonIgnore]
201 public bool ignoreWarnCrime;
202
203 [NonSerialized]
204 [JsonIgnore]
205 public bool ignoreWarnMana;
206
207 [NonSerialized]
208 [JsonIgnore]
210
211 [NonSerialized]
212 [JsonIgnore]
214 }
215
216 [Serializable]
217 public class InputSetting
218 {
219 public bool autorun;
220
221 public bool autowalk;
222
223 public bool altKeyAxis;
224
225 public bool keepRunning;
226
228
229 public bool ignoreNPCs;
230
231 public bool altExamine;
232
233 public bool altChangeHeight;
234
236
238
240
242
244
246
248
250
252
254
256
258
260 }
261
262 [Serializable]
263 public class SoundSetting
264 {
265 public float volumeMaster;
266
267 public float volumeBGM;
268
269 public float volumeSFX;
270
271 public float volumeAMB;
272 }
273
274 [Serializable]
275 public class GraphicSetting
276 {
277 public string idPostProfile;
278
279 public bool fullScreen;
280
281 public bool pixelperfectUI;
282
283 public bool alwaysClearCamera;
284
285 public bool vsync;
286
287 public bool kuwahara;
288
289 public bool drawAllyLight;
290
291 public bool hdr;
292
293 public bool fixedResolution;
294
295 public bool floorEx;
296
297 public bool cloud;
298
299 public bool firefly;
300
301 public bool bloom;
302
303 public bool gradientWater;
304
305 public bool godray;
306
307 public bool enhanceRain;
308
309 public bool blizzard;
310
311 public bool disableShake;
312
313 public bool noLightning;
314
315 public int fps;
316
317 public int fireflyCount = 150;
318
319 public int starCount = 200;
320
321 public int sharpen;
322
323 public int sharpen2;
324
325 public int blur;
326
327 public int spriteFrameMode;
328
329 public int w = 1280;
330
331 public int h = 768;
332
333 public float brightness;
334
335 public float contrast;
336
337 public float saturation;
338
339 public float vibrance;
340
341 public float gradientWaterLevel = 0.2f;
342 }
343
344 [Serializable]
345 public class UISetting
346 {
347 public string defaultTheme;
348
349 public bool openLastTab;
350
351 public bool rightClickClose;
352
353 public bool blur;
354
355 public bool cornerHoard;
356
357 public bool animeWindow;
358
359 public bool autoscale;
360
361 public bool dynamicBrightness;
362
363 public bool secureMinWidth;
364
365 public bool autoFocusWindow;
366
367 public bool showFloatButtons;
368
369 public bool balloonBG;
370
372
373 public float scrollSens;
374
375 public float baseScrollSens;
376
377 public float blurSize;
378
380
381 public int mouseDragMargin;
382
383 public int scale;
384
385 public int brightness;
386
387 public int contrast;
388
389 public int outlineAlpha;
390
392 }
393
394 [Serializable]
395 public class FontSetting
396 {
398
400
402
404
406
408 }
409
410 [Serializable]
411 public class CustomFont
412 {
413 public string id;
414
415 public string name;
416 }
417
418 [Serializable]
419 public class NetSetting
420 {
421 public bool enable;
422
423 public bool sendEvent;
424
425 public bool receiveRealtime;
426
427 public bool password;
428
429 public bool noAdult;
430 }
431
432 [Serializable]
434 {
435 public int filter;
436
437 public bool FilterAll => filter == 2;
438
439 public bool FilterLang => filter == 1;
440
441 public bool FilterNone => filter == 0;
442
443 public bool Show(int id)
444 {
445 return Show(EClass.sources.backers.map.TryGetValue(id));
446 }
447
448 public bool Show(SourceBacker.Row row)
449 {
450 if (row == null)
451 {
452 return false;
453 }
454 if (FilterNone)
455 {
456 return true;
457 }
458 if (FilterAll)
459 {
460 return false;
461 }
462 bool flag = row.lang == "JP" || row.lang == "CN";
463 string langCode = Lang.langCode;
464 if (langCode == "JP" || langCode == "CN")
465 {
466 return flag;
467 }
468 return !flag;
469 }
470
471 public bool Show(string s)
472 {
473 if (FilterNone)
474 {
475 return true;
476 }
477 if (FilterAll)
478 {
479 return false;
480 }
481 bool flag = IsJapanese(s);
482 string langCode = Lang.langCode;
483 if (langCode == "JP" || langCode == "CN")
484 {
485 return flag;
486 }
487 return !flag;
488 }
489
490 private bool IsJapanese(string text)
491 {
492 return Regex.IsMatch(text, "[\\p{IsHiragana}\\p{IsKatakana}\\p{IsCJKUnifiedIdeographs}]+");
493 }
494 }
495
496 [Serializable]
497 public class OtherSetting
498 {
499 public int antiMissClick = 2;
500
501 public float bgmInterval = 1f;
502
503 public bool noCensor;
504
505 public bool runBackground;
506
507 public bool muteBackground;
508
509 public bool showTestOptions;
510
511 public bool syncMods;
512
513 public bool disableMods;
514
515 public string idMainWidgetTheme;
516
517 public string idSubWidgetTheme;
518 }
519
520 [Serializable]
521 public class Test
522 {
523 public int idSkin;
524
525 public int animeFramePCC;
526
527 public int animeFrame;
528
529 public int extraToneMTP;
530
531 public bool showNumbers;
532
533 public bool stackNumbers;
534
535 public bool aaPortrait;
536
537 public bool extraTurnaround;
538
539 public bool bloom2;
540
541 public bool extraRace;
542
543 public bool unsealWidgets;
544
545 public bool extraMoveCancel;
546
547 public bool showNetError;
548
549 public bool alwaysRun;
550
551 public bool allowBlockOnItem;
552
554
555 public bool alwaysFixCamera;
556
558
559 public bool showRefIcon;
560
561 public bool showTrait;
562
563 public bool toolNoPick;
564
565 public bool compressSave;
566
567 public float brightnessNight;
568 }
569
570 [Serializable]
571 public class Fix
572 {
574
576 }
577
579
580 public string lang = "JP";
581
582 public string nameReport;
583
584 public string emailReport;
585
586 public string rewardCode;
587
588 public int maxPlayedHours;
589
591
593
594 public bool cloud;
595
596 public new UISetting ui;
597
599
601
603
604 public new GameConfig game;
605
607
609
611
613
615
616 public Fix fix;
617
618 public Test test;
619
620 public List<FontSource> customFonts;
621
622 public HashSet<string> helpFlags = new HashSet<string>();
623
624 public int[] colors = new int[10];
625
626 [NonSerialized]
627 public bool ignoreApply;
628
629 private int[] _framerates = new int[4] { 120, 60, 30, 15 };
630
631 public static string path => CorePath.ConfigFile;
632
633 public static int ZoomStep
634 {
635 get
636 {
637 if (!EClass.debug.enable)
638 {
639 return 5;
640 }
641 return 5;
642 }
643 }
644
645 [JsonIgnore]
647
648 public static bool Exist()
649 {
650 if (!File.Exists(path) || (EClass.debug.useNewConfig && Application.isEditor))
651 {
652 return false;
653 }
654 return true;
655 }
656
657 public static CoreConfig TryLoadConfig()
658 {
659 if (!File.Exists(path) || (EClass.debug.useNewConfig && Application.isEditor))
660 {
661 return null;
662 }
663 if (!File.Exists(CorePath.VersionFile))
664 {
665 return null;
666 }
667 CoreConfig coreConfig = IO.LoadFile<CoreConfig>(path);
668 if (!IsCompatible(coreConfig.version))
669 {
670 Debug.Log("Config version is different. deleting:" + coreConfig.version.ToString() + "/" + EClass.core.version.GetText());
671 return null;
672 }
673 if (coreConfig.game.backupInterval == 0)
674 {
675 coreConfig.game.numBackup = 5;
676 coreConfig.game.backupInterval = 8;
677 coreConfig.game.autoBackup = true;
678 }
679 if (coreConfig.version.IsBelow(0, 23, 138))
680 {
681 coreConfig.test.extraToneMTP = 1;
682 }
683 if (coreConfig.version.IsBelow(0, 23, 63))
684 {
685 coreConfig.graphic.floorEx = true;
686 }
687 if (coreConfig.version.IsBelow(0, 22, 17))
688 {
689 coreConfig.game.tutorial = true;
690 }
691 if (coreConfig.version.IsBelow(0, 22, 24))
692 {
693 coreConfig.ui.balloonBG = true;
694 }
695 return coreConfig;
696 }
697
698 public static bool IsCompatible(Version v)
699 {
700 return v.minor >= 22;
701 }
702
703 public static void Init()
704 {
705 if (EClass.core.config == null)
706 {
707 Debug.Log("Creating new config.");
708 CoreConfig coreConfig = (EClass.core.config = IO.DeepCopy(EClass.setting.config));
709 coreConfig.SetLang(EClass.core.langCode);
710 if (!Application.isEditor || !EClass.debug.useNewConfig)
711 {
712 coreConfig.Save();
713 }
715 if (EClass.debug.enable)
716 {
717 coreConfig.other.showTestOptions = true;
718 coreConfig.test.showNumbers = true;
719 coreConfig.game.waiter = 0;
720 coreConfig.game.advancedMenu = true;
721 }
722 }
724 }
725
726 public void OnInit()
727 {
728 EClass.core.ui.skins.SetMainSkin(test.idSkin);
729 Apply();
730 }
731
733 {
735 }
736
737 public static void Reset()
738 {
739 string text = EClass.core.config.lang;
740 string text2 = EClass.core.config.rewardCode;
741 EClass.core.config = IO.DeepCopy(EClass.setting.config);
744 EClass.core.config.rewardCode = text2;
745 }
746
747 public static void ResetGeneral()
748 {
749 CoreConfig coreConfig = IO.DeepCopy(EClass.setting.config);
750 EClass.core.config.ui = coreConfig.ui;
751 EClass.core.config.font = coreConfig.font;
752 EClass.core.config.sound = coreConfig.sound;
755 }
756
757 public static void ResetGraphics()
758 {
759 CoreConfig coreConfig = IO.DeepCopy(EClass.setting.config);
760 EClass.core.config.graphic = coreConfig.graphic;
763 }
764
765 public static void ResetGame()
766 {
767 CoreConfig coreConfig = IO.DeepCopy(EClass.setting.config);
768 EClass.core.config.game = coreConfig.game;
769 EClass.core.config.net = coreConfig.net;
770 EClass.core.config.backer = coreConfig.backer;
772 }
773
774 public static void ResetInput()
775 {
776 CoreConfig coreConfig = IO.DeepCopy(EClass.setting.config);
777 EClass.core.config.input = coreConfig.input;
778 EClass.core.config.camera = coreConfig.camera;
780 }
781
782 public static void ResetOther()
783 {
784 CoreConfig coreConfig = IO.DeepCopy(EClass.setting.config);
785 EClass.core.config.fix = coreConfig.fix;
786 EClass.core.config.other = coreConfig.other;
788 }
789
790 public static void ResetTest()
791 {
792 CoreConfig coreConfig = IO.DeepCopy(EClass.setting.config);
793 EClass.core.config.test = coreConfig.test;
795 }
796
797 public void OnReset()
798 {
800 Apply();
801 ApplyFont();
802 ApplySkin();
803 }
804
805 public void SetLang(string id)
806 {
807 lang = id;
808 }
809
811 {
813 {
814 int num = (int)(EClass.player.stats.timeElapsed / 3600.0);
815 if (num > maxPlayedHours)
816 {
817 maxPlayedHours = num;
818 Save();
819 }
820 }
821 }
822
823 public void Save()
824 {
826 IO.SaveFile(path, this, compress: false, IO.jsWriteConfig);
827 IO.SaveFile(CorePath.VersionFile, version);
828 Debug.Log("Config saved to " + path);
829 }
830
831 public void OnChangeResolution()
832 {
833 ApplyScale();
834 }
835
836 public void ApplyFPS(bool force = false)
837 {
838 if (EClass.core.IsGameStarted || force)
839 {
840 if (graphic.vsync)
841 {
842 QualitySettings.vSyncCount = 1;
843 Application.targetFrameRate = 60;
844 }
845 else
846 {
847 QualitySettings.vSyncCount = 0;
848 Application.targetFrameRate = _framerates[graphic.fps];
849 }
850 }
851 else
852 {
853 QualitySettings.vSyncCount = 0;
854 Application.targetFrameRate = 60;
855 }
856 }
857
858 public void Apply()
859 {
860 if (!ignoreApply)
861 {
863 ApplyFPS();
864 Application.runInBackground = Application.isEditor || other.runBackground;
865 ApplyVolume();
866 ApplyGrading();
867 ApplyHUD();
869 Window.openLastTab = ui.openLastTab;
870 Layer.closeOnRightClick = ui.rightClickClose;
871 RenderObject.animeSetting = EClass.core.gameSetting.render.anime;
872 RenderObject.renderSetting = (RenderData.renderSetting = EClass.core.gameSetting.render);
873 TC._setting = EClass.core.gameSetting.render.tc;
874 UIScrollView.sensitivity = ui.ScrollSensitivity;
875 UIContextMenu.closeOnMouseLeave = ui.closePopupOnMouseLeave;
876 EClass.core.canvas.pixelPerfect = graphic.pixelperfectUI;
878 CharaRenderer._animeFrame = EClass.setting.render.anime.animeStep[test.animeFrame];
879 CharaRenderer._animeFramePCC = EClass.setting.render.anime.animeStep[test.animeFramePCC];
880 CharaRenderer.smoothmove = camera.smoothMove;
881 CharaRenderer._animeFramePC = (camera.smoothMove ? 6000 : camera.moveframe);
882 Scene.skipAnime = true;
883 QualitySettings.maxQueuedFrames = 0;
884 PopManager.outlineAlpha = ui.outlineAlpha;
885 Window.animateWindow = ui.animeWindow;
886 EInput.rightScroll = game.rightScroll;
887 EInput.buttonScroll = (game.rightScroll ? EInput.rightMouse : EInput.middleMouse);
888 EInput.antiMissClick = 0.1f * (float)other.antiMissClick;
889 camSupport.bloom.enabled = graphic.bloom;
891 camSupport.cam.allowHDR = graphic.hdr;
892 ApplyScale();
893 }
894 }
895
896 public void ApplyResolution(bool force = false)
897 {
899 {
900 force = true;
901 }
902 if (force)
903 {
904 Screen.SetResolution(graphic.w, graphic.h, graphic.fullScreen);
905 }
906 Screen.fullScreen = graphic.fullScreen;
907 }
908
909 public void ApplyScale()
910 {
911 float num = (float)ui.scale * 0.05f;
912 if (ui.autoscale)
913 {
914 float a = 0.55f;
915 float b = num + 0.05f;
916 num = 0.01f * (float)Mathf.RoundToInt(Mathf.Lerp(a, b, (float)Screen.height / 1080f) * 100f);
917 }
918 if (ui.secureMinWidth && Screen.width < EClass.core.ui.minWidth)
919 {
920 float num2 = (float)Screen.width / (float)EClass.core.ui.minWidth;
921 if (num2 < num)
922 {
923 num = num2;
924 }
925 }
926 Debug.Log("#UI ApplyScale:" + num);
927 EClass.core.canvas.GetComponent<CanvasScaler>().scaleFactor = num;
928 }
929
930 public void ApplyHUD()
931 {
932 }
933
934 public void ApplyZoom(float a)
935 {
936 camSupport.Zoom = a;
939 }
940
941 public PostEffectProfile GetPostEffectProfile(bool replaceWorld = false)
942 {
943 string text = graphic.idPostProfile.IsEmpty("None");
944 if (replaceWorld && EClass.core.IsGameStarted && EClass.core.game.activeZone.IsRegion && text != "None")
945 {
946 text = "NFAA";
947 }
948 return ResourceCache.Load<PostEffectProfile>("Scene/Profile/PostEffect/" + text);
949 }
950
951 public void ApplyGrading()
952 {
953 PostEffectProfile postEffectProfile = GetPostEffectProfile();
954 ScreenGrading grading = camSupport.grading;
955 grading.userSaturation = graphic.saturation + postEffectProfile.Saturation;
956 grading.userBrightness = graphic.brightness + postEffectProfile.Brightness;
957 grading.userContrast = graphic.contrast + postEffectProfile.Contrast;
958 camSupport.beautify.saturate = graphic.vibrance + grading.profile.Vibrance;
959 camSupport.kuwahara.enabled = graphic.kuwahara;
960 camSupport.blur.enabled = graphic.blur > 0;
961 camSupport.blur.Amount = 0.01f * (float)graphic.blur;
963 {
965 }
968 postEffectProfile.Apply(EClass.scene.cam);
969 }
970
972 {
973 ScreenGrading grading = camSupport.grading;
974 float num = 0f;
975 float num2 = 0f;
977 {
979 {
980 num -= 0.05f * ui.dynamicBrightnessMod;
981 }
982 }
983 else
984 {
985 num = -0.05f;
986 }
987 Shader.SetGlobalFloat("_UIBrightness", 0.01f * (float)ui.brightness + grading.profile.uiBrightness + num);
988 Shader.SetGlobalFloat("_UIContrast", 0.01f * (float)ui.contrast + grading.profile.uiContrast + EClass.core.ui.lightContrast + num2);
989 }
990
991 public void ApplyVolume()
992 {
993 SetVolume("VolumeMaster", sound.volumeMaster);
994 SetVolume("VolumeBGM", EClass.Sound.muteBGM ? 0f : sound.volumeBGM);
995 SetVolume("VolumeSpatialBGM", sound.volumeBGM);
996 SetVolume("VolumeSFX", sound.volumeSFX);
997 SetVolume("VolumeAmbience", sound.volumeAMB);
999 }
1000
1001 public void SetBGMInterval()
1002 {
1004 {
1005 EClass._map.plDay.interval = other.bgmInterval * 5f;
1006 }
1007 }
1008
1009 public void SetVolume(string id, float v)
1010 {
1011 SoundManager.current.mixer.SetFloat(id, Mathf.Log((v < 0.01f) ? 0.01f : v) * 20f);
1012 }
1013
1014 public void OnSetLang()
1015 {
1017 ApplyFont();
1018 }
1019
1020 public void ApplyFont()
1021 {
1023 }
1024
1025 public void ApplySkin()
1026 {
1027 Core.Instance.ui.skins.SetMainSkin(test.idSkin);
1029 }
1030}
if(item3.idFile==idFirstFile &&item3.id==idFirstTopic)
Definition: UIBook.cs:627
string langCode
Definition: BaseCore.cs:25
Canvas canvas
Definition: BaseCore.cs:34
Version version
Definition: BaseCore.cs:17
void RefreshScreenSize()
void OnChangeResolution()
ScreenGrading grading
BloomOptimized bloom
Beautify beautify
bool IsJapanese(string text)
Definition: CoreConfig.cs:490
bool Show(SourceBacker.Row row)
Definition: CoreConfig.cs:448
CameraSupport.Divider divider
Definition: CoreConfig.cs:573
ScreenSnapType snapType
Definition: CoreConfig.cs:575
SkinManager.FontSaveData fontDialog
Definition: CoreConfig.cs:403
SkinManager.FontSaveData fontNews
Definition: CoreConfig.cs:407
SkinManager.FontSaveData fontChatbox
Definition: CoreConfig.cs:399
SkinManager.FontSaveData fontWidget
Definition: CoreConfig.cs:405
SkinManager.FontSaveData fontUI
Definition: CoreConfig.cs:397
SkinManager.FontSaveData fontBalloon
Definition: CoreConfig.cs:401
bool shiftToUseNegativeAbilityOnSelf
Definition: CoreConfig.cs:193
GameFuncBuild b_mouse4PressLong
Definition: CoreConfig.cs:257
GameFuncBuild b_middlePressLong
Definition: CoreConfig.cs:249
GameFuncBuild b_mouse3Click
Definition: CoreConfig.cs:251
GameFuncBuild b_mouse3PressLong
Definition: CoreConfig.cs:253
EInput.KeyMapManager keys
Definition: CoreConfig.cs:259
GameFuncBuild b_middleClick
Definition: CoreConfig.cs:247
GameFuncBuild b_mouse4Click
Definition: CoreConfig.cs:255
bool extraMoveCancel
Definition: CoreConfig.cs:545
bool allowBlockOnItem
Definition: CoreConfig.cs:551
bool alwaysFixCamera
Definition: CoreConfig.cs:555
bool ignoreBackerDestoryFlag
Definition: CoreConfig.cs:557
bool extraTurnaround
Definition: CoreConfig.cs:537
float brightnessNight
Definition: CoreConfig.cs:567
bool dontCancelIfZeroDamage
Definition: CoreConfig.cs:553
bool ignoreApply
Definition: CoreConfig.cs:627
int maxPlayedHours
Definition: CoreConfig.cs:588
static void ResetGame()
Definition: CoreConfig.cs:765
SoundSetting sound
Definition: CoreConfig.cs:598
void ApplyVolume()
Definition: CoreConfig.cs:991
void OnInit()
Definition: CoreConfig.cs:726
List< FontSource > customFonts
Definition: CoreConfig.cs:620
new GameConfig game
Definition: CoreConfig.cs:604
static int ZoomStep
Definition: CoreConfig.cs:634
void SetVolume(string id, float v)
Definition: CoreConfig.cs:1009
HashSet< string > helpFlags
Definition: CoreConfig.cs:622
void ApplyGrading()
Definition: CoreConfig.cs:951
string rewardCode
Definition: CoreConfig.cs:586
void Save()
Definition: CoreConfig.cs:823
string nameReport
Definition: CoreConfig.cs:582
static void ResetInput()
Definition: CoreConfig.cs:774
void Apply()
Definition: CoreConfig.cs:858
string emailReport
Definition: CoreConfig.cs:584
void ApplyResolution(bool force=false)
Definition: CoreConfig.cs:896
void ApplySkin()
Definition: CoreConfig.cs:1025
void ApplyScale()
Definition: CoreConfig.cs:909
bool ignoreLinuxModWarning
Definition: CoreConfig.cs:592
bool HasBackerRewardCode()
Definition: CoreConfig.cs:732
static void ResetTest()
Definition: CoreConfig.cs:790
void SetBGMInterval()
Definition: CoreConfig.cs:1001
static CoreConfig TryLoadConfig()
Definition: CoreConfig.cs:657
bool cloud
Definition: CoreConfig.cs:594
Version version
Definition: CoreConfig.cs:578
void RefreshUIBrightness()
Definition: CoreConfig.cs:971
void ApplyFont()
Definition: CoreConfig.cs:1020
GraphicSetting graphic
Definition: CoreConfig.cs:602
PostEffectProfile GetPostEffectProfile(bool replaceWorld=false)
Definition: CoreConfig.cs:941
string lang
Definition: CoreConfig.cs:580
void ApplyHUD()
Definition: CoreConfig.cs:930
CameraConfig camera
Definition: CoreConfig.cs:612
void SetLang(string id)
Definition: CoreConfig.cs:805
int[] _framerates
Definition: CoreConfig.cs:629
FontSetting font
Definition: CoreConfig.cs:600
void OnChangeResolution()
Definition: CoreConfig.cs:831
static string path
Definition: CoreConfig.cs:631
void ApplyFPS(bool force=false)
Definition: CoreConfig.cs:836
void TryUpdatePlayedHour()
Definition: CoreConfig.cs:810
bool ignoreParallelsWarning
Definition: CoreConfig.cs:590
void ApplyZoom(float a)
Definition: CoreConfig.cs:934
OtherSetting other
Definition: CoreConfig.cs:614
static bool IsCompatible(Version v)
Definition: CoreConfig.cs:698
static void ResetGraphics()
Definition: CoreConfig.cs:757
new UISetting ui
Definition: CoreConfig.cs:596
NetSetting net
Definition: CoreConfig.cs:606
BackerContentConfig backer
Definition: CoreConfig.cs:608
int[] colors
Definition: CoreConfig.cs:624
void OnSetLang()
Definition: CoreConfig.cs:1014
static bool Exist()
Definition: CoreConfig.cs:648
static void ResetOther()
Definition: CoreConfig.cs:782
static void Reset()
Definition: CoreConfig.cs:737
void OnReset()
Definition: CoreConfig.cs:797
CameraSupport camSupport
Definition: CoreConfig.cs:646
InputSetting input
Definition: CoreConfig.cs:610
static void Init()
Definition: CoreConfig.cs:703
static void ResetGeneral()
Definition: CoreConfig.cs:747
bool useNewConfig
Definition: CoreDebug.cs:124
bool enable
Definition: CoreDebug.cs:286
static string ConfigFile
Definition: CorePath.cs:182
static string VersionFile
Definition: CorePath.cs:184
Definition: Core.cs:14
GameSetting gameSetting
Definition: Core.cs:47
Game game
Definition: Core.cs:72
static new Core Instance
Definition: Core.cs:15
void ApplySkins()
Definition: Core.cs:757
bool IsGameStarted
Definition: Core.cs:84
UI ui
Definition: Core.cs:63
CoreConfig config
Definition: Core.cs:70
bool IsNight
Definition: Date.cs:112
Definition: EClass.cs:5
static Scene scene
Definition: EClass.cs:30
static Core core
Definition: EClass.cs:6
static World world
Definition: EClass.cs:40
static Map _map
Definition: EClass.cs:18
static SourceManager sources
Definition: EClass.cs:42
static BaseGameScreen screen
Definition: EClass.cs:32
static Player player
Definition: EClass.cs:12
static CoreDebug debug
Definition: EClass.cs:48
static SoundManager Sound
Definition: EClass.cs:46
static GameSetting setting
Definition: EClass.cs:34
Definition: EInput.cs:8
static ButtonState middleMouse
Definition: EInput.cs:353
static void SetKeyMap(KeyMapManager _keys)
Definition: EInput.cs:433
static bool IsValid(string code)
Definition: ElinEncoder.cs:48
CoreConfig config
Definition: GameSetting.cs:337
RenderSetting render
Definition: GameSetting.cs:301
Zone activeZone
Definition: Game.cs:248
Definition: Lang.cs:6
static string langCode
Definition: Lang.cs:28
bool indoor
Definition: MapConfig.cs:29
MapConfig config
Definition: Map.cs:37
double timeElapsed
Definition: Player.cs:66
Stats stats
Definition: Player.cs:972
void Apply(Camera cam)
CameraSupport camSupport
Definition: Scene.cs:41
Camera cam
Definition: Scene.cs:37
void InitFont()
Definition: SkinManager.cs:109
static SkinManager Instance
Definition: SkinManager.cs:78
SourceBacker backers
virtual bool IsRegion
Definition: Spatial.cs:503
GameDate date
Definition: World.cs:6
string GetText()
Definition: Version.cs:16
bool IsBelow(int _major, int _minor, int _batch)
Definition: Version.cs:31