mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Connect TGO dialogs.
This commit is contained in:
@@ -168,6 +168,9 @@ function drawGroundObjects() {
|
||||
game.groundObjects.forEach((tgo) => {
|
||||
L.marker(tgo.position, { icon: iconFor(tgo.blue) })
|
||||
.bindTooltip(`${tgo.name}<br />${tgo.units.join("<br />")}`)
|
||||
.on("click", function () {
|
||||
tgo.open_dialog();
|
||||
})
|
||||
.addTo(groundObjectsLayer);
|
||||
drawSamThreatsAt(tgo);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user