Is your keyboard full of binds? Are you struggling with remembering all of them? Well, the second problem would get worse, but the first one has a solution! Advanced Key Actions!
An upcoming integration for FAF, which allows you to setup key actions based on current selection.
PR
Code example:
CategoryMatcher("Enter OC mode / Transport / Toggle repeat build")
{
CategoryAction(), -- do nothing if no selection
CategoryAction(categories.TRANSPORTATION)
:Action "StartCommandMode order RULEUCC_Transport",
CategoryAction(categories.COMMAND + categories.SUBCOMMANDER)
:Action(import('/lua/ui/game/orders.lua').EnterOverchargeMode),
CategoryAction(categories.FACTORY * categories.STRUCTURE)
:Action(import("/lua/keymap/misckeyactions.lua").ToggleRepeatBuild)
}
Explanation:
This key action does nothing with no selection, with transports selected - transport action (pick and drop), with acus or sacus - goes into OC mode and when factories are selected - toggles repeat build. These are working separately only, so, having acu and factory selected nothing will happen.
UI: coming