Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 51 additions & 1 deletion packages/scratch-gui/src/components/menu-bar/scratch-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 18 additions & 1 deletion packages/scratch-gui/src/lib/make-toolbox-xml.js
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,22 @@
`;
};

const Hack = function (isInitialSetup, isStage, targetId, colors) {
// Note: the category's secondaryColour matches up with the blocks' tertiary color, both used for border color.
return `
<category
name="${ScratchBlocks.ScratchMsgs.translate(
'CATEGORY_HACKBLOCKS',
'ハックブロック達'
)}"
toolboxitemid="Hack"
colour="${colors.colourPrimary}"
secondaryColour="${colors.colourTertiary}"
custom="PROCEDURE">
</category>
`;
};


const xmlOpen = '<xml style="display: none">';
const xmlClose = '</xml>';
Expand Down Expand Up @@ -834,7 +850,8 @@
sensingXML, gap,
operatorsXML, gap,
variablesXML, gap,
myBlocksXML
myBlocksXML, gap,
HackXML

Check failure on line 854 in packages/scratch-gui/src/lib/make-toolbox-xml.js

View workflow job for this annotation

GitHub Actions / Test / Test scratch-gui

'HackXML' is not defined
];

for (const extensionCategory of categoriesXML) {
Expand Down
Loading