From Test-Scratch-Wiki

Scratch 3.0 上的积木选择区。

积木选择区是个图形用户介面,位于舞台角色面板以及程式工作区之间。所有的积木是用颜色来分类的,被点击后产生的一组新积木可以被拖曳到角色或舞台的程式工作区上进行编程 。这些积木被分门别类的放置在不同的类别下,如果该类下的积木数量的显示超出了页面范围,会有额外的卷轴以便滚动页面加以选择。

使用选择区

By selecting the 「程式」页签 in the upper area of the Scratch program, the 积木选择区 will be opened. The 积木选择区 consists of every block that is built into Scratch. Some of the blocks take on certain values by default in their parameters, but others are variably controlled depending on the context of the associated sprite's current values. For instance, clicking and manually moving a sprite will adjust the x and y coordinate values within various 动作类积木 to its current position.


Note Note: Moving a sprite via blocks will not adjust the coordinate values within the blocks in the 积木选择区.

In the 积木选择区, built-in reporter variables such as 方向 and x 座标 have a checkbox present adjacently to the left of them in the palette. By clicking on this checkbox, it displays that variable on the stage, not in block form, but in the form of its output value. By unchecking the box, it will hide that variable from the stage. Even when a different sprite is selected from the 角色面板 or the stage, the variable display will remain present on the stage if it was previously checked.

Blocks can be clicked and dragged into the scripting area via any pixels on the block aside from drop-down arrows. One must click the mouse on a block and hold that click until the mouse pointer has reached the scripting area, after which it can be released to place a block in the scripting area. One does not need the entire block to be contained within the area, as the scripting area will adjust its dimensions to accommodate the block. If a block was grabbed by mistake, simply drop it anywhere outside of the scripting area to remove it.

The "Help" option when right-clicking a block in the palette.

Right-clicking on a block in the palette reveals only one option, contrary to the multiple that appear when right-clicking on a block in the script area. A "Help" option appears which can provide a good description of the block's behavior for anybody who does not understand its functions. Imagery is provided to assist with the learning process.

隐藏积木选择区

The only way to hide the 积木选择区 is to select either the 「造型」 or 「音效」页签 in the upper area of the Scratch program. This will replace the 积木选择区 and associated scripting area with either the 绘图编辑器 or 音效编辑器r. This is due to most monitors having insufficient width to accommodate all of Scratch's features in one display. The tabs provide a mechanism by which certain parts of the program can be hidden or revealed rapidly.

其它功能

Buttons found in the "More Blocks" section.

The ability to create custom blocks was introduced in Scratch 2.0. The button by which this feature is accessed can be found in the 更多积木 category in the block pane. Unlike the other panes, this one by default has no blocks in it; end user-created blocks will be present once they are made. To make a custom block, one must click the "Make a Block" button, from which a window will open where parameters can be entered. Underneath is the "Add an Extension" button for making Scratch work with an 扩充积木.

另参见

Cookies help us deliver our services. By using our services, you agree to our use of cookies.