# HG changeset patch # User IBBoard # Date 1257770533 0 # Node ID e4a8653b953651d0476a3b32a10ecf42437ddba2 # Parent 37126221efa667d45d8c2606425c6a4d45b013e6 Re #196: Add notes and abilities to UI * Add unit type's notes to Unit form * Translate label diff -r 37126221efa6 -r e4a8653b9536 FrmUnit.cs --- a/FrmUnit.cs Mon Nov 09 12:31:42 2009 +0000 +++ b/FrmUnit.cs Mon Nov 09 12:42:13 2009 +0000 @@ -39,6 +39,8 @@ private IBBButton bttnReplaceWeapon; private IBBButton bttnEditWeapon; private Label lblPoints; + private IBBLabel lblNotes; + private TextBox notes; /// /// Required designer variable. /// @@ -72,6 +74,7 @@ unitSize.Minimum = unit.UnitType.MinSize; } + notes.Text = unit.UnitType.Notes; SetPointsValueText(); SetStats(); SetWeapons(); @@ -181,14 +184,16 @@ this.statsGrid = new System.Windows.Forms.DataGrid(); this.tbUnitName = new System.Windows.Forms.TextBox(); this.unitSize = new System.Windows.Forms.NumericUpDown(); - this.lblUnitSize = new IBBLabel(); - this.lblEquip = new IBBLabel(); - this.bttnAddWeapon = new IBBButton(); - this.bttnRemoveWeapon = new IBBButton(); + this.lblUnitSize = new IBBoard.Windows.Forms.IBBLabel(); + this.lblEquip = new IBBoard.Windows.Forms.IBBLabel(); + this.bttnAddWeapon = new IBBoard.Windows.Forms.IBBButton(); + this.bttnRemoveWeapon = new IBBoard.Windows.Forms.IBBButton(); this.equipmentList = new System.Windows.Forms.ListBox(); - this.bttnReplaceWeapon = new IBBButton(); - this.bttnEditWeapon = new IBBButton(); + this.bttnReplaceWeapon = new IBBoard.Windows.Forms.IBBButton(); + this.bttnEditWeapon = new IBBoard.Windows.Forms.IBBButton(); this.lblPoints = new System.Windows.Forms.Label(); + this.lblNotes = new IBBoard.Windows.Forms.IBBLabel(); + this.notes = new System.Windows.Forms.TextBox(); ((System.ComponentModel.ISupportInitialize) (this.statsGrid)).BeginInit(); ((System.ComponentModel.ISupportInitialize) (this.unitSize)).BeginInit(); this.SuspendLayout(); @@ -254,9 +259,9 @@ // // lblEquip // - this.lblEquip.Location = new System.Drawing.Point(8, 123); + this.lblEquip.Location = new System.Drawing.Point(15, 126); this.lblEquip.Name = "lblEquip"; - this.lblEquip.Size = new System.Drawing.Size(88, 32); + this.lblEquip.Size = new System.Drawing.Size(81, 108); this.lblEquip.TabIndex = 3; this.lblEquip.Text = "equipment"; this.lblEquip.TextAlign = System.Drawing.ContentAlignment.TopRight; @@ -327,10 +332,30 @@ this.lblPoints.TabIndex = 12; this.lblPoints.Text = "(points)"; // + // lblNotes + // + this.lblNotes.Location = new System.Drawing.Point(12, 240); + this.lblNotes.Name = "lblNotes"; + this.lblNotes.Size = new System.Drawing.Size(84, 62); + this.lblNotes.TabIndex = 13; + this.lblNotes.Text = "notes"; + this.lblNotes.TextAlign = System.Drawing.ContentAlignment.TopRight; + // + // notes + // + this.notes.Location = new System.Drawing.Point(101, 240); + this.notes.Multiline = true; + this.notes.Name = "notes"; + this.notes.ReadOnly = true; + this.notes.Size = new System.Drawing.Size(409, 62); + this.notes.TabIndex = 14; + // // FrmUnit // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(616, 314); + this.Controls.Add(this.notes); + this.Controls.Add(this.lblNotes); this.Controls.Add(this.lblPoints); this.Controls.Add(this.bttnEditWeapon); this.Controls.Add(this.bttnReplaceWeapon); diff -r 37126221efa6 -r e4a8653b9536 translations/en.translation --- a/translations/en.translation Mon Nov 09 12:31:42 2009 +0000 +++ b/translations/en.translation Mon Nov 09 12:42:13 2009 +0000 @@ -58,6 +58,7 @@ Unit size: Equipment: Add + Notes: Remove Replace Edit