En-V-toy, first Doc.

From OFSET Wiki

Jump to: navigation, search

Contents

[edit] Elements of the language:

Bricks of instruction is named: action . For example: the action which modifies co-ordinate X of the object.


Image: Action.gif


The gadget (square) to show an object is named designator .

An action starts with a designator indicating the object to which addresses the action.

This designator is followed of an icon identifying the action.

Other desigateurs can follow to indicate the arguments of the action. In the case of the action above, an argument for the number indicating coordonée.

As for E-toy, the point of exclammation makes it possible to carry out the action.

A blue designator indicates that one to use the value (contained variable value of an object).

The value can be various types according to the object or the action, certain objects do not have a value.

The objects which have a numerical value are amongst other things: numbers (a number framed available in the page numbers), of the actions having for value a number, like the action-Ci-top which represents coordinate X of an object.

Certain actions are accompanied by an effect edge, as for E-toy. For coordinate X, the effect edge is to move the object with the value of coordinate X.

One can thus send an object to the position of another. By indicating its action X like argument in the action of the first, the value of X of this object will be used for X of the first object. The two objects will have even X.

[edit] Example: To send the ellipse on the rectangle.

Image: SuitRect.gif

first action.

  • object: right-angled
  • argument: aucu

second action.

  • object: ellipse
  • argument: the first action .


The first brick is used for its value (like a E-toy brick providing a value which one places in the place of a number in another brick.)

The second brick corresponds to an action of assignment (like E-toy bricks drawn by the arrow).

The first action takes the value of coordinate X of the rectangle.

The second action uses this value as parameter and will always bring the ellipse to same X as the rectangle. The two objects remain one with the top of the other.

[edit] To group actions in a container

It is the equivalent of a script.

In the condition page, there is a brick with an empty container.

This container can contain actions, which corresponds to a script.




[edit] Activation of an action.

The actions with the icon shows make it possible to change the statute of the actions, like the statute of E-toy scripts. They are in the page condition .

They act like the orders of control of scripts of E-toys.

The colors of the watch correspond to the watch of E-toy scripts, moreover the bottom of script or of the order takes the color wanted to show if they are normal (color of origin: green for a normal action , salmon for one recipient , cyan for a brick of value) , purple for active , pink for in pause .

One can use them either like tools to immediately amend of an action in the page, in this case one shows an action and one uses the point of exclammation, or like action in a script.

The action Image: Active.gif makes it possible to activate the action indicated by its designator.

[edit] Continuation of the example

  • To leave a brick script and to put the 2 actions inside.
  • To leave a brick activates script (violet shows).
  • To click on the designator of this brick and to show the brick script (to click on the green).
  • To click on the point of exclammation of the action to activate .
    • The indicated action is coloured mauve to show that it is active. (the colors correspond to the colors of the E-toy watch.)
    • To move the rectangle, the ellipse follows.

[edit] Safeguard project without the tools

Before saving a project, it is possible to declare the mitre of the tools like mitre divided by notching Partage by all the projects.



In this case the mitre of the tools is not saved with the project, moreover if you create a new project or charge a project, this project will have also the mitre with the tools.

See and to study the project:

[edit] Visual Language of documentation.

To remain coherent with the visual apect, documentation and the teachwares must have also a visual form. This has in more the advantage of being international and independent of the language of the user.

[edit] Displacement

The simple arrow indicates a displacement or the exit of an element of the zone of distribution.

Image: SortDoc.gif

[edit] Designation

The traitillée arrow represents a designation, it shows the bond between the designator and the indicated object. In Squeak, the line is twinkling. (see below).

Image: DesigneDoc.gif

[edit] Click

Un circle of features in radii around a object represents a click on this object. (see the point of exclammation above.)


Thus the continuation of the two images above means:

- To leave brick reactivates scripts of the condition page. - To indicate script - To click on the point of exclammation to carry out brick, which will activate script.

[edit] Drank to reach.

In the missions, the goal to reach is in an ellipse.

For example to put star within the framework.




Return to V-toys

Personal tools