Library of Variables and Functions
Help Topics
The library of variables and functions contains templates of variables and functions that can be used in the fields of global and local variables and functions. In the library's basic level there are empty variables and functions. After opening a branch the variables may contain predefined examples of variables from the library on the disk (which is not enabled for functions). The group designated as [examples] is containing example variables located in a folder with the Peter application installed (the so called home folder). Normally these variables cannot be changed out of the Peter environment. Making changes is possible only by starting the "Peter with modification of example library" icon in the Start system menu. By copying them out of the group they are copied into the local library, in which these changes can be carried out.
Beside the group of normal examples still another group, the [CD-ROM] group, is available. This group makes it possible to load examples straightway from the installation CD-ROM of the Peter application or from any other CD-ROM. It is possible to create own data CD-ROMs with libraries of elements. In the ROOT folder of a data CD-ROM the FOLDERS.INI information file can be localized, informing about the structure of the data folders on the CD-ROM, in a similar way as in the case of the installation CD-ROM.
Variables and functions can be dragged from the library field to the field of variables and functions, thus creating the so called declaration of a variable or a function. As to the variables, a whole group may be dragged over. It is, however, this only branch level merely that can be dragged over, but not the nested subgroups.
Editing the variable or function contents is possible by a double click on a variable or a function, or by pressing Enter. Editing is carried out in the central (editing) field.
A new library template can be created by dragging a variable from the window of variables (a whole group cannot be dragged over). A new group can be created by dragging an element of the group from the field of basic elements.
Variables and groups can be dragged over and renamed within the library the same way as in other fields. An element name is stored in multilingual form by means of nicknames (aliases).
Image bm86.GIF function
Image bm87.GIF number
Image bm88.GIF flag
Image bm89.GIF text
Image bm90.GIF item
Image bm91.GIF sheet
Image bm92.GIF picture
Image bm93.GIF sound
Image bm94.GIF music
Image bm95.GIF sprite
- By starting sound or music editing in the field of the global or local variables by pressing the Enter key the sound or music playback is started. This feature makes it possible to easily examine a great number of sound or music samples by shifting the selection cursor by the keyboard and pressing Enter.
- By shifting the selection cursor across the sound or music entries in the field of library variables the sound and music samples are played ("Preview" function). This feature enables to easily and quickly select sound or music without the necessity of dragging them over into the program. If the "(repeat)" or "(repeated)" texts occur in the sound name, then this sound is played repeatedly (this does not hold for music). By pressing Enter the sound is played anew.
- By shifting the selection cursor across the picture entries in the field of library variables a picture preview is displayed in the central (editing) field.

Full Html Context Help of The Peter - Gemtree Software & Children Programming