English (United Kingdom) Hebrew

Program Editor

The program editor is the main part of the program building - it is where you define methods. Coding the program is implemented by dragging instructions into the appropriate line in the editor area. The program editor is available when in program editing mode.



In the program editor you edit object's methods. You can edit simultaneously more than one method - the program editor contains tabs in its top part, which let the user navigate between opened methods. To open a new method in the editor, you first need to select the object in the object tree, then locate the required method, and finally press the button edit next to it. When opening a world, the program editor opens the world's main method.

To edit a method in the program editor you drag instructions - either control instructions from the bottom of the program editor, or method/function call from the details area - into the appropriate line in the editor:
  • to call a Mama standard method of a given object, drag the corresponding object or its subpart from the object tree into the editor - a cascaded menu is opened, letting you select a standard method, which will be embedded in the target line. If the embedded method has arguments, you will be prompted to select values to these arguments.
  • to call either a custom or a Mama standard method of a given object, select the corresponding object or its subpart in the object tree, then drag the required method from the details area into the editor - again, if the embedded method has arguments, you will be prompted to select values to these arguments.
  • to copy/cut/paste/duplicate/delete an instruction, right click on it and select the action from the context menu.