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 000000000..39f0f25e2 Binary files /dev/null and b/Assets/Scene/Scenes/SceneScreenResSettings.unity differ diff --git a/Assets/Scripts/Assembly-CSharp/ScreenResWindow.cs b/Assets/Scripts/Assembly-CSharp/ScreenResWindow.cs new file mode 100644 index 000000000..ec6986653 --- /dev/null +++ b/Assets/Scripts/Assembly-CSharp/ScreenResWindow.cs @@ -0,0 +1,475 @@ +using System; +using System.Collections; +using System.Collections.Generic; +using Qoo; +using UnityEngine; + +// Token: 0x02000113 RID: 275 +public class ScreenResWindow : BaseWindow +{ + private Dictionary 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 550efe672..212f030e0 100644 Binary files a/ProjectSettings/EditorBuildSettings.asset and b/ProjectSettings/EditorBuildSettings.asset differ diff --git a/ProjectSettings/ProjectSettings.asset b/ProjectSettings/ProjectSettings.asset index 56c7dff67..1c24d2e20 100644 Binary files a/ProjectSettings/ProjectSettings.asset and b/ProjectSettings/ProjectSettings.asset differ