Page 1 of 1

Unit category filter buttons in production chooser

Posted: Fri Apr 12, 2019 7:37 am
by Stratego (dev)
I ww2 version is is very much needed. but i also faced the problem in AOS/AOF:
hard to find the units i want to pproduce as we have very many unit types.

so i thought i would inherit the mapeditor "category" filter buttons that are currently:
- "swimming units"
- "melee units"
- "ranged units"
- "buildings"

with some modification, i suggest a json configurable buttoning where you can set a category name to display under a given button image and texting.

and my first suggestion in games are
AOF
- u_ships
- u_flyings
- u_melee
- u_archers
- u_buildings
- u_others (all others that are not fit to previously chosen categories)

AOS
- u_ships
- u_melee
- u_archers
- u_buildings
- u_others (all others that are not fit to previously chosen categories)

AOW
- u_planes
- u_ships
- u_infantry
- u_vehicle_AT
- u_vehicle_AA
- u_vehicle_Artillery
- u_buildings
- u_others (all others that are not fit to previously chosen categories)

(if a unit is in more than one category than will be displayed in the first - or should be in both?)

Re: Unit category filter buttons in production chooser

Posted: Fri Apr 12, 2019 10:25 am
by Midonik
Well I guess that kinda helps with mass amount of units producable.
I vote for both, to avoid confusion.

Re: Unit category filter buttons in production chooser

Posted: Fri Apr 12, 2019 12:06 pm
by Stratego (dev)
both? what do u mean? (this is one suggestion)

Re: Unit category filter buttons in production chooser

Posted: Fri Apr 12, 2019 12:27 pm
by Midonik
Refered to the:
(if a unit is in more than one category than will be displayed in the first - or should be in both?)

Re: Unit category filter buttons in production chooser

Posted: Fri Apr 12, 2019 12:32 pm
by Stratego (dev)
oh, sorry, yes.
ok.

Re: Unit category filter buttons in production chooser

Posted: Fri Apr 12, 2019 1:45 pm
by makazuwr32
For aof i suggest to add 3 more categories in that:
Casters
Cavalry
Throwers

At least.

Re: Unit category filter buttons in production chooser

Posted: Fri Apr 12, 2019 3:36 pm
by Stratego (dev)
good!

Re: Unit category filter buttons in production chooser

Posted: Fri Apr 12, 2019 3:59 pm
by Stratego (dev)
only problem is we have limited space - in mapeditor i see there is only 4-5 space for such button-images.
a) shall i make a grid of them? 2x4 grid?
b) or shall i make multilevel version somehow?
c) or simply a vertically scrollable button column?

Re: Unit category filter buttons in production chooser

Posted: Fri Apr 12, 2019 4:37 pm
by Midonik
I guess simple scrool button is good? I think you can just chose easiest to code option.

Re: Unit category filter buttons in production chooser

Posted: Fri Apr 12, 2019 6:38 pm
by makazuwr32
i would prefer single button that is toggable and will cycle through all variants. Like in mapeditor where you able to choose by clicking shield racial units.