Skip to content

Commit

Permalink
add back removed things except for css
Browse files Browse the repository at this point in the history
  • Loading branch information
evemartin committed Apr 26, 2024
1 parent f352c87 commit c134e22
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 6 deletions.
5 changes: 4 additions & 1 deletion game/static/game/js/blockly/msg/js/en-gb.js
Original file line number Diff line number Diff line change
Expand Up @@ -433,4 +433,7 @@ Blockly.Msg["VARIABLES_HUE"] = "330";
Blockly.Msg["TEXTS_HUE"] = "160";
Blockly.Msg["PROCEDURES_HUE"] = "290";
Blockly.Msg["COLOUR_HUE"] = "20";
Blockly.Msg["VARIABLES_DYNAMIC_HUE"] = "310";
Blockly.Msg["VARIABLES_DYNAMIC_HUE"] = "310";

Blockly.Msg["MOVE_FORWARDS_TITLE"] = "move forwards but British";
Blockly.Msg["MOVE_FORWARDS_TOOLTIP"] = "Move the van forwards but British";
5 changes: 4 additions & 1 deletion game/static/game/js/blockly/msg/js/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -433,4 +433,7 @@ Blockly.Msg["VARIABLES_HUE"] = "330";
Blockly.Msg["TEXTS_HUE"] = "160";
Blockly.Msg["PROCEDURES_HUE"] = "290";
Blockly.Msg["COLOUR_HUE"] = "20";
Blockly.Msg["VARIABLES_DYNAMIC_HUE"] = "310";
Blockly.Msg["VARIABLES_DYNAMIC_HUE"] = "310";

Blockly.Msg["MOVE_FORWARDS_TITLE"] = "move forwards";
Blockly.Msg["MOVE_FORWARDS_TOOLTIP"] = "Move the van forwards";
5 changes: 4 additions & 1 deletion game/static/game/js/blockly/msg/js/fr.js
Original file line number Diff line number Diff line change
Expand Up @@ -433,4 +433,7 @@ Blockly.Msg["VARIABLES_HUE"] = "330";
Blockly.Msg["TEXTS_HUE"] = "160";
Blockly.Msg["PROCEDURES_HUE"] = "290";
Blockly.Msg["COLOUR_HUE"] = "20";
Blockly.Msg["VARIABLES_DYNAMIC_HUE"] = "310";
Blockly.Msg["VARIABLES_DYNAMIC_HUE"] = "310";

Blockly.Msg["MOVE_FORWARDS_TITLE"] = "avancer";
Blockly.Msg["MOVE_FORWARDS_TOOLTIP"] = "Faire avancer la camionnette";
4 changes: 2 additions & 2 deletions game/static/game/js/blocklyCustomBlocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function initCustomBlocksDescription() {
init: function () {
this.setColour(160);
this.appendDummyInput()
.appendField(gettext("test"))
.appendField(Blockly.Msg.MOVE_FORWARDS_TITLE)
.appendField(
new Blockly.FieldImage(
ocargo.Drawing.imageDir + "actions/forward.svg",
Expand All @@ -49,7 +49,7 @@ function initCustomBlocksDescription() {
);
this.setPreviousStatement(true, "Action");
this.setNextStatement(true, "Action");
this.setTooltip(gettext("test"));
this.setTooltip(Blockly.Msg.MOVE_FORWARDS_TOOLTIP);
},
};

Expand Down
1 change: 0 additions & 1 deletion game/templates/game/game.html
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@
<script defer type="text/javascript" src="{% static 'game/js/blockly/blocks_compressed.js' %}"></script>
<script defer type="text/javascript" src="{% static 'game/js/blockly/javascript_compressed.js' %}"></script>
<script defer type="text/javascript" src="{% static 'game/js/blockly/python_compressed.js' %}"></script>
<script defer type="text/javascript" src="{% static 'game/js/blockly/msg/js/en.js' %}"></script>
<script defer type="text/javascript" src="{% static 'game/js/mobile-detect.min.js' %}"></script>
<script defer type="text/javascript" src="{% static 'game/js/raphael.js' %}"></script>
<script defer type="text/javascript" src="{% static 'game/js/howler.js' %}"></script>
Expand Down

0 comments on commit c134e22

Please sign in to comment.