diff --git a/CHANGELOG.md b/CHANGELOG.md index dfbc6098d..2ea110830 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ v1.5.2 Added: +* Added information about whether a car/track is part of a DLC or a Mod when creating an event. * Discord Enhancements (Thanks @cheesegrits!): - Splits the '!schedule' command into '!sessions' (full "wall of text" individual session calendar, restricted to one week ahead) and '!schedule' (abbreviated, one per race calendar). This still needs work, as can easily exceed Discord's max msg length. diff --git a/cmd/server-manager/typescript/sass/_custom-race.scss b/cmd/server-manager/typescript/sass/_custom-race.scss index 097fab789..750008eb4 100644 --- a/cmd/server-manager/typescript/sass/_custom-race.scss +++ b/cmd/server-manager/typescript/sass/_custom-race.scss @@ -15,6 +15,21 @@ margin-bottom: 5px; } +.ms-container .ms-selectable li.ms-hover, .ms-container .ms-selection li.ms-hover { + cursor: pointer; + color: #fff; + text-decoration: none; + background-color: #08c!important; +} + +.bg-dlc { + background-color: #e2d9f3 +} + +.bg-mod { + background-color: #f2dede +} + .race-setup .pit-boxes { padding-top: calc(0.375rem + 1px); diff --git a/cmd/server-manager/typescript/src/CarSearch.ts b/cmd/server-manager/typescript/src/CarSearch.ts index 050c85fe5..44dfc0528 100644 --- a/cmd/server-manager/typescript/src/CarSearch.ts +++ b/cmd/server-manager/typescript/src/CarSearch.ts @@ -4,6 +4,7 @@ import KeyPressEvent = JQuery.KeyPressEvent; interface SearchResult { CarName: string; CarID: string; + Class: string; // Tags: string[]; } @@ -50,10 +51,7 @@ export class CarSearch { } for (const car of data) { - $carsSelect.multiSelect("addOption", { - value: car.CarID, - text: car.CarName, - }); + $carsSelect.append('