Mercurial > repos > IBDev-IBBoard.WarFoundry.GUI.GTK
comparison UIControl/Interfaces/IAddEquipmentUI.cs @ 62:f733073967a2
Re #60: Add UI to add/remove/edit weapons in GTK
* Add initial code to keep numeric and percentage in sync
TODO: Allow users to change the non-selected one (e.g. select percentage but set the percentage by incrementing the number)
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 29 Aug 2010 15:44:20 +0000 |
parents | e7ad676a7344 |
children | c2d79b4209e3 |
comparison
equal
deleted
inserted
replaced
61:e7ad676a7344 | 62:f733073967a2 |
---|---|
84 /// <c>true</c> if the selected amount is a ratio type (percentage or "all"); otherwise, <c>false</c>. | 84 /// <c>true</c> if the selected amount is a ratio type (percentage or "all"); otherwise, <c>false</c>. |
85 /// </value> | 85 /// </value> |
86 bool IsRatioEquipmentAmount { get; } | 86 bool IsRatioEquipmentAmount { get; } |
87 | 87 |
88 /// <summary> | 88 /// <summary> |
89 /// Gets the numeric amount for the current equipment amount. This number is meaningless if <see cref="IsRatioEquipmentAmount"/> is <code>true</code> | 89 /// Gets and sets the numeric amount for the current equipment amount. This number is meaningless if <see cref="IsRatioEquipmentAmount"/> is <code>true</code> |
90 /// </summary> | 90 /// </summary> |
91 /// <value> | 91 /// <value> |
92 /// The absolue number of items taken. | 92 /// The absolue number of items taken. |
93 /// </value> | 93 /// </value> |
94 int EquipmentNumericAmount { get; } | 94 int EquipmentNumericAmount { get; set; } |
95 | 95 |
96 /// <summary> | 96 /// <summary> |
97 /// Gets the percentage amount for the current equipment amount. This number is meaningless if <see cref="IsRatioEquipmentAmount"/> is <code>false</code> | 97 /// Gets and sets the percentage amount for the current equipment amount. This number is meaningless if <see cref="IsRatioEquipmentAmount"/> is <code>false</code> |
98 /// </summary> | 98 /// </summary> |
99 /// <value> | 99 /// <value> |
100 /// The number of items taken as a percentage of the unit size. | 100 /// The number of items taken as a percentage of the unit size. |
101 /// </value> | 101 /// </value> |
102 double EquipmentPercentageAmount { get; } | 102 double EquipmentPercentageAmount { get; set; } |
103 | 103 |
104 /// <summary> | 104 /// <summary> |
105 /// Sets the state of the Okay button. | 105 /// Sets the state of the Okay button. |
106 /// </summary> | 106 /// </summary> |
107 /// <param name='enabled'> | 107 /// <param name='enabled'> |