Dropdowns limited to 382px. Ground unit types are automatically sorted

This commit is contained in:
PeekabooSteam
2023-04-09 15:22:27 +01:00
parent 1b093782c3
commit 14ae0d083f
4 changed files with 18 additions and 4 deletions

View File

@@ -12,6 +12,7 @@ import { LogPanel } from "./panels/logpanel";
import { getAirbases, getBullseye as getBullseyes, getConfig, getMission, getUnits, setAddress, toggleDemoEnabled } from "./server/server";
import { UnitDataTable } from "./units/unitdatatable";
import { keyEventWasInInput } from "./other/utils";
import { Dropdown } from "./controls/dropdown";
var map: Map;
@@ -67,6 +68,9 @@ function setup() {
// TODO: add back buttons
}
new Dropdown( "app-icon", () => {} );
/* Setup event handlers */
setupEvents();