Further cleanup: further removal of the UIElement
This commit is contained in:
parent
09ba1b37c6
commit
785f57262e
15 changed files with 169 additions and 294 deletions
|
@ -1,22 +1,15 @@
|
|||
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: BaseUIElement;
|
||||
export default class MapControlButton extends Combine {
|
||||
|
||||
constructor(contents: BaseUIElement) {
|
||||
super();
|
||||
this._contents = new Combine([contents]);
|
||||
super([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);");
|
||||
}
|
||||
|
||||
InnerRender() {
|
||||
return this._contents;
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue