You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 2, 2020. It is now read-only.
If there are idle villagers, the idle villager button should be yellow instead of grayed out. The number of idle villagers should be shown in the bottom-right of the button.
Clicking the button (or pressing the corresponding hotkey) should toggle between all idle villagers.
Hints: Iterate over map->GetObjects(), check IsUnit(), GetPlayerIndex() == match->GetPlayerIndex(), and IsVillager() for each entry, and check whether the UnitAction is UnitAction::Idle to find the idle villagers. Use ClearSelection(), AddToSelection(), and SelectionChanged() to modify the selection.