Ejemplo n.º 1
0
        private void MapImage_Click(object sender, EventArgs e)
        {
            if (RegionTabs.SelectedTab.Text == "Mining")
                if (VisualizerGlobal.SelectedTool == VisualizerGlobal.Tool.Add)
                {
                    MineEntry MineControl = new MineEntry()
                    {
                        Dock = DockStyle.Top,
                        X = MouseDownLocation.X,
                        Y = MouseDownLocation.Y,
                        Range = 50
                    };

                    MineControl.ShowControl();
                    MineControl.RegionHighlight.Parent = Canvas;

                    MiningPanel.Controls.Add(MineControl);

                    ToolSelectedChanged(MoveButton, e);
                }

            if (RegionTabs.SelectedTab.Text == "Respawns")
                if (VisualizerGlobal.SelectedTool == VisualizerGlobal.Tool.Add)
                {
                    RespawnEntry RespawnControl = new RespawnEntry()
                    {
                        Dock = DockStyle.Top,
                        X = MouseDownLocation.X,
                        Y = MouseDownLocation.Y,
                        Range = 50
                    };

                    RespawnControl.ShowControl();
                    RespawnControl.RegionHighlight.Parent = Canvas;

                    RespawnPanel.Controls.Add(RespawnControl);

                    ToolSelectedChanged(MoveButton, e);
                }
        }
Ejemplo n.º 2
0
        private void InitializeRespawnInfo()
        {
            for (int i = 0; i < Envir.MonsterInfoList.Count; i++)
                RespawnsFilter.Items.Add(Envir.MonsterInfoList[i]);

            RespawnsFilter.Items.Add(new ListItem { Text = "No Filter" });
            RespawnsFilter.Text = "No Filter";

            for (int i = 0; i < VisualizerGlobal.MapInfo.Respawns.Count; i++)
            {
                RespawnEntry RespawnRegion = new RespawnEntry();
                RespawnRegion.Dock = DockStyle.Top;
                RespawnRegion.MonsterIndex = VisualizerGlobal.MapInfo.Respawns[i].MonsterIndex;
                RespawnRegion.X = VisualizerGlobal.MapInfo.Respawns[i].Location.X;
                RespawnRegion.Y = VisualizerGlobal.MapInfo.Respawns[i].Location.Y;
                RespawnRegion.Range = VisualizerGlobal.MapInfo.Respawns[i].Spread;
                RespawnRegion.Count.Text = VisualizerGlobal.MapInfo.Respawns[i].Count.ToString();
                RespawnRegion.Delay.Text = VisualizerGlobal.MapInfo.Respawns[i].Delay.ToString();
                RespawnRegion.RoutePath = VisualizerGlobal.MapInfo.Respawns[i].RoutePath;
                RespawnRegion.HideControl();

                RespawnPanel.Controls.Add(RespawnRegion);

                RespawnRegion.RegionHighlight.Parent = Canvas;
            }
        }