private void InitializeComponent() { this.groupBox = new System.Windows.Forms.ComboBox(); this.preview = new System.Windows.Forms.PictureBox(); this.indexSelector = new FreeTrain.Controls.IndexSelector(); ((System.ComponentModel.ISupportInitialize)(this.preview)).BeginInit(); this.SuspendLayout(); // // groupBox // this.groupBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.groupBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.groupBox.Location = new System.Drawing.Point(8, 9); this.groupBox.Name = "groupBox"; this.groupBox.Size = new System.Drawing.Size(168, 21); this.groupBox.Sorted = true; this.groupBox.TabIndex = 2; this.groupBox.SelectedIndexChanged += new System.EventHandler(this.onGroupChanged); // // preview // this.preview.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.preview.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.preview.Location = new System.Drawing.Point(8, 69); this.preview.Name = "preview"; this.preview.Size = new System.Drawing.Size(168, 121); this.preview.TabIndex = 1; this.preview.TabStop = false; // // indexSelector // this.indexSelector.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.indexSelector.count = 10; this.indexSelector.current = 0; this.indexSelector.dataSource = null; this.indexSelector.Location = new System.Drawing.Point(8, 39); this.indexSelector.Name = "indexSelector"; this.indexSelector.Size = new System.Drawing.Size(168, 22); this.indexSelector.TabIndex = 3; this.indexSelector.indexChanged += new System.EventHandler(this.onTypeChanged); // // LandController // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(184, 202); this.Controls.Add(this.indexSelector); this.Controls.Add(this.groupBox); this.Controls.Add(this.preview); this.Name = "LandController"; this.Text = "Terrain view"; this.Resize += new System.EventHandler(this.updateSize); ((System.ComponentModel.ISupportInitialize)(this.preview)).EndInit(); this.ResumeLayout(false); }
private void InitializeComponent() { this.typeBox = new System.Windows.Forms.ComboBox(); this.preview = new System.Windows.Forms.PictureBox(); this.costBox = new FreeTrain.Controls.CostBox(); this.buttonRemove = new System.Windows.Forms.RadioButton(); this.buttonPlace = new System.Windows.Forms.RadioButton(); this.indexSelector = new FreeTrain.Controls.IndexSelector(); ((System.ComponentModel.ISupportInitialize)(this.preview)).BeginInit(); this.SuspendLayout(); // // typeBox // this.typeBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.typeBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.typeBox.Location = new System.Drawing.Point(8, 9); this.typeBox.Name = "typeBox"; this.typeBox.Size = new System.Drawing.Size(197, 21); this.typeBox.Sorted = true; this.typeBox.TabIndex = 2; this.typeBox.SelectedIndexChanged += new System.EventHandler(this.OnTypeChanged); // // preview // this.preview.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.preview.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.preview.Location = new System.Drawing.Point(8, 43); this.preview.Name = "preview"; this.preview.Size = new System.Drawing.Size(197, 84); this.preview.TabIndex = 1; this.preview.TabStop = false; // // costBox // this.costBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.costBox.cost = 0; this.costBox.label = "Cost:"; this.costBox.Location = new System.Drawing.Point(8, 136); this.costBox.Name = "costBox"; this.costBox.Size = new System.Drawing.Size(197, 34); this.costBox.TabIndex = 10; // // buttonRemove // this.buttonRemove.Appearance = System.Windows.Forms.Appearance.Button; this.buttonRemove.Location = new System.Drawing.Point(64, 173); this.buttonRemove.Name = "buttonRemove"; this.buttonRemove.Size = new System.Drawing.Size(56, 26); this.buttonRemove.TabIndex = 9; this.buttonRemove.Text = "Remove"; this.buttonRemove.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.buttonRemove.CheckedChanged += new System.EventHandler(this.OnTypeChanged); // // buttonPlace // this.buttonPlace.Appearance = System.Windows.Forms.Appearance.Button; this.buttonPlace.Checked = true; this.buttonPlace.Location = new System.Drawing.Point(8, 173); this.buttonPlace.Name = "buttonPlace"; this.buttonPlace.Size = new System.Drawing.Size(56, 26); this.buttonPlace.TabIndex = 8; this.buttonPlace.TabStop = true; this.buttonPlace.Text = "Build"; this.buttonPlace.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.buttonPlace.CheckedChanged += new System.EventHandler(this.OnTypeChanged); // // indexSelector // this.indexSelector.count = 10; this.indexSelector.current = 0; this.indexSelector.dataSource = null; this.indexSelector.Location = new System.Drawing.Point(0, 0); this.indexSelector.Name = "indexSelector"; this.indexSelector.Size = new System.Drawing.Size(112, 24); this.indexSelector.TabIndex = 0; // // ControllerForm // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(213, 203); this.Controls.Add(this.costBox); this.Controls.Add(this.buttonRemove); this.Controls.Add(this.buttonPlace); this.Controls.Add(this.typeBox); this.Controls.Add(this.preview); this.Name = "ControllerForm"; this.Text = "Road Accessories"; this.Resize += new System.EventHandler(this.UpdateAfterResize); ((System.ComponentModel.ISupportInitialize)(this.preview)).EndInit(); this.ResumeLayout(false); }
private void InitializeComponent() { this.components = new System.ComponentModel.Container(); this.preview = new System.Windows.Forms.PictureBox(); this.btnRemove = new System.Windows.Forms.RadioButton(); this.btnPlace = new System.Windows.Forms.RadioButton(); this.group = new System.Windows.Forms.GroupBox(); this.namelabel = new System.Windows.Forms.Label(); this.idxDesign = new FreeTrain.Controls.IndexSelector(); this.idxColor = new FreeTrain.Controls.IndexSelector(); this.label1 = new System.Windows.Forms.Label(); this.typeBox = new System.Windows.Forms.ComboBox(); this.label3 = new System.Windows.Forms.Label(); this.cbRndColor = new System.Windows.Forms.CheckBox(); this.cbRndDesign = new System.Windows.Forms.CheckBox(); this.label2 = new System.Windows.Forms.Label(); this.cbRndColor2 = new System.Windows.Forms.CheckBox(); this.idxColor2 = new FreeTrain.Controls.IndexSelector(); this.price = new FreeTrain.Controls.CostBox(); this.toolTip1 = new System.Windows.Forms.ToolTip(this.components); this.indexSelector = new FreeTrain.Controls.IndexSelector(); ((System.ComponentModel.ISupportInitialize)(this.preview)).BeginInit(); this.group.SuspendLayout(); this.SuspendLayout(); // // preview // this.preview.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Right))); this.preview.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.preview.Location = new System.Drawing.Point(193, 9); this.preview.Name = "preview"; this.preview.Size = new System.Drawing.Size(80, 142); this.preview.TabIndex = 1; this.preview.TabStop = false; this.toolTip1.SetToolTip(this.preview, "Click to create another random pattern"); this.preview.Click += new System.EventHandler(this.onPreviewClick); // // btnRemove // this.btnRemove.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.btnRemove.Appearance = System.Windows.Forms.Appearance.Button; this.btnRemove.Location = new System.Drawing.Point(229, 199); this.btnRemove.Name = "btnRemove"; this.btnRemove.Size = new System.Drawing.Size(56, 26); this.btnRemove.TabIndex = 8; this.btnRemove.Text = "Remove"; this.btnRemove.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.btnRemove.Click += new System.EventHandler(this.onButtonClicked); // // btnPlace // this.btnPlace.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.btnPlace.Appearance = System.Windows.Forms.Appearance.Button; this.btnPlace.Checked = true; this.btnPlace.Location = new System.Drawing.Point(181, 199); this.btnPlace.Name = "btnPlace"; this.btnPlace.Size = new System.Drawing.Size(48, 26); this.btnPlace.TabIndex = 7; this.btnPlace.TabStop = true; this.btnPlace.Text = "Place"; this.btnPlace.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.btnPlace.Click += new System.EventHandler(this.onButtonClicked); // // group // this.group.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.group.Controls.Add(this.namelabel); this.group.Controls.Add(this.idxDesign); this.group.Controls.Add(this.idxColor); this.group.Controls.Add(this.label1); this.group.Controls.Add(this.typeBox); this.group.Controls.Add(this.label3); this.group.Controls.Add(this.cbRndColor); this.group.Controls.Add(this.cbRndDesign); this.group.Controls.Add(this.label2); this.group.Controls.Add(this.cbRndColor2); this.group.Controls.Add(this.idxColor2); this.group.Location = new System.Drawing.Point(0, 0); this.group.Name = "group"; this.group.Size = new System.Drawing.Size(177, 225); this.group.TabIndex = 1; this.group.TabStop = false; this.toolTip1.SetToolTip(this.group, "Select a building to the left"); // // namelabel // this.namelabel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.namelabel.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.namelabel.Location = new System.Drawing.Point(8, 82); this.namelabel.Name = "namelabel"; this.namelabel.Size = new System.Drawing.Size(161, 31); this.namelabel.TabIndex = 13; this.namelabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // idxDesign // this.idxDesign.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.idxDesign.count = 10; this.idxDesign.current = 0; this.idxDesign.dataSource = null; this.idxDesign.Location = new System.Drawing.Point(8, 61); this.idxDesign.Name = "idxDesign"; this.idxDesign.Size = new System.Drawing.Size(161, 17); this.idxDesign.TabIndex = 5; this.idxDesign.indexChanged += new System.EventHandler(this.onDesignChanged); // // idxColor // this.idxColor.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.idxColor.count = 10; this.idxColor.current = 0; this.idxColor.dataSource = null; this.idxColor.Location = new System.Drawing.Point(8, 137); this.idxColor.Name = "idxColor"; this.idxColor.Size = new System.Drawing.Size(161, 17); this.idxColor.TabIndex = 11; this.idxColor.indexChanged += new System.EventHandler(this.onColorChanged); // // label1 // this.label1.BackColor = System.Drawing.Color.Transparent; this.label1.Location = new System.Drawing.Point(8, 43); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(56, 18); this.label1.TabIndex = 12; this.label1.Text = "Design:"; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // typeBox // this.typeBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.typeBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.typeBox.Location = new System.Drawing.Point(3, 9); this.typeBox.Name = "typeBox"; this.typeBox.Size = new System.Drawing.Size(171, 21); this.typeBox.Sorted = true; this.typeBox.TabIndex = 1; this.toolTip1.SetToolTip(this.typeBox, "Select a building to the left"); this.typeBox.SelectedIndexChanged += new System.EventHandler(this.onTypeChanged); // // label3 // this.label3.BackColor = System.Drawing.Color.Transparent; this.label3.Location = new System.Drawing.Point(8, 117); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(56, 17); this.label3.TabIndex = 12; this.label3.Text = "Color:"; this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // cbRndColor // this.cbRndColor.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.cbRndColor.BackColor = System.Drawing.Color.Transparent; this.cbRndColor.Location = new System.Drawing.Point(109, 117); this.cbRndColor.Name = "cbRndColor"; this.cbRndColor.Size = new System.Drawing.Size(68, 17); this.cbRndColor.TabIndex = 7; this.cbRndColor.Text = "Random"; this.cbRndColor.UseVisualStyleBackColor = false; this.cbRndColor.CheckedChanged += new System.EventHandler(this.onCheckBoxChanged); // // cbRndDesign // this.cbRndDesign.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.cbRndDesign.BackColor = System.Drawing.Color.Transparent; this.cbRndDesign.Location = new System.Drawing.Point(109, 43); this.cbRndDesign.Name = "cbRndDesign"; this.cbRndDesign.Size = new System.Drawing.Size(68, 18); this.cbRndDesign.TabIndex = 3; this.cbRndDesign.Text = "Random"; this.cbRndDesign.UseVisualStyleBackColor = false; this.cbRndDesign.CheckedChanged += new System.EventHandler(this.onCheckBoxChanged); // // label2 // this.label2.BackColor = System.Drawing.Color.Transparent; this.label2.Location = new System.Drawing.Point(8, 160); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(56, 18); this.label2.TabIndex = 12; this.label2.Text = "Color 2:"; this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // cbRndColor2 // this.cbRndColor2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.cbRndColor2.BackColor = System.Drawing.Color.Transparent; this.cbRndColor2.Location = new System.Drawing.Point(109, 160); this.cbRndColor2.Name = "cbRndColor2"; this.cbRndColor2.Size = new System.Drawing.Size(68, 18); this.cbRndColor2.TabIndex = 7; this.cbRndColor2.Text = "Random"; this.cbRndColor2.UseVisualStyleBackColor = false; this.cbRndColor2.CheckedChanged += new System.EventHandler(this.onCheckBoxChanged); // // idxColor2 // this.idxColor2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.idxColor2.count = 10; this.idxColor2.current = 0; this.idxColor2.dataSource = null; this.idxColor2.Location = new System.Drawing.Point(8, 180); this.idxColor2.Name = "idxColor2"; this.idxColor2.Size = new System.Drawing.Size(161, 17); this.idxColor2.TabIndex = 11; this.idxColor2.indexChanged += new System.EventHandler(this.onColor2Changed); // // price // this.price.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.price.cost = 0; this.price.label = "Cost:"; this.price.Location = new System.Drawing.Point(193, 162); this.price.Name = "price"; this.price.Size = new System.Drawing.Size(80, 35); this.price.TabIndex = 14; this.toolTip1.SetToolTip(this.price, "Building cost (total)"); // // indexSelector // this.indexSelector.count = 10; this.indexSelector.current = 0; this.indexSelector.dataSource = null; this.indexSelector.Location = new System.Drawing.Point(0, 0); this.indexSelector.Name = "indexSelector"; this.indexSelector.Size = new System.Drawing.Size(112, 24); this.indexSelector.TabIndex = 0; // // ControllerForm // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(289, 231); this.Controls.Add(this.group); this.Controls.Add(this.btnRemove); this.Controls.Add(this.btnPlace); this.Controls.Add(this.preview); this.Controls.Add(this.price); this.Name = "ControllerForm"; this.Text = "Half-tile Construction"; this.Resize += new System.EventHandler(this.UpdateSize); ((System.ComponentModel.ISupportInitialize)(this.preview)).EndInit(); this.group.ResumeLayout(false); this.ResumeLayout(false); }
/// <summary> /// Designer サポートに必要なメソッドです。コード エディタで /// このメソッドのコンテンツを変更しないでください。 /// </summary> private void InitializeComponent() { this.structType = new System.Windows.Forms.ComboBox(); this.preview = new System.Windows.Forms.PictureBox(); this.buttonRemove = new System.Windows.Forms.RadioButton(); this.buttonPlace = new System.Windows.Forms.RadioButton(); this.indexSelector = new FreeTrain.Controls.IndexSelector(); ((System.ComponentModel.ISupportInitialize)(this.preview)).BeginInit(); this.SuspendLayout(); // // structType // this.structType.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.structType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.structType.Location = new System.Drawing.Point(8, 9); this.structType.Name = "structType"; this.structType.Size = new System.Drawing.Size(130, 21); this.structType.Sorted = true; this.structType.TabIndex = 2; this.structType.SelectedIndexChanged += new System.EventHandler(this.OnGroupChanged); // // preview // this.preview.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.preview.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.preview.Location = new System.Drawing.Point(8, 69); this.preview.Name = "preview"; this.preview.Size = new System.Drawing.Size(130, 87); this.preview.TabIndex = 1; this.preview.TabStop = false; // // buttonRemove // this.buttonRemove.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.buttonRemove.Appearance = System.Windows.Forms.Appearance.Button; this.buttonRemove.Location = new System.Drawing.Point(82, 165); this.buttonRemove.Name = "buttonRemove"; this.buttonRemove.Size = new System.Drawing.Size(56, 26); this.buttonRemove.TabIndex = 1; this.buttonRemove.Text = "Remove"; //! this.buttonRemove.Text = "撤去"; this.buttonRemove.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // buttonPlace // this.buttonPlace.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.buttonPlace.Appearance = System.Windows.Forms.Appearance.Button; this.buttonPlace.Checked = true; this.buttonPlace.Location = new System.Drawing.Point(8, 165); this.buttonPlace.Name = "buttonPlace"; this.buttonPlace.Size = new System.Drawing.Size(56, 26); this.buttonPlace.TabIndex = 0; this.buttonPlace.TabStop = true; this.buttonPlace.Text = "Build"; //! this.buttonPlace.Text = "設置"; this.buttonPlace.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // indexSelector // this.indexSelector.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.indexSelector.count = 10; this.indexSelector.current = 0; this.indexSelector.dataSource = null; this.indexSelector.Location = new System.Drawing.Point(8, 39); this.indexSelector.Name = "indexSelector"; this.indexSelector.Size = new System.Drawing.Size(130, 22); this.indexSelector.TabIndex = 3; this.indexSelector.indexChanged += new System.EventHandler(this.OnTypeChanged); // // StructPlacementController // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(146, 195); this.Controls.Add(this.indexSelector); this.Controls.Add(this.buttonPlace); this.Controls.Add(this.buttonRemove); this.Controls.Add(this.structType); this.Controls.Add(this.preview); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.SizableToolWindow; this.Name = "StructPlacementController"; this.Text = "Building construction"; //! this.Text = "建物の工事(仮)"; this.Resize += new System.EventHandler(this.UpdateAfterResize); ((System.ComponentModel.ISupportInitialize)(this.preview)).EndInit(); this.ResumeLayout(false); }