using System;
using UnityEngine;

// Token: 0x020000E8 RID: 232
public class guiMenu : MonoBehaviour
{
	// Token: 0x06001517 RID: 5399 RVA: 0x00196E90 File Offset: 0x00195090
	private void OnGUI()
	{
		this.tgInt = GUI.Toolbar(new Rect((float)Screen.width - this.guiWidth, (float)Screen.height - this.guiHeight + 20f, this.guiWidth - 30f, 30f), this.tgInt, this.tbContent);
		switch (this.tgInt)
		{
		case 0:
			this.sphere1.GetComponent<LineWave>().freq = GUI.HorizontalSlider(new Rect((float)Screen.width - this.guiWidth + 40f, (float)Screen.height - this.guiHeight + 65f, this.guiWidth - 70f, 20f), this.sphere1.GetComponent<LineWave>().freq, 0f, 20f);
			this.sphere1.GetComponent<LineWave>().warpRandom = GUI.HorizontalSlider(new Rect((float)Screen.width - this.guiWidth + 30f, (float)Screen.height - this.guiHeight + 85f, this.guiWidth - 60f, 20f), this.sphere1.GetComponent<LineWave>().warpRandom, 0f, 20f);
			this.sphere1.GetComponent<LineWave>().walkAuto = GUI.HorizontalSlider(new Rect((float)Screen.width - this.guiWidth + 50f, (float)Screen.height - this.guiHeight + 105f, this.guiWidth - 80f, 20f), this.sphere1.GetComponent<LineWave>().walkAuto, -80f, 80f);
			this.sphere1.GetComponent<LineWave>().amp = GUI.VerticalSlider(new Rect((float)(Screen.width - 20), (float)Screen.height - this.guiHeight + 20f, 20f, this.guiHeight - 30f), this.sphere1.GetComponent<LineWave>().amp, 15f, 0f);
			this.sphere1.GetComponent<LineWave>().spiral = GUI.Toggle(new Rect((float)Screen.width - this.guiWidth, (float)Screen.height - this.guiHeight + 120f, this.guiWidth / 3f, 20f), this.sphere1.GetComponent<LineWave>().spiral, "Spiral");
			this.activeSphere = this.sphere1;
			break;
		case 1:
			this.sphere2.GetComponent<LineWave>().freq = GUI.HorizontalSlider(new Rect((float)Screen.width - this.guiWidth + 40f, (float)Screen.height - this.guiHeight + 65f, this.guiWidth - 70f, 20f), this.sphere2.GetComponent<LineWave>().freq, 0f, 20f);
			this.sphere2.GetComponent<LineWave>().warpRandom = GUI.HorizontalSlider(new Rect((float)Screen.width - this.guiWidth + 30f, (float)Screen.height - this.guiHeight + 85f, this.guiWidth - 60f, 20f), this.sphere2.GetComponent<LineWave>().warpRandom, 0f, 20f);
			this.sphere2.GetComponent<LineWave>().walkAuto = GUI.HorizontalSlider(new Rect((float)Screen.width - this.guiWidth + 50f, (float)Screen.height - this.guiHeight + 105f, this.guiWidth - 80f, 20f), this.sphere2.GetComponent<LineWave>().walkAuto, -80f, 80f);
			this.sphere2.GetComponent<LineWave>().amp = GUI.VerticalSlider(new Rect((float)(Screen.width - 20), (float)Screen.height - this.guiHeight + 20f, 20f, this.guiHeight - 30f), this.sphere2.GetComponent<LineWave>().amp, 15f, 0f);
			this.sphere2.GetComponent<LineWave>().spiral = GUI.Toggle(new Rect((float)Screen.width - this.guiWidth, (float)Screen.height - this.guiHeight + 120f, this.guiWidth / 3f, 20f), this.sphere2.GetComponent<LineWave>().spiral, "Spiral");
			this.activeSphere = this.sphere2;
			break;
		case 2:
			this.sphere3.GetComponent<LineWave>().freq = GUI.HorizontalSlider(new Rect((float)Screen.width - this.guiWidth + 40f, (float)Screen.height - this.guiHeight + 65f, this.guiWidth - 70f, 20f), this.sphere3.GetComponent<LineWave>().freq, 0f, 20f);
			this.sphere3.GetComponent<LineWave>().warpRandom = GUI.HorizontalSlider(new Rect((float)Screen.width - this.guiWidth + 30f, (float)Screen.height - this.guiHeight + 85f, this.guiWidth - 60f, 20f), this.sphere3.GetComponent<LineWave>().warpRandom, 0f, 20f);
			this.sphere3.GetComponent<LineWave>().walkAuto = GUI.HorizontalSlider(new Rect((float)Screen.width - this.guiWidth + 50f, (float)Screen.height - this.guiHeight + 105f, this.guiWidth - 80f, 20f), this.sphere3.GetComponent<LineWave>().walkAuto, -80f, 80f);
			this.sphere3.GetComponent<LineWave>().amp = GUI.VerticalSlider(new Rect((float)(Screen.width - 20), (float)Screen.height - this.guiHeight + 20f, 20f, this.guiHeight - 30f), this.sphere3.GetComponent<LineWave>().amp, 15f, 0f);
			this.sphere3.GetComponent<LineWave>().spiral = GUI.Toggle(new Rect((float)Screen.width - this.guiWidth, (float)Screen.height - this.guiHeight + 120f, this.guiWidth / 3f, 20f), this.sphere3.GetComponent<LineWave>().spiral, "Spiral");
			this.activeSphere = this.sphere3;
			break;
		}
		GUI.Label(new Rect((float)Screen.width * 0.44f, (float)(Screen.height - 35), 150f, 20f), "  Mouse1: CamOrbit");
		GUI.Label(new Rect((float)Screen.width * 0.44f, (float)(Screen.height - 20), 150f, 20f), "Mouse2: MoveSpheres");
		GUI.Label(new Rect((float)Screen.width - this.guiWidth, (float)Screen.height - this.guiHeight + 60f, 50f, 20f), "Freq.");
		GUI.Label(new Rect((float)Screen.width - this.guiWidth, (float)Screen.height - this.guiHeight + 60f, 50f, 20f), "Freq.");
		GUI.Label(new Rect((float)Screen.width - this.guiWidth, (float)Screen.height - this.guiHeight + 80f, 50f, 20f), "Var.");
		GUI.Label(new Rect((float)Screen.width - this.guiWidth, (float)Screen.height - this.guiHeight + 100f, 50f, 20f), "Speed.");
		GUI.Label(new Rect((float)Screen.width - this.guiWidth + 140f, (float)Screen.height - this.guiHeight + 120f, 50f, 20f), "Amp.");
	}

	// Token: 0x06001518 RID: 5400 RVA: 0x001976BC File Offset: 0x001958BC
	private void Update()
	{
		if (Input.GetMouseButton(1))
		{
			this.activeSphere.transform.Translate(Input.GetAxis("Mouse X") / 2f, Input.GetAxis("Mouse Y") / 2f, 0f, this.cam.transform);
		}
	}

	// Token: 0x040024EF RID: 9455
	public GameObject sphere1;

	// Token: 0x040024F0 RID: 9456
	public GameObject sphere2;

	// Token: 0x040024F1 RID: 9457
	public GameObject sphere3;

	// Token: 0x040024F2 RID: 9458
	public GameObject cam;

	// Token: 0x040024F3 RID: 9459
	public GUIStyle tgStyle;

	// Token: 0x040024F4 RID: 9460
	private GameObject activeSphere;

	// Token: 0x040024F5 RID: 9461
	private float guiWidth = 200f;

	// Token: 0x040024F6 RID: 9462
	private float guiHeight = 150f;

	// Token: 0x040024F7 RID: 9463
	private string[] tbContent = new string[] { "Red", "Green", "Blue" };

	// Token: 0x040024F8 RID: 9464
	private int tgInt;
}
