From 2e6f0c3d957496f4d2453500832b88be0dc9028e Mon Sep 17 00:00:00 2001 From: Arneth Date: Sat, 9 Apr 2022 09:41:48 -0400 Subject: [PATCH] screen resolution select --- Assembly-CSharp.csproj | 10 +- .../Scene/Scenes/SceneScreenResSettings.unity | Bin 0 -> 13132 bytes .../Assembly-CSharp/ScreenResWindow.cs | 475 ++++++++++++++++++ Assets/Scripts/Assembly-CSharp/TitleWindow.cs | 10 +- Assets/Scripts/Assembly-CSharp/UIValue.cs | 2 + Assets/Scripts/Assembly-CSharp/UnityApp.cs | 1 + ProjectSettings/EditorBuildSettings.asset | Bin 5776 -> 6380 bytes ProjectSettings/ProjectSettings.asset | Bin 70430 -> 70430 bytes 8 files changed, 493 insertions(+), 5 deletions(-) create mode 100644 Assets/Scene/Scenes/SceneScreenResSettings.unity create mode 100644 Assets/Scripts/Assembly-CSharp/ScreenResWindow.cs diff --git a/Assembly-CSharp.csproj b/Assembly-CSharp.csproj index eeb839782..caefade2e 100644 --- a/Assembly-CSharp.csproj +++ b/Assembly-CSharp.csproj @@ -1,7 +1,7 @@  - latest + 9.0 Debug @@ -22,7 +22,7 @@ full false Temp\Bin\Debug\ - UNITY_2021_2_10;UNITY_2021_2;UNITY_2021;UNITY_5_3_OR_NEWER;UNITY_5_4_OR_NEWER;UNITY_5_5_OR_NEWER;UNITY_5_6_OR_NEWER;UNITY_2017_1_OR_NEWER;UNITY_2017_2_OR_NEWER;UNITY_2017_3_OR_NEWER;UNITY_2017_4_OR_NEWER;UNITY_2018_1_OR_NEWER;UNITY_2018_2_OR_NEWER;UNITY_2018_3_OR_NEWER;UNITY_2018_4_OR_NEWER;UNITY_2019_1_OR_NEWER;UNITY_2019_2_OR_NEWER;UNITY_2019_3_OR_NEWER;UNITY_2019_4_OR_NEWER;UNITY_2020_1_OR_NEWER;UNITY_2020_2_OR_NEWER;UNITY_2020_3_OR_NEWER;UNITY_2021_1_OR_NEWER;UNITY_2021_2_OR_NEWER;PLATFORM_ARCH_64;UNITY_64;UNITY_INCLUDE_TESTS;USE_SEARCH_ENGINE_API;USE_SEARCH_TABLE;USE_SEARCH_MODULE;USE_PROPERTY_DATABASE;SCENE_TEMPLATE_MODULE;ENABLE_AR;ENABLE_AUDIO;ENABLE_CACHING;ENABLE_CLOTH;ENABLE_MICROPHONE;ENABLE_MULTIPLE_DISPLAYS;ENABLE_PHYSICS;ENABLE_TEXTURE_STREAMING;ENABLE_VIRTUALTEXTURING;ENABLE_UNET;ENABLE_LZMA;ENABLE_UNITYEVENTS;ENABLE_VR;ENABLE_WEBCAM;ENABLE_UNITYWEBREQUEST;ENABLE_WWW;ENABLE_CLOUD_SERVICES;ENABLE_CLOUD_SERVICES_COLLAB;ENABLE_CLOUD_SERVICES_COLLAB_SOFTLOCKS;ENABLE_CLOUD_SERVICES_ADS;ENABLE_CLOUD_SERVICES_USE_WEBREQUEST;ENABLE_CLOUD_SERVICES_CRASH_REPORTING;ENABLE_CLOUD_SERVICES_NATIVE_CRASH_REPORTING;ENABLE_CLOUD_SERVICES_PURCHASING;ENABLE_CLOUD_SERVICES_ANALYTICS;ENABLE_CLOUD_SERVICES_UNET;ENABLE_CLOUD_SERVICES_BUILD;ENABLE_CLOUD_LICENSE;ENABLE_EDITOR_HUB_LICENSE;ENABLE_WEBSOCKET_CLIENT;ENABLE_DIRECTOR_AUDIO;ENABLE_DIRECTOR_TEXTURE;ENABLE_MANAGED_JOBS;ENABLE_MANAGED_TRANSFORM_JOBS;ENABLE_MANAGED_ANIMATION_JOBS;ENABLE_MANAGED_AUDIO_JOBS;ENABLE_MANAGED_UNITYTLS;INCLUDE_DYNAMIC_GI;ENABLE_SCRIPTING_GC_WBARRIERS;PLATFORM_SUPPORTS_MONO;RENDER_SOFTWARE_CURSOR;ENABLE_VIDEO;ENABLE_ACCELERATOR_CLIENT_DEBUGGING;PLATFORM_STANDALONE;TEXTCORE_1_0_OR_NEWER;PLATFORM_STANDALONE_OSX;UNITY_STANDALONE_OSX;UNITY_STANDALONE;ENABLE_GAMECENTER;ENABLE_RUNTIME_GI;ENABLE_MOVIES;ENABLE_NETWORK;ENABLE_CRUNCH_TEXTURE_COMPRESSION;ENABLE_CLUSTER_SYNC;ENABLE_CLUSTERINPUT;ENABLE_SPATIALTRACKING;PLATFORM_UPDATES_TIME_OUTSIDE_OF_PLAYER_LOOP;ENABLE_WEBSOCKET_HOST;ENABLE_MONO;NET_STANDARD_2_0;NET_STANDARD;ENABLE_PROFILER;DEBUG;TRACE;UNITY_ASSERTIONS;UNITY_EDITOR;UNITY_EDITOR_64;UNITY_EDITOR_WIN;ENABLE_UNITY_COLLECTIONS_CHECKS;ENABLE_BURST_AOT;UNITY_TEAM_LICENSE;ENABLE_CUSTOM_RENDER_TEXTURE;ENABLE_DIRECTOR;ENABLE_LOCALIZATION;ENABLE_SPRITES;ENABLE_TERRAIN;ENABLE_TILEMAP;ENABLE_TIMELINE;ENABLE_LEGACY_INPUT_MANAGER;CSHARP_7_OR_LATER;CSHARP_7_3_OR_NEWER + UNITY_2021_2_10;UNITY_2021_2;UNITY_2021;UNITY_5_3_OR_NEWER;UNITY_5_4_OR_NEWER;UNITY_5_5_OR_NEWER;UNITY_5_6_OR_NEWER;UNITY_2017_1_OR_NEWER;UNITY_2017_2_OR_NEWER;UNITY_2017_3_OR_NEWER;UNITY_2017_4_OR_NEWER;UNITY_2018_1_OR_NEWER;UNITY_2018_2_OR_NEWER;UNITY_2018_3_OR_NEWER;UNITY_2018_4_OR_NEWER;UNITY_2019_1_OR_NEWER;UNITY_2019_2_OR_NEWER;UNITY_2019_3_OR_NEWER;UNITY_2019_4_OR_NEWER;UNITY_2020_1_OR_NEWER;UNITY_2020_2_OR_NEWER;UNITY_2020_3_OR_NEWER;UNITY_2021_1_OR_NEWER;UNITY_2021_2_OR_NEWER;PLATFORM_ARCH_64;UNITY_64;UNITY_INCLUDE_TESTS;USE_SEARCH_ENGINE_API;USE_SEARCH_TABLE;USE_SEARCH_MODULE;USE_PROPERTY_DATABASE;SCENE_TEMPLATE_MODULE;ENABLE_AR;ENABLE_AUDIO;ENABLE_CACHING;ENABLE_CLOTH;ENABLE_EVENT_QUEUE;ENABLE_MICROPHONE;ENABLE_MULTIPLE_DISPLAYS;ENABLE_PHYSICS;ENABLE_TEXTURE_STREAMING;ENABLE_VIRTUALTEXTURING;ENABLE_UNET;ENABLE_LZMA;ENABLE_UNITYEVENTS;ENABLE_VR;ENABLE_WEBCAM;ENABLE_UNITYWEBREQUEST;ENABLE_WWW;ENABLE_CLOUD_SERVICES;ENABLE_CLOUD_SERVICES_COLLAB;ENABLE_CLOUD_SERVICES_COLLAB_SOFTLOCKS;ENABLE_CLOUD_SERVICES_ADS;ENABLE_CLOUD_SERVICES_USE_WEBREQUEST;ENABLE_CLOUD_SERVICES_CRASH_REPORTING;ENABLE_CLOUD_SERVICES_PURCHASING;ENABLE_CLOUD_SERVICES_ANALYTICS;ENABLE_CLOUD_SERVICES_UNET;ENABLE_CLOUD_SERVICES_BUILD;ENABLE_CLOUD_LICENSE;ENABLE_EDITOR_HUB_LICENSE;ENABLE_WEBSOCKET_CLIENT;ENABLE_DIRECTOR_AUDIO;ENABLE_DIRECTOR_TEXTURE;ENABLE_MANAGED_JOBS;ENABLE_MANAGED_TRANSFORM_JOBS;ENABLE_MANAGED_ANIMATION_JOBS;ENABLE_MANAGED_AUDIO_JOBS;ENABLE_MANAGED_UNITYTLS;INCLUDE_DYNAMIC_GI;ENABLE_SCRIPTING_GC_WBARRIERS;PLATFORM_SUPPORTS_MONO;RENDER_SOFTWARE_CURSOR;ENABLE_VIDEO;ENABLE_ACCELERATOR_CLIENT_DEBUGGING;PLATFORM_STANDALONE;TEXTCORE_1_0_OR_NEWER;PLATFORM_STANDALONE_WIN;UNITY_STANDALONE_WIN;UNITY_STANDALONE;ENABLE_RUNTIME_GI;ENABLE_MOVIES;ENABLE_NETWORK;ENABLE_NVIDIA;ENABLE_CRUNCH_TEXTURE_COMPRESSION;ENABLE_OUT_OF_PROCESS_CRASH_HANDLER;ENABLE_CLUSTER_SYNC;ENABLE_CLUSTERINPUT;PLATFORM_UPDATES_TIME_OUTSIDE_OF_PLAYER_LOOP;GFXDEVICE_WAITFOREVENT_MESSAGEPUMP;ENABLE_WEBSOCKET_HOST;ENABLE_MONO;NET_STANDARD_2_0;NET_STANDARD;ENABLE_PROFILER;DEBUG;TRACE;UNITY_ASSERTIONS;UNITY_EDITOR;UNITY_EDITOR_64;UNITY_EDITOR_WIN;ENABLE_UNITY_COLLECTIONS_CHECKS;ENABLE_BURST_AOT;UNITY_TEAM_LICENSE;ENABLE_CUSTOM_RENDER_TEXTURE;ENABLE_DIRECTOR;ENABLE_LOCALIZATION;ENABLE_SPRITES;ENABLE_TERRAIN;ENABLE_TILEMAP;ENABLE_TIMELINE;ENABLE_LEGACY_INPUT_MANAGER;CSHARP_7_OR_LATER;CSHARP_7_3_OR_NEWER prompt 4 0169 @@ -49,9 +49,12 @@ Package 2.0.12 Game:1 - StandaloneOSX:2 + StandaloneWindows64:19 2021.2.10f1 + + + @@ -67,6 +70,7 @@ + diff --git a/Assets/Scene/Scenes/SceneScreenResSettings.unity b/Assets/Scene/Scenes/SceneScreenResSettings.unity new file mode 100644 index 0000000000000000000000000000000000000000..39f0f25e25bd3c9a31c5cc5ad0d6e96693aba19a GIT binary patch literal 13132 zcmeHNYm8(^b*|nAeuRf@HV(n8)3(>(7wg@%F(I*MyXWDVff>(adTo=yX1UXScc#7F zeP?gqUe8!Wz5#_8Kfn@+B?O3_b!1`#hFCl#Fkpp;0=5YVfdvRiNRS;YB|-QH4~5D1 z)v3B&b?=>Z0P!OdM|0~|ov+TRQ+2COovI$CGCDiUsolpUf5nWvcYoMo`}XYHyL;d6 zy?YMtRlnHS*r=QWWGB&$jn>lluIzV@KlJ#e%eVd49shRw^TB-*&lbX-Q=Kxg_-m0T&Ii?X z%EaO!^2D~2>ERXi6)?*^St*iSUt3S(s%Q&A^Wi$U|q;h-5FSdPQ~a@1+5 z?x99A?1hupPmilskOZ&Wb5P!U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HBQGS z(_d$_ed|~l4HPLaj;$&nQf(jR*Y(J=Z`!fx_#z)77jW46T#~X`vmx$9~WvoMJiRpF8@=n~rqezWwsQx$9#yfAO_1&2j$H*YF#j0-yHVedGV{ zzHuCW@gTk-za{sLN*#$It}C9cUtEPt*B-Al^>dYP4*2d&AR@&=e~ieSq0+m zy63*(|;eG_kfTsm0N8Rknrg*@wSClmA& z!=FcfE1vbc-_Rm|$|yXFJawEf{6`Ew1&=!JHT)WdLDa*O=nJ3z$STWs8~z&d)U(6z z&oGAF2_E&(3_ky|_93L^V(yyL2d7=N^RsgwyZ^+aZ+f(Ps?nt@*tkdvGwsDVh}SM3 z^zgql)t3AdNfkE_(IDo(gDCY+58U5~V3-TH-CVsu4Ect>Bc~heb-*H$T%F+&(qz+R25tFjK ztE>p7mSHknvqVaX@_aaVw4988&DzMo!M*dzB4xDDt^NnejOcs z{ISRIZ88E+sRtgoM0nQt4F1(J#_nuwQHxzq%+tmj@p})4($@Lcv^qw j+n( dict = null; + + // Token: 0x06000746 RID: 1862 RVA: 0x0001F45C File Offset: 0x0001D65C + protected sealed override string GetBGMName() + { + return "honobono1_a_ali"; + } + + // Token: 0x06000747 RID: 1863 RVA: 0x0001F464 File Offset: 0x0001D664 + protected sealed override void OnAwake() + { + this.moveBackGround = new ScreenResWindow.MoveBackGround(); + this.pageManager = new ScreenResWindow.PageManager(5); + } + + // Token: 0x06000748 RID: 1864 RVA: 0x0001F480 File Offset: 0x0001D680 + protected sealed override string[] newSceneTextureNameArray() + { + return new string[] + { + "screen/title/help_01", + "screen/title/help_02", + "screen/title/help_03", + "screen/title/help_04", + "screen/title/help_05", + "screen/common/cancel", + "screen/cgmemory/cgm_arwl", + "screen/cgmemory/cgm_arwr" + }; + } + + // Token: 0x06000749 RID: 1865 RVA: 0x0001F4D8 File Offset: 0x0001D6D8 + protected sealed override void BeforeInit() + { + } + + // Token: 0x0600074A RID: 1866 RVA: 0x0001F4DC File Offset: 0x0001D6DC + protected sealed override void AfterInit() + { + //this.moveBackGround.Init(base.GetGameObject("Before"), base.GetGameObject("After"), base.GetGameObject("BackGround")); + float delay = 0f; + int repeat = 0; + float speed = 0.8f; + //ImageObject imageObject = base.GetImageObject("ArrowL"); + //imageObject.AddImageAnimation(new ImageAnimationLocalPosition(repeat, speed, delay, MoveType.LoopSin000to180, new Vector3(0f, 0f, 0f), new Vector3(-25f, 0f, 0f))); + //ImageObject imageObject2 = base.GetImageObject("ArrowR"); + //imageObject2.AddImageAnimation(new ImageAnimationLocalPosition(repeat, speed, delay, MoveType.LoopSin000to180, new Vector3(0f, 0f, 0f), new Vector3(25f, 0f, 0f))); + } + + // Token: 0x0600074B RID: 1867 RVA: 0x0001F5AC File Offset: 0x0001D7AC + protected sealed override BaseWindow.UIComponent[] newComponentArray() + { + //string currentFPath = this.pageManager.GetCurrentFPath(); + return new BaseWindow.UIComponent[] + { + //new BaseWindow.UIImage("Before", 0, 0, this.wndz - 1, currentFPath, false, false), + //new BaseWindow.UIImage("After", 0, 0, this.wndz - 1, currentFPath, false, false), + //new BaseWindow.UIImage("BackGround", 0, 0, this.wndz, currentFPath, true, true), + new BaseWindow.UIImage("BackGround", 0, 0, this.wndz, "screen/title/cgm_bg_1", true, true), + new BaseWindow.UIButton("Cancel", 887, 6, this.wndz + 3, "screen/common/cancel", true, true, 1, 2, 0), + + new BaseWindow.UIButton("1024x576", 125, 50, this.wndz + 3, "screen/title/buy05", true, true, 1, 2, 0), + new BaseWindow.UIText("1024x576res", 280, 85, this.wndz + 4, "1024 x 576", 30, UnityTextSprite.PositionType.Center, UnityTextSprite.PositionType.Center, byte.MaxValue, byte.MaxValue, byte.MaxValue, byte.MaxValue), + new BaseWindow.UIButton("1280×720", 475, 50, this.wndz + 3, "screen/title/buy05", true, true, 1, 2, 0), + new BaseWindow.UIText("1280×720res", 630, 85, this.wndz + 4, "1280 × 720", 30, UnityTextSprite.PositionType.Center, UnityTextSprite.PositionType.Center, byte.MaxValue, byte.MaxValue, byte.MaxValue, byte.MaxValue), + + new BaseWindow.UIButton("1366×768", 125, 150, this.wndz + 3, "screen/title/buy05", true, true, 1, 2, 0), + new BaseWindow.UIText("1366×768res", 280, 185, this.wndz + 4, "1366 × 768", 30, UnityTextSprite.PositionType.Center, UnityTextSprite.PositionType.Center, byte.MaxValue, byte.MaxValue, byte.MaxValue, byte.MaxValue), + new BaseWindow.UIButton("1600×900", 475, 150, this.wndz + 3, "screen/title/buy05", true, true, 1, 2, 0), + new BaseWindow.UIText("1600×900res", 630, 185, this.wndz + 4, "1600 × 900", 30, UnityTextSprite.PositionType.Center, UnityTextSprite.PositionType.Center, byte.MaxValue, byte.MaxValue, byte.MaxValue, byte.MaxValue), + + new BaseWindow.UIButton("1920×1080", 125, 250, this.wndz + 3, "screen/title/buy05", true, true, 1, 2, 0), + new BaseWindow.UIText("1920×1080res", 280, 285, this.wndz + 4, "1920 × 1080", 30, UnityTextSprite.PositionType.Center, UnityTextSprite.PositionType.Center, byte.MaxValue, byte.MaxValue, byte.MaxValue, byte.MaxValue), + new BaseWindow.UIButton("2560×1440", 475, 250, this.wndz + 3, "screen/title/buy05", true, true, 1, 2, 0), + new BaseWindow.UIText("2560×1440res", 630, 285, this.wndz + 4, "2560 × 1440", 30, UnityTextSprite.PositionType.Center, UnityTextSprite.PositionType.Center, byte.MaxValue, byte.MaxValue, byte.MaxValue, byte.MaxValue), + + new BaseWindow.UIButton("Fullscreen", 300, 400, this.wndz + 3, "screen/title/buy05", true, true, 1, 2, 0), + new BaseWindow.UIText("Fullscreenres", 455, 435, this.wndz + 4, "Fullscreen", 30, UnityTextSprite.PositionType.Center, UnityTextSprite.PositionType.Center, byte.MaxValue, byte.MaxValue, byte.MaxValue, byte.MaxValue), + //new BaseWindow.UIImage("ArrowL", 33, 80, this.wndz + 3, "screen/cgmemory/cgm_arwl", false, true), + //new BaseWindow.UIImage("ArrowR", 848, 80, this.wndz + 3, "screen/cgmemory/cgm_arwr", false, true) + }; + } + + // Token: 0x0600074C RID: 1868 RVA: 0x0001F684 File Offset: 0x0001D884 + protected sealed override void OnBaseWindowOnButton(string obj) + { + if (obj != null) + { + if (this.dict == null) + { + this.dict = new Dictionary(1) + { + { + "Cancel", + 0 + }, + { + "1024x576", + 1 + }, + { + "1280×720", + 2 + }, + { + "1366×768", + 3 + }, + { + "1600×900", + 4 + }, + { + "1920×1080", + 5 + }, + { + "2560×1440", + 6 + }, + { + "Fullscreen", + 7 + } + }; + } + int num; + if (this.dict.TryGetValue(obj, out num)) + { + if (num == 0) + { + base.PlaySE_Cancel(); + SceneManager.BackScene(); + } + else if (num == 1) + { + Screen.SetResolution(1024, 576, false, 60); + } + else if (num == 2) + { + Screen.SetResolution(1280, 720, false, 60); + } + else if (num == 3) + { + Screen.SetResolution(1366, 768, false, 60); + } + else if (num == 4) + { + Screen.SetResolution(1600, 900, false, 60); + } + else if (num == 5) + { + Screen.SetResolution(1920, 1080, false, 60); + } + else if (num == 6) + { + Screen.SetResolution(2560, 1440, false, 60); + } + else if (num == 7) + { + Screen.fullScreen = !Screen.fullScreen; + } + } + } + } + + // Token: 0x0600074D RID: 1869 RVA: 0x0001F6EC File Offset: 0x0001D8EC + protected override void OnBaseWindowUpdate() + { + if (this.moveBackGround.Moving) + { + if (!this.moveBackGround.Update()) + { + base.SetTexture("BackGround", "screen/title/" + this.pageManager.GetCurrentFPath()); + } + return; + } + INPUT_STATUS status = UnityApp.Input.Status; + if (status == INPUT_STATUS.DRAG || status == INPUT_STATUS.FLICK) + { + //this.OnFlick(UnityApp.Input.SlideDragVector); + } + } + + // Token: 0x0600074E RID: 1870 RVA: 0x0001F770 File Offset: 0x0001D970 + /*private void OnFlick(SLIDE_VECTOR slide) + { + string currentFPath = this.pageManager.GetCurrentFPath(); + if (slide != SLIDE_VECTOR.LEFT) + { + if (slide == SLIDE_VECTOR.RIGHT) + { + base.PlaySE_Select(); + this.pageManager.Left(); + } + } + else + { + base.PlaySE_Select(); + this.pageManager.Right(); + } + string currentFPath2 = this.pageManager.GetCurrentFPath(); + if (currentFPath2 != currentFPath) + { + Qoo.Debug.Print(currentFPath2); + this.ChangeBG(currentFPath, currentFPath2, slide); + } + }*/ + + // Token: 0x0600074F RID: 1871 RVA: 0x0001F7F4 File Offset: 0x0001D9F4 + private void ChangeBG(string beforePath, string afterPath, SLIDE_VECTOR slide) + { + this.moveBackGround.ChangeBG(beforePath, afterPath, slide); + if (this.moveBackGround.Update()) + { + base.StartCoroutine(this.TransitionCoroutine(this.moveBackGround.param)); + } + } + + // Token: 0x06000750 RID: 1872 RVA: 0x0001F838 File Offset: 0x0001DA38 + private IEnumerator TransitionCoroutine(ScreenResWindow.TransitionParam param) + { + EffectManager.Init(param.effectName, 500, param.renderer, param.before, param.after); + yield return base.StartCoroutine(EffectManager.StartEffect()); + param.action(); + yield break; + } + + // Token: 0x040006A8 RID: 1704 + private readonly int wndz; + + // Token: 0x040006A9 RID: 1705 + private ScreenResWindow.MoveBackGround moveBackGround; + + // Token: 0x040006AA RID: 1706 + private ScreenResWindow.PageManager pageManager; + + // Token: 0x02000114 RID: 276 + private class PageManager + { + // Token: 0x06000751 RID: 1873 RVA: 0x0001F864 File Offset: 0x0001DA64 + public PageManager(int pageMax_) + { + this.page = 0; + this.pageMax = pageMax_; + } + + // Token: 0x06000752 RID: 1874 RVA: 0x0001F87C File Offset: 0x0001DA7C + public string GetCurrentFPath() + { + return this.getName(this.page); + } + + // Token: 0x06000753 RID: 1875 RVA: 0x0001F88C File Offset: 0x0001DA8C + public string LeftFPath() + { + return this.getName(this.getLeft()); + } + + // Token: 0x06000754 RID: 1876 RVA: 0x0001F89C File Offset: 0x0001DA9C + public string RightFPath() + { + return this.getName(this.getRight()); + } + + // Token: 0x06000755 RID: 1877 RVA: 0x0001F8AC File Offset: 0x0001DAAC + public void Left() + { + this.page = this.getLeft(); + } + + // Token: 0x06000756 RID: 1878 RVA: 0x0001F8BC File Offset: 0x0001DABC + public void Right() + { + this.page = this.getRight(); + } + + // Token: 0x06000757 RID: 1879 RVA: 0x0001F8CC File Offset: 0x0001DACC + private string getName(int page) + { + return (page + 1).ToString("screen/title/help_00"); + } + + // Token: 0x06000758 RID: 1880 RVA: 0x0001F8EC File Offset: 0x0001DAEC + private int getLeft() + { + return (this.page != 0) ? (this.page - 1) : (this.pageMax - 1); + } + + // Token: 0x06000759 RID: 1881 RVA: 0x0001F91C File Offset: 0x0001DB1C + private int getRight() + { + return (this.page != this.pageMax - 1) ? (this.page + 1) : 0; + } + + // Token: 0x040006AC RID: 1708 + private int page; + + // Token: 0x040006AD RID: 1709 + private int pageMax; + } + + // Token: 0x02000115 RID: 277 + private class MoveImage + { + // Token: 0x0600075A RID: 1882 RVA: 0x0001F940 File Offset: 0x0001DB40 + public MoveImage() + { + this.go = null; + } + + // Token: 0x0600075B RID: 1883 RVA: 0x0001F950 File Offset: 0x0001DB50 + public void Init(GameObject go_) + { + this.go = go_; + } + + // Token: 0x0600075C RID: 1884 RVA: 0x0001F95C File Offset: 0x0001DB5C + public void SetTexture(string fpath) + { + ImageObject component = this.go.GetComponent(); + if (component == null) + { + return; + } + component.SetTexture("screen/title/" + fpath); + } + + // Token: 0x0600075D RID: 1885 RVA: 0x0001F994 File Offset: 0x0001DB94 + public Texture Texture() + { + ImageObject component = this.go.GetComponent(); + if (component == null) + { + return null; + } + return component.Texture; + } + + // Token: 0x040006AE RID: 1710 + private GameObject go; + } + + // Token: 0x02000116 RID: 278 + private class TransitionParam + { + // Token: 0x0600075E RID: 1886 RVA: 0x0001F9C4 File Offset: 0x0001DBC4 + public TransitionParam(string effectName_ = null, Texture before_ = null, Texture after_ = null, Renderer renderer_ = null, Action action_ = null) + { + this.effectName = effectName_; + this.before = before_; + this.after = after_; + this.renderer = renderer_; + this.action = action_; + } + + // Token: 0x040006AF RID: 1711 + public string effectName; + + // Token: 0x040006B0 RID: 1712 + public Texture before; + + // Token: 0x040006B1 RID: 1713 + public Texture after; + + // Token: 0x040006B2 RID: 1714 + public Renderer renderer; + + // Token: 0x040006B3 RID: 1715 + public Action action; + } + + // Token: 0x02000117 RID: 279 + private class MoveBackGround + { + // Token: 0x0600075F RID: 1887 RVA: 0x0001F9F4 File Offset: 0x0001DBF4 + public MoveBackGround() + { + this.param = null; + this.before = new ScreenResWindow.MoveImage(); + this.after = new ScreenResWindow.MoveImage(); + this.moving = false; + } + + // Token: 0x170000DE RID: 222 + // (get) Token: 0x06000760 RID: 1888 RVA: 0x0001FA2C File Offset: 0x0001DC2C + public bool Moving + { + get + { + return this.moving; + } + } + + // Token: 0x06000761 RID: 1889 RVA: 0x0001FA34 File Offset: 0x0001DC34 + public void Init(GameObject before_, GameObject after_, GameObject bg_) + { + this.before.Init(before_); + this.after.Init(after_); + ImageObject component = bg_.GetComponent(); + if (component == null) + { + return; + } + this.renderer = component.GetComponent(); + } + + // Token: 0x06000762 RID: 1890 RVA: 0x0001FA7C File Offset: 0x0001DC7C + public void ChangeBG(string beforePath, string afterPath, SLIDE_VECTOR slide) + { + string text = this.calcVector(slide); + this.before.SetTexture(beforePath); + this.after.SetTexture(afterPath); + if (text != null) + { + this.moving = true; + this.param = new ScreenResWindow.TransitionParam(text, this.before.Texture(), this.after.Texture(), this.renderer, new Action(this.SetTransitionFinish)); + } + } + + // Token: 0x06000763 RID: 1891 RVA: 0x0001FAEC File Offset: 0x0001DCEC + public bool Update() + { + return this.moving; + } + + // Token: 0x06000764 RID: 1892 RVA: 0x0001FAF4 File Offset: 0x0001DCF4 + private string calcVector(SLIDE_VECTOR slide) + { + switch (slide) + { + case SLIDE_VECTOR.LEFT: + return "/bytes/effect/grad_r"; + case SLIDE_VECTOR.RIGHT: + return "/bytes/effect/grad_l"; + case SLIDE_VECTOR.UP: + return "/bytes/effect/grad_d"; + case SLIDE_VECTOR.DOWN: + return "/bytes/effect/grad_u"; + default: + return null; + } + } + + // Token: 0x06000765 RID: 1893 RVA: 0x0001FB3C File Offset: 0x0001DD3C + private void SetTransitionFinish() + { + this.moving = false; + } + + // Token: 0x040006B4 RID: 1716 + public ScreenResWindow.TransitionParam param; + + // Token: 0x040006B5 RID: 1717 + private ScreenResWindow.MoveImage before; + + // Token: 0x040006B6 RID: 1718 + private ScreenResWindow.MoveImage after; + + // Token: 0x040006B7 RID: 1719 + private Renderer renderer; + + // Token: 0x040006B8 RID: 1720 + private bool moving; + } +} diff --git a/Assets/Scripts/Assembly-CSharp/TitleWindow.cs b/Assets/Scripts/Assembly-CSharp/TitleWindow.cs index 029d0c7bd..992a1c7f1 100644 --- a/Assets/Scripts/Assembly-CSharp/TitleWindow.cs +++ b/Assets/Scripts/Assembly-CSharp/TitleWindow.cs @@ -67,11 +67,13 @@ public class TitleWindow : BaseWindow new BaseWindow.UIButton("Btn4", 378, 404, this.wndz + 1, "screen/title/title_4" + str, true, true, 1, 2, 0), new BaseWindow.UIButton("Btn5", 585, 404, this.wndz + 1, "screen/title/title_5", true, true, 1, 2, 0), new BaseWindow.UIButton("BtnRestore", 814, 472, this.wndz + 1, "screen/title/restore", !base.IsTrial, !base.IsTrial, 1, 2, 0), - new BaseWindow.UICollision("BtnGuard", 0, 0, this.wndz + 3, 960, 544) + new BaseWindow.UICollision("BtnGuard", 0, 0, this.wndz + 3, 960, 544), + new BaseWindow.UIButton("BtnScreenRes", 16, 472, this.wndz + 1, "screen/title/restore", !base.IsTrial, !base.IsTrial, 1, 2, 0) }; if (!UnityApp.Instance.isJapanese) { - components.Add(new BaseWindow.UIButton("BtnCredits", 16, 472, this.wndz + 1, "screen/title/restore", !base.IsTrial, !base.IsTrial, 1, 2, 0)); + + components.Add(new BaseWindow.UIButton("BtnCredits", 16, 402, this.wndz + 1, "screen/title/restore", !base.IsTrial, !base.IsTrial, 1, 2, 0)); } return components.ToArray(); } @@ -137,6 +139,10 @@ public class TitleWindow : BaseWindow base.PlaySE_Ok(); SceneManager.ChangeScene(UIValue.SCENE_TITLECREDITS); break; + case "BtnScreenRes": + base.PlaySE_Ok(); + SceneManager.ChangeScene(UIValue.SCENE_SCREENRESSETTING); + break; } } diff --git a/Assets/Scripts/Assembly-CSharp/UIValue.cs b/Assets/Scripts/Assembly-CSharp/UIValue.cs index b6f15e8e1..ca280538d 100644 --- a/Assets/Scripts/Assembly-CSharp/UIValue.cs +++ b/Assets/Scripts/Assembly-CSharp/UIValue.cs @@ -17,6 +17,8 @@ public class UIValue public static readonly string SCENE_TITLECREDITS = "SceneTitleCredits"; + public static readonly string SCENE_SCREENRESSETTING = "SceneScreenResSettings"; + // Token: 0x04000630 RID: 1584 public static readonly string SCENE_GALLERYMENU = "SceneGalleryMenu"; diff --git a/Assets/Scripts/Assembly-CSharp/UnityApp.cs b/Assets/Scripts/Assembly-CSharp/UnityApp.cs index 4ef4352ec..4ab24012e 100644 --- a/Assets/Scripts/Assembly-CSharp/UnityApp.cs +++ b/Assets/Scripts/Assembly-CSharp/UnityApp.cs @@ -24,6 +24,7 @@ public class UnityApp : Singleton { UnityEngine.Object.DontDestroyOnLoad(this); Application.targetFrameRate = 60; + //Screen.SetResolution(1024, 576, false, 60); this.task = base.gameObject.AddComponent(); this.time = base.gameObject.AddComponent(); this.file = base.gameObject.AddComponent(); diff --git a/ProjectSettings/EditorBuildSettings.asset b/ProjectSettings/EditorBuildSettings.asset index 550efe6729d129bad381775535ccc12157b62ded..212f030e0da7ef2b59298e11a643e448c646b799 100644 GIT binary patch literal 6380 zcmeHMdrVVT7(cau&Z)x*Dg$AH5ho5PGTn^bfP!tM1zbT`3~smWZMjf-Ngqn*+`32b z6~RU4oX!CXbqbSA!Xhv>F>08IIv2J%(M{YmaT=YE7>CfE?>=g)Qu^oq=t<7we!qUd z^WEQf&M7@09)x8Li5KY5|V$MGhKsz*S5nvAmw#48^ zh${%pDbTP5a2e)~!;dikXfWHMVT%9-dc-#dn*}Kx2xH9X9^X@p%@bdO86iHHf9zv; z06LAaL~MslJ&mh-!SgfvzJ!hN?&I7+JmzsRhmRiy&*1P0!{AB|f95elIz!w)^0zli{O;GX$=_Ms~?g8W5|V)X(3Nno`z5YzDa*@3Nq!#eWBJ@XTaVQ=|? zjpDgJ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