Skip to content

Commit

Permalink
fix: 1518-Remove Dee From Level 116 Popup (#1562)
Browse files Browse the repository at this point in the history
* Close Video after popup close

* Merge branch 'master' into master

* Replace var with const

* Merge branch 'master' of https://github.com/AbdelrahmanDeghedy/rapid-router

* Merge branch 'master' into master

* Merge branch 'ocadotechnology:master' into master

* Hide characters above level 80

Co-Authored-By: Florian Aucomte <[email protected]>
  • Loading branch information
AbdelrahmanDeghedy and faucomte97 authored Jan 4, 2024
1 parent cb743dd commit 74ab64d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion game/static/game/js/game.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,14 @@ ocargo.Game.prototype.onLevelChange = function() {
}

this.drawing.enablePanning()

const showMascot = BLOCKLY_ENABLED && !PYTHON_VIEW_ENABLED && LEVEL_NAME <= 80; // show mascot on Blockly-only levels that are not above 80

ocargo.Drawing.startPopup(
title,
LESSON,
message,
BLOCKLY_ENABLED && !PYTHON_VIEW_ENABLED, // show mascot on Blockly-only levels
showMascot,
[
ocargo.button.dismissButtonHtml("prev_button", gettext("Previous level")),
ocargo.button.dismissButtonHtml('play_button', gettext('Play')),
Expand Down

0 comments on commit 74ab64d

Please sign in to comment.