示例#1
0
	private void changeScenePanel()
	{
		GUILayout.BeginHorizontal(new GUILayoutOption[0]);
		if (GUILayout.Button("(<)", new GUILayoutOption[0]))
		{
			Int32 num = EventEngine.FindArrayIDFromEventID((Int32)this.FF9.fldMapNo);
			num--;
			if (num < 0)
			{
				num = EventEngine.testEventIDs.GetUpperBound(0);
			}
			this.FF9.fldMapNo = (Int16)EventEngine.testEventIDs[num];
			this.shutdownField();
			SoundLib.StopAllSounds();
			SceneDirector.Replace("FieldMap", SceneTransition.FadeOutToBlack_FadeIn, true);
		}
		this.stringToEdit = GUILayout.TextField(this.stringToEdit, new GUILayoutOption[]
		{
			GUILayout.Width(90f)
		});
		if (GUILayout.Button("(>)", new GUILayoutOption[0]))
		{
			Int32 num2 = EventEngine.FindArrayIDFromEventID((Int32)this.FF9.fldMapNo);
			num2++;
			if (num2 > EventEngine.testEventIDs.GetUpperBound(0))
			{
				num2 = 0;
			}
			this.FF9.fldMapNo = (Int16)EventEngine.testEventIDs[num2];
			this.shutdownField();
			SoundLib.StopAllSounds();
			SceneDirector.Replace("FieldMap", SceneTransition.FadeOutToBlack_FadeIn, true);
		}
		GUILayout.FlexibleSpace();
		GUILayout.EndHorizontal();
		GUILayout.BeginHorizontal(new GUILayoutOption[0]);
		if (GUILayout.Button("Jump", new GUILayoutOption[0]))
		{
			Int32 num3;
			Int32.TryParse(this.stringToEdit, out num3);
			num3 = EventEngine.FindArrayIDFromEventID(num3);
			if (num3 == -1)
			{
				this.stringToEdit = this.FF9.fldMapNo.ToString();
				return;
			}
			if (num3 < 0 || num3 > EventEngine.testEventIDs.GetUpperBound(0))
			{
				num3 = 0;
			}
			this.FF9.fldMapNo = (Int16)EventEngine.testEventIDs[num3];
			this.shutdownField();
			SoundLib.StopAllSounds();
			SceneDirector.Replace("FieldMap", SceneTransition.FadeOutToBlack_FadeIn, true);
		}
		GUILayout.FlexibleSpace();
		GUILayout.EndHorizontal();
	}
示例#2
0
	private void jumpingScenePanel()
	{
		GUILayout.BeginHorizontal(new GUILayoutOption[0]);
		if (GUILayout.Button("(<)", new GUILayoutOption[0]))
		{
			Int32 num = EventEngine.FindArrayIDFromEventID((Int32)this.FF9.fldMapNo);
			num--;
			if (num < 0)
			{
				num = EventEngine.testEventIDs.GetUpperBound(0);
			}
			this.FF9.fldMapNo = (Int16)EventEngine.testEventIDs[num];
			this.shutdownField();
			SoundLib.StopAllSounds();
			SceneDirector.FF9Wipe_FadeIn();
			SceneDirector.Replace("FieldMap", SceneTransition.FadeOutToBlack_FadeIn, true);
		}
		this.stringToEdit = GUILayout.TextField(this.stringToEdit, new GUILayoutOption[]
		{
			GUILayout.Width(90f)
		});
		if (GUILayout.Button("(>)", new GUILayoutOption[0]))
		{
			Int32 num2 = EventEngine.FindArrayIDFromEventID((Int32)this.FF9.fldMapNo);
			num2++;
			if (num2 > EventEngine.testEventIDs.GetUpperBound(0))
			{
				num2 = 0;
			}
			this.FF9.fldMapNo = (Int16)EventEngine.testEventIDs[num2];
			this.shutdownField();
			SoundLib.StopAllSounds();
			SceneDirector.FF9Wipe_FadeIn();
			SceneDirector.Replace("FieldMap", SceneTransition.FadeOutToBlack_FadeIn, true);
		}
		if (GUILayout.Button("Jump", new GUILayoutOption[0]))
		{
			Int32 num3;
			Int32.TryParse(this.stringToEdit, out num3);
			num3 = EventEngine.FindArrayIDFromEventID(num3);
			if (num3 == -1)
			{
				this.stringToEdit = this.FF9.fldMapNo.ToString();
				return;
			}
			EBin eBin = PersistenSingleton<EventEngine>.Instance.eBin;
			Int32 num4 = 0;
			if (Int32.TryParse(this.scString, out num4))
			{
				eBin.setVarManually(EBin.SC_COUNTER_SVR, num4);
			}
			Int32 num5;
			if (Int32.TryParse(this.mapIDString, out num5))
			{
				eBin.setVarManually(EBin.MAP_INDEX_SVR, num5);
			}
			if (num3 < 0 || num3 > EventEngine.testEventIDs.GetUpperBound(0))
			{
				num3 = 0;
			}
			this.FF9.fldMapNo = (Int16)EventEngine.testEventIDs[num3];
			this.shutdownField();
			SoundLib.StopAllSounds();
			SceneDirector.FF9Wipe_FadeIn();
			SceneDirector.Replace("FieldMap", SceneTransition.FadeOutToBlack_FadeIn, true);
			global::Debug.Log(String.Concat(new Object[]
			{
				"----- Jump to : ",
				this.FF9.fldMapNo,
				"/",
				num4,
				"/",
				num5,
				" -----"
			}));
		}
		GUILayout.FlexibleSpace();
	}