1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-18 05:22:42 +01:00

Refactor existing structs to use TitleCase

This commit is contained in:
Severin Paul Höfer
2024-01-23 21:49:43 +01:00
parent 2136706129
commit fb41a5764c

View File

@@ -608,7 +608,7 @@ struct RideTypeLabel
{ {
ride_type_t RideTypeId; ride_type_t RideTypeId;
StringId LabelId; StringId LabelId;
const char* label_string; const char* LabelString;
}; };
// Used for sorting the vehicle type dropdown. // Used for sorting the vehicle type dropdown.
@@ -616,7 +616,7 @@ struct VehicleTypeLabel
{ {
ObjectEntryIndex SubTypeId; ObjectEntryIndex SubTypeId;
StringId LabelId; StringId LabelId;
const char* label_string; const char* LabelString;
}; };
// Used for sorting the entrance type dropdown. // Used for sorting the entrance type dropdown.
@@ -1810,7 +1810,7 @@ private:
} }
std::sort(_rideDropdownData.begin(), _rideDropdownData.end(), [](auto& a, auto& b) { std::sort(_rideDropdownData.begin(), _rideDropdownData.end(), [](auto& a, auto& b) {
return String::Compare(a.label_string, b.label_string, true) < 0; return String::Compare(a.LabelString, b.LabelString, true) < 0;
}); });
_rideDropdownDataLanguage = ls.GetCurrentLanguage(); _rideDropdownDataLanguage = ls.GetCurrentLanguage();
@@ -1953,7 +1953,7 @@ private:
} }
std::sort(_vehicleDropdownData.begin(), _vehicleDropdownData.end(), [](auto& a, auto& b) { std::sort(_vehicleDropdownData.begin(), _vehicleDropdownData.end(), [](auto& a, auto& b) {
return String::Compare(a.label_string, b.label_string, true) < 0; return String::Compare(a.LabelString, b.LabelString, true) < 0;
}); });
_vehicleDropdownExpanded = selectionShouldBeExpanded; _vehicleDropdownExpanded = selectionShouldBeExpanded;