You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
662 B
18 lines
662 B
import { MetaWireBaseBuilding } from "../../buildings/wire_base";
|
|
import { enumLayer } from "../../root";
|
|
import { HUDBaseToolbar } from "./base_toolbar";
|
|
import { MetaWireCrossingsBuilding } from "../../buildings/wire_crossings";
|
|
|
|
const supportedBuildings = [MetaWireBaseBuilding, MetaWireCrossingsBuilding];
|
|
|
|
export class HUDWiresToolbar extends HUDBaseToolbar {
|
|
constructor(root) {
|
|
super(root, {
|
|
supportedBuildings,
|
|
visibilityCondition: () =>
|
|
!this.root.camera.getIsMapOverlayActive() && this.root.currentLayer === enumLayer.wires,
|
|
htmlElementId: "ingame_HUD_wires_toolbar",
|
|
});
|
|
}
|
|
}
|