Gandi-IDE / custom-extension

GNU Lesser General Public License v2.1
43 stars 62 forks source link

Create var-and-list.js #167

Closed qxsck closed 9 months ago

qxsck commented 9 months ago

操作原版变量与列表的拓展,部分积木与TurboWarp中的“变量与列表”拓展兼容,另外添加了一些新的积木,未来会有更多的积木加入

an extension to operate the Scratch variables and lists, some blocks are compatible with "Variable and list" extension in TurboWarp,and add some new blocks,more blocks will be add in future

qxsck commented 9 months ago

与原版的积木相比,这个拓展的变量/列表名称是输入框形式而不是下拉列表,可以更加方便的操作变量和列表

compare to the Scratch blocks, this extension variable/list name is in the form of an input box rather than a drop-down list, making it more convenient to operate variables and lists

fath11 commented 9 months ago

I think you forgot this little fellow image

qxsck commented 9 months ago

我想你忘了这个小家伙 image

sorry

qxsck commented 9 months ago

I think you forgot this little fellow image

now,is good?

fath11 commented 9 months ago

yess

qxsck commented 9 months ago

增加了“获取列表中区间的值”积木,增加了更好使用的“获取列表值”与“获取值在列表中的所有位置”积木,可以配合not.js使用

add "get value of from range in list" block,add more easy-to-use "get value of list" and "get all positions of value in the list" blocks,can used with not.js

qxsck commented 9 months ago

增加了“遍历数字区间”与“遍历列表区间”积木

add "for each" and "for each list" block

image image

qxsck commented 9 months ago

增加列表排序积木

add "sort list" blocks

image image

qxsck commented 9 months ago

增加了五个积木

包括插入值与插入列表,设置列表的内容为一个列表,把列表的区间都替换为一个值,把对象映射到列表

image

add five blocks

include insert value and list, set list to a list,replace range in the list to value,and map object to list

image

fath11 commented 9 months ago

Can you separate new blocks that are incompatible with Turbowarp, or at least make a way for people to differentiate them?

qxsck commented 9 months ago

您能否分离出与 Turbowarp 不兼容的新块,或者至少为人们提供一种区分它们的方法?

I will find time to synchronize Gandi blocks to Turbowarp version, but GM may not necessarily pass quickly,but now I will add tags that are not compatible with Turbowarp first.

qxsck commented 9 months ago

Can you separate new blocks that are incompatible with Turbowarp, or at least make a way for people to differentiate them?

https://githubfast.com/qxsck/scratch-extensions/blob/main/var-and-list.js turbowarp version

fath11 commented 9 months ago

@qxsck my favourite block image