Inheritance: System.Windows.Forms.Button
示例#1
0
 private void InitializeComponent()
 {
     this.components = new Container();
     this.label1 = new Label();
     this.buttonCancel = new NomadButton();
     this.buttonOK = new NomadButton();
     this.inventoryTree = new InventoryTree();
     base.SuspendLayout();
     this.label1.AutoSize = true;
     this.label1.Location = new Point(12, 9);
     this.label1.Name = "label1";
     this.label1.Size = new Size(156, 13);
     this.label1.TabIndex = 0;
     this.label1.Text = "PROMPT_INVENTORY_TEXT";
     this.buttonCancel.Anchor = (AnchorStyles.Bottom | AnchorStyles.Right);
     this.buttonCancel.DialogResult = DialogResult.Cancel;
     this.buttonCancel.Location = new Point(209, 273);
     this.buttonCancel.Name = "buttonCancel";
     this.buttonCancel.Size = new Size(75, 23);
     this.buttonCancel.TabIndex = 3;
     this.buttonCancel.Text = "PROMPT_CANCEL";
     this.buttonCancel.UseVisualStyleBackColor = true;
     this.buttonOK.Anchor = (AnchorStyles.Bottom | AnchorStyles.Right);
     this.buttonOK.DialogResult = DialogResult.OK;
     this.buttonOK.Enabled = false;
     this.buttonOK.Location = new Point(128, 273);
     this.buttonOK.Name = "buttonOK";
     this.buttonOK.Size = new Size(75, 23);
     this.buttonOK.TabIndex = 2;
     this.buttonOK.Text = "PROMPT_OK";
     this.buttonOK.UseVisualStyleBackColor = true;
     this.inventoryTree.Anchor = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right);
     this.inventoryTree.HideSelection = false;
     this.inventoryTree.ImageIndex = 0;
     this.inventoryTree.Location = new Point(15, 25);
     this.inventoryTree.Name = "inventoryTree";
     this.inventoryTree.Root = null;
     this.inventoryTree.SelectedImageIndex = 0;
     this.inventoryTree.Size = new Size(269, 244);
     this.inventoryTree.TabIndex = 1;
     this.inventoryTree.Value = null;
     this.inventoryTree.NodeMouseDoubleClick += new TreeNodeMouseClickEventHandler(this.inventoryTree_NodeMouseDoubleClick);
     this.inventoryTree.ValueChanged += new EventHandler(this.inventoryTree_ValueChanged);
     base.AcceptButton = this.buttonOK;
     base.AutoScaleDimensions = new SizeF(6f, 13f);
     base.AutoScaleMode = AutoScaleMode.Font;
     base.CancelButton = this.buttonCancel;
     base.ClientSize = new Size(296, 300);
     base.Controls.Add(this.buttonOK);
     base.Controls.Add(this.buttonCancel);
     base.Controls.Add(this.inventoryTree);
     base.Controls.Add(this.label1);
     base.Name = "PromptInventory";
     base.StartPosition = FormStartPosition.CenterParent;
     this.Text = "PROMPT_INVENTORY_TITLE";
     base.ResumeLayout(false);
     base.PerformLayout();
 }
示例#2
0
 private void InitializeComponent()
 {
     this.components    = new Container();
     this.label1        = new Label();
     this.buttonCancel  = new NomadButton();
     this.buttonOK      = new NomadButton();
     this.inventoryTree = new InventoryTree();
     base.SuspendLayout();
     this.label1.AutoSize                      = true;
     this.label1.Location                      = new Point(12, 9);
     this.label1.Name                          = "label1";
     this.label1.Size                          = new Size(156, 13);
     this.label1.TabIndex                      = 0;
     this.label1.Text                          = "PROMPT_INVENTORY_TEXT";
     this.buttonCancel.Anchor                  = (AnchorStyles.Bottom | AnchorStyles.Right);
     this.buttonCancel.DialogResult            = DialogResult.Cancel;
     this.buttonCancel.Location                = new Point(209, 273);
     this.buttonCancel.Name                    = "buttonCancel";
     this.buttonCancel.Size                    = new Size(75, 23);
     this.buttonCancel.TabIndex                = 3;
     this.buttonCancel.Text                    = "PROMPT_CANCEL";
     this.buttonCancel.UseVisualStyleBackColor = true;
     this.buttonOK.Anchor                      = (AnchorStyles.Bottom | AnchorStyles.Right);
     this.buttonOK.DialogResult                = DialogResult.OK;
     this.buttonOK.Enabled                     = false;
     this.buttonOK.Location                    = new Point(128, 273);
     this.buttonOK.Name                        = "buttonOK";
     this.buttonOK.Size                        = new Size(75, 23);
     this.buttonOK.TabIndex                    = 2;
     this.buttonOK.Text                        = "PROMPT_OK";
     this.buttonOK.UseVisualStyleBackColor     = true;
     this.inventoryTree.Anchor                 = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right);
     this.inventoryTree.HideSelection          = false;
     this.inventoryTree.ImageIndex             = 0;
     this.inventoryTree.Location               = new Point(15, 25);
     this.inventoryTree.Name                   = "inventoryTree";
     this.inventoryTree.Root                   = null;
     this.inventoryTree.SelectedImageIndex     = 0;
     this.inventoryTree.Size                   = new Size(269, 244);
     this.inventoryTree.TabIndex               = 1;
     this.inventoryTree.Value                  = null;
     this.inventoryTree.NodeMouseDoubleClick  += new TreeNodeMouseClickEventHandler(this.inventoryTree_NodeMouseDoubleClick);
     this.inventoryTree.ValueChanged          += new EventHandler(this.inventoryTree_ValueChanged);
     base.AcceptButton                         = this.buttonOK;
     base.AutoScaleDimensions                  = new SizeF(6f, 13f);
     base.AutoScaleMode                        = AutoScaleMode.Font;
     base.CancelButton                         = this.buttonCancel;
     base.ClientSize = new Size(296, 300);
     base.Controls.Add(this.buttonOK);
     base.Controls.Add(this.buttonCancel);
     base.Controls.Add(this.inventoryTree);
     base.Controls.Add(this.label1);
     base.Name          = "PromptInventory";
     base.StartPosition = FormStartPosition.CenterParent;
     this.Text          = "PROMPT_INVENTORY_TITLE";
     base.ResumeLayout(false);
     base.PerformLayout();
 }
示例#3
0
 protected override Control CreateUIControl()
 {
     NomadButton nomadButton = new NomadButton();
     nomadButton.Text = base.DisplayName;
     nomadButton.Click += delegate(object sender, EventArgs e)
     {
         this.m_callback();
     }
     ;
     return nomadButton;
 }
示例#4
0
 private void InitializeComponent()
 {
     this.label1            = new Label();
     this.textWaterMaterial = new TextBox();
     this.pictureBox1       = new PictureBox();
     this.buttonAssign      = new NomadButton();
     ((ISupportInitialize)this.pictureBox1).BeginInit();
     base.SuspendLayout();
     this.label1.AutoSize             = true;
     this.label1.Location             = new Point(3, 0);
     this.label1.Name                 = "label1";
     this.label1.Size                 = new Size(151, 13);
     this.label1.TabIndex             = 2;
     this.label1.Text                 = "PARAM_WATER_MATERIAL";
     this.textWaterMaterial.Anchor    = (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right);
     this.textWaterMaterial.Location  = new Point(3, 197);
     this.textWaterMaterial.Name      = "textWaterMaterial";
     this.textWaterMaterial.ReadOnly  = true;
     this.textWaterMaterial.Size      = new Size(244, 20);
     this.textWaterMaterial.TabIndex  = 3;
     this.textWaterMaterial.TextAlign = HorizontalAlignment.Center;
     this.pictureBox1.Anchor          = (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right);
     this.pictureBox1.Location        = new Point(6, 16);
     this.pictureBox1.Name            = "pictureBox1";
     this.pictureBox1.Size            = new Size(241, 175);
     this.pictureBox1.SizeMode        = PictureBoxSizeMode.Zoom;
     this.pictureBox1.TabIndex        = 5;
     this.pictureBox1.TabStop         = false;
     this.pictureBox1.Click          += new EventHandler(this.pictureBox1_Click);
     this.buttonAssign.Anchor         = (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right);
     this.buttonAssign.Location       = new Point(3, 223);
     this.buttonAssign.Name           = "buttonAssign";
     this.buttonAssign.Size           = new Size(244, 23);
     this.buttonAssign.TabIndex       = 4;
     this.buttonAssign.Text           = "PARAM_ASSIGN";
     this.buttonAssign.Click         += new EventHandler(this.buttonAssign_Click);
     base.AutoScaleDimensions         = new SizeF(6f, 13f);
     base.AutoScaleMode               = AutoScaleMode.Font;
     base.Controls.Add(this.pictureBox1);
     base.Controls.Add(this.buttonAssign);
     base.Controls.Add(this.textWaterMaterial);
     base.Controls.Add(this.label1);
     base.Name = "ParamWaterPicker";
     base.Size = new Size(253, 254);
     ((ISupportInitialize)this.pictureBox1).EndInit();
     base.ResumeLayout(false);
     base.PerformLayout();
 }
示例#5
0
 private void InitializeComponent()
 {
     this.tableLayoutPanel1 = new TableLayoutPanel();
     this.panel1 = new Panel();
     this.promptTextBox = new TextBox();
     this.promptLabel = new Label();
     this.okButton = new NomadButton();
     this.cancelButton = new NomadButton();
     this.tableLayoutPanel1.SuspendLayout();
     this.panel1.SuspendLayout();
     base.SuspendLayout();
     this.tableLayoutPanel1.AutoSize = true;
     this.tableLayoutPanel1.AutoSizeMode = AutoSizeMode.GrowAndShrink;
     this.tableLayoutPanel1.ColumnCount = 1;
     this.tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100f));
     this.tableLayoutPanel1.Controls.Add(this.panel1, 0, 2);
     this.tableLayoutPanel1.Controls.Add(this.promptTextBox, 0, 1);
     this.tableLayoutPanel1.Controls.Add(this.promptLabel, 0, 0);
     this.tableLayoutPanel1.GrowStyle = TableLayoutPanelGrowStyle.FixedSize;
     this.tableLayoutPanel1.Location = new Point(1, 2);
     this.tableLayoutPanel1.MaximumSize = new Size(375, 0);
     this.tableLayoutPanel1.MinimumSize = new Size(375, 0);
     this.tableLayoutPanel1.Name = "tableLayoutPanel1";
     this.tableLayoutPanel1.RowCount = 3;
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle());
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle());
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle());
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Absolute, 20f));
     this.tableLayoutPanel1.Size = new Size(375, 80);
     this.tableLayoutPanel1.TabIndex = 3;
     this.panel1.Controls.Add(this.okButton);
     this.panel1.Controls.Add(this.cancelButton);
     this.panel1.Dock = DockStyle.Fill;
     this.panel1.Location = new Point(3, 48);
     this.panel1.Name = "panel1";
     this.panel1.Padding = new Padding(0, 3, 0, 3);
     this.panel1.Size = new Size(369, 29);
     this.panel1.TabIndex = 3;
     this.promptTextBox.Dock = DockStyle.Fill;
     this.promptTextBox.Location = new Point(3, 22);
     this.promptTextBox.Name = "promptTextBox";
     this.promptTextBox.Size = new Size(369, 20);
     this.promptTextBox.TabIndex = 2;
     this.promptLabel.AutoSize = true;
     this.promptLabel.Location = new Point(3, 0);
     this.promptLabel.Name = "promptLabel";
     this.promptLabel.Padding = new Padding(0, 3, 0, 3);
     this.promptLabel.Size = new Size(40, 19);
     this.promptLabel.TabIndex = 1;
     this.promptLabel.Text = "Prompt";
     this.okButton.DialogResult = DialogResult.OK;
     this.okButton.Dock = DockStyle.Right;
     this.okButton.Location = new Point(219, 3);
     this.okButton.Name = "okButton";
     this.okButton.Size = new Size(75, 23);
     this.okButton.TabIndex = 1;
     this.okButton.Text = "&OK";
     this.okButton.UseVisualStyleBackColor = true;
     this.okButton.Click += new EventHandler(this.okButton_Click);
     this.cancelButton.DialogResult = DialogResult.Cancel;
     this.cancelButton.Dock = DockStyle.Right;
     this.cancelButton.Location = new Point(294, 3);
     this.cancelButton.Name = "cancelButton";
     this.cancelButton.Size = new Size(75, 23);
     this.cancelButton.TabIndex = 0;
     this.cancelButton.Text = "&Cancel";
     this.cancelButton.UseVisualStyleBackColor = true;
     base.AcceptButton = this.okButton;
     base.AutoScaleDimensions = new SizeF(6f, 13f);
     base.AutoScaleMode = AutoScaleMode.Font;
     this.AutoSize = true;
     base.AutoSizeMode = AutoSizeMode.GrowAndShrink;
     base.CancelButton = this.cancelButton;
     base.ClientSize = new Size(416, 141);
     base.Controls.Add(this.tableLayoutPanel1);
     base.FormBorderStyle = FormBorderStyle.FixedDialog;
     base.MaximizeBox = false;
     base.MinimizeBox = false;
     base.Name = "PromptForm";
     base.StartPosition = FormStartPosition.CenterParent;
     this.Text = "Prompt";
     this.tableLayoutPanel1.ResumeLayout(false);
     this.tableLayoutPanel1.PerformLayout();
     this.panel1.ResumeLayout(false);
     base.ResumeLayout(false);
     base.PerformLayout();
 }
示例#6
0
 private void InitializeComponent()
 {
     this.components       = new Container();
     this.label1           = new Label();
     this.buttonCancel     = new NomadButton();
     this.buttonOK         = new NomadButton();
     this.inventoryList    = new InventoryList(this.components);
     this.categoryComboBox = new IndentedComboBox();
     base.SuspendLayout();
     this.label1.AutoSize                               = true;
     this.label1.Location                               = new Point(12, 9);
     this.label1.Name                                   = "label1";
     this.label1.Size                                   = new Size(156, 13);
     this.label1.TabIndex                               = 0;
     this.label1.Text                                   = "PROMPT_INVENTORY_TEXT";
     this.buttonCancel.Anchor                           = (AnchorStyles.Bottom | AnchorStyles.Right);
     this.buttonCancel.DialogResult                     = DialogResult.Cancel;
     this.buttonCancel.Location                         = new Point(535, 492);
     this.buttonCancel.Name                             = "buttonCancel";
     this.buttonCancel.Size                             = new Size(75, 23);
     this.buttonCancel.TabIndex                         = 3;
     this.buttonCancel.Text                             = "PROMPT_CANCEL";
     this.buttonCancel.UseVisualStyleBackColor          = true;
     this.buttonOK.Anchor                               = (AnchorStyles.Bottom | AnchorStyles.Right);
     this.buttonOK.DialogResult                         = DialogResult.OK;
     this.buttonOK.Enabled                              = false;
     this.buttonOK.Location                             = new Point(454, 492);
     this.buttonOK.Name                                 = "buttonOK";
     this.buttonOK.Size                                 = new Size(75, 23);
     this.buttonOK.TabIndex                             = 2;
     this.buttonOK.Text                                 = "PROMPT_OK";
     this.buttonOK.UseVisualStyleBackColor              = true;
     this.inventoryList.Anchor                          = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right);
     this.inventoryList.Entries                         = null;
     this.inventoryList.Location                        = new Point(15, 55);
     this.inventoryList.Name                            = "inventoryList";
     this.inventoryList.OwnerDraw                       = true;
     this.inventoryList.Size                            = new Size(595, 431);
     this.inventoryList.TabIndex                        = 4;
     this.inventoryList.UseCompatibleStateImageBehavior = false;
     this.inventoryList.View                            = View.Tile;
     this.inventoryList.SelectedIndexChanged           += new EventHandler(this.inventoryList_SelectedIndexChanged);
     this.inventoryList.DoubleClick                    += new EventHandler(this.inventoryList_DoubleClick);
     this.categoryComboBox.Anchor                       = (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right);
     this.categoryComboBox.Location                     = new Point(15, 25);
     this.categoryComboBox.MaximumSize                  = new Size(9999, 24);
     this.categoryComboBox.MinimumSize                  = new Size(0, 24);
     this.categoryComboBox.Name                         = "categoryComboBox";
     this.categoryComboBox.SelectedItem                 = null;
     this.categoryComboBox.Size                         = new Size(595, 24);
     this.categoryComboBox.TabIndex                     = 5;
     this.categoryComboBox.SelectedItemChanged         += new EventHandler <IndentedComboboxItemEventArgs>(this.categoryComboBox_SelectedItemChanged);
     base.AcceptButton                                  = this.buttonOK;
     base.AutoScaleDimensions                           = new SizeF(6f, 13f);
     base.AutoScaleMode                                 = AutoScaleMode.Font;
     base.CancelButton                                  = this.buttonCancel;
     base.ClientSize = new Size(622, 519);
     base.Controls.Add(this.categoryComboBox);
     base.Controls.Add(this.inventoryList);
     base.Controls.Add(this.buttonOK);
     base.Controls.Add(this.buttonCancel);
     base.Controls.Add(this.label1);
     base.Name          = "PromptInventoryList";
     base.StartPosition = FormStartPosition.CenterParent;
     this.Text          = "PROMPT_INVENTORY_TITLE";
     base.ResumeLayout(false);
     base.PerformLayout();
 }
示例#7
0
 private void InitializeComponent()
 {
     this.components = new Container();
     this.label1 = new Label();
     this.tableLayoutPanel1 = new TableLayoutPanel();
     this.buttonClear = new NomadButton();
     this.buttonAssign = new NomadButton();
     this.treeView = new TreeView();
     this.imageList = new ImageList(this.components);
     this.tableLayoutPanel1.SuspendLayout();
     base.SuspendLayout();
     this.label1.AutoSize = true;
     this.label1.Location = new Point(3, 0);
     this.label1.Name = "label1";
     this.label1.Size = new Size(109, 13);
     this.label1.TabIndex = 1;
     this.label1.Text = "PARAM_TEXTURES";
     this.tableLayoutPanel1.Anchor = (AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right);
     this.tableLayoutPanel1.ColumnCount = 2;
     this.tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f));
     this.tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f));
     this.tableLayoutPanel1.Controls.Add(this.buttonClear, 0, 0);
     this.tableLayoutPanel1.Controls.Add(this.buttonAssign, 0, 0);
     this.tableLayoutPanel1.Location = new Point(3, 102);
     this.tableLayoutPanel1.Name = "tableLayoutPanel1";
     this.tableLayoutPanel1.RowCount = 1;
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 50f));
     this.tableLayoutPanel1.Size = new Size(212, 29);
     this.tableLayoutPanel1.TabIndex = 4;
     this.buttonClear.Dock = DockStyle.Fill;
     this.buttonClear.Location = new Point(109, 3);
     this.buttonClear.Name = "buttonClear";
     this.buttonClear.Size = new Size(100, 23);
     this.buttonClear.TabIndex = 4;
     this.buttonClear.Text = "PARAM_CLEAR";
     this.buttonClear.UseVisualStyleBackColor = true;
     this.buttonClear.Click += new EventHandler(this.buttonClear_Click);
     this.buttonAssign.Dock = DockStyle.Fill;
     this.buttonAssign.Location = new Point(3, 3);
     this.buttonAssign.Name = "buttonAssign";
     this.buttonAssign.Size = new Size(100, 23);
     this.buttonAssign.TabIndex = 3;
     this.buttonAssign.Text = "PARAM_ASSIGN";
     this.buttonAssign.UseVisualStyleBackColor = true;
     this.buttonAssign.Click += new EventHandler(this.buttonAssign_Click);
     this.treeView.Anchor = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right);
     this.treeView.HideSelection = false;
     this.treeView.ImageIndex = 0;
     this.treeView.ImageList = this.imageList;
     this.treeView.Location = new Point(6, 16);
     this.treeView.Name = "treeView";
     this.treeView.SelectedImageIndex = 0;
     this.treeView.ShowLines = false;
     this.treeView.ShowPlusMinus = false;
     this.treeView.ShowRootLines = false;
     this.treeView.Size = new Size(206, 83);
     this.treeView.TabIndex = 5;
     this.treeView.NodeMouseDoubleClick += new TreeNodeMouseClickEventHandler(this.treeView_NodeMouseDoubleClick);
     this.treeView.AfterSelect += new TreeViewEventHandler(this.treeView_AfterSelect);
     this.imageList.ColorDepth = ColorDepth.Depth32Bit;
     this.imageList.ImageSize = new Size(16, 16);
     this.imageList.TransparentColor = Color.Transparent;
     base.AutoScaleDimensions = new SizeF(6f, 13f);
     base.AutoScaleMode = AutoScaleMode.Font;
     base.Controls.Add(this.treeView);
     base.Controls.Add(this.tableLayoutPanel1);
     base.Controls.Add(this.label1);
     base.Name = "ParamTextureList";
     base.Size = new Size(218, 134);
     base.Load += new EventHandler(this.ParamTextureList_Load);
     this.tableLayoutPanel1.ResumeLayout(false);
     base.ResumeLayout(false);
     base.PerformLayout();
 }
 private void InitializeComponent()
 {
     this.components = new Container();
     this.label1 = new Label();
     this.buttonCancel = new NomadButton();
     this.buttonOK = new NomadButton();
     this.inventoryList = new InventoryList(this.components);
     this.categoryComboBox = new IndentedComboBox();
     base.SuspendLayout();
     this.label1.AutoSize = true;
     this.label1.Location = new Point(12, 9);
     this.label1.Name = "label1";
     this.label1.Size = new Size(156, 13);
     this.label1.TabIndex = 0;
     this.label1.Text = "PROMPT_INVENTORY_TEXT";
     this.buttonCancel.Anchor = (AnchorStyles.Bottom | AnchorStyles.Right);
     this.buttonCancel.DialogResult = DialogResult.Cancel;
     this.buttonCancel.Location = new Point(535, 492);
     this.buttonCancel.Name = "buttonCancel";
     this.buttonCancel.Size = new Size(75, 23);
     this.buttonCancel.TabIndex = 3;
     this.buttonCancel.Text = "PROMPT_CANCEL";
     this.buttonCancel.UseVisualStyleBackColor = true;
     this.buttonOK.Anchor = (AnchorStyles.Bottom | AnchorStyles.Right);
     this.buttonOK.DialogResult = DialogResult.OK;
     this.buttonOK.Enabled = false;
     this.buttonOK.Location = new Point(454, 492);
     this.buttonOK.Name = "buttonOK";
     this.buttonOK.Size = new Size(75, 23);
     this.buttonOK.TabIndex = 2;
     this.buttonOK.Text = "PROMPT_OK";
     this.buttonOK.UseVisualStyleBackColor = true;
     this.inventoryList.Anchor = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right);
     this.inventoryList.Entries = null;
     this.inventoryList.Location = new Point(15, 55);
     this.inventoryList.Name = "inventoryList";
     this.inventoryList.OwnerDraw = true;
     this.inventoryList.Size = new Size(595, 431);
     this.inventoryList.TabIndex = 4;
     this.inventoryList.UseCompatibleStateImageBehavior = false;
     this.inventoryList.View = View.Tile;
     this.inventoryList.SelectedIndexChanged += new EventHandler(this.inventoryList_SelectedIndexChanged);
     this.inventoryList.DoubleClick += new EventHandler(this.inventoryList_DoubleClick);
     this.categoryComboBox.Anchor = (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right);
     this.categoryComboBox.Location = new Point(15, 25);
     this.categoryComboBox.MaximumSize = new Size(9999, 24);
     this.categoryComboBox.MinimumSize = new Size(0, 24);
     this.categoryComboBox.Name = "categoryComboBox";
     this.categoryComboBox.SelectedItem = null;
     this.categoryComboBox.Size = new Size(595, 24);
     this.categoryComboBox.TabIndex = 5;
     this.categoryComboBox.SelectedItemChanged += new EventHandler<IndentedComboboxItemEventArgs>(this.categoryComboBox_SelectedItemChanged);
     base.AcceptButton = this.buttonOK;
     base.AutoScaleDimensions = new SizeF(6f, 13f);
     base.AutoScaleMode = AutoScaleMode.Font;
     base.CancelButton = this.buttonCancel;
     base.ClientSize = new Size(622, 519);
     base.Controls.Add(this.categoryComboBox);
     base.Controls.Add(this.inventoryList);
     base.Controls.Add(this.buttonOK);
     base.Controls.Add(this.buttonCancel);
     base.Controls.Add(this.label1);
     base.Name = "PromptInventoryList";
     base.StartPosition = FormStartPosition.CenterParent;
     this.Text = "PROMPT_INVENTORY_TITLE";
     base.ResumeLayout(false);
     base.PerformLayout();
 }
示例#9
0
 private void InitializeComponent()
 {
     this.components = new Container();
     this.label1 = new Label();
     this.tableLayoutPanel1 = new TableLayoutPanel();
     this.buttonRemove = new NomadButton();
     this.buttonAdd = new NomadButton();
     this.imageList = new ImageList(this.components);
     this.labelCount = new Label();
     this.inventoryList = new InventoryList(this.components);
     this.tableLayoutPanel1.SuspendLayout();
     base.SuspendLayout();
     this.label1.AutoSize = true;
     this.label1.Location = new Point(3, 0);
     this.label1.Name = "label1";
     this.label1.Size = new Size(42, 13);
     this.label1.TabIndex = 1;
     this.label1.Text = "Header";
     this.tableLayoutPanel1.Anchor = (AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right);
     this.tableLayoutPanel1.ColumnCount = 2;
     this.tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f));
     this.tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f));
     this.tableLayoutPanel1.Controls.Add(this.buttonRemove, 0, 0);
     this.tableLayoutPanel1.Controls.Add(this.buttonAdd, 0, 0);
     this.tableLayoutPanel1.Location = new Point(3, 193);
     this.tableLayoutPanel1.Name = "tableLayoutPanel1";
     this.tableLayoutPanel1.RowCount = 1;
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 50f));
     this.tableLayoutPanel1.Size = new Size(212, 29);
     this.tableLayoutPanel1.TabIndex = 4;
     this.buttonRemove.Dock = DockStyle.Fill;
     this.buttonRemove.Location = new Point(109, 3);
     this.buttonRemove.Name = "buttonRemove";
     this.buttonRemove.Size = new Size(100, 23);
     this.buttonRemove.TabIndex = 4;
     this.buttonRemove.Text = "PARAM_REMOVE";
     this.buttonRemove.UseVisualStyleBackColor = true;
     this.buttonRemove.Click += new EventHandler(this.buttonRemove_Click);
     this.buttonAdd.Dock = DockStyle.Fill;
     this.buttonAdd.Location = new Point(3, 3);
     this.buttonAdd.Name = "buttonAdd";
     this.buttonAdd.Size = new Size(100, 23);
     this.buttonAdd.TabIndex = 3;
     this.buttonAdd.Text = "PARAM_ADD";
     this.buttonAdd.Click += new EventHandler(this.buttonAdd_Click);
     this.imageList.ColorDepth = ColorDepth.Depth32Bit;
     this.imageList.ImageSize = new Size(16, 16);
     this.imageList.TransparentColor = Color.Transparent;
     this.labelCount.Anchor = (AnchorStyles.Top | AnchorStyles.Right);
     this.labelCount.Location = new Point(165, 0);
     this.labelCount.Name = "labelCount";
     this.labelCount.Size = new Size(50, 13);
     this.labelCount.TabIndex = 6;
     this.labelCount.Text = "0/0";
     this.labelCount.TextAlign = ContentAlignment.TopRight;
     this.inventoryList.Anchor = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right);
     this.inventoryList.Entries = null;
     this.inventoryList.Location = new Point(6, 16);
     this.inventoryList.Name = "inventoryList";
     this.inventoryList.OwnerDraw = true;
     this.inventoryList.Size = new Size(206, 174);
     this.inventoryList.TabIndex = 7;
     this.inventoryList.UseCompatibleStateImageBehavior = false;
     this.inventoryList.View = View.Tile;
     this.inventoryList.SelectedIndexChanged += new EventHandler(this.inventoryList_SelectedIndexChanged);
     this.inventoryList.MouseDown += new MouseEventHandler(this.inventoryList_MouseDown);
     this.inventoryList.MouseUp += new MouseEventHandler(this.inventoryList_MouseUp);
     base.AutoScaleDimensions = new SizeF(6f, 13f);
     base.AutoScaleMode = AutoScaleMode.Font;
     base.Controls.Add(this.inventoryList);
     base.Controls.Add(this.labelCount);
     base.Controls.Add(this.tableLayoutPanel1);
     base.Controls.Add(this.label1);
     base.Name = "ParamSlotList";
     base.Size = new Size(218, 225);
     base.Load += new EventHandler(this.ParamSlotList_Load);
     this.tableLayoutPanel1.ResumeLayout(false);
     base.ResumeLayout(false);
     base.PerformLayout();
 }
示例#10
0
 private void InitializeComponent()
 {
     this.label1 = new Label();
     this.screenshotPicture = new PictureBox();
     this.tableLayoutPanel1 = new TableLayoutPanel();
     this.buttonGotoCamera = new NomadButton();
     this.buttonSetCamera = new NomadButton();
     ((ISupportInitialize)this.screenshotPicture).BeginInit();
     this.tableLayoutPanel1.SuspendLayout();
     base.SuspendLayout();
     this.label1.Dock = DockStyle.Top;
     this.label1.Location = new Point(0, 0);
     this.label1.Name = "label1";
     this.label1.Size = new Size(212, 15);
     this.label1.TabIndex = 0;
     this.label1.Text = "PARAM_SNAPSHOT";
     this.screenshotPicture.Dock = DockStyle.Fill;
     this.screenshotPicture.Location = new Point(0, 15);
     this.screenshotPicture.Name = "screenshotPicture";
     this.screenshotPicture.Size = new Size(212, 156);
     this.screenshotPicture.SizeMode = PictureBoxSizeMode.Zoom;
     this.screenshotPicture.TabIndex = 3;
     this.screenshotPicture.TabStop = false;
     this.tableLayoutPanel1.ColumnCount = 2;
     this.tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f));
     this.tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f));
     this.tableLayoutPanel1.Controls.Add(this.buttonGotoCamera, 0, 0);
     this.tableLayoutPanel1.Controls.Add(this.buttonSetCamera, 0, 0);
     this.tableLayoutPanel1.Dock = DockStyle.Bottom;
     this.tableLayoutPanel1.Location = new Point(0, 171);
     this.tableLayoutPanel1.Name = "tableLayoutPanel1";
     this.tableLayoutPanel1.RowCount = 1;
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 50f));
     this.tableLayoutPanel1.Size = new Size(212, 29);
     this.tableLayoutPanel1.TabIndex = 5;
     this.buttonGotoCamera.Dock = DockStyle.Fill;
     this.buttonGotoCamera.Location = new Point(109, 3);
     this.buttonGotoCamera.Name = "buttonGotoCamera";
     this.buttonGotoCamera.Size = new Size(100, 23);
     this.buttonGotoCamera.TabIndex = 4;
     this.buttonGotoCamera.Text = "PARAM_SNAPSHOT_GOTO";
     this.buttonGotoCamera.UseVisualStyleBackColor = true;
     this.buttonGotoCamera.Click += new EventHandler(this.buttonGotoCamera_Click);
     this.buttonSetCamera.Dock = DockStyle.Fill;
     this.buttonSetCamera.Location = new Point(3, 3);
     this.buttonSetCamera.Name = "buttonSetCamera";
     this.buttonSetCamera.Size = new Size(100, 23);
     this.buttonSetCamera.TabIndex = 3;
     this.buttonSetCamera.Text = "PARAM_SNAPSHOT_SET";
     this.buttonSetCamera.UseVisualStyleBackColor = true;
     this.buttonSetCamera.Click += new EventHandler(this.buttonSetCamera_Click);
     base.AutoScaleDimensions = new SizeF(6f, 13f);
     base.AutoScaleMode = AutoScaleMode.Font;
     base.Controls.Add(this.screenshotPicture);
     base.Controls.Add(this.tableLayoutPanel1);
     base.Controls.Add(this.label1);
     base.Name = "ParamSnapshot";
     base.Size = new Size(212, 200);
     ((ISupportInitialize)this.screenshotPicture).EndInit();
     this.tableLayoutPanel1.ResumeLayout(false);
     base.ResumeLayout(false);
 }
示例#11
0
 private void InitializeComponent()
 {
     this.label1 = new Label();
     this.textWaterMaterial = new TextBox();
     this.pictureBox1 = new PictureBox();
     this.buttonAssign = new NomadButton();
     ((ISupportInitialize)this.pictureBox1).BeginInit();
     base.SuspendLayout();
     this.label1.AutoSize = true;
     this.label1.Location = new Point(3, 0);
     this.label1.Name = "label1";
     this.label1.Size = new Size(151, 13);
     this.label1.TabIndex = 2;
     this.label1.Text = "PARAM_WATER_MATERIAL";
     this.textWaterMaterial.Anchor = (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right);
     this.textWaterMaterial.Location = new Point(3, 197);
     this.textWaterMaterial.Name = "textWaterMaterial";
     this.textWaterMaterial.ReadOnly = true;
     this.textWaterMaterial.Size = new Size(244, 20);
     this.textWaterMaterial.TabIndex = 3;
     this.textWaterMaterial.TextAlign = HorizontalAlignment.Center;
     this.pictureBox1.Anchor = (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right);
     this.pictureBox1.Location = new Point(6, 16);
     this.pictureBox1.Name = "pictureBox1";
     this.pictureBox1.Size = new Size(241, 175);
     this.pictureBox1.SizeMode = PictureBoxSizeMode.Zoom;
     this.pictureBox1.TabIndex = 5;
     this.pictureBox1.TabStop = false;
     this.pictureBox1.Click += new EventHandler(this.pictureBox1_Click);
     this.buttonAssign.Anchor = (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right);
     this.buttonAssign.Location = new Point(3, 223);
     this.buttonAssign.Name = "buttonAssign";
     this.buttonAssign.Size = new Size(244, 23);
     this.buttonAssign.TabIndex = 4;
     this.buttonAssign.Text = "PARAM_ASSIGN";
     this.buttonAssign.Click += new EventHandler(this.buttonAssign_Click);
     base.AutoScaleDimensions = new SizeF(6f, 13f);
     base.AutoScaleMode = AutoScaleMode.Font;
     base.Controls.Add(this.pictureBox1);
     base.Controls.Add(this.buttonAssign);
     base.Controls.Add(this.textWaterMaterial);
     base.Controls.Add(this.label1);
     base.Name = "ParamWaterPicker";
     base.Size = new Size(253, 254);
     ((ISupportInitialize)this.pictureBox1).EndInit();
     base.ResumeLayout(false);
     base.PerformLayout();
 }
示例#12
0
 private void InitializeComponent()
 {
     this.components        = new Container();
     this.label1            = new Label();
     this.tableLayoutPanel1 = new TableLayoutPanel();
     this.treeView          = new TreeView();
     this.imageList         = new ImageList(this.components);
     this.buttonClear       = new NomadButton();
     this.buttonAssign      = new NomadButton();
     this.tableLayoutPanel1.SuspendLayout();
     base.SuspendLayout();
     this.label1.AutoSize               = true;
     this.label1.Location               = new Point(3, 0);
     this.label1.Name                   = "label1";
     this.label1.Size                   = new Size(89, 13);
     this.label1.TabIndex               = 1;
     this.label1.Text                   = "PARAM_ROADS";
     this.tableLayoutPanel1.Anchor      = (AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right);
     this.tableLayoutPanel1.ColumnCount = 2;
     this.tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f));
     this.tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f));
     this.tableLayoutPanel1.Controls.Add(this.buttonClear, 0, 0);
     this.tableLayoutPanel1.Controls.Add(this.buttonAssign, 0, 0);
     this.tableLayoutPanel1.Location = new Point(3, 156);
     this.tableLayoutPanel1.Name     = "tableLayoutPanel1";
     this.tableLayoutPanel1.RowCount = 1;
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 50f));
     this.tableLayoutPanel1.Size     = new Size(212, 29);
     this.tableLayoutPanel1.TabIndex = 4;
     this.treeView.Anchor            = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right);
     this.treeView.HideSelection     = false;
     this.treeView.ImageIndex        = 0;
     this.treeView.ImageList         = this.imageList;
     this.treeView.Location          = new Point(6, 16);
     this.treeView.Name = "treeView";
     this.treeView.SelectedImageIndex = 0;
     this.treeView.ShowLines          = false;
     this.treeView.ShowPlusMinus      = false;
     this.treeView.ShowRootLines      = false;
     this.treeView.Size                        = new Size(212, 137);
     this.treeView.TabIndex                    = 5;
     this.treeView.MouseDoubleClick           += new MouseEventHandler(this.treeView_MouseDoubleClick);
     this.treeView.AfterSelect                += new TreeViewEventHandler(this.treeView_AfterSelect);
     this.imageList.ColorDepth                 = ColorDepth.Depth32Bit;
     this.imageList.ImageSize                  = new Size(16, 16);
     this.imageList.TransparentColor           = Color.Transparent;
     this.buttonClear.Dock                     = DockStyle.Fill;
     this.buttonClear.Location                 = new Point(109, 3);
     this.buttonClear.Name                     = "buttonClear";
     this.buttonClear.Size                     = new Size(100, 23);
     this.buttonClear.TabIndex                 = 4;
     this.buttonClear.Text                     = "PARAM_CLEAR";
     this.buttonClear.UseVisualStyleBackColor  = true;
     this.buttonClear.Click                   += new EventHandler(this.buttonClear_Click);
     this.buttonAssign.Dock                    = DockStyle.Fill;
     this.buttonAssign.Location                = new Point(3, 3);
     this.buttonAssign.Name                    = "buttonAssign";
     this.buttonAssign.Size                    = new Size(100, 23);
     this.buttonAssign.TabIndex                = 3;
     this.buttonAssign.Text                    = "PARAM_ASSIGN";
     this.buttonAssign.UseVisualStyleBackColor = true;
     this.buttonAssign.Click                  += new EventHandler(this.buttonAssign_Click);
     base.AutoScaleDimensions                  = new SizeF(6f, 13f);
     base.AutoScaleMode                        = AutoScaleMode.Font;
     base.Controls.Add(this.treeView);
     base.Controls.Add(this.tableLayoutPanel1);
     base.Controls.Add(this.label1);
     base.Name  = "ParamSplineList";
     base.Size  = new Size(218, 188);
     base.Load += new EventHandler(this.ParamSplineList_Load);
     this.tableLayoutPanel1.ResumeLayout(false);
     base.ResumeLayout(false);
     base.PerformLayout();
 }
 private void InitializeComponent()
 {
     this.components = new Container();
     this.label1 = new Label();
     this.tableLayoutPanel1 = new TableLayoutPanel();
     this.label4 = new Label();
     this.label3 = new Label();
     this.label2 = new Label();
     this.selObjNameLabel = new Label();
     this.selObjSizeLabel = new Label();
     this.textBoxSearchObjInv = new TextBox();
     this.parentButton = new NomadButton();
     this.objectList = new InventoryList(this.components);
     this.categoryComboBox = new IndentedComboBox();
     this.inventoryTree = new InventoryTree();
     this.tableLayoutPanel1.SuspendLayout();
     base.SuspendLayout();
     this.label1.Anchor = (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right);
     this.label1.Location = new Point(3, 2);
     this.label1.Name = "label1";
     this.label1.Size = new Size(203, 13);
     this.label1.TabIndex = 1;
     this.label1.Text = "PARAM_OBJECT_BROWSER";
     this.tableLayoutPanel1.Anchor = (AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right);
     this.tableLayoutPanel1.AutoSize = true;
     this.tableLayoutPanel1.ColumnCount = 2;
     this.tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f));
     this.tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f));
     this.tableLayoutPanel1.Controls.Add(this.label4, 0, 0);
     this.tableLayoutPanel1.Controls.Add(this.label3, 0, 2);
     this.tableLayoutPanel1.Controls.Add(this.label2, 0, 1);
     this.tableLayoutPanel1.Controls.Add(this.selObjNameLabel, 1, 1);
     this.tableLayoutPanel1.Controls.Add(this.selObjSizeLabel, 1, 2);
     this.tableLayoutPanel1.Controls.Add(this.textBoxSearchObjInv, 1, 0);
     this.tableLayoutPanel1.GrowStyle = TableLayoutPanelGrowStyle.FixedSize;
     this.tableLayoutPanel1.Location = new Point(3, 365);
     this.tableLayoutPanel1.Name = "tableLayoutPanel1";
     this.tableLayoutPanel1.RowCount = 3;
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Absolute, 23f));
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Absolute, 16f));
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Absolute, 16f));
     this.tableLayoutPanel1.Size = new Size(203, 55);
     this.tableLayoutPanel1.TabIndex = 9;
     this.label4.Dock = DockStyle.Fill;
     this.label4.Location = new Point(0, 0);
     this.label4.Margin = new Padding(0);
     this.label4.Name = "label4";
     this.label4.Size = new Size(101, 23);
     this.label4.TabIndex = 9;
     this.label4.Text = "PARAM_OBJECT_SEARCH";
     this.label4.TextAlign = ContentAlignment.MiddleLeft;
     this.label3.Dock = DockStyle.Fill;
     this.label3.Location = new Point(0, 39);
     this.label3.Margin = new Padding(0);
     this.label3.Name = "label3";
     this.label3.Size = new Size(101, 16);
     this.label3.TabIndex = 6;
     this.label3.Text = "PARAM_OBJECT_BROWSER_SIZE";
     this.label3.TextAlign = ContentAlignment.MiddleLeft;
     this.label2.Dock = DockStyle.Fill;
     this.label2.Location = new Point(0, 23);
     this.label2.Margin = new Padding(0);
     this.label2.Name = "label2";
     this.label2.Size = new Size(101, 16);
     this.label2.TabIndex = 3;
     this.label2.Text = "PARAM_OBJECT_BROWSER_SELECTED";
     this.label2.TextAlign = ContentAlignment.MiddleLeft;
     this.selObjNameLabel.BorderStyle = BorderStyle.Fixed3D;
     this.selObjNameLabel.Dock = DockStyle.Fill;
     this.selObjNameLabel.Location = new Point(101, 23);
     this.selObjNameLabel.Margin = new Padding(0);
     this.selObjNameLabel.Name = "selObjNameLabel";
     this.selObjNameLabel.Size = new Size(102, 16);
     this.selObjNameLabel.TabIndex = 5;
     this.selObjNameLabel.Text = "None";
     this.selObjNameLabel.TextAlign = ContentAlignment.MiddleRight;
     this.selObjSizeLabel.BorderStyle = BorderStyle.Fixed3D;
     this.selObjSizeLabel.Dock = DockStyle.Fill;
     this.selObjSizeLabel.Location = new Point(101, 39);
     this.selObjSizeLabel.Margin = new Padding(0);
     this.selObjSizeLabel.Name = "selObjSizeLabel";
     this.selObjSizeLabel.Size = new Size(102, 16);
     this.selObjSizeLabel.TabIndex = 7;
     this.selObjSizeLabel.Text = "None";
     this.selObjSizeLabel.TextAlign = ContentAlignment.MiddleRight;
     this.textBoxSearchObjInv.Dock = DockStyle.Fill;
     this.textBoxSearchObjInv.Location = new Point(101, 0);
     this.textBoxSearchObjInv.Margin = new Padding(0);
     this.textBoxSearchObjInv.Name = "textBoxSearchObjInv";
     this.textBoxSearchObjInv.Size = new Size(102, 20);
     this.textBoxSearchObjInv.TabIndex = 8;
     this.textBoxSearchObjInv.KeyDown += new KeyEventHandler(this.textBoxSearchObjInv_KeyDown);
     this.parentButton.Anchor = (AnchorStyles.Top | AnchorStyles.Right);
     this.parentButton.AutoSizeMode = AutoSizeMode.GrowAndShrink;
     this.parentButton.Image = Resources.up;
     this.parentButton.Location = new Point(182, 17);
     this.parentButton.Name = "parentButton";
     this.parentButton.Size = new Size(26, 26);
     this.parentButton.TabIndex = 8;
     this.parentButton.UseVisualStyleBackColor = true;
     this.parentButton.Click += new EventHandler(this.parentButton_Click);
     this.objectList.Anchor = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right);
     this.objectList.Entries = null;
     this.objectList.FirstVisibleIndex = -1;
     this.objectList.HideSelection = false;
     this.objectList.Location = new Point(3, 43);
     this.objectList.MultiSelect = false;
     this.objectList.Name = "objectList";
     this.objectList.OwnerDraw = true;
     this.objectList.Size = new Size(203, 319);
     this.objectList.TabIndex = 7;
     this.objectList.UseCompatibleStateImageBehavior = false;
     this.objectList.View = View.Tile;
     this.objectList.SelectedIndexChanged += new EventHandler(this.objectList_SelectedIndexChanged);
     this.objectList.DoubleClick += new EventHandler(this.objectList_DoubleClick);
     this.categoryComboBox.Anchor = (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right);
     this.categoryComboBox.Location = new Point(3, 18);
     this.categoryComboBox.MaximumSize = new Size(9999, 24);
     this.categoryComboBox.MinimumSize = new Size(0, 24);
     this.categoryComboBox.Name = "categoryComboBox";
     this.categoryComboBox.SelectedItem = null;
     this.categoryComboBox.Size = new Size(176, 24);
     this.categoryComboBox.TabIndex = 6;
     this.categoryComboBox.SelectedItemChanged += new EventHandler<IndentedComboboxItemEventArgs>(this.indentedComboBox1_SelectedItemChanged);
     this.inventoryTree.Anchor = (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right);
     this.inventoryTree.HideSelection = false;
     this.inventoryTree.ImageIndex = 0;
     this.inventoryTree.Location = new Point(3, 18);
     this.inventoryTree.Name = "inventoryTree";
     this.inventoryTree.OnlyDirectories = false;
     this.inventoryTree.Root = null;
     this.inventoryTree.SelectedImageIndex = 0;
     this.inventoryTree.ShowRoot = false;
     this.inventoryTree.Size = new Size(203, 190);
     this.inventoryTree.TabIndex = 0;
     this.inventoryTree.Value = null;
     this.inventoryTree.Visible = false;
     this.inventoryTree.ValueChanged += new EventHandler(this.inventoryTree_ValueChanged);
     base.AutoScaleDimensions = new SizeF(6f, 13f);
     base.AutoScaleMode = AutoScaleMode.Font;
     base.Controls.Add(this.tableLayoutPanel1);
     base.Controls.Add(this.parentButton);
     base.Controls.Add(this.objectList);
     base.Controls.Add(this.categoryComboBox);
     base.Controls.Add(this.label1);
     base.Controls.Add(this.inventoryTree);
     base.Name = "ParamObjectInventoryTree";
     base.Size = new Size(209, 425);
     this.tableLayoutPanel1.ResumeLayout(false);
     this.tableLayoutPanel1.PerformLayout();
     base.ResumeLayout(false);
     base.PerformLayout();
 }
示例#14
0
 private void InitializeComponent()
 {
     this.label1            = new Label();
     this.screenshotPicture = new PictureBox();
     this.tableLayoutPanel1 = new TableLayoutPanel();
     this.buttonGotoCamera  = new NomadButton();
     this.buttonSetCamera   = new NomadButton();
     ((ISupportInitialize)this.screenshotPicture).BeginInit();
     this.tableLayoutPanel1.SuspendLayout();
     base.SuspendLayout();
     this.label1.Dock                   = DockStyle.Top;
     this.label1.Location               = new Point(0, 0);
     this.label1.Name                   = "label1";
     this.label1.Size                   = new Size(212, 15);
     this.label1.TabIndex               = 0;
     this.label1.Text                   = "PARAM_SNAPSHOT";
     this.screenshotPicture.Dock        = DockStyle.Fill;
     this.screenshotPicture.Location    = new Point(0, 15);
     this.screenshotPicture.Name        = "screenshotPicture";
     this.screenshotPicture.Size        = new Size(212, 156);
     this.screenshotPicture.SizeMode    = PictureBoxSizeMode.Zoom;
     this.screenshotPicture.TabIndex    = 3;
     this.screenshotPicture.TabStop     = false;
     this.tableLayoutPanel1.ColumnCount = 2;
     this.tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f));
     this.tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f));
     this.tableLayoutPanel1.Controls.Add(this.buttonGotoCamera, 0, 0);
     this.tableLayoutPanel1.Controls.Add(this.buttonSetCamera, 0, 0);
     this.tableLayoutPanel1.Dock     = DockStyle.Bottom;
     this.tableLayoutPanel1.Location = new Point(0, 171);
     this.tableLayoutPanel1.Name     = "tableLayoutPanel1";
     this.tableLayoutPanel1.RowCount = 1;
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 50f));
     this.tableLayoutPanel1.Size     = new Size(212, 29);
     this.tableLayoutPanel1.TabIndex = 5;
     this.buttonGotoCamera.Dock      = DockStyle.Fill;
     this.buttonGotoCamera.Location  = new Point(109, 3);
     this.buttonGotoCamera.Name      = "buttonGotoCamera";
     this.buttonGotoCamera.Size      = new Size(100, 23);
     this.buttonGotoCamera.TabIndex  = 4;
     this.buttonGotoCamera.Text      = "PARAM_SNAPSHOT_GOTO";
     this.buttonGotoCamera.UseVisualStyleBackColor = true;
     this.buttonGotoCamera.Click  += new EventHandler(this.buttonGotoCamera_Click);
     this.buttonSetCamera.Dock     = DockStyle.Fill;
     this.buttonSetCamera.Location = new Point(3, 3);
     this.buttonSetCamera.Name     = "buttonSetCamera";
     this.buttonSetCamera.Size     = new Size(100, 23);
     this.buttonSetCamera.TabIndex = 3;
     this.buttonSetCamera.Text     = "PARAM_SNAPSHOT_SET";
     this.buttonSetCamera.UseVisualStyleBackColor = true;
     this.buttonSetCamera.Click += new EventHandler(this.buttonSetCamera_Click);
     base.AutoScaleDimensions    = new SizeF(6f, 13f);
     base.AutoScaleMode          = AutoScaleMode.Font;
     base.Controls.Add(this.screenshotPicture);
     base.Controls.Add(this.tableLayoutPanel1);
     base.Controls.Add(this.label1);
     base.Name = "ParamSnapshot";
     base.Size = new Size(212, 200);
     ((ISupportInitialize)this.screenshotPicture).EndInit();
     this.tableLayoutPanel1.ResumeLayout(false);
     base.ResumeLayout(false);
 }
示例#15
0
 private void InitializeComponent()
 {
     this.tableLayoutPanel1 = new TableLayoutPanel();
     this.panel1            = new Panel();
     this.promptTextBox     = new TextBox();
     this.promptLabel       = new Label();
     this.okButton          = new NomadButton();
     this.cancelButton      = new NomadButton();
     this.tableLayoutPanel1.SuspendLayout();
     this.panel1.SuspendLayout();
     base.SuspendLayout();
     this.tableLayoutPanel1.AutoSize     = true;
     this.tableLayoutPanel1.AutoSizeMode = AutoSizeMode.GrowAndShrink;
     this.tableLayoutPanel1.ColumnCount  = 1;
     this.tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100f));
     this.tableLayoutPanel1.Controls.Add(this.panel1, 0, 2);
     this.tableLayoutPanel1.Controls.Add(this.promptTextBox, 0, 1);
     this.tableLayoutPanel1.Controls.Add(this.promptLabel, 0, 0);
     this.tableLayoutPanel1.GrowStyle   = TableLayoutPanelGrowStyle.FixedSize;
     this.tableLayoutPanel1.Location    = new Point(1, 2);
     this.tableLayoutPanel1.MaximumSize = new Size(375, 0);
     this.tableLayoutPanel1.MinimumSize = new Size(375, 0);
     this.tableLayoutPanel1.Name        = "tableLayoutPanel1";
     this.tableLayoutPanel1.RowCount    = 3;
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle());
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle());
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle());
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Absolute, 20f));
     this.tableLayoutPanel1.Size     = new Size(375, 80);
     this.tableLayoutPanel1.TabIndex = 3;
     this.panel1.Controls.Add(this.okButton);
     this.panel1.Controls.Add(this.cancelButton);
     this.panel1.Dock                          = DockStyle.Fill;
     this.panel1.Location                      = new Point(3, 48);
     this.panel1.Name                          = "panel1";
     this.panel1.Padding                       = new Padding(0, 3, 0, 3);
     this.panel1.Size                          = new Size(369, 29);
     this.panel1.TabIndex                      = 3;
     this.promptTextBox.Dock                   = DockStyle.Fill;
     this.promptTextBox.Location               = new Point(3, 22);
     this.promptTextBox.Name                   = "promptTextBox";
     this.promptTextBox.Size                   = new Size(369, 20);
     this.promptTextBox.TabIndex               = 2;
     this.promptLabel.AutoSize                 = true;
     this.promptLabel.Location                 = new Point(3, 0);
     this.promptLabel.Name                     = "promptLabel";
     this.promptLabel.Padding                  = new Padding(0, 3, 0, 3);
     this.promptLabel.Size                     = new Size(40, 19);
     this.promptLabel.TabIndex                 = 1;
     this.promptLabel.Text                     = "Prompt";
     this.okButton.DialogResult                = DialogResult.OK;
     this.okButton.Dock                        = DockStyle.Right;
     this.okButton.Location                    = new Point(219, 3);
     this.okButton.Name                        = "okButton";
     this.okButton.Size                        = new Size(75, 23);
     this.okButton.TabIndex                    = 1;
     this.okButton.Text                        = "&OK";
     this.okButton.UseVisualStyleBackColor     = true;
     this.okButton.Click                      += new EventHandler(this.okButton_Click);
     this.cancelButton.DialogResult            = DialogResult.Cancel;
     this.cancelButton.Dock                    = DockStyle.Right;
     this.cancelButton.Location                = new Point(294, 3);
     this.cancelButton.Name                    = "cancelButton";
     this.cancelButton.Size                    = new Size(75, 23);
     this.cancelButton.TabIndex                = 0;
     this.cancelButton.Text                    = "&Cancel";
     this.cancelButton.UseVisualStyleBackColor = true;
     base.AcceptButton                         = this.okButton;
     base.AutoScaleDimensions                  = new SizeF(6f, 13f);
     base.AutoScaleMode                        = AutoScaleMode.Font;
     this.AutoSize     = true;
     base.AutoSizeMode = AutoSizeMode.GrowAndShrink;
     base.CancelButton = this.cancelButton;
     base.ClientSize   = new Size(416, 141);
     base.Controls.Add(this.tableLayoutPanel1);
     base.FormBorderStyle = FormBorderStyle.FixedDialog;
     base.MaximizeBox     = false;
     base.MinimizeBox     = false;
     base.Name            = "PromptForm";
     base.StartPosition   = FormStartPosition.CenterParent;
     this.Text            = "Prompt";
     this.tableLayoutPanel1.ResumeLayout(false);
     this.tableLayoutPanel1.PerformLayout();
     this.panel1.ResumeLayout(false);
     base.ResumeLayout(false);
     base.PerformLayout();
 }
示例#16
0
 private void InitializeComponent()
 {
     this.components        = new Container();
     this.label1            = new Label();
     this.tableLayoutPanel1 = new TableLayoutPanel();
     this.buttonRemove      = new NomadButton();
     this.buttonAdd         = new NomadButton();
     this.imageList         = new ImageList(this.components);
     this.labelCount        = new Label();
     this.inventoryList     = new InventoryList(this.components);
     this.tableLayoutPanel1.SuspendLayout();
     base.SuspendLayout();
     this.label1.AutoSize               = true;
     this.label1.Location               = new Point(3, 0);
     this.label1.Name                   = "label1";
     this.label1.Size                   = new Size(42, 13);
     this.label1.TabIndex               = 1;
     this.label1.Text                   = "Header";
     this.tableLayoutPanel1.Anchor      = (AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right);
     this.tableLayoutPanel1.ColumnCount = 2;
     this.tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f));
     this.tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f));
     this.tableLayoutPanel1.Controls.Add(this.buttonRemove, 0, 0);
     this.tableLayoutPanel1.Controls.Add(this.buttonAdd, 0, 0);
     this.tableLayoutPanel1.Location = new Point(3, 193);
     this.tableLayoutPanel1.Name     = "tableLayoutPanel1";
     this.tableLayoutPanel1.RowCount = 1;
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 50f));
     this.tableLayoutPanel1.Size               = new Size(212, 29);
     this.tableLayoutPanel1.TabIndex           = 4;
     this.buttonRemove.Dock                    = DockStyle.Fill;
     this.buttonRemove.Location                = new Point(109, 3);
     this.buttonRemove.Name                    = "buttonRemove";
     this.buttonRemove.Size                    = new Size(100, 23);
     this.buttonRemove.TabIndex                = 4;
     this.buttonRemove.Text                    = "PARAM_REMOVE";
     this.buttonRemove.UseVisualStyleBackColor = true;
     this.buttonRemove.Click                  += new EventHandler(this.buttonRemove_Click);
     this.buttonAdd.Dock             = DockStyle.Fill;
     this.buttonAdd.Location         = new Point(3, 3);
     this.buttonAdd.Name             = "buttonAdd";
     this.buttonAdd.Size             = new Size(100, 23);
     this.buttonAdd.TabIndex         = 3;
     this.buttonAdd.Text             = "PARAM_ADD";
     this.buttonAdd.Click           += new EventHandler(this.buttonAdd_Click);
     this.imageList.ColorDepth       = ColorDepth.Depth32Bit;
     this.imageList.ImageSize        = new Size(16, 16);
     this.imageList.TransparentColor = Color.Transparent;
     this.labelCount.Anchor          = (AnchorStyles.Top | AnchorStyles.Right);
     this.labelCount.Location        = new Point(165, 0);
     this.labelCount.Name            = "labelCount";
     this.labelCount.Size            = new Size(50, 13);
     this.labelCount.TabIndex        = 6;
     this.labelCount.Text            = "0/0";
     this.labelCount.TextAlign       = ContentAlignment.TopRight;
     this.inventoryList.Anchor       = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right);
     this.inventoryList.Entries      = null;
     this.inventoryList.Location     = new Point(6, 16);
     this.inventoryList.Name         = "inventoryList";
     this.inventoryList.OwnerDraw    = true;
     this.inventoryList.Size         = new Size(206, 174);
     this.inventoryList.TabIndex     = 7;
     this.inventoryList.UseCompatibleStateImageBehavior = false;
     this.inventoryList.View = View.Tile;
     this.inventoryList.SelectedIndexChanged += new EventHandler(this.inventoryList_SelectedIndexChanged);
     this.inventoryList.MouseDown            += new MouseEventHandler(this.inventoryList_MouseDown);
     this.inventoryList.MouseUp += new MouseEventHandler(this.inventoryList_MouseUp);
     base.AutoScaleDimensions    = new SizeF(6f, 13f);
     base.AutoScaleMode          = AutoScaleMode.Font;
     base.Controls.Add(this.inventoryList);
     base.Controls.Add(this.labelCount);
     base.Controls.Add(this.tableLayoutPanel1);
     base.Controls.Add(this.label1);
     base.Name  = "ParamSlotList";
     base.Size  = new Size(218, 225);
     base.Load += new EventHandler(this.ParamSlotList_Load);
     this.tableLayoutPanel1.ResumeLayout(false);
     base.ResumeLayout(false);
     base.PerformLayout();
 }
示例#17
0
 private void InitializeComponent()
 {
     this.components          = new Container();
     this.label1              = new Label();
     this.tableLayoutPanel1   = new TableLayoutPanel();
     this.label4              = new Label();
     this.label3              = new Label();
     this.label2              = new Label();
     this.selObjNameLabel     = new Label();
     this.selObjSizeLabel     = new Label();
     this.textBoxSearchObjInv = new TextBox();
     this.parentButton        = new NomadButton();
     this.objectList          = new InventoryList(this.components);
     this.categoryComboBox    = new IndentedComboBox();
     this.inventoryTree       = new InventoryTree();
     this.tableLayoutPanel1.SuspendLayout();
     base.SuspendLayout();
     this.label1.Anchor                 = (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right);
     this.label1.Location               = new Point(3, 2);
     this.label1.Name                   = "label1";
     this.label1.Size                   = new Size(203, 13);
     this.label1.TabIndex               = 1;
     this.label1.Text                   = "PARAM_OBJECT_BROWSER";
     this.tableLayoutPanel1.Anchor      = (AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right);
     this.tableLayoutPanel1.AutoSize    = true;
     this.tableLayoutPanel1.ColumnCount = 2;
     this.tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f));
     this.tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f));
     this.tableLayoutPanel1.Controls.Add(this.label4, 0, 0);
     this.tableLayoutPanel1.Controls.Add(this.label3, 0, 2);
     this.tableLayoutPanel1.Controls.Add(this.label2, 0, 1);
     this.tableLayoutPanel1.Controls.Add(this.selObjNameLabel, 1, 1);
     this.tableLayoutPanel1.Controls.Add(this.selObjSizeLabel, 1, 2);
     this.tableLayoutPanel1.Controls.Add(this.textBoxSearchObjInv, 1, 0);
     this.tableLayoutPanel1.GrowStyle = TableLayoutPanelGrowStyle.FixedSize;
     this.tableLayoutPanel1.Location  = new Point(3, 365);
     this.tableLayoutPanel1.Name      = "tableLayoutPanel1";
     this.tableLayoutPanel1.RowCount  = 3;
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Absolute, 23f));
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Absolute, 16f));
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Absolute, 16f));
     this.tableLayoutPanel1.Size     = new Size(203, 55);
     this.tableLayoutPanel1.TabIndex = 9;
     this.label4.Dock                                = DockStyle.Fill;
     this.label4.Location                            = new Point(0, 0);
     this.label4.Margin                              = new Padding(0);
     this.label4.Name                                = "label4";
     this.label4.Size                                = new Size(101, 23);
     this.label4.TabIndex                            = 9;
     this.label4.Text                                = "PARAM_OBJECT_SEARCH";
     this.label4.TextAlign                           = ContentAlignment.MiddleLeft;
     this.label3.Dock                                = DockStyle.Fill;
     this.label3.Location                            = new Point(0, 39);
     this.label3.Margin                              = new Padding(0);
     this.label3.Name                                = "label3";
     this.label3.Size                                = new Size(101, 16);
     this.label3.TabIndex                            = 6;
     this.label3.Text                                = "PARAM_OBJECT_BROWSER_SIZE";
     this.label3.TextAlign                           = ContentAlignment.MiddleLeft;
     this.label2.Dock                                = DockStyle.Fill;
     this.label2.Location                            = new Point(0, 23);
     this.label2.Margin                              = new Padding(0);
     this.label2.Name                                = "label2";
     this.label2.Size                                = new Size(101, 16);
     this.label2.TabIndex                            = 3;
     this.label2.Text                                = "PARAM_OBJECT_BROWSER_SELECTED";
     this.label2.TextAlign                           = ContentAlignment.MiddleLeft;
     this.selObjNameLabel.BorderStyle                = BorderStyle.Fixed3D;
     this.selObjNameLabel.Dock                       = DockStyle.Fill;
     this.selObjNameLabel.Location                   = new Point(101, 23);
     this.selObjNameLabel.Margin                     = new Padding(0);
     this.selObjNameLabel.Name                       = "selObjNameLabel";
     this.selObjNameLabel.Size                       = new Size(102, 16);
     this.selObjNameLabel.TabIndex                   = 5;
     this.selObjNameLabel.Text                       = "None";
     this.selObjNameLabel.TextAlign                  = ContentAlignment.MiddleRight;
     this.selObjSizeLabel.BorderStyle                = BorderStyle.Fixed3D;
     this.selObjSizeLabel.Dock                       = DockStyle.Fill;
     this.selObjSizeLabel.Location                   = new Point(101, 39);
     this.selObjSizeLabel.Margin                     = new Padding(0);
     this.selObjSizeLabel.Name                       = "selObjSizeLabel";
     this.selObjSizeLabel.Size                       = new Size(102, 16);
     this.selObjSizeLabel.TabIndex                   = 7;
     this.selObjSizeLabel.Text                       = "None";
     this.selObjSizeLabel.TextAlign                  = ContentAlignment.MiddleRight;
     this.textBoxSearchObjInv.Dock                   = DockStyle.Fill;
     this.textBoxSearchObjInv.Location               = new Point(101, 0);
     this.textBoxSearchObjInv.Margin                 = new Padding(0);
     this.textBoxSearchObjInv.Name                   = "textBoxSearchObjInv";
     this.textBoxSearchObjInv.Size                   = new Size(102, 20);
     this.textBoxSearchObjInv.TabIndex               = 8;
     this.textBoxSearchObjInv.KeyDown               += new KeyEventHandler(this.textBoxSearchObjInv_KeyDown);
     this.parentButton.Anchor                        = (AnchorStyles.Top | AnchorStyles.Right);
     this.parentButton.AutoSizeMode                  = AutoSizeMode.GrowAndShrink;
     this.parentButton.Image                         = Resources.up;
     this.parentButton.Location                      = new Point(182, 17);
     this.parentButton.Name                          = "parentButton";
     this.parentButton.Size                          = new Size(26, 26);
     this.parentButton.TabIndex                      = 8;
     this.parentButton.UseVisualStyleBackColor       = true;
     this.parentButton.Click                        += new EventHandler(this.parentButton_Click);
     this.objectList.Anchor                          = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right);
     this.objectList.Entries                         = null;
     this.objectList.FirstVisibleIndex               = -1;
     this.objectList.HideSelection                   = false;
     this.objectList.Location                        = new Point(3, 43);
     this.objectList.MultiSelect                     = false;
     this.objectList.Name                            = "objectList";
     this.objectList.OwnerDraw                       = true;
     this.objectList.Size                            = new Size(203, 319);
     this.objectList.TabIndex                        = 7;
     this.objectList.UseCompatibleStateImageBehavior = false;
     this.objectList.View                            = View.Tile;
     this.objectList.SelectedIndexChanged           += new EventHandler(this.objectList_SelectedIndexChanged);
     this.objectList.DoubleClick                    += new EventHandler(this.objectList_DoubleClick);
     this.categoryComboBox.Anchor                    = (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right);
     this.categoryComboBox.Location                  = new Point(3, 18);
     this.categoryComboBox.MaximumSize               = new Size(9999, 24);
     this.categoryComboBox.MinimumSize               = new Size(0, 24);
     this.categoryComboBox.Name                      = "categoryComboBox";
     this.categoryComboBox.SelectedItem              = null;
     this.categoryComboBox.Size                      = new Size(176, 24);
     this.categoryComboBox.TabIndex                  = 6;
     this.categoryComboBox.SelectedItemChanged      += new EventHandler <IndentedComboboxItemEventArgs>(this.indentedComboBox1_SelectedItemChanged);
     this.inventoryTree.Anchor                       = (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right);
     this.inventoryTree.HideSelection                = false;
     this.inventoryTree.ImageIndex                   = 0;
     this.inventoryTree.Location                     = new Point(3, 18);
     this.inventoryTree.Name                         = "inventoryTree";
     this.inventoryTree.OnlyDirectories              = false;
     this.inventoryTree.Root                         = null;
     this.inventoryTree.SelectedImageIndex           = 0;
     this.inventoryTree.ShowRoot                     = false;
     this.inventoryTree.Size                         = new Size(203, 190);
     this.inventoryTree.TabIndex                     = 0;
     this.inventoryTree.Value                        = null;
     this.inventoryTree.Visible                      = false;
     this.inventoryTree.ValueChanged                += new EventHandler(this.inventoryTree_ValueChanged);
     base.AutoScaleDimensions                        = new SizeF(6f, 13f);
     base.AutoScaleMode                              = AutoScaleMode.Font;
     base.Controls.Add(this.tableLayoutPanel1);
     base.Controls.Add(this.parentButton);
     base.Controls.Add(this.objectList);
     base.Controls.Add(this.categoryComboBox);
     base.Controls.Add(this.label1);
     base.Controls.Add(this.inventoryTree);
     base.Name = "ParamObjectInventoryTree";
     base.Size = new Size(209, 425);
     this.tableLayoutPanel1.ResumeLayout(false);
     this.tableLayoutPanel1.PerformLayout();
     base.ResumeLayout(false);
     base.PerformLayout();
 }