AliYousuf / hedgewars

Automatically exported from code.google.com/p/hedgewars
GNU General Public License v2.0
0 stars 0 forks source link

Allow to select custom flag for bot teams #849

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi! I am proposing some customizability for computer-controlled teams: 
Currently, it is not possible to set a custom flag for those teams. The user 
can still select a flag in the interface, but this setting is simply silently 
ignored. This is clearly bad usability, because the choice in this drop-down 
list is just an illusion.

I suggest the following:
Add a new special entry in the drop-down list of flags, called “Automatic”. 
This is the new default chosen entry and it is the initially selected entry for 
new teams. When the “automatic” flag is selected, the flag’s appearance 
depends on the botlevel: For botlevel 0 (human player), the flag 
“hedgewars.png” is used. For botlevels 1-5, the flag is “cpu.png” 
combined with the bars (just like how the flag already works in 0.9.20 for bot 
teams).
It would be neat if the preview image of this entry also changes when the 
botlevel is changed.

Any other selected entry explicitly selects a flag for the team, no matter if 
bot or human. The old entry for the “hedgewars.png” flag should be 
preserved, it is now used to explicitly select this flag.

Original issue reported on code.google.com by almikes@aol.com on 8 Dec 2014 at 8:31