forked from MapComplete/MapComplete
Add fancy direction picker
This commit is contained in:
parent
67bd817a38
commit
7ef2f429f2
11 changed files with 386 additions and 53 deletions
9
test.ts
9
test.ts
|
@ -1,10 +1,13 @@
|
|||
//*
|
||||
|
||||
|
||||
import Direction from "./UI/Input/Direction";
|
||||
|
||||
new Direction().AttachTo("maindiv")
|
||||
import Direction from "./UI/Input/DirectionInput";
|
||||
import {UIEventSource} from "./Logic/UIEventSource";
|
||||
import {VariableUiElement} from "./UI/Base/VariableUIElement";
|
||||
|
||||
const d = new UIEventSource(90);
|
||||
new Direction(d).AttachTo("maindiv")
|
||||
new VariableUiElement(d.map(d => ""+d+"°")).AttachTo("extradiv")
|
||||
|
||||
/*/
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue