Example #1
0
        /// <summary>
        ///     Shows the spawns
        /// </summary>
        public void RefreshSpawns()
        {
            Pandora.Map.RemoveAllDrawObjects();

            foreach (SpawnEntry entry in m_SpawnProvider.Spawns)
            {
                var spawn = new SpawnDrawObject(entry);
                Pandora.Map.AddDrawObject(spawn, false);
            }

            Pandora.Map.Refresh();
        }
Example #2
0
        /// <summary>
        /// When the mouse hovers display the balooon tool tip
        /// </summary>
        private void Map_MouseHover(object sender, EventArgs e)
        {
            if (m_Balloon == null)
            {
                System.Drawing.Point location = Pandora.Map.PointToClient(System.Windows.Forms.Control.MousePosition);

                IMapDrawable obj = Pandora.Map.FindDrawObject(location, 5);

                if (obj != null && obj is SpawnDrawObject)
                {
                    SpawnDrawObject spawn = obj as SpawnDrawObject;

                    m_Balloon = MessageBalloon.Show(spawn.Spawn.ToolTipDetailed, Pandora.TextProvider["Travel.SpawnDetails"],
                                                    null,
                                                    MessageBalloonOptions.All,
                                                    MessageBalloon.MousePosition);
                    m_Balloon.VisibleChanged += new EventHandler(m_Balloon_VisibleChanged);
                }
            }
        }