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

Fix doc for setHeading #1291

Merged
merged 1 commit into from
Feb 6, 2025
Merged
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
2 changes: 1 addition & 1 deletion spx-backend/internal/copilot/spx_defs.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ onTurning,onTurning info => {},"Listen to current sprite turning (heading change
say,say word,"Make the sprite say some word, e.g., `say ""Hello!""`"
say,"say word, seconds","Make the sprite say some word with duration, e.g., `say ""Hello!"", 2`"
setCostume,setCostume name,"Set the current costume by specifying name, e.g., `setCostume ""happy""`"
setHeading,setHeading direction,"Set heading to given value, e.g., `setHeading Up`"
setHeading,setHeading direction,"Set heading to given value, e.g., `setHeading 90`"
setRotationStyle,setRotationStyle style,"Set the rotation style of the sprite, e.g., `setRotationStyle LeftRight`"
setSize,setSize size,"Set the size of current sprite, e.g., `setSize 2`"
setXYpos,"setXYpos x, y","Set the sprite's position, e.g., `setXYpos 100, 100`"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -889,8 +889,8 @@ export const setHeading: DefinitionDocumentationItem = {
insertText: 'setHeading ${1:direction}',
overview: 'setHeading direction',
detail: makeBasicMarkdownString({
en: 'Set heading to given value, e.g., `setHeading Up`',
zh: '设置朝向为给定值,如:`setHeading Up`'
en: 'Set heading to given value, e.g., `setHeading 90`',
zh: '设置朝向为给定值,如:`setHeading 90`'
})
}

Expand Down
Loading