mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
Sort SkillDropdown by Skill level
This commit is contained in:
parent
0ef3abbffa
commit
965b67b8ab
@ -272,9 +272,11 @@ export abstract class UnitSpawnMenu {
|
||||
}
|
||||
|
||||
if (!this.#unitSkillDropdown.isHidden()) {
|
||||
this.#unitSkillDropdown.setOptions(["Average", "Good", "High", "Excellent"])
|
||||
const sortedOptions = ["Average", "Good", "High", "Excellent"];
|
||||
this.#unitSkillDropdown.setOptions(sortedOptions, null);
|
||||
this.#unitSkillDropdown.selectValue(4);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* Get the unit data from the db */
|
||||
var blueprint = this.#unitDatabase.getByName(this.spawnOptions.name);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user