Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Chase the Pizza": Clicking block "set mySprite" open Variables category in toolbox #5706

Closed
Sheila111 opened this issue Feb 16, 2023 · 5 comments · Fixed by #5718 or #5809
Closed
Assignees

Comments

@Sheila111
Copy link

Describe the bug
"Chase the Pizza": Clicking block "set mySprite" open Variables category in toolbox

Steps to reproduce the behavior

  1. Navigate to https://arcade.makecode.com/beta#
  2. Chase the Pizza---->Blocks Start Tutorial
  3. Click step4
  4. Click block "set mySprite" in tutorial

Actual behavior
Clicking block "set mySprite" open Variables category in toolbox

Expect behavior
Clicking block "set mySprite" open Sprites category in toolbox

Screenshot
1

Additional context
1.OS: Windows11
2.arcade version: 1.13.5
3.Microsoft MakeCode version: 8.6.4

@ganicke
Copy link
Collaborator

ganicke commented Feb 20, 2023

This is the dilemma of whether this is a Variables category action of a Sprites category action since the first part of the block is a set operation.

image

However, the click on the styled text should open the category where the block is found, Sprites. I'll change it to go to Sprites.

@ganicke
Copy link
Collaborator

ganicke commented Feb 20, 2023

@jwunderl - would it be crazy to extend the style syntax to

``||variables:sprites:set mySprite||``

for the case where you want to color the background to the "Variables" category but also want the "Sprites" category to open when clicked?

@jwunderl
Copy link
Member

jwunderl commented Feb 20, 2023

I added support for that a while back, I believe it was ||variables(sprites):set mysprite to|| but youd have to double check as I'm not at my computer at the moment https://makecode.com/writing-docs/snippets#Namespace-coloring

@ganicke
Copy link
Collaborator

ganicke commented Feb 20, 2023

Ah, right. I just remember the noclick option. Thanks, I'll use that!

@Sheila111
Copy link
Author

Same issue for tutorial "Walking Hero".
5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants