Beispiel #1
0
 public EquipPanel(int xnum, int ynum, EquipEditor editor)
 {
     this.InitializeComponent();
     this.setSize(xnum, ynum);
     this.editor       = editor;
     this.curUnit.Item = editor.EditItem;
 }
 public PentagramPanel(EquipEditor editor)
 {
     this.InitializeComponent();
     this.editor = editor;
 }
Beispiel #3
0
 public CharPanel(EquipEditor editor)
 {
     this.InitializeComponent();
     this.editor = editor;
 }
Beispiel #4
0
        private void InitializeComponent()
        {
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(frmInitEquip));

            this.pnlPackage      = new Panel();
            this.sBookPanel      = new PentagramPanel();
            this.btnClearChar    = new Button();
            this.btnCleanPackage = new Button();
            this.btnClearPackage = new Button();
            this.chkAll          = new CheckBox();
            this.btnSave         = new Button();
            this.label1          = new Label();
            this.cbZhiye         = new ComboBox();
            this.charPanel       = new CharPanel();
            this.packagePanel    = new EquipPanel();
            this.packagePanelLv1 = new EquipPanel();
            this.packagePanelLv2 = new EquipPanel();
            this.packagePanelLv3 = new EquipPanel();
            this.packagePanelLv4 = new EquipPanel();
            this.shopPanel       = new EquipPanel();
            this.groupBox2       = new GroupBox();
            this.equipEditor     = new EquipEditor();
            this.pnlPackage.SuspendLayout();
            this.groupBox2.SuspendLayout();
            base.SuspendLayout();
            this.pnlPackage.BackColor   = Color.FromArgb(32, 27, 23);
            this.pnlPackage.BorderStyle = BorderStyle.Fixed3D;
            this.pnlPackage.Controls.Add(this.sBookPanel);
            this.pnlPackage.Controls.Add(this.btnClearChar);
            this.pnlPackage.Controls.Add(this.btnCleanPackage);
            this.pnlPackage.Controls.Add(this.btnClearPackage);
            this.pnlPackage.Controls.Add(this.chkAll);
            this.pnlPackage.Controls.Add(this.btnSave);
            this.pnlPackage.Controls.Add(this.label1);
            this.pnlPackage.Controls.Add(this.cbZhiye);
            this.pnlPackage.Controls.Add(this.charPanel);
            this.pnlPackage.Controls.Add(this.packagePanel);
            this.pnlPackage.Controls.Add(this.packagePanelLv1);
            this.pnlPackage.Controls.Add(this.packagePanelLv2);
            this.pnlPackage.Controls.Add(this.packagePanelLv3);
            this.pnlPackage.Controls.Add(this.packagePanelLv4);
            this.pnlPackage.Controls.Add(this.shopPanel);
            this.pnlPackage.Location                     = new Point(231, 4);
            this.pnlPackage.Name                         = "pnlPackage";
            this.pnlPackage.Size                         = new System.Drawing.Size(509, 497);
            this.pnlPackage.TabIndex                     = 21;
            this.sBookPanel.BackgroundImage              = Resources.skillbook;
            this.sBookPanel.BackgroundImageLayout        = ImageLayout.None;
            this.sBookPanel.Cursor                       = Cursors.Default;
            this.sBookPanel.Enabled                      = false;
            this.sBookPanel.Location                     = new Point(228, 217);
            this.sBookPanel.Margin                       = new System.Windows.Forms.Padding(0);
            this.sBookPanel.Name                         = "sBookPanel";
            this.sBookPanel.Prof                         = -1;
            this.sBookPanel.Size                         = new System.Drawing.Size(58, 58);
            this.sBookPanel.TabIndex                     = 89;
            this.btnClearChar.BackColor                  = Color.FromArgb(64, 64, 64);
            this.btnClearChar.FlatStyle                  = FlatStyle.Popup;
            this.btnClearChar.Font                       = new System.Drawing.Font("微软雅黑", 9f, FontStyle.Regular, GraphicsUnit.Point, 134);
            this.btnClearChar.ForeColor                  = Color.White;
            this.btnClearChar.ImeMode                    = System.Windows.Forms.ImeMode.NoControl;
            this.btnClearChar.Location                   = new Point(311, 385);
            this.btnClearChar.Name                       = "btnClearChar";
            this.btnClearChar.Size                       = new System.Drawing.Size(65, 25);
            this.btnClearChar.TabIndex                   = 84;
            this.btnClearChar.Text                       = "清空人物";
            this.btnClearChar.UseVisualStyleBackColor    = false;
            this.btnClearChar.Click                     += new EventHandler(this.btnClearChar_Click);
            this.btnCleanPackage.BackColor               = Color.FromArgb(64, 64, 64);
            this.btnCleanPackage.FlatStyle               = FlatStyle.Popup;
            this.btnCleanPackage.Font                    = new System.Drawing.Font("微软雅黑", 9f, FontStyle.Regular, GraphicsUnit.Point, 134);
            this.btnCleanPackage.ForeColor               = Color.White;
            this.btnCleanPackage.ImeMode                 = System.Windows.Forms.ImeMode.NoControl;
            this.btnCleanPackage.Location                = new Point(453, 385);
            this.btnCleanPackage.Name                    = "btnCleanPackage";
            this.btnCleanPackage.Size                    = new System.Drawing.Size(42, 25);
            this.btnCleanPackage.TabIndex                = 83;
            this.btnCleanPackage.Text                    = "整理";
            this.btnCleanPackage.UseVisualStyleBackColor = false;
            this.btnCleanPackage.Click                  += new EventHandler(this.btnCleanPackage_Click);
            this.btnClearPackage.BackColor               = Color.FromArgb(64, 64, 64);
            this.btnClearPackage.FlatStyle               = FlatStyle.Popup;
            this.btnClearPackage.Font                    = new System.Drawing.Font("微软雅黑", 9f, FontStyle.Regular, GraphicsUnit.Point, 134);
            this.btnClearPackage.ForeColor               = Color.White;
            this.btnClearPackage.ImeMode                 = System.Windows.Forms.ImeMode.NoControl;
            this.btnClearPackage.Location                = new Point(382, 385);
            this.btnClearPackage.Name                    = "btnClearPackage";
            this.btnClearPackage.Size                    = new System.Drawing.Size(65, 25);
            this.btnClearPackage.TabIndex                = 82;
            this.btnClearPackage.Text                    = "清空包裹";
            this.btnClearPackage.UseVisualStyleBackColor = false;
            this.btnClearPackage.Click                  += new EventHandler(this.btnClearPackage_Click);
            this.chkAll.AutoSize                         = true;
            this.chkAll.Font      = new System.Drawing.Font("微软雅黑", 9f, FontStyle.Bold, GraphicsUnit.Point, 134);
            this.chkAll.ForeColor = Color.Yellow;
            this.chkAll.ImeMode   = System.Windows.Forms.ImeMode.NoControl;
            this.chkAll.Location  = new Point(311, 441);
            this.chkAll.Name      = "chkAll";
            this.chkAll.Size      = new System.Drawing.Size(183, 21);
            this.chkAll.TabIndex  = 81;
            this.chkAll.Text      = "所有职业统一送当前所示装备";
            this.chkAll.UseVisualStyleBackColor = true;
            this.btnSave.BackColor = Color.FromArgb(64, 64, 64);
            this.btnSave.FlatStyle = FlatStyle.Popup;
            this.btnSave.Font      = new System.Drawing.Font("微软雅黑", 9f, FontStyle.Regular, GraphicsUnit.Point, 134);
            this.btnSave.ForeColor = Color.White;
            this.btnSave.ImeMode   = System.Windows.Forms.ImeMode.NoControl;
            this.btnSave.Location  = new Point(368, 465);
            this.btnSave.Name      = "btnSave";
            this.btnSave.Size      = new System.Drawing.Size(73, 25);
            this.btnSave.TabIndex  = 80;
            this.btnSave.TabStop   = false;
            this.btnSave.Text      = "保存设置";
            this.btnSave.UseVisualStyleBackColor = false;
            this.btnSave.Click            += new EventHandler(this.btnSave_Click);
            this.label1.AutoSize           = true;
            this.label1.Font               = new System.Drawing.Font("微软雅黑", 9f, FontStyle.Bold, GraphicsUnit.Point, 134);
            this.label1.ForeColor          = Color.Yellow;
            this.label1.Location           = new Point(308, 418);
            this.label1.Name               = "label1";
            this.label1.Size               = new System.Drawing.Size(68, 17);
            this.label1.TabIndex           = 79;
            this.label1.Text               = "加载数据:";
            this.cbZhiye.DropDownHeight    = 206;
            this.cbZhiye.DropDownStyle     = ComboBoxStyle.DropDownList;
            this.cbZhiye.FormattingEnabled = true;
            this.cbZhiye.IntegralHeight    = false;
            ComboBox.ObjectCollection items = this.cbZhiye.Items;
            object[] objArray = new object[] { "魔法师", "剑士", "弓箭手", "魔剑士", "圣导师", "召唤", "决斗士" };
            items.AddRange(objArray);
            this.cbZhiye.Location                      = new Point(378, 416);
            this.cbZhiye.Name                          = "cbZhiye";
            this.cbZhiye.Size                          = new System.Drawing.Size(69, 20);
            this.cbZhiye.TabIndex                      = 78;
            this.cbZhiye.TabStop                       = false;
            this.cbZhiye.SelectedIndexChanged         += new EventHandler(this.cbZhiye_SelectedIndexChanged);
            this.charPanel.BackgroundImage             = Resources.char_2;
            this.charPanel.BackgroundImageLayout       = ImageLayout.None;
            this.charPanel.Cursor                      = Cursors.Default;
            this.charPanel.Location                    = new Point(0, -1);
            this.charPanel.Margin                      = new System.Windows.Forms.Padding(0);
            this.charPanel.Name                        = "charPanel";
            this.charPanel.Prof                        = -1;
            this.charPanel.Size                        = new System.Drawing.Size(295, 284);
            this.charPanel.TabIndex                    = 13;
            this.charPanel.MouseLeave                 += new EventHandler(this.charPanel_MouseLeave);
            this.packagePanel.BackgroundImage          = Resources.warehouse_2;
            this.packagePanel.BackgroundImageLayout    = ImageLayout.None;
            this.packagePanel.Cursor                   = Cursors.Default;
            this.packagePanel.Location                 = new Point(45, 283);
            this.packagePanel.Margin                   = new System.Windows.Forms.Padding(0);
            this.packagePanel.Name                     = "packagePanel";
            this.packagePanel.Size                     = new System.Drawing.Size(209, 209);
            this.packagePanel.TabIndex                 = 14;
            this.packagePanel.MouseLeave              += new EventHandler(this.packagePanel_MouseLeave);
            this.packagePanelLv1.BackgroundImage       = Resources.warehouse_2;
            this.packagePanelLv1.BackgroundImageLayout = ImageLayout.None;
            this.packagePanelLv1.Cursor                = Cursors.Default;
            this.packagePanelLv1.Enabled               = false;
            this.packagePanelLv1.Location              = new Point(295, 0);
            this.packagePanelLv1.Margin                = new System.Windows.Forms.Padding(0);
            this.packagePanelLv1.Name                  = "packagePanelLv1";
            this.packagePanelLv1.Size                  = new System.Drawing.Size(209, 105);
            this.packagePanelLv1.TabIndex              = 85;
            this.packagePanelLv2.BackgroundImage       = Resources.warehouse_2;
            this.packagePanelLv2.BackgroundImageLayout = ImageLayout.None;
            this.packagePanelLv2.Cursor                = Cursors.Default;
            this.packagePanelLv2.Enabled               = false;
            this.packagePanelLv2.Location              = new Point(295, 107);
            this.packagePanelLv2.Margin                = new System.Windows.Forms.Padding(0);
            this.packagePanelLv2.Name                  = "packagePanelLv2";
            this.packagePanelLv2.Size                  = new System.Drawing.Size(209, 105);
            this.packagePanelLv2.TabIndex              = 86;
            this.packagePanelLv3.BackgroundImage       = Resources.warehouse_2;
            this.packagePanelLv3.BackgroundImageLayout = ImageLayout.None;
            this.packagePanelLv3.Cursor                = Cursors.Default;
            this.packagePanelLv3.Location              = new Point(295, 214);
            this.packagePanelLv3.Margin                = new System.Windows.Forms.Padding(0);
            this.packagePanelLv3.Name                  = "packagePanelLv3";
            this.packagePanelLv3.Size                  = new System.Drawing.Size(209, 105);
            this.packagePanelLv3.TabIndex              = 87;
            this.packagePanelLv3.Visible               = false;
            this.packagePanelLv4.BackgroundImage       = Resources.warehouse_2;
            this.packagePanelLv4.BackgroundImageLayout = ImageLayout.None;
            this.packagePanelLv4.Cursor                = Cursors.Default;
            this.packagePanelLv4.Enabled               = false;
            this.packagePanelLv4.Location              = new Point(295, 214);
            this.packagePanelLv4.Margin                = new System.Windows.Forms.Padding(0);
            this.packagePanelLv4.Name                  = "packagePanelLv4";
            this.packagePanelLv4.Size                  = new System.Drawing.Size(209, 105);
            this.packagePanelLv4.TabIndex              = 88;
            this.shopPanel.BackgroundImage             = Resources.warehouse_2;
            this.shopPanel.BackgroundImageLayout       = ImageLayout.None;
            this.shopPanel.Cursor                      = Cursors.Default;
            this.shopPanel.Location                    = new Point(295, 214);
            this.shopPanel.Margin                      = new System.Windows.Forms.Padding(0);
            this.shopPanel.Name                        = "shopPanel";
            this.shopPanel.Size                        = new System.Drawing.Size(209, 105);
            this.shopPanel.TabIndex                    = 58;
            this.shopPanel.Visible                     = false;
            this.groupBox2.Controls.Add(this.equipEditor);
            this.groupBox2.Location            = new Point(2, 5);
            this.groupBox2.Name                = "groupBox2";
            this.groupBox2.Size                = new System.Drawing.Size(225, 496);
            this.groupBox2.TabIndex            = 77;
            this.groupBox2.TabStop             = false;
            this.groupBox2.Text                = "人物出生送装备设置";
            this.equipEditor.AllPart           = false;
            this.equipEditor.DefaultDurability = 255;
            this.equipEditor.Location          = new Point(4, 17);
            this.equipEditor.Margin            = new System.Windows.Forms.Padding(0);
            this.equipEditor.Name              = "equipEditor";
            this.equipEditor.Size              = new System.Drawing.Size(216, 450);
            this.equipEditor.TabIndex          = 1;
            base.AutoScaleDimensions           = new SizeF(6f, 12f);
            base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            base.ClientSize    = new System.Drawing.Size(739, 501);
            base.Controls.Add(this.groupBox2);
            base.Controls.Add(this.pnlPackage);
            base.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
            base.MaximizeBox     = false;
            base.MinimizeBox     = false;
            base.Name            = "frmInitEquip";
            base.ShowIcon        = false;
            base.ShowInTaskbar   = false;
            base.StartPosition   = FormStartPosition.CenterParent;
            this.Text            = "人物出生送装备设置";
            base.FormClosing    += new FormClosingEventHandler(this.frmInitEquip_FormClosing);
            base.FormClosed     += new FormClosedEventHandler(this.frmInitEquip_FormClosed);
            base.Load           += new EventHandler(this.frmInitEquip_Load);
            this.pnlPackage.ResumeLayout(false);
            this.pnlPackage.PerformLayout();
            this.groupBox2.ResumeLayout(false);
            base.ResumeLayout(false);
        }