Add a personal, configurable quest
This commit is contained in:
parent
9c42839f01
commit
7ec00a3301
21 changed files with 376 additions and 237 deletions
|
@ -10,12 +10,14 @@ import {VariableUiElement} from "./Base/VariableUIElement";
|
|||
import Combine from "./Base/Combine";
|
||||
import {SubtleButton} from "./Base/SubtleButton";
|
||||
import {State} from "../State";
|
||||
import {CustomLayout} from "../Logic/CustomLayers";
|
||||
|
||||
|
||||
export class MoreScreen extends UIElement {
|
||||
|
||||
constructor() {
|
||||
super(State.state.locationControl);
|
||||
this.ListenTo(State.state.osmConnection.userDetails);
|
||||
}
|
||||
|
||||
InnerRender(): string {
|
||||
|
@ -24,12 +26,20 @@ export class MoreScreen extends UIElement {
|
|||
const els: UIElement[] = []
|
||||
for (const k in AllKnownLayouts.allSets) {
|
||||
const layout = AllKnownLayouts.allSets[k]
|
||||
if (layout.hideFromOverview) {
|
||||
if (layout.hideFromOverview && State.state.osmConnection.userDetails.data.name !== "Pieter Vander Vennet") {
|
||||
continue
|
||||
}
|
||||
if (layout.name === State.state.layoutToUse.data.name) {
|
||||
continue;
|
||||
}
|
||||
if (layout.name === CustomLayout.NAME) {
|
||||
if (!State.state.osmConnection.userDetails.data.loggedIn) {
|
||||
continue;
|
||||
}
|
||||
if (State.state.osmConnection.userDetails.data.csCount < 100) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
const currentLocation = State.state.locationControl.data;
|
||||
const linkText =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue