From e789a6c5ead00b248e4f33d4b9b310b275c15d43 Mon Sep 17 00:00:00 2001 From: tobspr Date: Sun, 5 Jun 2022 21:08:42 +0200 Subject: [PATCH] Fix puzzle dlc: Buildings not lockable --- src/css/ingame_hud/buildings_toolbar.scss | 10 ++++++---- src/js/core/restriction_manager.js | 4 ---- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/src/css/ingame_hud/buildings_toolbar.scss b/src/css/ingame_hud/buildings_toolbar.scss index 7c804cd5..6b34a876 100644 --- a/src/css/ingame_hud/buildings_toolbar.scss +++ b/src/css/ingame_hud/buildings_toolbar.scss @@ -53,8 +53,8 @@ display: flex; @include S(width, 40px); position: relative; - overflow: hidden; @include S(height, 40px); + .icon { color: $accentColorDark; display: flex; @@ -92,9 +92,9 @@ } &.unlocked { - @include S(border-radius, $globalBorderRadius * 0.9); - .icon { + @include S(border-radius, $globalBorderRadius * 0.9); + pointer-events: all; transition: all 0.12s ease-in-out; transition-property: background-color, transform; @@ -113,8 +113,10 @@ } } &.selected { + .icon { + background-color: rgba(lighten($colorBlueBright, 9), 0.4); + } // transform: scale(1.05); - background-color: rgba(lighten($colorBlueBright, 9), 0.4); // @include S(border-radius, $globalBorderRadius); .keybinding { diff --git a/src/js/core/restriction_manager.js b/src/js/core/restriction_manager.js index 09e1cca2..a17d6163 100644 --- a/src/js/core/restriction_manager.js +++ b/src/js/core/restriction_manager.js @@ -56,10 +56,6 @@ export class RestrictionManager extends ReadWriteProxy { * @returns {boolean} */ isLimitedVersion() { - if (G_IS_STEAM_DEMO) { - return true; - } - if (G_IS_STANDALONE) { // Standalone is never limited return false;