Better controls for specifying preference of strong and weak soldiers
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
widelands |
Fix Released
|
Medium
|
Unassigned |
Bug Description
(See bug 1202040 for the graphics used, this bug concerns the usability)
We recently got controls for setting a preference in military buildings whether we want strong or weak soldiers in it. It can be found as a button in the lower right corner in any millitary building window. It displays the icon for either strong or weak soldiers as well as a corresponding tooltip text if you hover. However, this button is ambigious.
The problem is that it is not clear whether the option displayed is the currently selected one, or one you can change to. It might display the current state, allowing you to click on it to change it. Or it might display the state you can change to, though not displaying the current state. This isn't really clear to a user unless he/she toggles it a bit to find out how it works. Compare this with the upgrade or dismantle buttons which clearly indicate that clicking on it would change the building to the state depicted.
The simple solution would be to always display both buttons, and then place a colored border around the selected one. However, with military buildings which can be upgraded (like Fortress), we are already low on space, so I'm not sure if this is the _best_ solution.
Related branches
- cghislai (community): Approve
-
Diff: 197 lines (+48/-48) (has conflicts)3 files modifiedsrc/wui/buildingwindow.cc (+1/-29)
src/wui/soldiercapacitycontrol.cc (+8/-7)
src/wui/soldierlist.cc (+39/-12)
Changed in widelands: | |
assignee: | nobody → cghislai (charlyghislain) |
assignee: | cghislai (charlyghislain) → Teppo Mäenpää (kxq) |
Changed in widelands: | |
status: | Confirmed → In Progress |
Changed in widelands: | |
assignee: | SirVer (sirver) → nobody |
I complete agree and was already up to write my own bug report - you beat me to it :-D.
My suggestion would be to improve the hover text to e.g. "Heroes - click button to switch to Beginners" - but well it seems to me all good and understandable texts would be quite long... ;) Any idea on a plain, good Text that makes the current and the state after click understandable?
Further I think it is a unlucky approach to close the window as soon as the button was clicked. I know this problem comes out of the graphic change of the clicked button, which lead to reinitialization of the window. But as I had the same problem with the port and the ship windows in the seafaring branch, I added a function to reinitialize the window after such a change - that could be used here as well :)