Include control point name in ground object info.

Fixes https://github.com/dcs-liberation/dcs_liberation/issues/498

(cherry picked from commit ffcae66f59)
This commit is contained in:
Chris Seagraves
2021-06-26 13:24:12 -05:00
committed by Dan Albert
parent c1534cba9e
commit 7f68846023
3 changed files with 9 additions and 2 deletions

View File

@@ -570,7 +570,7 @@ class TheaterGroundObject {
}
L.marker(this.tgo.position, { icon: this.icon() })
.bindTooltip(`${this.tgo.name}<br />${this.tgo.units.join("<br />")}`)
.bindTooltip(`${this.tgo.name} (${this.tgo.controlPointName})<br />${this.tgo.units.join("<br />")}`)
.on("click", () => this.tgo.showInfoDialog())
.on("contextmenu", () => this.tgo.showPackageDialog())
.addTo(this.layer());