From 5cc6c05c71d79e4cb8fddf8f59dbf458091ec36a Mon Sep 17 00:00:00 2001 From: tobspr Date: Wed, 27 May 2020 08:00:36 +0200 Subject: [PATCH] Allow changing keybindings in the demo version --- gulp/standalone.js | 7 ++++++- src/js/changelog.js | 3 ++- src/js/core/config.js | 4 ++-- src/js/states/keybindings.js | 8 ++++---- 4 files changed, 14 insertions(+), 8 deletions(-) diff --git a/gulp/standalone.js b/gulp/standalone.js index 00d2b685..bb02b320 100644 --- a/gulp/standalone.js +++ b/gulp/standalone.js @@ -142,6 +142,11 @@ function gulptasksStandalone($, gulp, buildFolder) { return; } + fs.writeFileSync( + path.join(appPath, "LICENSE"), + fs.readFileSync(path.join(__dirname, "..", "LICENSE")) + ); + const playablePath = appPath + "_playable"; fse.copySync(appPath, playablePath); fs.writeFileSync(path.join(playablePath, "steam_appid.txt"), "1134480"); @@ -174,8 +179,8 @@ function gulptasksStandalone($, gulp, buildFolder) { "standalone.package.prod", $.sequence("standalone.prepare", [ "standalone.package.prod.win64", - // "standalone.package.prod.win32", // "standalone.package.prod.linux64", + // "standalone.package.prod.win32", // "standalone.package.prod.linux32", // "standalone.package.prod.darwin64" ]) diff --git a/src/js/changelog.js b/src/js/changelog.js index f2744136..44475e63 100644 --- a/src/js/changelog.js +++ b/src/js/changelog.js @@ -1,10 +1,11 @@ export const CHANGELOG = [ { version: "1.0.4", - date: "unreleased", + date: "26.05.2020", entries: [ "Balancing Reduce cost of first painting upgrade, and change 'Shape Processing' to 'Cutting, Rotating & Stacking'", "Tutorial Add dialog after completing level 2 to check out the upgrades tab.", + "Misc Allow changing the keybindings in the demo version", ], }, { diff --git a/src/js/core/config.js b/src/js/core/config.js index 922870d8..99770c4b 100644 --- a/src/js/core/config.js +++ b/src/js/core/config.js @@ -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 */ }, diff --git a/src/js/states/keybindings.js b/src/js/states/keybindings.js index aa6ec2d6..0f7fcf9e 100644 --- a/src/js/states/keybindings.js +++ b/src/js/states/keybindings.js @@ -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,