1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2026-03-02 03:39:21 +00:00

Allow changing keybindings in the demo version

This commit is contained in:
tobspr
2020-05-27 08:00:36 +02:00
parent 6b5e83f905
commit 5cc6c05c71
4 changed files with 14 additions and 8 deletions

View File

@@ -1,10 +1,11 @@
export const CHANGELOG = [
{
version: "1.0.4",
date: "unreleased",
date: "26.05.2020",
entries: [
"<strong>Balancing</strong> Reduce cost of first painting upgrade, and change 'Shape Processing' to 'Cutting, Rotating & Stacking'",
"<strong>Tutorial</strong> Add dialog after completing level 2 to check out the upgrades tab.",
"<strong>Misc</strong> Allow changing the keybindings in the demo version",
],
},
{

View File

@@ -94,7 +94,7 @@ export const globalConfig = {
// showChunkBorders: true,
// rewardsInstant: true,
// allBuildingsUnlocked: true,
upgradesNoCost: true,
// upgradesNoCost: true,
// disableUnlockDialog: true,
// disableLogicTicks: true,
// testClipping: true,
@@ -102,7 +102,7 @@ export const globalConfig = {
// testTranslations: true,
// enableEntityInspector: true,
// testAds: true,
disableMapOverview: true,
// disableMapOverview: true,
/* dev:end */
},

View File

@@ -82,10 +82,10 @@ export class KeybindingsState extends TextualGameState {
}
editKeybinding(id) {
if (IS_DEMO) {
this.dialogs.showFeatureRestrictionInfo(T.demo.features.customizeKeybindings);
return;
}
// if (IS_DEMO) {
// this.dialogs.showFeatureRestrictionInfo(T.demo.features.customizeKeybindings);
// return;
// }
const dialog = new Dialog({
app: this.app,