mirror of
https://github.com/tobspr/shapez.io.git
synced 2024-10-27 20:34:29 +00:00
Minor css fixes, fix crash
This commit is contained in:
parent
8cf0ebe8cf
commit
48920137b5
@ -2,4 +2,8 @@
|
|||||||
> .container .content {
|
> .container .content {
|
||||||
@include PlainText;
|
@include PlainText;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
@include S(margin, 0, 3px);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -83,7 +83,7 @@ export const globalConfig = {
|
|||||||
|
|
||||||
debug: {
|
debug: {
|
||||||
/* dev:start */
|
/* dev:start */
|
||||||
fastGameEnter: true,
|
// fastGameEnter: true,
|
||||||
// noArtificialDelays: true,
|
// noArtificialDelays: true,
|
||||||
// disableSavegameWrite: true,
|
// disableSavegameWrite: true,
|
||||||
// showEntityBounds: true,
|
// showEntityBounds: true,
|
||||||
|
@ -167,6 +167,10 @@ export class MainMenuState extends GameState {
|
|||||||
}
|
}
|
||||||
|
|
||||||
onEnter(payload) {
|
onEnter(payload) {
|
||||||
|
this.dialogs = new HUDModalDialogs(null, this.app);
|
||||||
|
const dialogsElement = document.body.querySelector(".modalDialogParent");
|
||||||
|
this.dialogs.initializeToElement(dialogsElement);
|
||||||
|
|
||||||
if (payload.loadError) {
|
if (payload.loadError) {
|
||||||
this.dialogs.showWarning(
|
this.dialogs.showWarning(
|
||||||
T.dialogs.gameLoadFailure.title,
|
T.dialogs.gameLoadFailure.title,
|
||||||
@ -174,10 +178,6 @@ export class MainMenuState extends GameState {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.dialogs = new HUDModalDialogs(null, this.app);
|
|
||||||
const dialogsElement = document.body.querySelector(".modalDialogParent");
|
|
||||||
this.dialogs.initializeToElement(dialogsElement);
|
|
||||||
|
|
||||||
const qs = this.htmlElement.querySelector.bind(this.htmlElement);
|
const qs = this.htmlElement.querySelector.bind(this.htmlElement);
|
||||||
this.trackClicks(qs(".mainContainer .playButton"), this.onPlayButtonClicked);
|
this.trackClicks(qs(".mainContainer .playButton"), this.onPlayButtonClicked);
|
||||||
this.trackClicks(qs(".mainContainer .importButton"), this.requestImportSavegame);
|
this.trackClicks(qs(".mainContainer .importButton"), this.requestImportSavegame);
|
||||||
|
Loading…
Reference in New Issue
Block a user