internal void DisplayRtcvDisclaimer(string disclaimer) { cbAgree.Checked = false; btnSimpleMode.Visible = false; lbStartupMode.Visible = false; btnNormalMode.Visible = false; this.Text = "Welcome to RTCV"; tbDisclaimerText.Text = disclaimer; selection = IntroAction.EXIT; this.ShowDialog(); }
internal void DisplayGenericDisclaimer(string disclaimer, string windowTitle) { cbAgree.Checked = false; btnSimpleMode.Visible = false; lbStartupMode.Visible = false; btnNormalMode.Visible = false; this.Text = windowTitle; tbDisclaimerText.Text = disclaimer; btnSimpleMode.Text = "Continue"; selection = IntroAction.EXIT; this.ShowDialog(); }
void Start() { instance = this; GUIStyle[] playerStyles = SpritesLoader.getPlayerSprites (playersTexture); List<GUIStyle> playerList = new List<GUIStyle> (playerStyles); playerList.Add(SpritesLoader.getTexture(teacherTexture)); styles = playerList.ToArray (); GameObject mainCamera = GameObject.Find ("MainCamera_Front"); Type type = Type.GetType ("Level" + (LevelFinishedController.instance.getLevel() + 1)); if (type != null) { actions = ((LevelSetup) Activator.CreateInstance (type)).Setup (); //actions.Insert (0, new WaitAction (1f)); actions.Add (new WaitAction(1f)); movingBackAction = new MoveCameraAction (mainCamera.transform.position, mainCamera.transform.rotation); currentAction = actions [0]; actions.RemoveAt (0); // GUI borderStyle = new GUIStyle (); Texture2D borderTexture = new Texture2D (1, 1); borderTexture.SetPixel (0, 0, Color.white); borderTexture.Apply (); borderStyle.normal.background = borderTexture; outerStyle = new GUIStyle (); Texture2D outerTexture = new Texture2D (1, 1); outerTexture.SetPixel (0, 0, Color.black); outerTexture.Apply (); outerStyle.normal.background = outerTexture; } else { playingIntroduction = false; LevelFinishedController.instance.Reset(); } }
private void btnNormalMode_Click(object sender, EventArgs e) { selection = IntroAction.NORMALMODE; Close(); }
private void btnSimpleMode_Click(object sender, EventArgs e) { selection = IntroAction.SIMPLEMODE; Close(); }
private void btnExit_Click(object sender, EventArgs e) { selection = IntroAction.EXIT; this.Close(); }
void Update() { if (playingIntroduction) { currentAction.act (); if (currentAction.isFinished()) { if (actions.Count > 1) { currentAction = actions [0]; actions.RemoveAt (0); } else { StopIntroduction(true); } } } if (stoppingIntroduction) { // Clean other actions if (!stoppedIntroduction) { GameObject[] monters = GameObject.FindGameObjectsWithTag("TempObject"); foreach (GameObject monster in monters) { Destroy(monster); } GameObject monsterDoorLeft = GameObject.Find ("monsterDoorLeft"); monsterDoorLeft.SendMessage("CloseDoor"); textureId = -1; text = null; image = null; FloorInstructions.instance.Activate(); //Trigger floor instructions to appear stoppedIntroduction = true; } movingBackAction.act(); if (movingBackAction.isFinished()) { stoppingIntroduction = false; LevelFinishedController.instance.Reset(); } } }