コード例 #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void FromMapBox_Click(object sender, EventArgs e)
        {
            if (Dungeon == null)
            {
                MessageBox.Show("Dungeon handle == null\nSet a dungeon first !", "Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                return;
            }

            DungeonLocationForm form = new DungeonLocationForm(Dungeon, MazeName, Coordinate);

            form.ShowDialog();

            SetTarget(form.Target);
        }
コード例 #2
0
        /// <summary>
        /// Change team location
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ChangeLocationBox_Click(object sender, EventArgs e)
        {
            if (GameScreen == null)
            {
                return;
            }

            DungeonLocationForm form = new DungeonLocationForm(GameScreen.Dungeon, Team.Location.Maze, Team.Location.Coordinate);

            form.ShowDialog();

            Team.Teleport(form.Target);
            LocationLabel.Text = Team.Location.ToString();
        }
コード例 #3
0
		/// <summary>
		/// 
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		private void FromMapBox_Click(object sender, EventArgs e)
		{
			if (Dungeon == null)
			{
				MessageBox.Show("Dungeon handle == null\nSet a dungeon first !", "Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
				return;
			}

			DungeonLocationForm form = new DungeonLocationForm(Dungeon, MazeName, Coordinate);
			form.ShowDialog();

			SetTarget(form.Target);
		}
コード例 #4
0
ファイル: PartyForm.cs プロジェクト: melkor54248/dungeoneye
		/// <summary>
		/// Change team location
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		private void ChangeLocationBox_Click(object sender, EventArgs e)
		{
			if (GameScreen == null)
				return;

			DungeonLocationForm form = new DungeonLocationForm(GameScreen.Dungeon, Team.Location.Maze, Team.Location.Coordinate);
			form.ShowDialog();

			Team.Teleport(form.Target);
			LocationLabel.Text = Team.Location.ToString();
		}