You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

665 lines
24 KiB
C#

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

using Qoo.Def;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
// Token: 0x02000113 RID: 275
public class ScreenResWindow : BaseWindow
{
private Dictionary<string, int> 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",
"screen/sysmenu/sys_check",
};
}
// 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()
{
int column1Button = 50;
int column1Text = 195;
int column1ButtonHeight = 100;
int column1TextHeight = column1ButtonHeight + 25;
int column2Button = column1Button + 325;
int column2Text = column1Text + 325;
int column2ButtonHeight = 100;
int column2TextHeight = column2ButtonHeight + 25;
int column3Button = column2Button + 325;
int column3Text = column2Text + 325;
int column3ButtonHeight = 100;
int column3TextHeight = column2ButtonHeight + 25;
int columnHeightIncrement = 65;
//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/options_01", true, true),
new BaseWindow.UIButton("Cancel", 887, 6, this.wndz + 3, "screen/common/cancel", true, true, 1, 2, 0),
// Screen Resolution
/*
new BaseWindow.UIText("ScreenResLabel", column1Text, 50, this.wndz + 4, "Screen Size:", 40, UnityTextSprite.PositionType.Center, UnityTextSprite.PositionType.Center, byte.MaxValue, byte.MaxValue, byte.MaxValue, byte.MaxValue),
new BaseWindow.UIButton("1024x576", column1Button, column1ButtonHeight, this.wndz + 3, "screen/title/buy02", true, true, 1, 2, 0),
new BaseWindow.UIText("1024x576res", column1Text, column1TextHeight, 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", column1Button, column1ButtonHeight += columnHeightIncrement, this.wndz + 3, "screen/title/buy02", true, true, 1, 2, 0),
new BaseWindow.UIText("1280×720res", column1Text, column1TextHeight += columnHeightIncrement, 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", column1Button, column1ButtonHeight += columnHeightIncrement, this.wndz + 3, "screen/title/buy02", true, true, 1, 2, 0),
new BaseWindow.UIText("1366×768res", column1Text, column1TextHeight += columnHeightIncrement, this.wndz + 4, "1366 × 768", 30, UnityTextSprite.PositionType.Center, UnityTextSprite.PositionType.Center, byte.MaxValue, byte.MaxValue, byte.MaxValue, byte.MaxValue),
new BaseWindow.UIButton("1920×1080", column1Button, column1ButtonHeight += columnHeightIncrement, this.wndz + 3, "screen/title/buy02", true, true, 1, 2, 0),
new BaseWindow.UIText("1920×1080res", column1Text, column1TextHeight += columnHeightIncrement, 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", column1Button, column1ButtonHeight += columnHeightIncrement, this.wndz + 3, "screen/title/buy02", true, true, 1, 2, 0),
new BaseWindow.UIText("2560×1440res", column1Text, column1TextHeight += columnHeightIncrement, this.wndz + 4, "2560 × 1440", 30, UnityTextSprite.PositionType.Center, UnityTextSprite.PositionType.Center, byte.MaxValue, byte.MaxValue, byte.MaxValue, byte.MaxValue),
new BaseWindow.UIButton("Fullscreen", column1Button, column1ButtonHeight += columnHeightIncrement, this.wndz + 3, "screen/title/buy02", true, true, 1, 2, 0),
new BaseWindow.UIText("Fullscreenres", column1Text, column1TextHeight += columnHeightIncrement, this.wndz + 4, "Fullscreen", 30, UnityTextSprite.PositionType.Center, UnityTextSprite.PositionType.Center, byte.MaxValue, byte.MaxValue, byte.MaxValue, byte.MaxValue),
*/
// Font Size
/*
new BaseWindow.UIText("FontSizeLabel", column2Text, 50, this.wndz + 4, "Font Size:", 40, UnityTextSprite.PositionType.Center, UnityTextSprite.PositionType.Center, byte.MaxValue, byte.MaxValue, byte.MaxValue, byte.MaxValue),
new BaseWindow.UIButton("SmallFont", column2Button, column2ButtonHeight, this.wndz + 3, "screen/title/buy02", true, true, 1, 2, 0),
new BaseWindow.UIText("SmallFontOption", column2Text, column2TextHeight, this.wndz + 4, "Small", 30, UnityTextSprite.PositionType.Center, UnityTextSprite.PositionType.Center, byte.MaxValue, byte.MaxValue, byte.MaxValue, byte.MaxValue),
new BaseWindow.UIButton("NormalFont", column2Button, column2ButtonHeight += columnHeightIncrement, this.wndz + 3, "screen/title/buy02", true, true, 1, 2, 0),
new BaseWindow.UIText("NormalFontOption", column2Text, column2TextHeight += columnHeightIncrement, this.wndz + 4, "Normal", 30, UnityTextSprite.PositionType.Center, UnityTextSprite.PositionType.Center, byte.MaxValue, byte.MaxValue, byte.MaxValue, byte.MaxValue),
*/
// Language Select
/*
new BaseWindow.UIText("LanguageSelectLabel", column2Text, 250, this.wndz + 4, "Language:", 40, UnityTextSprite.PositionType.Center, UnityTextSprite.PositionType.Center, byte.MaxValue, byte.MaxValue, byte.MaxValue, byte.MaxValue),
new BaseWindow.UIButton("JP", column2Button, column2ButtonHeight += (columnHeightIncrement * 2), this.wndz + 3, "screen/title/buy02", true, true, 1, 2, 0),
new BaseWindow.UIText("JPOption", column2Text, column2TextHeight += (columnHeightIncrement * 2), this.wndz + 4, "日本語", 30, UnityTextSprite.PositionType.Center, UnityTextSprite.PositionType.Center, byte.MaxValue, byte.MaxValue, byte.MaxValue, byte.MaxValue),
new BaseWindow.UIButton("EN", column2Button, column2ButtonHeight += columnHeightIncrement, this.wndz + 3, "screen/title/buy02", true, true, 1, 2, 0),
new BaseWindow.UIText("ENOption", column2Text, column2TextHeight += columnHeightIncrement, this.wndz + 4, "English", 30, UnityTextSprite.PositionType.Center, UnityTextSprite.PositionType.Center, byte.MaxValue, byte.MaxValue, byte.MaxValue, byte.MaxValue),
new BaseWindow.UIButton("SP", column2Button, column2ButtonHeight += columnHeightIncrement, this.wndz + 3, "screen/title/buy02", true, true, 1, 2, 0),
new BaseWindow.UIText("SPOption", column2Text, column2TextHeight += columnHeightIncrement, this.wndz + 4, "Español", 30, UnityTextSprite.PositionType.Center, UnityTextSprite.PositionType.Center, byte.MaxValue, byte.MaxValue, byte.MaxValue, byte.MaxValue),
*/
// Font Size
/*
new BaseWindow.UIText("FontTypeLabel", column3Text, 50, this.wndz + 4, "UI Font:", 40, UnityTextSprite.PositionType.Center, UnityTextSprite.PositionType.Center, byte.MaxValue, byte.MaxValue, byte.MaxValue, byte.MaxValue),
new BaseWindow.UIButton("NewRodinFont", column3Button, column3ButtonHeight, this.wndz + 3, "screen/title/buy02", true, true, 1, 2, 0),
new BaseWindow.UIText("NewRodinOption", column3Text, column3TextHeight, this.wndz + 4, "New Rodin", 30, UnityTextSprite.PositionType.Center, UnityTextSprite.PositionType.Center, byte.MaxValue, byte.MaxValue, byte.MaxValue, byte.MaxValue),
new BaseWindow.UIButton("HummingFont", column3Button, column3ButtonHeight += columnHeightIncrement, this.wndz + 3, "screen/title/buy02", true, true, 1, 2, 0),
new BaseWindow.UIText("HummingFontOption", column3Text, column3TextHeight += columnHeightIncrement, this.wndz + 4, "Humming", 30, UnityTextSprite.PositionType.Center, UnityTextSprite.PositionType.Center, byte.MaxValue, byte.MaxValue, byte.MaxValue, byte.MaxValue),
new BaseWindow.UIButton("NewCezanneFont", column3Button, column3ButtonHeight += columnHeightIncrement, this.wndz + 3, "screen/title/buy02", true, true, 1, 2, 0),
new BaseWindow.UIText("NewCezanneFontOption", column3Text, column3TextHeight += columnHeightIncrement, this.wndz + 4, "New Cezanne", 30, UnityTextSprite.PositionType.Center, UnityTextSprite.PositionType.Center, byte.MaxValue, byte.MaxValue, byte.MaxValue, byte.MaxValue),
new BaseWindow.UIButton("SlumpFont", column3Button, column3ButtonHeight += columnHeightIncrement, this.wndz + 3, "screen/title/buy02", true, true, 1, 2, 0),
new BaseWindow.UIText("SlumpFontOption", column3Text, column3TextHeight += columnHeightIncrement, this.wndz + 4, "Slump", 30, UnityTextSprite.PositionType.Center, UnityTextSprite.PositionType.Center, byte.MaxValue, byte.MaxValue, byte.MaxValue, byte.MaxValue),
new BaseWindow.UIButton("UDMinchoFont", column3Button, column3ButtonHeight += columnHeightIncrement, this.wndz + 3, "screen/title/buy02", true, true, 1, 2, 0),
new BaseWindow.UIText("UDMinchoFontOption", column3Text, column3TextHeight += columnHeightIncrement, this.wndz + 4, "UDMincho", 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<string, int>(1)
{
{
"Cancel",
0
},
{
"1024x576",
1
},
{
"1280×720",
2
},
{
"1366×768",
3
},
{
"1600×900",
4
},
{
"1920×1080",
5
},
{
"2560×1440",
6
},
{
"Fullscreen",
7
},
{
"SmallFont",
8
},
{
"NormalFont",
9
},
{
"JP",
10
},
{
"EN",
11
},
{
"SP",
12
},
{
"NewRodinFont",
13
},
{
"HummingFont",
14
},
{
"NewCezanneFont",
15
},
{
"SlumpFont",
16
},
{
"UDMinchoFont",
17
}
};
}
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;
}
else if (num == 8)
{
UnityApp.PlatformApp.preferredFontSize = 22;
FontDef.SetFontInfo(new FONTINFO[]
{
new FONTINFO(22, 22, 1f, 0),
new FONTINFO(22, 22, 1f, 0),
new FONTINFO(42, 42, 1f, -1),
new FONTINFO(62, 62, 1f, -2)
});
}
else if (num == 9)
{
UnityApp.PlatformApp.preferredFontSize = 28;
FontDef.SetFontInfo(new FONTINFO[]
{
new FONTINFO(22, 22, 1f, 0),
new FONTINFO(28, 28, 1f, 0),
new FONTINFO(42, 42, 1f, -1),
new FONTINFO(62, 62, 1f, -2)
});
}
else if (num == 10)
{
UnityEngine.PlayerPrefs.SetInt("language", (int)Assets.Scripts.LocaleEnum.Japanese);
RebootGame();
}
else if (num == 11)
{
UnityEngine.PlayerPrefs.SetInt("language", (int)Assets.Scripts.LocaleEnum.English);
RebootGame();
}
else if (num == 12)
{
UnityEngine.PlayerPrefs.SetInt("language", (int)Assets.Scripts.LocaleEnum.Spanish);
RebootGame();
}
else if (num == 13)
{
UnityEngine.PlayerPrefs.SetInt("font", (int)Assets.Scripts.FontEnum.NewRodin);
RebootGame();
}
else if (num == 14)
{
UnityEngine.PlayerPrefs.SetInt("font", (int)Assets.Scripts.FontEnum.Humming);
RebootGame();
}
else if (num == 15)
{
UnityEngine.PlayerPrefs.SetInt("font", (int)Assets.Scripts.FontEnum.NewCezanne);
RebootGame();
}
else if (num == 16)
{
UnityEngine.PlayerPrefs.SetInt("font", (int)Assets.Scripts.FontEnum.Slump);
RebootGame();
}
else if (num == 17)
{
UnityEngine.PlayerPrefs.SetInt("font", (int)Assets.Scripts.FontEnum.UDMincho);
RebootGame();
}
}
}
}
async void RebootGame(){
GameObject debugObj = GameObject.Find("DebugScene");
UnityEngine.SceneManagement.SceneManager.MoveGameObjectToScene(debugObj, UnityEngine.SceneManagement.SceneManager.GetActiveScene());
UnityEngine.AsyncOperation asyncOperation = UnityEngine.SceneManagement.SceneManager.LoadSceneAsync("EMPTY", UnityEngine.SceneManagement.LoadSceneMode.Single);
while (asyncOperation.progress < .9f)
{
UnityEngine.Debug.Log("waiting");
}
asyncOperation.allowSceneActivation = true;
UnloadAllScenesExcept("EMPTY");
}
void UnloadAllScenesExcept(string sceneName)
{
int c = UnityEngine.SceneManagement.SceneManager.sceneCount;
for (int i = 0; i < c; i++)
{
UnityEngine.SceneManagement.Scene scene = UnityEngine.SceneManagement.SceneManager.GetSceneAt(i);
print(scene.name);
if (scene.name != sceneName)
{
UnityEngine.SceneManagement.SceneManager.UnloadSceneAsync(scene);
}
}
}
// 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<ImageObject>();
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<ImageObject>();
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<ImageObject>();
if (component == null)
{
return;
}
this.renderer = component.GetComponent<Renderer>();
}
// 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;
}
}