* Get the string to draw for the given group. * @param g_id Group to get string for. * @return Formatted string to draw. */
| 308 | * @return Formatted string to draw. |
| 309 | */ |
| 310 | std::string GetGroupNameString(GroupID g_id) const |
| 311 | { |
| 312 | if (IsAllGroupID(g_id)) return GetString(STR_GROUP_ALL_TRAINS + this->vli.vtype); |
| 313 | if (IsDefaultGroupID(g_id)) return GetString(STR_GROUP_DEFAULT_TRAINS + this->vli.vtype); |
| 314 | return GetString(STR_GROUP_NAME, g_id); |
| 315 | } |
| 316 | |
| 317 | /** |
| 318 | * Get the profit sprite ID to draw for the given group. |
no test coverage detected