コード例 #1
0
 private void Map_MouseDown(object sender, MouseEventArgs e)
 {
     if (e.Button == MouseButtons.Right)
     {
         cmMap.Show((Control)sender, new Point(e.X, e.Y));
     }
     else
     {
         Map.Center = Map.ControlToMap(new Point(e.X, e.Y));
     }
 }
コード例 #2
0
ファイル: QuickLocation.cs プロジェクト: NaphalAXT/Pandora
        private void Map_MouseDown(object sender, MouseEventArgs e)
        {
            Map.Center = Map.ControlToMap(new Point(e.X, e.Y));

            m_Updating = true;

            m_CurrentLocation.X = (short)Map.Center.X;
            m_CurrentLocation.Y = (short)Map.Center.Y;
            m_CurrentLocation.Z = (sbyte)Map.GetMapHeight();

            nX.Value = m_CurrentLocation.X;
            nY.Value = m_CurrentLocation.Y;
            nZ.Value = m_CurrentLocation.Z;

            m_Updating = false;
        }
コード例 #3
0
 private void m_Map_MouseDown(object sender, MouseEventArgs e)
 {
     m_Map.Center = m_Map.ControlToMap(new Point(e.X, e.Y));
 }