forked from MapComplete/MapComplete
More refactoring, stuff kindoff works
This commit is contained in:
parent
62f471df1e
commit
3943100e54
52 changed files with 635 additions and 1010 deletions
|
@ -1,14 +1,16 @@
|
|||
import {UIElement} from "./UIElement";
|
||||
import BaseUIElement from "./BaseUIElement";
|
||||
import Combine from "./Base/Combine";
|
||||
|
||||
/**
|
||||
* A button floating above the map, in a uniform style
|
||||
*/
|
||||
export default class MapControlButton extends UIElement {
|
||||
private _contents: UIElement;
|
||||
private _contents: BaseUIElement;
|
||||
|
||||
constructor(contents: UIElement) {
|
||||
constructor(contents: BaseUIElement) {
|
||||
super();
|
||||
this._contents = contents;
|
||||
this._contents = new Combine([contents]);
|
||||
this.SetClass("relative block rounded-full w-10 h-10 p-1 pointer-events-auto z-above-map subtle-background")
|
||||
this.SetStyle("box-shadow: 0 0 10px var(--shadow-color);");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue