forked from MapComplete/MapComplete
Let it glow! widths are on a black background, various small bugfixes
This commit is contained in:
parent
4a09a7ced9
commit
538d129941
5 changed files with 46 additions and 29 deletions
|
@ -1,5 +1,4 @@
|
|||
import {UIElement} from "./UIElement";
|
||||
import AvailableBaseLayers from "../Logic/AvailableBaseLayers";
|
||||
import {DropDown} from "./Input/DropDown";
|
||||
import Translations from "./i18n/Translations";
|
||||
import {State} from "../State";
|
||||
|
@ -9,15 +8,12 @@ import {BaseLayer} from "../Logic/BaseLayer";
|
|||
export default class BackgroundSelector extends UIElement {
|
||||
|
||||
private _dropdown: UIElement;
|
||||
private readonly state: State;
|
||||
private readonly _availableLayers: UIEventSource<any>;
|
||||
private readonly _availableLayers: UIEventSource<BaseLayer[]>;
|
||||
|
||||
constructor(state: State) {
|
||||
constructor() {
|
||||
super();
|
||||
this.state = state;
|
||||
|
||||
this._availableLayers = new AvailableBaseLayers(state).availableEditorLayers;
|
||||
const self = this;
|
||||
this._availableLayers = State.state.availableBackgroundLayers;
|
||||
this._availableLayers.addCallbackAndRun(available => self.CreateDropDown(available));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue