Changeset 436


Ignore:
Timestamp:
10/18/15 17:51:44 (8 years ago)
Author:
sz
Message:
  • added the new "artificial life" application objects (GUI, GUIElement, Shader, Material, Sharing, Rectangle, Matrix, Obj3D)
  • added "artificial life" specific properties in GLDisplay object
  • minor updates/corrections everywhere
File:
1 edited

Legend:

Unmodified
Added
Removed
  • java/FramclipsePlugin/src/main/resources/framscript.xml

    r417 r436  
    9090        </type>
    9191        <type name="CheckpointEvent" context="Global context">
    92 <description><![CDATA[CheckpointEvent]]></description>
     92<description><![CDATA[Used in onSlaveCheckpoint() which is called when a Slave Simulator checkpoint is reached.]]></description>
    9393                <element name="index" type="integer" flags="1"/>
    9494                <element name="slave" type="Simulator" flags="1"/>
     
    510510<arguments/></element>
    511511                <element name="toString" type="string" flags="257"/>
     512                <element name="clone" function="true" type="Dictionary" flags="256">
     513                        <description><![CDATA[The resulting clone is a shallow copy (contains the same object references as the original). A deep copy can be obtained through serialization: String.deserialize(String.serialize(object));]]></description>
     514<arguments/></element>
    512515        </type>
    513516        <type name="File" context="Global context">
     
    620623                </element>
    621624                <element name="close" function="true" type="string" flags="32">
    622                         <description><![CDATA[returns file contents if it has been buffered]]></description>
     625                        <description><![CDATA[Returns file contents if it has been buffered.]]></description>
    623626<arguments/></element>
    624627                <element name="exists" function="true" type="integer" min="0" max="1" flags="32">
    625628                        <description><![CDATA[Sample:
    626 File.exists("default.sim") -> return 0 or 1]]></description>
     629File.exists("walking.gen") -> returns 0 or 1.]]></description>
    627630<arguments/></element>
    628631                <element name="pathseparator" type="string" flags="33"/>
     
    15071510                        <description><![CDATA[Genes as a string of characters]]></description>
    15081511                </element>
    1509                 <element name="isValid" type="integer" min="0" max="1" deprecated="true" flags="8449"/>
    1510                 <element name="is_valid" type="integer" min="-1" max="1" default="-1" flags="256"/>
     1512                <element name="isValid" type="integer" min="0" max="1" deprecated="true" flags="8449">
     1513                        <description><![CDATA[Use 'is_valid' instead of 'isValid'.]]></description>
     1514                </element>
     1515                <element name="is_valid" type="integer" min="-1" max="1" default="-1" flags="256">
     1516                        <description><![CDATA[0 = invalid genotype
     15171 = valid genotype
     1518-1 = validity is not known. This is a transient state. The value of "is_valid" will never be -1 when read. It is safe to treat is_valid as boolean in statements like "if (g.is_valid) ...". Setting "is_valid=-1" will make it 0 or 1 again. This third state (-1) is only needed for loading Genotype objects from files where the "is_valid" field might not be present.]]></description>
     1519                </element>
    15111520                <element name="getConverted" function="true" type="Geno" flags="256">
    15121521                        <arguments>
     
    15931602                <element name="user3" type="untyped"/>
    15941603                <element name="mutate" function="true" type="void"><arguments/></element>
    1595                 <element name="isValid" type="integer" min="0" max="1" deprecated="true" flags="8227"/>
    1596                 <element name="is_valid" type="integer" min="-1" max="1" default="-1" flags="32"/>
     1604                <element name="isValid" type="integer" min="0" max="1" deprecated="true" flags="8227">
     1605                        <description><![CDATA[Use 'is_valid' instead of 'isValid'.]]></description>
     1606                </element>
     1607                <element name="is_valid" type="integer" min="-1" max="1" default="-1" flags="32">
     1608                        <description><![CDATA[0 = invalid genotype
     16091 = valid genotype
     1610-1 = validity is not known. This is a transient state. The value of "is_valid" will never be -1 when read. It is safe to treat is_valid as boolean in statements like "if (g.is_valid) ...". Setting "is_valid=-1" will make it 0 or 1 again. This third state (-1) is only needed for loading Genotype objects from files where the "is_valid" field might not be present.]]></description>
     1611                </element>
    15971612                <element name="getNormalized" function="true" type="float" flags="35">
    15981613                        <arguments>
     
    22362251                </element>
    22372252                <element name="glyph" type="string">
    2238                         <description><![CDATA[<html>The neuron icon for use in NN diagrams, encoded as a coma-separated sequence of integer numbers.<ul>
     2253                        <description><![CDATA[<html>The neuron icon for use in NN diagrams, encoded as a comma-separated sequence of integer numbers.<ul>
    22392254<li>N = the total number of all numbers following this one
    22402255<li>NS = the number of line sequences<br>
     
    32303245                </element>
    32313246                <element name="load" function="true" type="void" flags="32">
    3232                         <description><![CDATA[Load experiment file (calls onExpLoad() in the current experiment definition). This function is intended to replace the simulator state; the old state is cleared by automatically calling "resetToDefaults()" (only if "resetonexpdef" is enabled). Use "import" if you don't want to loose the old simulator state.]]></description>
     3247                        <description><![CDATA[Load experiment file (calls onExpLoad() in the current experiment definition). This function is intended to replace the simulator state; the old state is cleared by automatically calling "resetToDefaults()". Use "import" if you don't want to loose the old simulator state.]]></description>
    32333248                        <arguments>
    32343249                                <argument name="filename" type="string"/>
     
    33133328<arguments/></element>
    33143329                <element name="loadexpdef" function="true" type="void"><arguments/></element>
    3315                 <element name="usercode" type="string" min="1" flags="2048">
    3316                         <description><![CDATA[This script overrides the experiment definition]]></description>
     3330                <element name="usercode" type="string" min="1">
     3331                        <description><![CDATA[You can override any function from the original experiment definition script. Use the same function names and provide alternative implementations.
     3332Example:
     3333
     3334function onBorn(cr)
     3335{
     3336  Simulator.print("A creature is born: "+cr.name);
     3337  super_onBorn(cr); //calls the original implementation
     3338}]]></description>
    33173339                </element>
    33183340                <element name="autosaveperiod" type="integer" min="0" max="100000">
     
    33223344Slave simulators (in multithreaded experiments) ignore this setting and never create autosave files.]]></description>
    33233345                </element>
    3324                 <element name="overwrite" type="integer" min="0" max="1">
    3325                         <description><![CDATA[Overwite existing files or create their backups]]></description>
     3346                <element name="overwrite" type="integer" min="0" max="1" default="0">
     3347                        <description><![CDATA[Lets you choose what to do when a file is created with the same name as an already existing file: overwite the existing file or create its backup?]]></description>
    33263348                </element>
    33273349                <element name="filecomm" type="integer" min="0" max="1" default="1">
     
    33493371                        <description><![CDATA[Clears groups and loads default values for simulator parameters, then calls onExpDefLoad() of the current experiment definition.]]></description>
    33503372<arguments/></element>
    3351                 <element name="resetonexpdef" type="integer" min="0" max="1" default="1">
    3352                         <description><![CDATA[If turned on: when a new experiment definition is selected, default values are loaded for most of the simulator parameters, and gene pools and populations are cleared.
    3353 If turned off: parameters from previous experiment definition will remain (dangerous).]]></description>
    3354                 </element>
    33553373                <element name="new" function="true" type="Simulator" flags="32"><arguments/></element>
    33563374                <element name="slaves" type="SlaveSimulators" flags="35"/>
     
    33963414                </element>
    33973415                <element name="wrldwat" type="float" min="-20" max="200" default="-1.0"/>
    3398                 <element name="wrldbnd" type="integer" min="0" max="2" default="1">
     3416                <element name="wrldbnd" type="integer" min="0" max="2" default="0">
    33993417                        <description><![CDATA[Teleporting a creature that is outside of the world area is attempted every 'performance sampling period' steps. Teleport succeeds only when the target location in the world is empty (there is no collision).]]></description>
    34003418                </element>
     
    43844402                </element>
    43854403                <element name="load" function="true" type="void" flags="32">
    4386                         <description><![CDATA[Load experiment file (calls onExpLoad() in the current experiment definition). This function is intended to replace the simulator state; the old state is cleared by automatically calling "resetToDefaults()" (only if "resetonexpdef" is enabled). Use "import" if you don't want to loose the old simulator state.]]></description>
     4404                        <description><![CDATA[Load experiment file (calls onExpLoad() in the current experiment definition). This function is intended to replace the simulator state; the old state is cleared by automatically calling "resetToDefaults()". Use "import" if you don't want to loose the old simulator state.]]></description>
    43874405                        <arguments>
    43884406                                <argument name="filename" type="string"/>
     
    44674485<arguments/></element>
    44684486                <element name="loadexpdef" function="true" type="void"><arguments/></element>
    4469                 <element name="usercode" type="string" min="1" flags="2048">
    4470                         <description><![CDATA[This script overrides the experiment definition]]></description>
     4487                <element name="usercode" type="string" min="1">
     4488                        <description><![CDATA[You can override any function from the original experiment definition script. Use the same function names and provide alternative implementations.
     4489Example:
     4490
     4491function onBorn(cr)
     4492{
     4493  Simulator.print("A creature is born: "+cr.name);
     4494  super_onBorn(cr); //calls the original implementation
     4495}]]></description>
    44714496                </element>
    44724497                <element name="autosaveperiod" type="integer" min="0" max="100000">
     
    44764501Slave simulators (in multithreaded experiments) ignore this setting and never create autosave files.]]></description>
    44774502                </element>
    4478                 <element name="overwrite" type="integer" min="0" max="1">
    4479                         <description><![CDATA[Overwite existing files or create their backups]]></description>
     4503                <element name="overwrite" type="integer" min="0" max="1" default="0">
     4504                        <description><![CDATA[Lets you choose what to do when a file is created with the same name as an already existing file: overwite the existing file or create its backup?]]></description>
    44804505                </element>
    44814506                <element name="filecomm" type="integer" min="0" max="1" default="1">
     
    45034528                        <description><![CDATA[Clears groups and loads default values for simulator parameters, then calls onExpDefLoad() of the current experiment definition.]]></description>
    45044529<arguments/></element>
    4505                 <element name="resetonexpdef" type="integer" min="0" max="1" default="1">
    4506                         <description><![CDATA[If turned on: when a new experiment definition is selected, default values are loaded for most of the simulator parameters, and gene pools and populations are cleared.
    4507 If turned off: parameters from previous experiment definition will remain (dangerous).]]></description>
    4508                 </element>
    45094530                <element name="new" function="true" type="Simulator" flags="32"><arguments/></element>
    45104531                <element name="slaves" type="SlaveSimulators" flags="35"/>
     
    47054726        </type>
    47064727        <type name="StopEvent" context="Global context">
    4707 <description><![CDATA[StopEvent]]></description>
     4728<description><![CDATA[Used in onSlaveStop() which is called when a Slave Simulator is stopped.]]></description>
    47084729                <element name="index" type="integer" flags="1"/>
    47094730                <element name="slave" type="Simulator" flags="1"/>
     
    47124733<description><![CDATA[String functions library.]]></description>
    47134734                <element name="len" function="true" type="integer">
    4714                         <description><![CDATA[String.len("abcdef") -> 6]]></description>
     4735                        <description><![CDATA[String.len("abcdef") == 6]]></description>
    47154736                        <arguments>
    47164737                                <argument type="string"/>
     
    47184739                </element>
    47194740                <element name="replace" function="true" type="string">
    4720                         <description><![CDATA[String.replace("abcdef","cd","X") -> "abXef"]]></description>
     4741                        <description><![CDATA[String.replace("abcdef","cd","X") == "abXef"]]></description>
    47214742                        <arguments>
    47224743                                <argument name="input_string" type="string"/>
     
    47274748                <element name="split" function="true" type="Vector">
    47284749                        <description><![CDATA[return the vector of substrings, cut at separator positions.
    4729 subsequent separators give empty words: split("word1---word2-word3","-") -> ["word1","","","word2","word3"]]]></description>
     4750subsequent separators give empty words:
     4751split("word1---word2-word3","-") returns ["word1","","","word2","word3"]]]></description>
    47304752                        <arguments>
    47314753                                <argument type="string"/>
     
    47354757                <element name="split2" function="true" type="Vector">
    47364758                        <description><![CDATA[return the vector of substrings, cut at separator positions.
    4737 subsequent separators are treated as one: split2("word1---word2-word3","-") -> ["word1","word2","word3"]]]></description>
     4759subsequent separators are treated as one:
     4760split2("word1---word2-word3","-") returns ["word1","word2","word3"]]]></description>
    47384761                        <arguments>
    47394762                                <argument type="string"/>
     
    47424765                </element>
    47434766                <element name="indexOf" function="true" type="integer">
    4744                         <description><![CDATA[String.indexOf("abcdef","cd") -> 2
    4745 String.indexOf("abcdef","dc") -> -1
     4767                        <description><![CDATA[String.indexOf("abcdef","cd") == 2
     4768String.indexOf("abcdef","dc") == -1
    47464769]]></description>
    47474770                        <arguments>
     
    47514774                </element>
    47524775                <element name="indexOfStart" function="true" type="integer">
    4753                         <description><![CDATA[String.indexOfStart("abcdef","cd",1) -> 2
    4754 String.indexOfStart("abcdef","cd",3) -> -1
     4776                        <description><![CDATA[String.indexOfStart("abcdef","cd",1) == 2
     4777String.indexOfStart("abcdef","cd",3) == -1
    47554778]]></description>
    47564779                        <arguments>
     
    47614784                </element>
    47624785                <element name="substr" function="true" type="string">
    4763                         <description><![CDATA[String.substr("abcdef",3,2) -> ="de"]]></description>
     4786                        <description><![CDATA[String.substr("abcdef",3,2) == "de"]]></description>
    47644787                        <arguments>
    47654788                                <argument type="string"/>
     
    47694792                </element>
    47704793                <element name="substr" function="true" type="string">
    4771                         <description><![CDATA[String.substr("abcdef",3) -> ="def"]]></description>
     4794                        <description><![CDATA[String.substr("abcdef",3) == "def"]]></description>
    47724795                        <arguments>
    47734796                                <argument type="string"/>
     
    47764799                </element>
    47774800                <element name="left" function="true" type="string">
    4778                         <description><![CDATA[String.left("abcdef",3) -> ="abc"]]></description>
     4801                        <description><![CDATA[String.left("abcdef",3) == "abc"]]></description>
    47794802                        <arguments>
    47804803                                <argument type="string"/>
     
    47834806                </element>
    47844807                <element name="right" function="true" type="string">
    4785                         <description><![CDATA[String.right("abcdef",3) -> ="def"]]></description>
     4808                        <description><![CDATA[String.right("abcdef",3) == "def"]]></description>
    47864809                        <arguments>
    47874810                                <argument type="string"/>
     
    48224845
    48234846Examples:
    4824  String.format("|%07.2f|",Math.pi) -> ="|0003.14|"
    4825  String.format("|%04x|",255) -> ="|00ff|"
    4826  String.format("|%7s|","text") -> ="|   text|"
    4827  String.format("|%-7d|",12345) -> ="|12345  |"
    4828  String.format("%t",Math.time) -> ="Sun Apr 29 19:22:02 2007"
    4829  String.format("%T",Math.time) -> ="2007-05-29 19:22:02"
    4830  String.format("x=%d%%",100) -> ="100%"]]></description>
     4847 String.format("|%07.2f|",Math.pi) == "|0003.14|"
     4848 String.format("|%04x|",255) == "|00ff|"
     4849 String.format("|%7s|","text") == "|   text|"
     4850 String.format("|%-7d|",12345) == "|12345  |"
     4851 String.format("%t",Math.time) == "Sun Apr 29 19:22:02 2007"
     4852 String.format("%T",Math.time) == "2007-05-29 19:22:02"
     4853 String.format("x=%d%%",100) == "100%"]]></description>
    48314854                        <arguments>
    48324855                                <argument name="format_string" type="string"/>
     
    48494872                        <description><![CDATA[Returns an integer, a floating point, or null if the string cannot be parsed as a number.
    48504873The 'typeof' operator can be used to distinguish between an integer and a floating point value:
    4851 typeof String.parseNumber("qwerty") is 0
    4852 typeof String.parseNumber("1234") is 1
    4853 typeof String.parseNumber("3.14") is 2.]]></description>
     4874typeof(String.parseNumber("qwerty")) == "null"
     4875typeof(String.parseNumber("1234")) == "int"
     4876typeof(String.parseNumber("3.14")) == "float"]]></description>
    48544877                        <arguments>
    48554878                                <argument type="string"/>
     
    49754998                </element>
    49764999                <element name="iterator" type="Object" flags="257"/>
     5000                <element name="clone" function="true" type="Vector" flags="256">
     5001                        <description><![CDATA[The resulting clone is a shallow copy (contains the same object references as the original). A deep copy can be obtained through serialization: String.deserialize(String.serialize(object));]]></description>
     5002<arguments/></element>
    49775003        </type>
    49785004        <type name="World" context="Global context">
     
    49935019                </element>
    49945020                <element name="wrldwat" type="float" min="-20" max="200" default="-1.0"/>
    4995                 <element name="wrldbnd" type="integer" min="0" max="2" default="1">
     5021                <element name="wrldbnd" type="integer" min="0" max="2" default="0">
    49965022                        <description><![CDATA[Teleporting a creature that is outside of the world area is attempted every 'performance sampling period' steps. Teleport succeeds only when the target location in the world is empty (there is no collision).]]></description>
    49975023                </element>
     
    53895415                <element name="user3" type="untyped"/>
    53905416                <element name="mutate" function="true" type="void"><arguments/></element>
    5391                 <element name="isValid" type="integer" min="0" max="1" deprecated="true" flags="8227"/>
    5392                 <element name="is_valid" type="integer" min="-1" max="1" default="-1" flags="32"/>
     5417                <element name="isValid" type="integer" min="0" max="1" deprecated="true" flags="8227">
     5418                        <description><![CDATA[Use 'is_valid' instead of 'isValid'.]]></description>
     5419                </element>
     5420                <element name="is_valid" type="integer" min="-1" max="1" default="-1" flags="32">
     5421                        <description><![CDATA[0 = invalid genotype
     54221 = valid genotype
     5423-1 = validity is not known. This is a transient state. The value of "is_valid" will never be -1 when read. It is safe to treat is_valid as boolean in statements like "if (g.is_valid) ...". Setting "is_valid=-1" will make it 0 or 1 again. This third state (-1) is only needed for loading Genotype objects from files where the "is_valid" field might not be present.]]></description>
     5424                </element>
    53935425                <element name="getNormalized" function="true" type="float" flags="35">
    53945426                        <arguments>
     
    59916023                        <description><![CDATA[]]></description>
    59926024                </element>
     6025                <element name="worldbgcolor" type="integer" min="0" max="16777215" default="16764040" flags="192">
     6026                        <description><![CDATA[]]></description>
     6027                </element>
     6028                <element name="hideworld" type="integer" min="0" max="1" default="0" flags="192">
     6029                        <description><![CDATA[Can be useful for screenshots]]></description>
     6030                </element>
    59936031                <element name="modelpan" type="integer" min="0" max="3" default="1" flags="192">
    59946032                        <description><![CDATA[]]></description>
     
    60616099                        <description><![CDATA[]]></description>
    60626100                </element>
     6101                <element name="worldbgcolor" type="integer" min="0" max="16777215" default="16764040" flags="192">
     6102                        <description><![CDATA[]]></description>
     6103                </element>
     6104                <element name="hideworld" type="integer" min="0" max="1" default="0" flags="192">
     6105                        <description><![CDATA[Can be useful for screenshots]]></description>
     6106                </element>
    60636107                <element name="modelpan" type="integer" min="0" max="3" default="1" flags="192">
    60646108                        <description><![CDATA[]]></description>
     
    61056149                </element>
    61066150                <element name="wrldwat" type="float" min="-20" max="200" default="-1.0"/>
    6107                 <element name="wrldbnd" type="integer" min="0" max="2" default="1">
     6151                <element name="wrldbnd" type="integer" min="0" max="2" default="0">
    61086152                        <description><![CDATA[Teleporting a creature that is outside of the world area is attempted every 'performance sampling period' steps. Teleport succeeds only when the target location in the world is empty (there is no collision).]]></description>
    61096153                </element>
     
    63486392                <element name="active" type="integer" min="0" max="1" flags="1"/>
    63496393                <element name="banner" type="string"/>
    6350                 <element name="user_interaction" type="integer" min="0" max="1" default="1">
    6351                         <description><![CDATA[Bit field:
    6352 1 - menu access
    6353 ]]></description>
    6354                 </element>
    63556394                <element name="minfps" type="integer" min="1" max="100" default="5"/>
    63566395                <element name="maxfps" type="integer" min="1" max="100" default="30"/>
     
    63816420                <element name="newCreatureCharts" function="true"/>
    63826421                <element name="newSimStatsCharts" function="true"/>
     6422                <element name="user_interaction" type="integer" min="0" max="31" default="31">
     6423                        <description><![CDATA[Bit field:
     64241 - menu access
     64252 - rotate camera
     64264 - use manupulator
     64278 - select creatures
     642816 - change ShowManager options in menu (including switching shows)
     6429Bits 2-16 are not implemented in the old Framsticks Theater application.]]></description>
     6430                </element>
     6431                <element name="world_visibility" type="integer" min="0" max="7" default="7">
     6432                        <description><![CDATA[Bit field:
     64331 - background/panorama
     64342 - environment
     64354 - creatures
     6436Not implemented in the old Framsticks Theater application.]]></description>
     6437                </element>
     6438                <element name="menu_visible" type="integer" min="0" max="1">
     6439                        <description><![CDATA[Not implemented in the old Framsticks Theater application.]]></description>
     6440                </element>
     6441                <element name="menu_state" type="string">
     6442                        <description><![CDATA[Not implemented in the old Framsticks Theater application.]]></description>
     6443                </element>
     6444                <element name="back_action" type="string">
     6445                        <description><![CDATA[Not implemented in the old Framsticks Theater application.]]></description>
     6446                </element>
     6447                <element name="skybox" type="string">
     6448                        <description><![CDATA[Traditionally, all visualization aspects belonged to the *.style file, which is not yet implemented in mobi version. But actually, changing some (or even all) aspects of the world directly in the show might be highly desirable in many "interactive" scripts. So this is the forerunner.
     6449Skybox name can be a list of 6 cube face textures (separated by slash), single name with _ placeholder (will be replaced by 1-6 for 6 cube faces) or a regular name (the same texture on all 6 faces).
     6450Not implemented in the old Framsticks Theater application.]]></description>
     6451                </element>
     6452                <element name="bgcolor" type="integer">
     6453                        <description><![CDATA[Not implemented in the old Framsticks Theater application.]]></description>
     6454                </element>
     6455                <element name="world3d" type="Obj3D" flags="1">
     6456                        <description><![CDATA[Not implemented in the old Framsticks Theater application.]]></description>
     6457                </element>
     6458                <element name="project3D" function="true" type="XYZ">
     6459                        <description><![CDATA[Returns 2D position of the 3D point in world or modelviewer coordinates, 'object' can be Obj3D or GUIElement/Model
     6460Not implemented in the old Framsticks Theater application.]]></description>
     6461                        <arguments>
     6462                                <argument name="object" type="untyped"/>
     6463                                <argument name="point" type="XYZ"/>
     6464                        </arguments>
     6465                </element>
     6466        </type>
     6467        <type name="GUI" context="Command line interface">
     6468<description><![CDATA[Manage GUI elements]]></description>
     6469                <element name="newLabel" function="true" type="GUIElement">
     6470                        <arguments>
     6471                                <argument name="name" type="string"/>
     6472                                <argument name="text" type="string"/>
     6473                        </arguments>
     6474                </element>
     6475                <element name="newButton" function="true" type="GUIElement">
     6476                        <arguments>
     6477                                <argument name="name" type="string"/>
     6478                                <argument name="text" type="string"/>
     6479                        </arguments>
     6480                </element>
     6481                <element name="newImage" function="true" type="GUIElement">
     6482                        <arguments>
     6483                                <argument name="name" type="string"/>
     6484                                <argument name="filename" type="string"/>
     6485                        </arguments>
     6486                </element>
     6487                <element name="newFrame" function="true" type="GUIElement">
     6488                        <arguments>
     6489                                <argument name="name" type="string"/>
     6490                        </arguments>
     6491                </element>
     6492                <element name="newModel" function="true" type="GUIElement">
     6493                        <arguments>
     6494                                <argument name="name" type="string"/>
     6495                                <argument name="genotype" type="string"/>
     6496                        </arguments>
     6497                </element>
     6498                <element name="newTextview" function="true" type="GUIElement">
     6499                        <arguments>
     6500                                <argument name="name" type="string"/>
     6501                                <argument name="text" type="string"/>
     6502                        </arguments>
     6503                </element>
     6504                <element name="newList" function="true" type="GUIElement">
     6505                        <arguments>
     6506                                <argument name="name" type="string"/>
     6507                        </arguments>
     6508                </element>
     6509                <element name="newDrawing" function="true" type="GUIElement">
     6510                        <arguments>
     6511                                <argument name="name" type="string"/>
     6512                        </arguments>
     6513                </element>
     6514                <element name="newBubble" function="true" type="GUIElement">
     6515                        <arguments>
     6516                                <argument name="name" type="string"/>
     6517                                <argument name="text" type="string"/>
     6518                        </arguments>
     6519                </element>
     6520                <element name="newSlider" function="true" type="GUIElement">
     6521                        <arguments>
     6522                                <argument name="name" type="string"/>
     6523                                <argument name="value" type="integer"/>
     6524                                <argument name="min" type="integer"/>
     6525                                <argument name="max" type="integer"/>
     6526                        </arguments>
     6527                </element>
     6528                <element name="newGroup" function="true" type="GUIElement">
     6529                        <arguments>
     6530                                <argument name="name" type="string"/>
     6531                        </arguments>
     6532                </element>
     6533                <element name="newTextField" function="true" type="GUIElement">
     6534                        <arguments>
     6535                                <argument name="name" type="string"/>
     6536                                <argument name="text" type="string"/>
     6537                        </arguments>
     6538                </element>
     6539                <element name="get" function="true" type="GUIElement">
     6540                        <arguments>
     6541                                <argument name="name" type="string"/>
     6542                        </arguments>
     6543                </element>
     6544                <element name="removeElement" function="true" type="void">
     6545                        <arguments>
     6546                                <argument name="object or name" type="untyped"/>
     6547                        </arguments>
     6548                </element>
     6549                <element name="removeAll" function="true" type="void"><arguments/></element>
     6550                <element name="fontHeight" function="true" type="void">
     6551                        <arguments>
     6552                                <argument name="font id" type="integer"/>
     6553                        </arguments>
     6554                </element>
     6555                <element name="clipboard" type="string"/>
     6556                <element name="setTimeout" function="true" type="void">
     6557                        <description><![CDATA[Events can be rescheduled by reusing identifiers. Cancel the event by setting its function to null.]]></description>
     6558                        <arguments>
     6559                                <argument name="identifier" type="string"/>
     6560                                <argument name="timeout" type="float"/>
     6561                                <argument name="function" type="JumpTarget"/>
     6562                        </arguments>
     6563                </element>
     6564                <element name="messageBox" function="true" type="void">
     6565                        <arguments>
     6566                                <argument name="title" type="string"/>
     6567                                <argument name="message" type="string"/>
     6568                        </arguments>
     6569                </element>
     6570                <element name="messageBox4" function="true" type="void">
     6571                        <arguments>
     6572                                <argument name="title" type="string"/>
     6573                                <argument name="message" type="string"/>
     6574                                <argument name="buttons" type="Vector"/>
     6575                                <argument name="function" type="JumpTarget"/>
     6576                        </arguments>
     6577                </element>
     6578                <element name="playSound" function="true" type="void">
     6579                        <arguments>
     6580                                <argument name="name" type="string"/>
     6581                        </arguments>
     6582                </element>
     6583                <element name="KEY_BACK" type="integer" flags="1"/>
     6584                <element name="KEY_MENU" type="integer" flags="1"/>
     6585                <element name="KEY_SEARCH" type="integer" flags="1"/>
     6586                <element name="SHARING_HTML" type="string" flags="1"/>
     6587                <element name="top_left" type="Element" flags="1"/>
     6588                <element name="top_center" type="Element" flags="1"/>
     6589                <element name="top_right" type="Element" flags="1"/>
     6590                <element name="bottom_left" type="Element" flags="1"/>
     6591                <element name="bottom_center" type="Element" flags="1"/>
     6592                <element name="bottom_right" type="Element" flags="1"/>
     6593        </type>
     6594        <type name="GUIElement" context="Command line interface">
     6595<description><![CDATA[GUI element]]></description>
     6596                <element name="name" type="string"/>
     6597                <element name="text" type="string"/>
     6598                <element name="image" type="untyped"/>
     6599                <element name="bgcolor" type="integer"/>
     6600                <element name="fgcolor" type="integer"/>
     6601                <element name="align" type="integer">
     6602                        <description><![CDATA[labels: -1/0/1 means left/center/right, buttons and lists: 0/1 means horizontal/vertical]]></description>
     6603                </element>
     6604                <element name="valign" type="integer">
     6605                        <description><![CDATA[-1/0/1 means top/center/bottom]]></description>
     6606                </element>
     6607                <element name="x" type="float"/>
     6608                <element name="y" type="float"/>
     6609                <element name="width" type="float"/>
     6610                <element name="height" type="float"/>
     6611                <element name="tooltip" type="string"/>
     6612                <element name="rowheight" type="float"/>
     6613                <element name="addItem" function="true" type="integer">
     6614                        <arguments>
     6615                                <argument name="label" type="string"/>
     6616                                <argument name="image" type="string"/>
     6617                        </arguments>
     6618                </element>
     6619                <element name="insertItem" function="true" type="integer">
     6620                        <arguments>
     6621                                <argument name="position" type="integer"/>
     6622                                <argument name="label" type="string"/>
     6623                                <argument name="image" type="string"/>
     6624                        </arguments>
     6625                </element>
     6626                <element name="getItemLabel" function="true" type="string">
     6627                        <arguments>
     6628                                <argument name="index" type="integer"/>
     6629                        </arguments>
     6630                </element>
     6631                <element name="getItemImage" function="true" type="string">
     6632                        <arguments>
     6633                                <argument name="index" type="integer"/>
     6634                        </arguments>
     6635                </element>
     6636                <element name="setItemLabel" function="true" type="void">
     6637                        <arguments>
     6638                                <argument name="index" type="integer"/>
     6639                                <argument name="label" type="string"/>
     6640                        </arguments>
     6641                </element>
     6642                <element name="setItemImage" function="true" type="void">
     6643                        <arguments>
     6644                                <argument name="index" type="integer"/>
     6645                                <argument name="image" type="string"/>
     6646                        </arguments>
     6647                </element>
     6648                <element name="removeItem" function="true" type="void">
     6649                        <arguments>
     6650                                <argument name="index" type="integer"/>
     6651                        </arguments>
     6652                </element>
     6653                <element name="removeAllItems" function="true" type="void"><arguments/></element>
     6654                <element name="itemcount" type="integer" flags="1"/>
     6655                <element name="rect" type="Rectangle"/>
     6656                <element name="absoluteRect" type="Rectangle"/>
     6657                <element name="setRect" function="true" type="void">
     6658                        <arguments>
     6659                                <argument name="x" type="float"/>
     6660                                <argument name="y" type="float"/>
     6661                                <argument name="width" type="float"/>
     6662                                <argument name="height" type="float"/>
     6663                        </arguments>
     6664                </element>
     6665                <element name="setPos" function="true" type="void">
     6666                        <arguments>
     6667                                <argument name="x" type="float"/>
     6668                                <argument name="y" type="float"/>
     6669                        </arguments>
     6670                </element>
     6671                <element name="setAutolayout" function="true" type="void">
     6672                        <description><![CDATA[rel_* values refer to the parent element's dimensions]]></description>
     6673                        <arguments>
     6674                                <argument name="x" type="float"/>
     6675                                <argument name="y" type="float"/>
     6676                                <argument name="width" type="float"/>
     6677                                <argument name="height" type="float"/>
     6678                                <argument name="rel_x" type="float"/>
     6679                                <argument name="rel_y" type="float"/>
     6680                                <argument name="rel_width" type="float"/>
     6681                                <argument type="float"/>
     6682                        </arguments>
     6683                </element>
     6684                <element name="minimalRect" type="Rectangle" flags="1"/>
     6685                <element name="font" type="integer" min="0" max="5"/>
     6686                <element name="selected" type="integer"/>
     6687                <element name="data" type="untyped"/>
     6688                <element name="mode" type="integer"/>
     6689                <element name="enabled" type="integer"/>
     6690                <element name="autorepeat" type="integer" min="0" max="1"/>
     6691                <element name="style" type="integer"/>
     6692                <element name="userdata" type="untyped"/>
     6693                <element name="visible" type="integer" min="0" max="1"/>
     6694                <element name="addTo" function="true" type="void">
     6695                        <arguments>
     6696                                <argument name="parent" type="GUIElement"/>
     6697                        </arguments>
     6698                </element>
     6699                <element name="scrollIntoView" function="true" type="void">
     6700                        <arguments>
     6701                                <argument name="index" type="integer"/>
     6702                        </arguments>
     6703                </element>
     6704                <element name="scroll_x" type="float" flags="1"/>
     6705                <element name="scroll_y" type="float" flags="1"/>
     6706                <element name="focus" type="integer" min="0" max="1"/>
     6707                <element name="edit" function="true" type="void">
     6708                        <arguments>
     6709                                <argument name="characters" type="string"/>
     6710                        </arguments>
     6711                </element>
     6712                <element name="orient" type="Orient" flags="1"/>
     6713                <element name="min" type="float"/>
     6714                <element name="max" type="float"/>
     6715                <element name="animSetBegin" function="true" type="void"><arguments/></element>
     6716                <element name="animSetEnd" function="true" type="void"><arguments/></element>
     6717                <element name="startAnimation" function="true" type="void">
     6718                        <arguments>
     6719                                <argument name="duration" type="float"/>
     6720                        </arguments>
     6721                </element>
    63836722        </type>
    63846723        <type name="ImageExport" context="Command line interface">
     
    64086747                <element name="imgex_lastfile" type="string" flags="18"/>
    64096748        </type>
     6749        <type name="Material" context="Command line interface">
     6750<description><![CDATA[Material object]]></description>
     6751                <element name="new" function="true" type="Material"><arguments/></element>
     6752                <element name="color" type="string" flags="256"/>
     6753                <element name="lighting" type="integer" min="0" max="1" flags="256"/>
     6754                <element name="shine" type="integer" flags="256"/>
     6755                <element name="texture" type="string" flags="256"/>
     6756                <element name="shader" type="Shader" flags="256"/>
     6757        </type>
     6758        <type name="Matrix" context="Command line interface">
     6759<description><![CDATA[4x4 Marix object]]></description>
     6760                <element name="new" function="true" type="Matrix"><arguments/></element>
     6761                <element name="newRotation" function="true" type="Matrix">
     6762                        <arguments>
     6763                                <argument name="angles" type="XYZ"/>
     6764                        </arguments>
     6765                </element>
     6766                <element name="newTranslation" function="true" type="Matrix">
     6767                        <arguments>
     6768                                <argument name="translation" type="XYZ"/>
     6769                        </arguments>
     6770                </element>
     6771                <element name="newScale" function="true" type="Matrix">
     6772                        <arguments>
     6773                                <argument name="angles" type="XYZ"/>
     6774                        </arguments>
     6775                </element>
     6776                <element name="add" function="true" type="Matrix" flags="256">
     6777                        <arguments>
     6778                                <argument name="another matrix" type="Matrix"/>
     6779                        </arguments>
     6780                </element>
     6781                <element name="mul" function="true" type="Matrix" flags="256">
     6782                        <arguments>
     6783                                <argument name="another matrix" type="Matrix"/>
     6784                        </arguments>
     6785                </element>
     6786                <element name="translate" function="true" type="Matrix" flags="256">
     6787                        <arguments>
     6788                                <argument name="translation" type="XYZ"/>
     6789                        </arguments>
     6790                </element>
     6791                <element name="rotate" function="true" type="Matrix" flags="256">
     6792                        <arguments>
     6793                                <argument name="axis" type="XYZ"/>
     6794                                <argument name="angle" type="float"/>
     6795                        </arguments>
     6796                </element>
     6797                <element name="scale" function="true" type="Matrix" flags="256">
     6798                        <arguments>
     6799                                <argument name="scale" type="XYZ"/>
     6800                        </arguments>
     6801                </element>
     6802        </type>
    64106803        <type name="NeuroDiagram" context="Command line interface">
    64116804<description><![CDATA[Can be used as the client object in the Window.]]></description>
     
    64226815                </element>
    64236816                <element name="hide" function="true" type="void" flags="288"><arguments/></element>
     6817        </type>
     6818        <type name="Obj3D" context="Command line interface">
     6819<description><![CDATA[3D object]]></description>
     6820                <element name="newEmpty" function="true" type="Obj3D"><arguments/></element>
     6821                <element name="newFromCreature" function="true" type="Obj3D">
     6822                        <arguments>
     6823                                <argument type="untyped"/>
     6824                        </arguments>
     6825                </element>
     6826                <element name="newText" function="true" type="Obj3D">
     6827                        <arguments>
     6828                                <argument name="text" type="string"/>
     6829                                <argument name="horizontal align" type="integer"/>
     6830                                <argument name="vertical align" type="integer"/>
     6831                                <argument name="transformation" type="Matrix"/>
     6832                        </arguments>
     6833                </element>
     6834                <element name="load" function="true" type="Obj3D">
     6835                        <arguments>
     6836                                <argument name="filename" type="string"/>
     6837                        </arguments>
     6838                </element>
     6839                <element name="name" type="string" flags="256"/>
     6840                <element name="visible" type="integer" min="0" max="1" flags="256"/>
     6841                <element name="transparent" type="integer" min="0" max="1" flags="256"/>
     6842                <element name="material" type="Material" flags="256"/>
     6843                <element name="add" function="true" type="void" flags="256">
     6844                        <arguments>
     6845                                <argument name="child object" type="Obj3D"/>
     6846                        </arguments>
     6847                </element>
     6848                <element name="get" function="true" type="Obj3D" flags="256">
     6849                        <arguments>
     6850                                <argument name="index" type="integer"/>
     6851                        </arguments>
     6852                </element>
     6853                <element name="children" type="integer" flags="257"/>
     6854                <element name="parent" type="Obj3D" flags="257"/>
     6855                <element name="removeFromParent" function="true" type="void" flags="256"><arguments/></element>
     6856                <element name="deleteChildren" function="true" type="void" flags="256"><arguments/></element>
     6857                <element name="delete" function="true" type="void" flags="256"><arguments/></element>
     6858                <element name="center" type="XYZ" flags="257"/>
     6859                <element name="size" type="float" flags="257"/>
     6860                <element name="transform" type="Matrix" flags="256"/>
     6861                <element name="position" type="XYZ" flags="256"/>
     6862                <element name="rotation" type="XYZ" flags="256"/>
     6863                <element name="scale" type="XYZ" flags="256"/>
     6864                <element name="setPositionAndRotation" function="true" type="void" flags="256">
     6865                        <arguments>
     6866                                <argument name="position" type="XYZ"/>
     6867                                <argument name="rotation" type="XYZ"/>
     6868                        </arguments>
     6869                </element>
     6870        </type>
     6871        <type name="Rectangle" context="Command line interface">
     6872<description><![CDATA[GUI Rectangle]]></description>
     6873                <element name="x" type="float" flags="256"/>
     6874                <element name="y" type="float" flags="256"/>
     6875                <element name="width" type="float" flags="256"/>
     6876                <element name="height" type="float" flags="256"/>
     6877                <element name="newFromXYWH" function="true" type="Rectangle">
     6878                        <arguments>
     6879                                <argument name="x" type="float"/>
     6880                                <argument name="y" type="float"/>
     6881                                <argument name="width" type="float"/>
     6882                                <argument name="height" type="float"/>
     6883                        </arguments>
     6884                </element>
    64246885        </type>
    64256886        <type name="RowFormat" context="Command line interface">
     
    64626923                        <description><![CDATA[Contains the field names with the same formatting applied (i.e. with fill and separators)]]></description>
    64636924                </element>
     6925        </type>
     6926        <type name="Shader" context="Command line interface">
     6927<description><![CDATA[Shader object]]></description>
     6928                <element name="new" function="true" type="Shader">
     6929                        <arguments>
     6930                                <argument name="flags" type="integer"/>
     6931                        </arguments>
     6932                </element>
     6933                <element name="vertex" type="string" flags="256"/>
     6934                <element name="fragment" type="string" flags="256"/>
     6935        </type>
     6936        <type name="Sharing" context="Command line interface">
     6937                <element name="service" type="integer" min="0" max="4"/>
     6938                <element name="message" type="string"/>
     6939                <element name="url" type="string"/>
     6940                <element name="attach_file" type="string"/>
     6941                <element name="addScreenshot" function="true" type="void"><arguments/></element>
     6942                <element name="removeImage" function="true" type="void"><arguments/></element>
     6943                <element name="select" function="true" type="void">
     6944                        <arguments>
     6945                                <argument name="prompt" type="string"/>
     6946                                <argument name="function" type="Object"/>
     6947                        </arguments>
     6948                </element>
     6949                <element name="execute" function="true" type="void"><arguments/></element>
    64646950        </type>
    64656951        <type name="ShowManager" context="Command line interface">
     
    65397025                        <description><![CDATA[Update camera position and restore automatic tracking]]></description>
    65407026<arguments/></element>
     7027                <element name="cam_world" type="integer" min="0" max="1" default="1"/>
    65417028                <element name="cam_change" type="integer" min="0" max="5" default="2"/>
    65427029                <element name="cam_chspeed" type="float" min="0.1" max="10" default="1.0"/>
     
    66047091                        <description><![CDATA[]]></description>
    66057092                </element>
     7093                <element name="worldbgcolor" type="integer" min="0" max="16777215" default="16764040" flags="192">
     7094                        <description><![CDATA[]]></description>
     7095                </element>
     7096                <element name="hideworld" type="integer" min="0" max="1" default="0" flags="192">
     7097                        <description><![CDATA[Can be useful for screenshots]]></description>
     7098                </element>
    66067099                <element name="modelpan" type="integer" min="0" max="3" default="1" flags="192">
    66077100                        <description><![CDATA[]]></description>
Note: See TracChangeset for help on using the changeset viewer.