private void InitializeComponent() { this.groupBox = new System.Windows.Forms.ComboBox(); this.preview = new System.Windows.Forms.PictureBox(); this.indexSelector = new freetrain.controls.IndexSelector(); this.SuspendLayout(); // // groupBox // this.groupBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.groupBox.Location = new System.Drawing.Point(8, 8); this.groupBox.Name = "groupBox"; this.groupBox.Size = new System.Drawing.Size(112, 20); this.groupBox.Sorted = true; this.groupBox.TabIndex = 2; this.groupBox.SelectedIndexChanged += new System.EventHandler(this.onGroupChanged); this.groupBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)) | System.Windows.Forms.AnchorStyles.Top)); // // preview // this.preview.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.preview.Location = new System.Drawing.Point(8, 64); this.preview.Name = "preview"; this.preview.Size = new System.Drawing.Size(112, 80); this.preview.TabIndex = 1; this.preview.TabStop = false; this.preview.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)) | System.Windows.Forms.AnchorStyles.Bottom)); // // indexSelector // this.indexSelector.count = 10; this.indexSelector.current = 0; this.indexSelector.dataSource = null; this.indexSelector.Location = new System.Drawing.Point(8, 36); this.indexSelector.Name = "indexSelector"; this.indexSelector.Size = new System.Drawing.Size(112, 20); this.indexSelector.TabIndex = 3; this.indexSelector.indexChanged += new System.EventHandler(this.onTypeChanged); this.indexSelector.Anchor = ((System.Windows.Forms.AnchorStyles)(System.Windows.Forms.AnchorStyles.Left | (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); // // LandController // this.AutoScaleBaseSize = new System.Drawing.Size(5, 12); this.ClientSize = new System.Drawing.Size(128, 155); this.Controls.AddRange(new System.Windows.Forms.Control[] { this.indexSelector, this.groupBox, this.preview }); this.Name = "LandController"; this.Text = "Terrain view"; //! this.Text = "地表"; this.Resize += new EventHandler(this.updateSize); this.ResumeLayout(false); }
private void InitializeComponent() { this.preview = new System.Windows.Forms.PictureBox(); this.buttonPlace = new System.Windows.Forms.RadioButton(); this.buttonRemove = new System.Windows.Forms.RadioButton(); this.dirSelector = new freetrain.controls.IndexSelector(); this.typeBox = new System.Windows.Forms.ComboBox(); ((System.ComponentModel.ISupportInitialize)(this.preview)).BeginInit(); this.SuspendLayout(); // // preview // this.preview.BackColor = System.Drawing.Color.White; this.preview.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.preview.Location = new System.Drawing.Point(8, 61); this.preview.Name = "preview"; this.preview.Size = new System.Drawing.Size(104, 60); this.preview.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; this.preview.TabIndex = 0; this.preview.TabStop = false; // // buttonPlace // this.buttonPlace.Appearance = System.Windows.Forms.Appearance.Button; this.buttonPlace.Checked = true; this.buttonPlace.Location = new System.Drawing.Point(8, 127); this.buttonPlace.Name = "buttonPlace"; this.buttonPlace.Size = new System.Drawing.Size(49, 26); this.buttonPlace.TabIndex = 4; this.buttonPlace.TabStop = true; this.buttonPlace.Text = "Place"; //! this.buttonPlace.Text = "設置"; this.buttonPlace.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // buttonRemove // this.buttonRemove.Appearance = System.Windows.Forms.Appearance.Button; this.buttonRemove.Location = new System.Drawing.Point(56, 127); this.buttonRemove.Name = "buttonRemove"; this.buttonRemove.Size = new System.Drawing.Size(56, 26); this.buttonRemove.TabIndex = 5; this.buttonRemove.Text = "Remove"; //! this.buttonRemove.Text = "撤去"; this.buttonRemove.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // dirSelector // this.dirSelector.count = 4; this.dirSelector.current = 0; this.dirSelector.Cursor = System.Windows.Forms.Cursors.Default; this.dirSelector.dataSource = null; this.dirSelector.Location = new System.Drawing.Point(8, 35); this.dirSelector.Name = "dirSelector"; this.dirSelector.Size = new System.Drawing.Size(104, 21); this.dirSelector.TabIndex = 6; this.dirSelector.indexChanged += new System.EventHandler(this.onDirChanged); // // typeBox // 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(104, 21); this.typeBox.TabIndex = 7; this.typeBox.SelectedIndexChanged += new System.EventHandler(this.onTypeChanged); // // SignalRailController // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(120, 161); this.Controls.Add(this.typeBox); this.Controls.Add(this.dirSelector); this.Controls.Add(this.buttonPlace); this.Controls.Add(this.buttonRemove); this.Controls.Add(this.preview); this.Name = "SignalRailController"; this.Text = "Signal"; //! this.Text = "信号"; ((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.group.SuspendLayout(); this.SuspendLayout(); // // preview // this.preview.Anchor = ((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(152, 8); this.preview.Name = "preview"; this.preview.Size = new System.Drawing.Size(80, 112); this.preview.TabIndex = 1; this.preview.TabStop = false; this.toolTip1.SetToolTip(this.preview, "Click to create another random pattern"); //! this.toolTip1.SetToolTip(this.preview, "クリックすると別のランダムパターンを生成します"); this.preview.Click += new System.EventHandler(this.onPreviewClick); // // btnRemove // this.btnRemove.Anchor = (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(188, 164); this.btnRemove.Name = "btnRemove"; this.btnRemove.Size = new System.Drawing.Size(56, 24); this.btnRemove.TabIndex = 8; this.btnRemove.Text = "Remove"; //! this.btnRemove.Text = "撤去"; this.btnRemove.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.btnRemove.Click += new System.EventHandler(this.onButtonClicked); // // btnPlace // this.btnPlace.Anchor = (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(140, 164); this.btnPlace.Name = "btnPlace"; this.btnPlace.Size = new System.Drawing.Size(48, 24); this.btnPlace.TabIndex = 7; this.btnPlace.TabStop = true; this.btnPlace.Text = "Place"; //! this.btnPlace.Text = "設置"; this.btnPlace.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.btnPlace.Click += new System.EventHandler(this.onButtonClicked); // // group // this.group.Controls.AddRange(new System.Windows.Forms.Control[] { this.namelabel, this.idxDesign, this.idxColor, this.label1, this.typeBox, this.label3, this.cbRndColor, this.cbRndDesign, this.label2, this.cbRndColor2, this.idxColor2 }); this.group.Name = "group"; this.group.Size = new System.Drawing.Size(136, 188); this.group.TabIndex = 1; this.group.TabStop = false; this.group.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right) | (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left))); this.toolTip1.SetToolTip(this.group, "Select a building to the left"); //! this.toolTip1.SetToolTip(this.group, "左側の建物選択"); // // namelabel // this.namelabel.Anchor = ((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, 76); this.namelabel.Name = "namelabel"; this.namelabel.Size = new System.Drawing.Size(120, 28); this.namelabel.TabIndex = 13; this.namelabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // idxDesign // this.idxDesign.Anchor = ((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, 56); this.idxDesign.Name = "idxDesign"; this.idxDesign.Size = new System.Drawing.Size(120, 16); this.idxDesign.TabIndex = 5; this.idxDesign.indexChanged += new System.EventHandler(this.onDesignChanged); // // idxColor // this.idxColor.Anchor = ((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, 126); this.idxColor.Name = "idxColor"; this.idxColor.Size = new System.Drawing.Size(120, 16); 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, 40); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(56, 16); this.label1.TabIndex = 12; this.label1.Text = "Design:"; //! this.label1.Text = "デザイン:"; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // typeBox // this.typeBox.Anchor = ((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, 8); this.typeBox.Name = "typeBox"; this.typeBox.Size = new System.Drawing.Size(130, 20); this.typeBox.Sorted = true; this.typeBox.TabIndex = 1; this.toolTip1.SetToolTip(this.typeBox, "Select a building to the left"); //! this.toolTip1.SetToolTip(this.typeBox, "左側の建物選択"); this.typeBox.SelectedIndexChanged += new System.EventHandler(this.onTypeChanged); // // label3 // this.label3.BackColor = System.Drawing.Color.Transparent; this.label3.Location = new System.Drawing.Point(8, 108); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(56, 16); this.label3.TabIndex = 12; this.label3.Text = "Color:"; //! this.label3.Text = "カラー:"; this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // cbRndColor // this.cbRndColor.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right); this.cbRndColor.BackColor = System.Drawing.Color.Transparent; this.cbRndColor.Location = new System.Drawing.Point(68, 108); this.cbRndColor.Name = "cbRndColor"; this.cbRndColor.Size = new System.Drawing.Size(68, 16); this.cbRndColor.TabIndex = 7; this.cbRndColor.Text = "Random"; //! this.cbRndColor.Text = "ランダム"; this.cbRndColor.CheckedChanged += new System.EventHandler(this.onCheckBoxChanged); // // cbRndDesign // this.cbRndDesign.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right); this.cbRndDesign.BackColor = System.Drawing.Color.Transparent; this.cbRndDesign.Location = new System.Drawing.Point(68, 40); this.cbRndDesign.Name = "cbRndDesign"; this.cbRndDesign.Size = new System.Drawing.Size(68, 16); this.cbRndDesign.TabIndex = 3; this.cbRndDesign.Text = "Random"; //! this.cbRndDesign.Text = "ランダム"; this.cbRndDesign.CheckedChanged += new System.EventHandler(this.onCheckBoxChanged); // // label2 // this.label2.BackColor = System.Drawing.Color.Transparent; this.label2.Location = new System.Drawing.Point(8, 148); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(56, 16); this.label2.TabIndex = 12; this.label2.Text = "Color 2:"; //! this.label2.Text = "カラー2:"; this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // cbRndColor2 // this.cbRndColor2.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right); this.cbRndColor2.BackColor = System.Drawing.Color.Transparent; this.cbRndColor2.Location = new System.Drawing.Point(68, 148); this.cbRndColor2.Name = "cbRndColor2"; this.cbRndColor2.Size = new System.Drawing.Size(68, 16); this.cbRndColor2.TabIndex = 7; this.cbRndColor2.Text = "Random"; //! this.cbRndColor2.Text = "ランダム"; this.cbRndColor2.CheckedChanged += new System.EventHandler(this.onCheckBoxChanged); // // idxColor2 // this.idxColor2.Anchor = ((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, 166); this.idxColor2.Name = "idxColor2"; this.idxColor2.Size = new System.Drawing.Size(120, 16); this.idxColor2.TabIndex = 11; this.idxColor2.indexChanged += new System.EventHandler(this.onColor2Changed); // // price // this.price.Anchor = (System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right); this.price.cost = 0; this.price.label = "Cost:"; //! this.price.label = "費用:"; this.price.Location = new System.Drawing.Point(152, 130); this.price.Name = "price"; this.price.Size = new System.Drawing.Size(80, 32); this.price.TabIndex = 14; this.toolTip1.SetToolTip(this.price, "Building cost (total)"); //! this.toolTip1.SetToolTip(this.price, "設置費用(左右合計)"); // // ControllerForm // this.AutoScaleBaseSize = new System.Drawing.Size(5, 12); this.ClientSize = new System.Drawing.Size(248, 194); this.Controls.AddRange(new System.Windows.Forms.Control[] { this.group, this.btnRemove, this.btnPlace, this.preview, this.price }); this.Name = "ControllerForm"; this.Text = "Half-tile Construction"; //! this.Text = "半ボクセル建築"; this.Resize += new EventHandler(this.updateSize); 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); }
/// <summary> /// デザイナ サポートに必要なメソッドです。このメソッドの内容を /// コード エディタで変更しないでください。 /// </summary> private void InitializeComponent() { this.buttonUp = new System.Windows.Forms.RadioButton(); this.buttonDown = new System.Windows.Forms.RadioButton(); this.preview = new System.Windows.Forms.PictureBox(); this.label1 = new System.Windows.Forms.Label(); this.groupBox1 = new System.Windows.Forms.GroupBox(); this.selSize = new freetrain.controls.IndexSelector(); ((System.ComponentModel.ISupportInitialize)(this.preview)).BeginInit(); this.groupBox1.SuspendLayout(); this.SuspendLayout(); // // buttonUp // this.buttonUp.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.buttonUp.Appearance = System.Windows.Forms.Appearance.Button; this.buttonUp.Checked = true; this.buttonUp.Location = new System.Drawing.Point(4, 209); this.buttonUp.Name = "buttonUp"; this.buttonUp.Size = new System.Drawing.Size(56, 26); this.buttonUp.TabIndex = 2; this.buttonUp.TabStop = true; this.buttonUp.Text = "Raise"; //! this.buttonUp.Text = "隆起"; this.buttonUp.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // buttonDown // this.buttonDown.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.buttonDown.Appearance = System.Windows.Forms.Appearance.Button; this.buttonDown.Location = new System.Drawing.Point(59, 209); this.buttonDown.Name = "buttonDown"; this.buttonDown.Size = new System.Drawing.Size(56, 26); this.buttonDown.TabIndex = 4; this.buttonDown.Text = "Lower"; //! this.buttonDown.Text = "掘削"; this.buttonDown.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // preview // this.preview.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.preview.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.preview.InitialImage = null; this.preview.Location = new System.Drawing.Point(4, 5); this.preview.Name = "preview"; this.preview.Size = new System.Drawing.Size(111, 81); this.preview.TabIndex = 3; this.preview.TabStop = false; // // label1 // this.label1.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.label1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.label1.Location = new System.Drawing.Point(4, 93); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(111, 68); this.label1.TabIndex = 6; this.label1.Text = "Press SHIFT and move mouse to quickly modify terrain."; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // groupBox1 // this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.groupBox1.Controls.Add(this.selSize); this.groupBox1.Location = new System.Drawing.Point(4, 165); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new System.Drawing.Size(111, 38); this.groupBox1.TabIndex = 7; this.groupBox1.TabStop = false; this.groupBox1.Text = "Target Size"; this.groupBox1.Enabled = false; // // selSize // this.selSize.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); this.selSize.count = 10; this.selSize.current = 0; this.selSize.dataSource = null; this.selSize.Location = new System.Drawing.Point(6, 14); this.selSize.Name = "selSize"; this.selSize.Size = new System.Drawing.Size(95, 17); this.selSize.TabIndex = 6; // // MountainController // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(119, 239); this.Controls.Add(this.groupBox1); this.Controls.Add(this.label1); this.Controls.Add(this.buttonUp); this.Controls.Add(this.buttonDown); this.Controls.Add(this.preview); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.SizableToolWindow; this.Name = "MountainController"; this.Text = "Modify Terrain"; //! this.Text = "地形操作"; ((System.ComponentModel.ISupportInitialize)(this.preview)).EndInit(); this.groupBox1.ResumeLayout(false); 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.colSelector = new freetrain.controls.IndexSelector(); this.SuspendLayout(); // // typeBox // this.typeBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top) | System.Windows.Forms.AnchorStyles.Right) | System.Windows.Forms.AnchorStyles.Left)); this.typeBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.typeBox.Location = new System.Drawing.Point(8, 8); this.typeBox.Name = "typeBox"; this.typeBox.Size = new System.Drawing.Size(112, 20); this.typeBox.Sorted = true; this.typeBox.TabIndex = 2; this.typeBox.SelectedIndexChanged += new System.EventHandler(this.onTypeChanged); // // colSelector // this.colSelector.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top) | System.Windows.Forms.AnchorStyles.Right) | System.Windows.Forms.AnchorStyles.Left)); this.colSelector.count = 10; this.colSelector.current = 0; this.colSelector.Cursor = System.Windows.Forms.Cursors.Default; this.colSelector.dataSource = null; this.colSelector.Location = new System.Drawing.Point(8, 32); this.colSelector.Name = "colSelector"; this.colSelector.Size = new System.Drawing.Size(112, 20); this.colSelector.TabIndex = 6; this.colSelector.indexChanged += new System.EventHandler(this.onColorChanged); // // preview // this.preview.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Top) | System.Windows.Forms.AnchorStyles.Right) | System.Windows.Forms.AnchorStyles.Left)); this.preview.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.preview.Location = new System.Drawing.Point(8, 64); this.preview.Name = "preview"; this.preview.Size = new System.Drawing.Size(112, 80); this.preview.TabIndex = 1; this.preview.TabStop = false; /* * // * // costBox * // * this.costBox.cost = 0; * this.costBox.label = "Cost:"; * //! this.costBox.label = "費用:"; * this.costBox.Location = new System.Drawing.Point(8, 128); * this.costBox.Name = "costBox"; * this.costBox.Size = new System.Drawing.Size(112, 32); * this.costBox.TabIndex = 10; */ // // buttonRemove // this.buttonRemove.Appearance = System.Windows.Forms.Appearance.Button; this.buttonRemove.Location = new System.Drawing.Point(64, 160); this.buttonRemove.Name = "buttonRemove"; this.buttonRemove.Size = new System.Drawing.Size(56, 24); this.buttonRemove.TabIndex = 9; this.buttonRemove.Text = "Remove"; //! this.buttonRemove.Text = "撤去"; this.buttonRemove.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.buttonRemove.CheckedChanged += new System.EventHandler(this.onColorChanged); this.buttonRemove.Anchor = ((System.Windows.Forms.AnchorStyles)(System.Windows.Forms.AnchorStyles.Bottom)); // // buttonPlace // this.buttonPlace.Anchor = ((System.Windows.Forms.AnchorStyles)(System.Windows.Forms.AnchorStyles.Bottom)); this.buttonPlace.Appearance = System.Windows.Forms.Appearance.Button; this.buttonPlace.Checked = true; this.buttonPlace.Location = new System.Drawing.Point(8, 160); this.buttonPlace.Name = "buttonPlace"; this.buttonPlace.Size = new System.Drawing.Size(56, 24); this.buttonPlace.TabIndex = 8; this.buttonPlace.TabStop = true; this.buttonPlace.Text = "Place"; //! this.buttonPlace.Text = "設置"; this.buttonPlace.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.buttonPlace.CheckedChanged += new System.EventHandler(this.onColorChanged); // // ControllerForm // this.AutoScaleBaseSize = new System.Drawing.Size(5, 12); this.ClientSize = new System.Drawing.Size(128, 190); this.Controls.AddRange(new System.Windows.Forms.Control[] { /*this.costBox,*/ this.buttonRemove, this.buttonPlace, this.typeBox, this.colSelector, this.preview }); this.Name = "ControllerForm"; this.Text = "Automobile"; this.Resize += new EventHandler(this.updateAfterResize); //! this.Text = "自動車"; this.ResumeLayout(false); }