changeset 94:e4a8653b9536

Re #196: Add notes and abilities to UI * Add unit type's notes to Unit form * Translate label
author IBBoard <dev@ibboard.co.uk>
date Mon, 09 Nov 2009 12:42:13 +0000
parents 37126221efa6
children 83c259516041
files FrmUnit.cs translations/en.translation
diffstat 2 files changed, 34 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- 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;
 		/// <summary>
 		/// Required designer variable.
 		/// </summary>
@@ -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);
--- 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 @@
 	<translation id="lblUnitSize">Unit size:</translation>
 	<translation id="lblEquip">Equipment:</translation>
 	<translation id="bttnAddWeapon">Add</translation>
+	<translation id="lblNotes">Notes:</translation>
 	<translation id="bttnRemoveWeapon">Remove</translation>
 	<translation id="bttnReplaceWeapon">Replace</translation>
 	<translation id="bttnEditWeapon">Edit</translation>