Add the rest of the TGO icons.
1
resources/ui/ground_assets/coastal_blue_alive.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.2" baseProfile="tiny" width="158" height="108" viewBox="21 46 158 108"><path d="M25,50 l150,0 0,100 -150,0 z" stroke-width="4" stroke="black" fill="rgb(128,224,255)" fill-opacity="1" ></path><path d="M90,120 L90,90 C90,80 110,80 110,90 L110,120 M100,120 L100,80" stroke-width="4" stroke="black" fill="none" ></path></svg>
|
||||
|
After Width: | Height: | Size: 372 B |
1
resources/ui/ground_assets/coastal_blue_damaged.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.2" baseProfile="tiny" width="158" height="138" viewBox="21 46 158 138"><path d="M25,50 l150,0 0,100 -150,0 z" stroke-width="4" stroke="black" fill="rgb(128,224,255)" fill-opacity="1" ></path><path d="M90,120 L90,90 C90,80 110,80 110,90 L110,120 M100,120 L100,80" stroke-width="4" stroke="black" fill="none" ></path><path d="M25,155 l150,0 0,25 -150,0 z" stroke-width="4" stroke="black" fill="rgb(255,255,0)" ></path></svg>
|
||||
|
After Width: | Height: | Size: 473 B |
1
resources/ui/ground_assets/coastal_blue_destroyed.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.2" baseProfile="tiny" width="158" height="138" viewBox="21 46 158 138"><path d="M25,50 l150,0 0,100 -150,0 z" stroke-width="4" stroke="black" fill="rgb(128,224,255)" fill-opacity="1" ></path><path d="M90,120 L90,90 C90,80 110,80 110,90 L110,120 M100,120 L100,80" stroke-width="4" stroke="black" fill="none" ></path><path d="M25,155 l150,0 0,25 -150,0 z" stroke-width="4" stroke="black" fill="rgb(255,0,0)" ></path></svg>
|
||||
|
After Width: | Height: | Size: 471 B |
1
resources/ui/ground_assets/coastal_red_alive.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.2" baseProfile="tiny" width="152" height="152" viewBox="24 24 152 152"><path d="M 100,28 L172,100 100,172 28,100 100,28 Z" stroke-width="4" stroke="black" fill="rgb(255,128,128)" fill-opacity="1" ></path><path d="M90,120 L90,90 C90,80 110,80 110,90 L110,120 M100,120 L100,80" stroke-width="4" stroke="black" fill="none" ></path></svg>
|
||||
|
After Width: | Height: | Size: 385 B |
1
resources/ui/ground_assets/coastal_red_damaged.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.2" baseProfile="tiny" width="152" height="182" viewBox="24 24 152 182"><path d="M 100,28 L172,100 100,172 28,100 100,28 Z" stroke-width="4" stroke="black" fill="rgb(255,128,128)" fill-opacity="1" ></path><path d="M90,120 L90,90 C90,80 110,80 110,90 L110,120 M100,120 L100,80" stroke-width="4" stroke="black" fill="none" ></path><path d="M28,177 l144,0 0,25 -144,0 z" stroke-width="4" stroke="black" fill="rgb(255,255,0)" ></path></svg>
|
||||
|
After Width: | Height: | Size: 486 B |
1
resources/ui/ground_assets/coastal_red_destroyed.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.2" baseProfile="tiny" width="152" height="182" viewBox="24 24 152 182"><path d="M 100,28 L172,100 100,172 28,100 100,28 Z" stroke-width="4" stroke="black" fill="rgb(255,128,128)" fill-opacity="1" ></path><path d="M90,120 L90,90 C90,80 110,80 110,90 L110,120 M100,120 L100,80" stroke-width="4" stroke="black" fill="none" ></path><path d="M28,177 l144,0 0,25 -144,0 z" stroke-width="4" stroke="black" fill="rgb(255,0,0)" ></path></svg>
|
||||
|
After Width: | Height: | Size: 484 B |
1
resources/ui/ground_assets/missile_blue_alive.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.2" baseProfile="tiny" width="158" height="108" viewBox="21 46 158 108"><path d="M25,50 l150,0 0,100 -150,0 z" stroke-width="4" stroke="black" fill="rgb(128,224,255)" fill-opacity="1" ></path><path d="M90,120 L90,90 C90,80 110,80 110,90 L110,120 M100,120 L100,80" stroke-width="4" stroke="black" fill="none" ></path><text x="100" y="145" text-anchor="middle" font-size="30" font-family="Arial" font-weight="bold" stroke-width="4" stroke="none" fill="black" >T</text></svg>
|
||||
|
After Width: | Height: | Size: 522 B |
1
resources/ui/ground_assets/missile_blue_damaged.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.2" baseProfile="tiny" width="158" height="138" viewBox="21 46 158 138"><path d="M25,50 l150,0 0,100 -150,0 z" stroke-width="4" stroke="black" fill="rgb(128,224,255)" fill-opacity="1" ></path><path d="M90,120 L90,90 C90,80 110,80 110,90 L110,120 M100,120 L100,80" stroke-width="4" stroke="black" fill="none" ></path><text x="100" y="145" text-anchor="middle" font-size="30" font-family="Arial" font-weight="bold" stroke-width="4" stroke="none" fill="black" >T</text><path d="M25,155 l150,0 0,25 -150,0 z" stroke-width="4" stroke="black" fill="rgb(255,255,0)" ></path></svg>
|
||||
|
After Width: | Height: | Size: 623 B |
1
resources/ui/ground_assets/missile_blue_destroyed.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.2" baseProfile="tiny" width="158" height="138" viewBox="21 46 158 138"><path d="M25,50 l150,0 0,100 -150,0 z" stroke-width="4" stroke="black" fill="rgb(128,224,255)" fill-opacity="1" ></path><path d="M90,120 L90,90 C90,80 110,80 110,90 L110,120 M100,120 L100,80" stroke-width="4" stroke="black" fill="none" ></path><text x="100" y="145" text-anchor="middle" font-size="30" font-family="Arial" font-weight="bold" stroke-width="4" stroke="none" fill="black" >T</text><path d="M25,155 l150,0 0,25 -150,0 z" stroke-width="4" stroke="black" fill="rgb(255,0,0)" ></path></svg>
|
||||
|
After Width: | Height: | Size: 621 B |
1
resources/ui/ground_assets/missile_red_alive.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.2" baseProfile="tiny" width="152" height="152" viewBox="24 24 152 152"><path d="M 100,28 L172,100 100,172 28,100 100,28 Z" stroke-width="4" stroke="black" fill="rgb(255,128,128)" fill-opacity="1" ></path><path d="M90,120 L90,90 C90,80 110,80 110,90 L110,120 M100,120 L100,80" stroke-width="4" stroke="black" fill="none" ></path><text x="100" y="145" text-anchor="middle" font-size="30" font-family="Arial" font-weight="bold" stroke-width="4" stroke="none" fill="black" >T</text></svg>
|
||||
|
After Width: | Height: | Size: 535 B |
1
resources/ui/ground_assets/missile_red_damaged.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.2" baseProfile="tiny" width="152" height="182" viewBox="24 24 152 182"><path d="M 100,28 L172,100 100,172 28,100 100,28 Z" stroke-width="4" stroke="black" fill="rgb(255,128,128)" fill-opacity="1" ></path><path d="M90,120 L90,90 C90,80 110,80 110,90 L110,120 M100,120 L100,80" stroke-width="4" stroke="black" fill="none" ></path><text x="100" y="145" text-anchor="middle" font-size="30" font-family="Arial" font-weight="bold" stroke-width="4" stroke="none" fill="black" >T</text><path d="M28,177 l144,0 0,25 -144,0 z" stroke-width="4" stroke="black" fill="rgb(255,255,0)" ></path></svg>
|
||||
|
After Width: | Height: | Size: 636 B |
1
resources/ui/ground_assets/missile_red_destroyed.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.2" baseProfile="tiny" width="152" height="182" viewBox="24 24 152 182"><path d="M 100,28 L172,100 100,172 28,100 100,28 Z" stroke-width="4" stroke="black" fill="rgb(255,128,128)" fill-opacity="1" ></path><path d="M90,120 L90,90 C90,80 110,80 110,90 L110,120 M100,120 L100,80" stroke-width="4" stroke="black" fill="none" ></path><text x="100" y="145" text-anchor="middle" font-size="30" font-family="Arial" font-weight="bold" stroke-width="4" stroke="none" fill="black" >T</text><path d="M28,177 l144,0 0,25 -144,0 z" stroke-width="4" stroke="black" fill="rgb(255,0,0)" ></path></svg>
|
||||
|
After Width: | Height: | Size: 634 B |
@ -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) {
|
||||
|
||||