Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#117 closed enhancement (released)

Add percentage and number boxes to equipment item dialogs

Reported by: ibboard Owned by: ibboard
Priority: major Milestone: WarFoundry 0.1
Component: WarFoundry-GUI-WinForms Version:
Keywords: equipment usability Cc:
Blocked By: #118, #119, #120 Blocking: #114

Description

The equipment item dialogs (the ones for adding/editing the equipment of a unit) should have both a numeric amount and a percentage amount when the limit for an item of equipment is a ratio. The two values should be synchronised so that updating either one updates the other, allowing the user to say "I want 33% of my unit to have bows and that'll be 10 models"" or "I want 10 of my unit to have bows, and that should be within the 33% limit".

Attachments (2)

Empire.race (734 bytes) - added by ibboard 10 years ago.
Test army with percentage and numeric equipment limits
Warhammer5th.system (502 bytes) - added by ibboard 10 years ago.
Game system to go with army

Download all attachments as: .zip

Change History (17)

comment:1 Changed 10 years ago by ibboard

Blocked By: 118 added

comment:2 Changed 10 years ago by ibboard

Blocking: 114 added

(In #114) Add #117 as blocker, since there isn't much point fixing this if we're going to rebuild the dialog

comment:3 Changed 10 years ago by ibboard

Blocking: 116 added

(In #116) Blocked by changes in #117 and may have been indirectly resolved by #118 (but may not).

comment:4 Changed 10 years ago by ibboard

Owner: set to ibboard
Status: newaccepted

comment:5 Changed 10 years ago by ibboard

Blocked By: 119 added

Changed 10 years ago by ibboard

Attachment: Empire.race added

Test army with percentage and numeric equipment limits

Changed 10 years ago by ibboard

Attachment: Warhammer5th.system added

Game system to go with army

comment:6 Changed 10 years ago by ibboard

Blocked By: 120 added

comment:7 Changed 10 years ago by ibboard

Blocking: 116 removed

(In #116) Remove "blocked by" as problem is now fixed through some other changes.

comment:8 Changed 10 years ago by ibboard

(In r178) Re #118: Allow equipment amounts of "ratio" equipment to be define as absolute or ratio amounts

  • Use new commands created in previous revision

Re #122: Make usage of percentage or ratio common

  • Make sure all usage of percentages are correct

Re #117: Add percentage and number boxes to equipment item dialogs

  • Fix some enable/disable inconsistencies for percentage amounts
  • Fix problems where fixed limits weren't honoured by widgets

comment:9 Changed 10 years ago by ibboard

(In r236) Re #117: Add percentage and number boxes to equipment item dialogs

  • Add a new EquipmentAmountControl to bundle the controls with some initial implementation
  • Add new control to "new equipment" dialog and remove old controls

Also:

  • Update some namespaces

comment:10 Changed 10 years ago by ibboard

(In r237) Re #117: Add percentage and number boxes to equipment item dialogs

  • Add events and value setting in EquipmentAmount widget
  • Hook up "value changed" event on new equipment form

Also fixes adding side of re #114 (Enabling/disabling of "equip all" and number for equipment is wrong) by rebuilding everything

comment:11 Changed 10 years ago by ibboard

(In r238) Re #117: Add percentage and number boxes to equipment item dialogs

  • Add new widget to "Edit equipment" dialog
  • Still needs "OK" button functionality re-implementing

comment:12 Changed 10 years ago by ibboard

Resolution: fixed
Status: acceptedclosed

(In r239) Fixes #117: Add percentage and number boxes to equipment item dialogs

  • Add value changing when changing radio button selection
  • Add logic to equipment amount editing control to perform value setting (but see #146)

Also, fixes #114 by rebuilding everything in to a single control

comment:13 Changed 10 years ago by ibboard

released: 1

Mark released changes as released

comment:14 Changed 10 years ago by ibboard

released: 1yes

Mark released fixes as released using radio values

comment:15 Changed 10 years ago by ibboard

Resolution: fixedreleased

Mark fix as released under a previous version

Note: See TracTickets for help on using tickets.