new version
This commit is contained in:
@@ -125,6 +125,7 @@ export class LevelSite extends MenuSite {
|
||||
|
||||
let continueButton = this.findBy("#continue-button");
|
||||
continueButton.addEventListener("click", () => {
|
||||
continueButton.style.opacity = 0;
|
||||
this.nextLevel();
|
||||
});
|
||||
|
||||
@@ -300,19 +301,18 @@ export class LevelSite extends MenuSite {
|
||||
try {
|
||||
const savePromise = LevelPlayed.setPlayed(level.getLevelData());
|
||||
|
||||
savePromise.then((r) => console.log("levelSaved!", r));
|
||||
// savePromise.then((r) => console.log("levelSaved!", r));
|
||||
|
||||
this.levelCounter++;
|
||||
await NativeStoragePromise.setItem("levelCounter", this.levelCounter);
|
||||
|
||||
//Todo richtiges Element aufrufen?
|
||||
this._view.classList.add('won');
|
||||
await NativeStoragePromise.remove("currentLevel");
|
||||
|
||||
let continueButton = this.findBy("#continue-button");
|
||||
continueButton.style.transition = "none";
|
||||
continueButton.style.opacity = 0;
|
||||
|
||||
//Todo richtiges Element aufrufen?
|
||||
this._view.classList.add('won');
|
||||
ViewHelper.removeAllChildren(this.coinContainer);
|
||||
let coinsPerLevel = await NativeStoragePromise.getItem("coinsPerLevel", 5);
|
||||
|
||||
|
||||
@@ -2,7 +2,6 @@ import translationGerman from '../translations/de.json';
|
||||
import translationEn from '../translations/en.json';
|
||||
import {App, Translator, DataManager, Toast} from "cordova-sites/dist/client";
|
||||
|
||||
|
||||
import "cordova-sites-user-management/dist/client/js/translationInit"
|
||||
import "cordova-sites/dist/client/js/translationInit"
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ export class Level {
|
||||
});
|
||||
|
||||
this.segmentClickedListener = () => {
|
||||
console.log("clicked")
|
||||
// console.log("clicked")
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ import {ViewHelper} from "js-helper/dist/client/ViewHelper";
|
||||
export class ParentSegment extends Segment {
|
||||
static initListener() {
|
||||
window.addEventListener("mousedown", (e) => {
|
||||
console.log("mousedown");
|
||||
// console.log("mousedown");
|
||||
ParentSegment.mouseDownTarget = e.target;
|
||||
ParentSegment.clickPosition = {x: e.pageX, y: e.pageY};
|
||||
});
|
||||
@@ -66,7 +66,7 @@ export class ParentSegment extends Segment {
|
||||
this.mouseupListener = (e) => {
|
||||
let now = new Date().getTime();
|
||||
|
||||
console.log("mouseup", ParentSegment.mouseDownTarget);
|
||||
// console.log("mouseup", ParentSegment.mouseDownTarget);
|
||||
if (ParentSegment.mouseDownTarget !== null && this.element.contains(ParentSegment.mouseDownTarget) && this.element.contains(e.target)) {
|
||||
let position = {x: e.pageX, y: e.pageY};
|
||||
e.stopPropagation();
|
||||
@@ -269,4 +269,4 @@ export class ParentSegment extends Segment {
|
||||
}
|
||||
}
|
||||
|
||||
ParentSegment.initListener();
|
||||
ParentSegment.initListener();
|
||||
|
||||
@@ -52,6 +52,10 @@ body.theme-blue{
|
||||
background: $primaryColor;
|
||||
color: $textColor;
|
||||
|
||||
label{
|
||||
color: $textColor;
|
||||
}
|
||||
|
||||
.toast .message{
|
||||
background: $secondaryColor;
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
"choose-theme-dialog-title": "Theme auswählen:",
|
||||
"install": "Installieren",
|
||||
"share-dialog": "Teilen:",
|
||||
"credits-text": "Ein großer Dank geht an Hanna, denn ohne sie sähe die App nicht so aus, wie sie aussieht. Danke für deine guten Vorschlä und Ratschläge für das Design!",
|
||||
"credits-text": "Ein großer Dank geht an Hanna, denn ohne sie sähe die App nicht so aus, wie sie aussieht. Danke für deine guten Vorschläge und Ratschläge für das Design!",
|
||||
"credits-coin-text": "Sound:<br/>Der Münz-Sound ist von der Webseite <a href = '{0}' target='_blank' rel='noopener' class = 'link'>{0}</a>. Alle Rechte für diesen Münz-Sound gehören <a target='_blank' rel='noopener' href = '{0}' class = 'link'>{0}</a>.",
|
||||
"credits-music-text": "Musik:<br/>Bright And Beautiful - GEMAfreie Musik von <a href = '{0}' target='_blank' rel='noopener' class = 'link'>{0}</a><br/>Licensed under Creative Commons: By Attribution 4.0 International (CC BY 4.0)<br/><a href = '{1}' target='_blank' rel='noopener' class = 'link'>{1}</a><br/>Angepasst (geschnitten) für diese App",
|
||||
"storage-info": "Fortschritt {0} dauerhaft gespeichert",
|
||||
|
||||
Reference in New Issue
Block a user