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

@ -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"
])

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,