Skip to content

Commit

Permalink
update costume tools
Browse files Browse the repository at this point in the history
  • Loading branch information
nighca committed Jul 2, 2024
1 parent 84e5422 commit be1c08a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ export const lookCategory: ToolCategory = {
},
{
label: { en: 'Costume', zh: '造型' },
tools: [spx.costumeName, spx.costumeIndex, spx.setCostume, spx.nextCostume, spx.prevCostume]
// index-related tools are excluded, as they are not recommended to use (animation is prefered)
tools: [spx.costumeName, spx.setCostume]
},
{
label: { en: 'Animation', zh: '动画' },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,12 +171,13 @@ export const setCostume: Tool = {
target: ToolContext.sprite,
keyword: 'setCostume',
desc: {
en: 'Set the current costume by specifying name or index',
zh: '通过指定名称或索引设置当前造型'
en: 'Set the current costume by specifying name',
zh: '通过指定名称设置当前造型'
},
// index-related usages are excluded, as they are not recommended to use (animation is prefered)
usage: {
sample: 'setCostume 0',
insertText: 'setCostume ${1:nameOrIndex}'
sample: 'setCostume "happy"',
insertText: 'setCostume ${1:name}'
}
}

Expand Down

0 comments on commit be1c08a

Please sign in to comment.