mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Add the rest of the TGO icons.
This commit is contained in:
@@ -22,6 +22,7 @@ const Categories = Object.freeze([
|
||||
"allycamp",
|
||||
"ammo",
|
||||
"armor",
|
||||
"coastal",
|
||||
"comms",
|
||||
"derrick",
|
||||
"ewr",
|
||||
@@ -29,6 +30,7 @@ const Categories = Object.freeze([
|
||||
"farp",
|
||||
"fob",
|
||||
"fuel",
|
||||
"missile",
|
||||
"oil",
|
||||
"power",
|
||||
"ship",
|
||||
@@ -37,8 +39,6 @@ const Categories = Object.freeze([
|
||||
"ww2bunker",
|
||||
]);
|
||||
|
||||
const LegacyCategories = Object.freeze(["coastal", "missile"]);
|
||||
|
||||
const UnitState = Object.freeze({
|
||||
Alive: "alive",
|
||||
Damaged: "damaged",
|
||||
@@ -61,18 +61,6 @@ class TgoIcons {
|
||||
}
|
||||
}
|
||||
}
|
||||
for (const category of LegacyCategories) {
|
||||
this.icons[category] = {};
|
||||
for (const player of [true, false]) {
|
||||
this.icons[category][player] = {};
|
||||
for (const state of Object.values(UnitState)) {
|
||||
this.icons[category][player][state] = this.loadLegacyIcon(
|
||||
category,
|
||||
player
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
icon(category, player, state) {
|
||||
|
||||
Reference in New Issue
Block a user