Add UI setting to disable mass action buttons for top-level vehicle lists

This commit is contained in:
Jonathan G Rennison
2018-03-29 20:39:25 +01:00
parent 53dd010f3b
commit 6ec78ff4b0
8 changed files with 31 additions and 10 deletions

View File

@@ -93,6 +93,11 @@ static inline bool IsAllGroupID(GroupID id_g)
return id_g == ALL_GROUP;
}
static inline bool IsTopLevelGroupID(GroupID index)
{
return index == DEFAULT_GROUP || index == ALL_GROUP;
}
#define FOR_ALL_GROUPS_FROM(var, start) FOR_ALL_ITEMS_FROM(Group, group_index, var, start)
#define FOR_ALL_GROUPS(var) FOR_ALL_GROUPS_FROM(var, 0)