From 0561cd9f893750c5de8be00fc8e44c77e017a19b Mon Sep 17 00:00:00 2001 From: tobspr Date: Mon, 25 May 2020 20:23:47 +0200 Subject: [PATCH] 1.0.4 update --- src/css/ingame_hud/dialogs.scss | 30 ++++++++++++++++++++ src/js/changelog.js | 8 ++++++ src/js/game/hud/parts/unlock_notification.js | 8 ++++++ src/js/game/upgrades.js | 2 +- translations/base-en.yaml | 7 +++++ version | 2 +- 6 files changed, 55 insertions(+), 2 deletions(-) diff --git a/src/css/ingame_hud/dialogs.scss b/src/css/ingame_hud/dialogs.scss index d2315063..868dac58 100644 --- a/src/css/ingame_hud/dialogs.scss +++ b/src/css/ingame_hud/dialogs.scss @@ -117,6 +117,10 @@ overflow-y: auto; pointer-events: all; @include S(width, 350px); + + > strong { + font-weight: bold; + } } > .buttons { @@ -143,6 +147,32 @@ background-color: $colorRedBright; color: #fff; } + + &.timedButton { + pointer-events: none; + cursor: default; + position: relative; + overflow: hidden; + &::after { + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: unset; + z-index: 5; + content: " "; + display: inline-block; + background: rgba(#fff, 0.6); + @include InlineAnimation(5s linear) { + 0% { + width: 100%; + } + 100% { + width: 0%; + } + } + } + } } } } diff --git a/src/js/changelog.js b/src/js/changelog.js index 1b5ca2ef..f2744136 100644 --- a/src/js/changelog.js +++ b/src/js/changelog.js @@ -1,4 +1,12 @@ export const CHANGELOG = [ + { + version: "1.0.4", + date: "unreleased", + 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.", + ], + }, { version: "1.0.3", date: "24.05.2020", diff --git a/src/js/game/hud/parts/unlock_notification.js b/src/js/game/hud/parts/unlock_notification.js index 612d900d..2e24ad0d 100644 --- a/src/js/game/hud/parts/unlock_notification.js +++ b/src/js/game/hud/parts/unlock_notification.js @@ -101,6 +101,14 @@ export class HUDUnlockNotification extends BaseHUDPart { requestClose() { this.root.app.adProvider.showVideoAd().then(() => { this.close(); + if (this.root.hubGoals.level === 3) { + const { showUpgrades } = this.root.hud.parts.dialogs.showInfo( + T.dialogs.upgradesIntroduction.title, + T.dialogs.upgradesIntroduction.desc, + ["showUpgrades:good:timeout"] + ); + showUpgrades.add(() => this.root.hud.parts.shop.show()); + } }); } diff --git a/src/js/game/upgrades.js b/src/js/game/upgrades.js index 4260f7f9..8864c5e2 100644 --- a/src/js/game/upgrades.js +++ b/src/js/game/upgrades.js @@ -97,7 +97,7 @@ export const UPGRADES = { painting: { tiers: [ { - required: [{ shape: "WrWrWrWr", amount: 2000 }], + required: [{ shape: "WrWrWrWr", amount: 500 }], improvement: 1, }, { diff --git a/translations/base-en.yaml b/translations/base-en.yaml index eb81a008..2e5cfd4c 100644 --- a/translations/base-en.yaml +++ b/translations/base-en.yaml @@ -89,6 +89,7 @@ dialogs: getStandalone: Get Standalone deleteGame: I know what I do viewUpdate: View Update + showUpgrades: Show Upgrades importSavegameError: title: Import Error @@ -165,6 +166,12 @@ dialogs: desc: >- Whenever you need help or are stuck, check out the 'Show hint' button in the lower left and I'll give my best to help you! + upgradesIntroduction: + title: Unlock Upgrades + desc: >- + All shapes you produce can be used to unlock upgrades - Don't destroy your old factories! + The upgrades tab can be found on the top right corner of the screen. + ingame: # This is shown in the top left corner and displays useful keybindings in # every situation diff --git a/version b/version index e4c0d46e..a6a3a43c 100644 --- a/version +++ b/version @@ -1 +1 @@ -1.0.3 \ No newline at end of file +1.0.4 \ No newline at end of file