mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
Added states and more work on custom formations
This commit is contained in:
@@ -11,6 +11,18 @@ export class UnitContextMenu extends ContextMenu {
|
||||
if (dialog)
|
||||
{
|
||||
dialog.classList.add("hide");
|
||||
var clock = 1;
|
||||
while (clock < 8)
|
||||
{
|
||||
if ((<HTMLInputElement> dialog.querySelector(`#formation-${clock}`)).checked)
|
||||
break
|
||||
clock++;
|
||||
}
|
||||
var angleDeg = 360 - (clock - 1) * 45;
|
||||
var distance = parseInt((<HTMLInputElement> dialog.querySelector(`#distance`)?.querySelector("input")).value);
|
||||
var upDown = parseInt((<HTMLInputElement> dialog.querySelector(`#up-down`)?.querySelector("input")).value);
|
||||
var asd= 1;
|
||||
|
||||
}
|
||||
|
||||
if (this.#callback)
|
||||
|
||||
Reference in New Issue
Block a user