private void RefreshMapList() { MapCmd.CommandText = "SELECT Difficulty, Map FROM MapList order by Difficulty desc, id desc"; reader = MapCmd.ExecuteReader(); while (reader.Read()) { MapListBox.Items.Add("☆" + reader["Difficulty"].ToString() + " " + reader["Map"].ToString()); } reader.Close(); MapCon.Close(); }
public void SetComponents(EQData eq, MapCon mapCon, Filters filters, frmMain f1) { this.eq = eq; this.mapCon = mapCon; this.filters = filters; this.f1 = f1; }
public void SetComponents(MapCon mapCon, ListViewPanel SpawnList, ListViewPanel SpawnTimerList, ListViewPanel GroundItemList, MapPane mapPane, EQData eq) { this.mapCon = mapCon; this.SpawnList = SpawnList; this.SpawnTimerList = SpawnTimerList; this.GroundItemList = GroundItemList; this.eq = eq; initialized = true; }
private void InitializeComponent() { offsetx = new NumericUpDown(); offsety = new NumericUpDown(); scale = new NumericUpDown(); lblScale = new Label(); lblOffsetY = new Label(); lblOffsetX = new Label(); cmdCommand = new Button(); filterzneg = new NumericUpDown(); lblZNeg = new Label(); filterzpos = new NumericUpDown(); lblZPos = new Label(); cmdLookup = new Button(); txtLookup = new TextBox(); lblLookup = new Label(); mapCon = new MapCon(); ((System.ComponentModel.ISupportInitialize)offsetx).BeginInit(); ((System.ComponentModel.ISupportInitialize)offsety).BeginInit(); ((System.ComponentModel.ISupportInitialize)scale).BeginInit(); ((System.ComponentModel.ISupportInitialize)filterzneg).BeginInit(); ((System.ComponentModel.ISupportInitialize)filterzpos).BeginInit(); SuspendLayout(); // // offsetx // offsetx.Location = new Point(114, 448); offsetx.Name = "offsetx"; offsetx.Size = new Size(58, 20); offsetx.TabIndex = 3; offsetx.Visible = false; offsetx.ValueChanged += new EventHandler(offsetx_ValueChanged); // // offsety // offsety.Location = new Point(217, 448); offsety.Name = "offsety"; offsety.Size = new Size(56, 20); offsety.TabIndex = 5; offsety.Visible = false; offsety.ValueChanged += new EventHandler(offsety_ValueChanged); // // scale // scale.Location = new Point(313, 447); scale.Maximum = new decimal(new int[] { 10000, 0, 0, 0 }); scale.Minimum = new decimal(new int[] { 10, 0, 0, 0 }); scale.Name = "scale"; scale.Size = new Size(48, 20); scale.TabIndex = 7; scale.Value = new decimal(new int[] { 100, 0, 0, 0 }); scale.Visible = false; scale.ValueChanged += new EventHandler(scale_ValueChanged); // // lblScale // lblScale.ForeColor = SystemColors.WindowText; lblScale.Location = new Point(279, 450); lblScale.Name = "lblScale"; lblScale.Size = new Size(40, 16); lblScale.TabIndex = 6; lblScale.Text = "Scale"; lblScale.Visible = false; // // lblOffsetY // lblOffsetY.ForeColor = SystemColors.WindowText; lblOffsetY.Location = new Point(174, 451); lblOffsetY.Name = "lblOffsetY"; lblOffsetY.Size = new Size(48, 16); lblOffsetY.TabIndex = 4; lblOffsetY.Text = "Offset Y"; lblOffsetY.Visible = false; // // lblOffsetX // lblOffsetX.ForeColor = SystemColors.WindowText; lblOffsetX.Location = new Point(69, 452); lblOffsetX.Name = "lblOffsetX"; lblOffsetX.Size = new Size(48, 16); lblOffsetX.TabIndex = 2; lblOffsetX.Text = "Offset X"; lblOffsetX.Visible = false; // // cmdCommand // cmdCommand.Location = new Point(8, 448); cmdCommand.Name = "cmdCommand"; cmdCommand.Size = new Size(55, 23); cmdCommand.TabIndex = 1; cmdCommand.Text = "GO"; cmdCommand.Visible = false; cmdCommand.Click += new EventHandler(cmdCommand_Click); // // filterzneg // filterzneg.Increment = new decimal(new int[] { 5, 0, 0, 0 }); filterzneg.Location = new Point(413, 447); filterzneg.Maximum = new decimal(new int[] { 3500, 0, 0, 0 }); filterzneg.Name = "filterzneg"; filterzneg.Size = new Size(56, 20); filterzneg.TabIndex = 9; filterzneg.Visible = false; filterzneg.ValueChanged += new EventHandler(filterzneg_ValueChanged); // // lblZNeg // lblZNeg.ForeColor = SystemColors.WindowText; lblZNeg.Location = new Point(367, 450); lblZNeg.Name = "lblZNeg"; lblZNeg.Size = new Size(40, 16); lblZNeg.TabIndex = 8; lblZNeg.Text = "Z Neg"; lblZNeg.Visible = false; // // filterzpos // filterzpos.Increment = new decimal(new int[] { 5, 0, 0, 0 }); filterzpos.Location = new Point(510, 448); filterzpos.Maximum = new decimal(new int[] { 3500, 0, 0, 0 }); filterzpos.Name = "filterzpos"; filterzpos.Size = new Size(56, 20); filterzpos.TabIndex = 11; filterzpos.Visible = false; filterzpos.ValueChanged += new EventHandler(filterzpos_ValueChanged); // // lblZPos // lblZPos.ForeColor = SystemColors.WindowText; lblZPos.Location = new Point(475, 450); lblZPos.Name = "lblZPos"; lblZPos.Size = new Size(40, 16); lblZPos.TabIndex = 10; lblZPos.Text = "Z Pos"; lblZPos.Visible = false; // // cmdLookup // cmdLookup.Location = new Point(687, 447); cmdLookup.Name = "cmdLookup"; cmdLookup.Size = new Size(48, 22); cmdLookup.TabIndex = 4; cmdLookup.Text = "Reset"; cmdLookup.Visible = false; cmdLookup.Click += new EventHandler(cmdLookup_Click); // // txtLookup // txtLookup.Location = new Point(615, 448); txtLookup.Name = "txtLookup"; txtLookup.Size = new Size(56, 20); txtLookup.TabIndex = 5; txtLookup.Visible = false; txtLookup.KeyPress += new KeyPressEventHandler(txtLookup_KeyPress); // // lblLookup // lblLookup.Location = new Point(572, 450); lblLookup.Name = "lblLookup"; lblLookup.Size = new Size(47, 23); lblLookup.TabIndex = 12; lblLookup.Text = "Lookup"; lblLookup.Visible = false; // // mapCon // mapCon.AutoScroll = true; mapCon.BackColor = SystemColors.ControlLightLight; mapCon.Location = new Point(0, 0); mapCon.Name = "mapCon"; mapCon.Size = new Size(384, 264); mapCon.TabIndex = 0; mapCon.UpdateSteps = 5; mapCon.UpdateTicks = 1; mapCon.MouseEnter += new EventHandler(mapCon_MouseEnter); // // MapPane // AutoValidate = AutoValidate.EnablePreventFocusChange; BackColor = SystemColors.Control; ClientSize = new Size(760, 441); Controls.Add(cmdLookup); Controls.Add(cmdCommand); Controls.Add(offsetx); Controls.Add(offsety); Controls.Add(scale); Controls.Add(filterzneg); Controls.Add(filterzpos); Controls.Add(txtLookup); Controls.Add(lblLookup); Controls.Add(lblZPos); Controls.Add(lblZNeg); Controls.Add(lblScale); Controls.Add(lblOffsetY); Controls.Add(lblOffsetX); Controls.Add(mapCon); this.Font = new Font("Microsoft Sans Serif", 8.25F, FontStyle.Regular, GraphicsUnit.Point, 0); Name = "MapPane"; Size = new Size(776, 480); Resize += new EventHandler(MapPane_Resize); ((System.ComponentModel.ISupportInitialize)offsetx).EndInit(); ((System.ComponentModel.ISupportInitialize)offsety).EndInit(); ((System.ComponentModel.ISupportInitialize)scale).EndInit(); ((System.ComponentModel.ISupportInitialize)filterzneg).EndInit(); ((System.ComponentModel.ISupportInitialize)filterzpos).EndInit(); ResumeLayout(false); PerformLayout(); }
public void SetComponents(MapCon mapCon, EQData eq) { this.mapCon = mapCon; this.eq = eq; }
// Start is called before the first frame update void Start() { player = GameObject.Find("player"); map = GameObject.Find("Map").GetComponent <MapCon>(); }