Skip to content

Commit edda5c4

Browse files
Reposition guide in the help menu
1 parent 884f4bb commit edda5c4

File tree

1 file changed

+23
-25
lines changed

1 file changed

+23
-25
lines changed

js/turtledefs.js

Lines changed: 23 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,13 @@ if (_THIS_IS_TURTLE_BLOCKS_) {
269269
"program",
270270
"myblocks"
271271
],
272-
["graphics", "pen", "media", "sensors", "ensemble"]
272+
[
273+
"graphics",
274+
"pen",
275+
"media",
276+
"sensors",
277+
"ensemble"
278+
]
273279
];
274280

275281
// Skip these palettes in beginner mode.
@@ -471,11 +477,19 @@ const createHelpContent = (activity) => {
471477
_("Meet Mr. Mouse!"),
472478
_("Mr Mouse is our Music Blocks conductor.") +
473479
" " +
474-
_("Mr Mouse encourages you to explore Music Blocks.") +
480+
_("Mr Mouse encourages you to explore Music Blocks.") +
475481
" " +
476-
_("Let us start our tour!"),
482+
_("Let us start our tour!"),
477483
"data:image/svg+xml;base64," +
478484
window.btoa(base64Encode(MOUSEPALETTEICON))
485+
],
486+
[
487+
_("Guide"),
488+
_("A detailed guide to Music Blocks is available."),
489+
"data:image/svg+xml;base64," +
490+
window.btoa(base64Encode(LOGO)),
491+
GUIDEURL,
492+
_("Music Blocks Guide")
479493
],
480494
[
481495
_("Play"),
@@ -695,37 +709,29 @@ const createHelpContent = (activity) => {
695709
_("Delete plugin"),
696710
_("Delete a selected plugin."),
697711
"data:image/svg+xml;base64," +
698-
window.btoa(
699-
base64Encode(PLUGINSDELETEBUTTON))
700-
712+
window.btoa(base64Encode(PLUGINSDELETEBUTTON))
701713
]);
702714
HELPCONTENT.push([
703-
_("Enable scrolling"),
715+
_("Enable horizontal scrolling"),
704716
_("You can scroll the blocks on the canvas."),
705717
"data:image/svg+xml;base64," +
706-
window.btoa(
707-
base64Encode(SCROLLUNLOCKBUTTON))
708-
718+
window.btoa(base64Encode(SCROLLUNLOCKBUTTON))
709719
]);
720+
// TODO: JavaScript Editor
710721
}
711722
// TODO: Add merge
712723
HELPCONTENT.push([
713724
_("Wrap Turtle"),
714725
_("Turn Turtle wrapping On or Off."),
715726
"data:image/svg+xml;base64," +
716-
window.btoa(
717-
base64Encode(WRAPTURTLEBUTTON))
718-
727+
window.btoa(base64Encode(WRAPTURTLEBUTTON))
719728
]);
720729
// TODO: Music Blocks: set pitch preview
721-
// TODO: toggle JS editor
722730
HELPCONTENT.push([
723731
_("Restore"),
724732
_("Restore blocks from the trash."),
725733
"data:image/svg+xml;base64," +
726-
window.btoa(
727-
base64Encode(RESTORETRASHBUTTON))
728-
734+
window.btoa(base64Encode(RESTORETRASHBUTTON))
729735
]);
730736
HELPCONTENT.push([
731737
_("Switch mode"),
@@ -785,14 +791,6 @@ const createHelpContent = (activity) => {
785791
window.btoa(base64Encode(LOGO))
786792
]);
787793
} else {
788-
HELPCONTENT.push([
789-
_("Guide"),
790-
_("A detailed guide to Music Blocks is available."),
791-
"data:image/svg+xml;base64," +
792-
window.btoa(base64Encode(LOGO)),
793-
GUIDEURL,
794-
_("Music Blocks Guide")
795-
]);
796794
HELPCONTENT.push([
797795
_("About"),
798796
_("Music Blocks is an open source collection of tools for exploring musical concepts.") +

0 commit comments

Comments
 (0)