https://powdertoy.co.uk/Wiki/index.php?action=history&feed=atom&title=Powder_Toy_Lua_API_%28preview%29
Powder Toy Lua API (preview) - Revision history
2024-12-22T09:03:29Z
Revision history for this page on the wiki
MediaWiki 1.30.0
https://powdertoy.co.uk/Wiki/index.php?title=Powder_Toy_Lua_API_(preview)&diff=9131&oldid=prev
LBPHacker: Praised be pandoc, I would wither away typing all this out in the mediawiki format
2024-01-27T20:41:00Z
<p>Praised be pandoc, I would wither away typing all this out in the mediawiki format</p>
<p><b>New page</b></p><div>== bz2 ==<br />
<br />
The <code>bz2</code> API provides access to the bzip2 library TPT bundles. It can be used for compressing and decompressing blocks of data, such as TPT saves.<br />
<br />
Only one-shot functionality is exposed because streaming functionality is only useful for tasks that are beyond the scope of this API.<br />
<br />
Unless stated otherwise, all functions raise errors if supplied with parameters that disagree with their descriptions.<br />
<br />
=== bz2.compress ===<br />
<br />
Compress data with bzip2 at compression level 9.<br />
<br />
<pre>compressedData, errCode, errStr = bz2.compress(data, [maxSize])</pre><br />
* <code>data</code>: string, the data to be compressed<br />
* <code>maxSize</code>: number, upper limit on the length of <code>compressedData</code>; defaults to <code>0</code>, which means no limit<br />
* <code>compressedData</code>: string, the compressed data, or <code>nil</code> on error<br />
* <code>errCode</code>: <code>nil</code>, or one of the following values on error:<br />
** <code>bz2.COMPRESS_NOMEM</code>: out of memory, TPT will probably crash soon<br />
** <code>bz2.COMPRESS_LIMIT</code>: the length of <code>compressedData</code> would exceed <code>maxSize</code><br />
* <code>errStr</code>: <code>nil</code>, or a human-friendly string that explains the error<br />
<br />
=== bz2.decompress ===<br />
<br />
Decompress bzip2-compressed data.<br />
<br />
<pre>data, errCode, errStr = bz2.decompress(compressedData, [maxSize])</pre><br />
* <code>compressedData</code>: string, the compressed data<br />
* <code>maxSize</code>: number, upper limit on the length of <code>data</code>; defaults to <code>0</code>, which means no limit<br />
* <code>data</code>: string, the original data, or <code>nil</code> on error<br />
* <code>errCode</code>: <code>nil</code>, or one of the following values on error:<br />
** <code>bz2.DECOMPRESS_NOMEM</code>: out of memory, TPT will probably crash soon<br />
** <code>bz2.DECOMPRESS_LIMIT</code>: the length of <code>data</code> would exceed <code>maxSize</code><br />
** <code>bz2.DECOMPRESS_TYPE</code>: <code>compressedData</code> is not bzip2-compressed data<br />
** <code>bz2.DECOMPRESS_BAD</code>: <code>compressedData</code> is otherwise corrupt<br />
** <code>bz2.DECOMPRESS_EOF</code>: <code>compressedData</code> contains data beyond the end of the bzip2 stream<br />
* <code>errStr</code>: <code>nil</code>, or a human-friendly string that explains the error<br />
<br />
== elements ==<br />
<br />
The <code>elements</code> API contains methods and constants for creating and modifying elements.<br />
<br />
'''The shorter alias <code>elem</code> is also available.'''<br />
<br />
Unless stated otherwise, all functions raise errors if supplied with parameters that disagree with their descriptions.<br />
<br />
<span id="elements.group_pt_iname"></span><br />
=== elements.[group]_PT_[iname] ===<br />
<br />
<pre>watrNumber = elements.DEFAULT_PT_WATR</pre><br />
There are two ways to refer to elements: element numbers and element identifiers, which are strings of the form <code>&quot;[group]_PT_[iname]&quot;</code>. Both <code>[group]</code> and <code>[iname]</code> can be any string without underscores (<code>_</code>). All built-in elements are in group <code>DEFAULT</code>. For example, the identifier of WATR is <code>&quot;DEFAULT_PT_WATR&quot;</code>, because WATR belongs to the group <code>DEFAULT</code> and its internal name is <code>WATR</code>. This is different from [[#elements.property|the <code>Name</code> property]].<br />
<br />
These constants map element identifiers to element numbers. The element number of WATR is <code>2</code>, so <code>elements.DEFAULT_PT_WATR</code> is also <code>2</code>.<br />
<br />
=== elements.allocate ===<br />
<br />
Create a new element.<br />
<br />
<pre>elemNumber = elements.allocate(group, iname)</pre><br />
* <code>group</code>: string without underscores (<code>_</code>), the group the element belongs to; gets uppercased by the function<br />
* <code>iname</code>: string without underscores (<code>_</code>), the internal name of the element; gets uppercased by the function<br />
* <code>elemNumber</code>: the positive element number allocated for the element created, or <code>-1</code> on error, if there are no free element numbers left<br />
<br />
<code>group</code> should be something unique to your script, and should be the same across the entire script. It is common to use a simpler version of your username or the script’s name, for example if your script is called ''Ultimate Chemistry Pack v3'', you might use <code>&quot;CHEMPACK3&quot;</code> as the group name.<br />
<br />
<code>iname</code> should be unique to the element within your script, and should ultimately resemble [[#elements.property|the <code>Name</code> property]] of the element. For example, if your element’s name is ''C-6'' you should use <code>C6</code> as the internal name.<br />
<br />
The resulting element identifier must be unique across all scripts in use at any point in time. Elements that seem like built-in elements, i.e. ones in the group <code>DEFAULT</code>, cannot be created. Note that, as stated above, both <code>group</code> and <code>iname</code> get uppercased, so <code>elements.allocate(&quot;CheMpaCk3&quot;, &quot;c6&quot;)</code> is equivalent to <code>elements.allocate(&quot;CHEMPACK3&quot;, &quot;C6&quot;)</code>.<br />
<br />
Make the choice such that it is convenient to refer to your element via [[#elements.group_pt_iname|an <code>elements.[group]_PT_[iname]</code> constant]]. While it is perfectly possible to type <code>elem[&quot;Ultimate Chemistry Pack v3_PT_C-6&quot;]</code>, it is much more convenient to type <code>elem.CHEMPACK3_PT_C6</code>.<br />
<br />
The new element is created with all the default properties, and will not be visible until you modify it to show up in the menu.<br />
<br />
=== elements.element ===<br />
<br />
Query all or update multiple properties of an element.<br />
<br />
<pre>elemProps = elements.element(elemNumber) -- query variant<br />
elements.element(elemNumber, elemProps) -- update variant</pre><br />
* <code>elemNumber</code>: number of the element whose properties are to be queried or update<br />
* <code>elemProps</code>: table that maps property names to property values<br />
<br />
The keys and values of <code>elemProps</code> are the same as the <code>propName</code> and <code>propValue</code> parameters of [[#elements.property|elements.property]]. The query variant returns all properties of the element in <code>elemProps</code> with the same caveats as [[#elements.property|elements.property]]. The update variant accepts any subset of properties, only updates the ones present in the table, applying the same checks as [[#elements.property|elements.property]].<br />
<br />
This function is commonly used to base an element off another element by first copying all properties of the source element and applying them to the new element, and then customizing the new element a bit afterwards:<br />
<br />
<pre>local purpleGold = elem.allocate(&quot;EXAMPLE&quot;, &quot;PGLD&quot;)<br />
assert(purpleGold ~= -1, &quot;ran out of element numbers&quot;)<br />
elem.element(purpleGold, elem.element(elem.DEFAULT_PT_GOLD))<br />
elem.property(purpleGold, &quot;Name&quot;, &quot;PGLD&quot;)<br />
elem.property(purpleGold, &quot;Color&quot;, 0x8040FF)</pre><br />
=== elements.exists ===<br />
<br />
Check whether a number is a real element number and refers to an element.<br />
<br />
<pre>exists = elements.exists(elemNumber)</pre><br />
* <code>elemNumber</code>: number of the element to be checked<br />
* <code>exists</code>: boolean, <code>true</code> if <code>elemNumber</code> refers to an element<br />
<br />
If an element exists, there exists [[#elements.group_pt_iname|a corresponding <code>elements.[group]_PT_[iname]</code> constant]], and conversely, if there exists such a constant, there exists a corresponding element.<br />
<br />
=== elements.free ===<br />
<br />
Free a previously allocated element.<br />
<br />
<pre>elements.free(elemNumber)</pre><br />
* <code>elemNumber</code>: number of the element to be freed<br />
<br />
The element number is freed and can used later by another script. Built-in elements, i.e. elements in the group <code>DEFAULT</code>, cannot be freed.<br />
<br />
<span id="elements.getbyname"></span><br />
=== elements.getByName ===<br />
<br />
Find an element by name, [[#elements.property|the <code>Name</code> property]].<br />
<br />
<pre>elementNumber = elements.getByName(name)</pre><br />
* <code>name</code>: string, the name to find the element by<br />
* <code>elemNumber</code>: positive number of the element <code>name</code> refers to, or <code>-1</code> on error if no such element exists<br />
<br />
This function converts a human-friendly element name to an element number, essentially the same way the PROP tool or the console works.<br />
<br />
<span id="elements.loaddefault"></span><br />
=== elements.loadDefault ===<br />
<br />
Restore the set of elements to its initial state at startup.<br />
<br />
<pre>elements.loadDefault()</pre><br />
This frees all elements created and resets all properties of all built-in elements to their defaults.<br />
<br />
=== elements.property ===<br />
<br />
Query or update a property of an element.<br />
<br />
<pre>propValue = elements.property(elemNumber, propName) -- query variant<br />
elements.property(elemNumber, propName, propValue) -- update variant<br />
elements.property(elemNumber, &quot;Update&quot;, propValue, [runWhen]) -- special update variant for the Update property</pre><br />
* <code>elemNumber</code>: number of the element whose property is to be queried or updated<br />
* <code>propName</code>: string, name of the property to be queried or updated<br />
* <code>propValue</code>: various types, value of the property to be queried or updated<br />
* <code>runWhen</code>: number, specifies when the update function should be run, one of:<br />
** <code>elements.UPDATE_AFTER</code>: run before the built-in update function, this is the default<br />
** <code>elements.UPDATE_REPLACE</code>: run instead of the built-in update function<br />
** <code>elements.UPDATE_BEFORE</code>: run after the built-in update function<br />
<br />
The following table lists all element properties accessible via this function:<br />
<br />
{| class="wikitable"<br />
|-<br />
! <code>propName</code><br />
! <code>propValue</code> type<br />
! description<br />
|-<br />
| <code>&quot;Advection&quot;</code><br />
| number<br />
|<br />
|-<br />
| <code>&quot;AirDrag&quot;</code><br />
| number<br />
|<br />
|-<br />
| <code>&quot;AirLoss&quot;</code><br />
| number<br />
|<br />
|-<br />
| <code>&quot;CarriesTypeIn&quot;</code><br />
| number<br />
|<br />
|-<br />
| <code>&quot;ChangeType&quot;</code><br />
| function<br />
| read-only<br />
|-<br />
| <code>&quot;Collision&quot;</code><br />
| number<br />
|<br />
|-<br />
| <code>&quot;Color&quot;</code><br />
| number<br />
|<br />
|-<br />
| <code>&quot;Create&quot;</code><br />
| function<br />
| read-only<br />
|-<br />
| <code>&quot;CreateAllowed&quot;</code><br />
| function<br />
| read-only<br />
|-<br />
| <code>&quot;CtypeDraw&quot;</code><br />
| function<br />
| read-only<br />
|-<br />
| <code>&quot;DefaultProperties&quot;</code><br />
| table<br />
|<br />
|-<br />
| <code>&quot;Description&quot;</code><br />
| string<br />
|<br />
|-<br />
| <code>&quot;Diffusion&quot;</code><br />
| number<br />
|<br />
|-<br />
| <code>&quot;Explosive&quot;</code><br />
| number<br />
|<br />
|-<br />
| <code>&quot;Falldown&quot;</code><br />
| number<br />
|<br />
|-<br />
| <code>&quot;Flammable&quot;</code><br />
| number<br />
|<br />
|-<br />
| <code>&quot;Graphics&quot;</code><br />
| function<br />
| read-only<br />
|-<br />
| <code>&quot;Gravity&quot;</code><br />
| number<br />
|<br />
|-<br />
| <code>&quot;Hardness&quot;</code><br />
| number<br />
|<br />
|-<br />
| <code>&quot;HeatConduct&quot;</code><br />
| number<br />
|<br />
|-<br />
| <code>&quot;HighPressure&quot;</code><br />
| number<br />
|<br />
|-<br />
| <code>&quot;HighPressureTransition&quot;</code><br />
| element number<br />
|<br />
|-<br />
| <code>&quot;HighTemperature&quot;</code><br />
| number<br />
|<br />
|-<br />
| <code>&quot;HighTemperatureTransition&quot;</code><br />
| element number<br />
|<br />
|-<br />
| <code>&quot;HotAir&quot;</code><br />
| number<br />
|<br />
|-<br />
| <code>&quot;Identifier&quot;</code><br />
| string<br />
| element identifier, read-only<br />
|-<br />
| <code>&quot;Loss&quot;</code><br />
| number<br />
|<br />
|-<br />
| <code>&quot;LowPressure&quot;</code><br />
| number<br />
|<br />
|-<br />
| <code>&quot;LowPressureTransition&quot;</code><br />
| element number<br />
|<br />
|-<br />
| <code>&quot;LowTemperature&quot;</code><br />
| number<br />
|<br />
|-<br />
| <code>&quot;LowTemperatureTransition&quot;</code><br />
| element number<br />
|<br />
|-<br />
| <code>&quot;Meltable&quot;</code><br />
| <code>0</code> or <code>1</code><br />
|<br />
|-<br />
| <code>&quot;MenuSection&quot;</code><br />
| menu number<br />
|<br />
|-<br />
| <code>&quot;MenuVisible&quot;</code><br />
| <code>0</code> or <code>1</code><br />
|<br />
|-<br />
| <code>&quot;Name&quot;</code><br />
| string<br />
| text that appears on the element button<br />
|-<br />
| <code>&quot;NewtonianGravity&quot;</code><br />
| number<br />
|<br />
|-<br />
| <code>&quot;PhotonReflectWavelengths&quot;</code><br />
| number<br />
|<br />
|-<br />
| <code>&quot;Properties&quot;</code><br />
| number<br />
|<br />
|-<br />
| <code>&quot;Temperature&quot;</code><br />
| number<br />
|<br />
|-<br />
| <code>&quot;Update&quot;</code><br />
| function<br />
| read-only<br />
|-<br />
| <code>&quot;Weight&quot;</code><br />
| number<br />
|<br />
|}<br />
<br />
<code>runWhen</code> is not possible to specify with [[#elements.element|elements.element]].<br />
<br />
== event ==<br />
<br />
<span id="event.getmodifiers"></span><br />
=== event.getModifiers ===<br />
<br />
=== event.register ===<br />
<br />
=== event.unregister ===<br />
<br />
<span id="filesystem"></span><br />
== fileSystem ==<br />
<br />
<span id="filesystem.copy"></span><br />
=== fileSystem.copy ===<br />
<br />
<span id="filesystem.exists"></span><br />
=== fileSystem.exists ===<br />
<br />
<span id="filesystem.isdirectory"></span><br />
=== fileSystem.isDirectory ===<br />
<br />
<span id="filesystem.isfile"></span><br />
=== fileSystem.isFile ===<br />
<br />
<span id="filesystem.islink"></span><br />
=== fileSystem.isLink ===<br />
<br />
<span id="filesystem.list"></span><br />
=== fileSystem.list ===<br />
<br />
<span id="filesystem.makedirectory"></span><br />
=== fileSystem.makeDirectory ===<br />
<br />
<span id="filesystem.move"></span><br />
=== fileSystem.move ===<br />
<br />
<span id="filesystem.removedirectory"></span><br />
=== fileSystem.removeDirectory ===<br />
<br />
<span id="filesystem.removefile"></span><br />
=== fileSystem.removeFile ===<br />
<br />
== graphics ==<br />
<br />
<span id="graphics.drawcircle"></span><br />
=== graphics.drawCircle ===<br />
<br />
<span id="graphics.drawline"></span><br />
=== graphics.drawLine ===<br />
<br />
<span id="graphics.drawpixel"></span><br />
=== graphics.drawPixel ===<br />
<br />
<span id="graphics.drawrect"></span><br />
=== graphics.drawRect ===<br />
<br />
<span id="graphics.drawtext"></span><br />
=== graphics.drawText ===<br />
<br />
<span id="graphics.fillcircle"></span><br />
=== graphics.fillCircle ===<br />
<br />
<span id="graphics.fillrect"></span><br />
=== graphics.fillRect ===<br />
<br />
<span id="graphics.getcolors"></span><br />
=== graphics.getColors ===<br />
<br />
<span id="graphics.gethexcolor"></span><br />
=== graphics.getHexColor ===<br />
<br />
<span id="graphics.setcliprect"></span><br />
=== graphics.setClipRect ===<br />
<br />
<span id="graphics.textsize"></span><br />
=== graphics.textSize ===<br />
<br />
=== constants ===<br />
<br />
== http ==<br />
<br />
=== http.get ===<br />
<br />
<span id="http.getauthtoken"></span><br />
=== http.getAuthToken ===<br />
<br />
=== http.post ===<br />
<br />
== interface ==<br />
<br />
<span id="interface.activemenu"></span><br />
=== interface.activeMenu ===<br />
<br />
<span id="interface.activetool"></span><br />
=== interface.activeTool ===<br />
<br />
<span id="interface.addcomponent"></span><br />
=== interface.addComponent ===<br />
<br />
<span id="interface.beginconfirm"></span><br />
=== interface.beginConfirm ===<br />
<br />
<span id="interface.begininput"></span><br />
=== interface.beginInput ===<br />
<br />
<span id="interface.beginmessagebox"></span><br />
=== interface.beginMessageBox ===<br />
<br />
<span id="interface.beginthrowerror"></span><br />
=== interface.beginThrowError ===<br />
<br />
<span id="interface.brushid"></span><br />
=== interface.brushID ===<br />
<br />
<span id="interface.brushradius"></span><br />
=== interface.brushRadius ===<br />
<br />
=== interface.button ===<br />
<br />
=== interface.checkbox ===<br />
<br />
<span id="interface.closewindow"></span><br />
=== interface.closeWindow ===<br />
<br />
=== interface.console ===<br />
<br />
<span id="interface.droptextinput"></span><br />
=== interface.dropTextInput ===<br />
<br />
<span id="interface.grabtextinput"></span><br />
=== interface.grabTextInput ===<br />
<br />
=== interface.label ===<br />
<br />
<span id="interface.menuenabled"></span><br />
=== interface.menuEnabled ===<br />
<br />
<span id="interface.mouseposition"></span><br />
=== interface.mousePosition ===<br />
<br />
<span id="interface.nummenus"></span><br />
=== interface.numMenus ===<br />
<br />
<span id="interface.perfectcirclebrush"></span><br />
=== interface.perfectCircleBrush ===<br />
<br />
<span id="interface.progressbar"></span><br />
=== interface.progressBar ===<br />
<br />
<span id="interface.removecomponent"></span><br />
=== interface.removeComponent ===<br />
<br />
<span id="interface.showwindow"></span><br />
=== interface.showWindow ===<br />
<br />
=== interface.slider ===<br />
<br />
<span id="interface.textinputrect"></span><br />
=== interface.textInputRect ===<br />
<br />
=== interface.textbox ===<br />
<br />
=== interface.window ===<br />
<br />
<span id="interface.windowsize"></span><br />
=== interface.windowSize ===<br />
<br />
<span id="constants-1"></span><br />
=== constants ===<br />
<br />
== platform ==<br />
<br />
<span id="platform.clipboardcopy"></span><br />
=== platform.clipboardCopy ===<br />
<br />
<span id="platform.clipboardpaste"></span><br />
=== platform.clipboardPaste ===<br />
<br />
<span id="platform.exename"></span><br />
=== platform.exeName ===<br />
<br />
=== platform.ident ===<br />
<br />
<span id="platform.openlink"></span><br />
=== platform.openLink ===<br />
<br />
=== platform.platform ===<br />
<br />
<span id="platform.releasetype"></span><br />
=== platform.releaseType ===<br />
<br />
=== platform.restart ===<br />
<br />
== renderer ==<br />
<br />
<span id="renderer.colormode"></span><br />
=== renderer.colorMode ===<br />
<br />
<span id="renderer.debughud"></span><br />
=== renderer.debugHud ===<br />
<br />
=== renderer.decorations ===<br />
<br />
=== renderer.depth3d ===<br />
<br />
<span id="renderer.displaymodes"></span><br />
=== renderer.displayModes ===<br />
<br />
<span id="renderer.firesize"></span><br />
=== renderer.fireSize ===<br />
<br />
=== renderer.grid ===<br />
<br />
=== renderer.hud ===<br />
<br />
<span id="renderer.rendermodes"></span><br />
=== renderer.renderModes ===<br />
<br />
<span id="renderer.showbrush"></span><br />
=== renderer.showBrush ===<br />
<br />
<span id="renderer.usedisplaypreset"></span><br />
=== renderer.useDisplayPreset ===<br />
<br />
<span id="renderer.zoomenabled"></span><br />
=== renderer.zoomEnabled ===<br />
<br />
<span id="renderer.zoomscope"></span><br />
=== renderer.zoomScope ===<br />
<br />
<span id="renderer.zoomwindow"></span><br />
=== renderer.zoomWindow ===<br />
<br />
== simulation ==<br />
<br />
<span id="simulation.addcustomgol"></span><br />
=== simulation.addCustomGol ===<br />
<br />
<span id="simulation.adjustcoords"></span><br />
=== simulation.adjustCoords ===<br />
<br />
<span id="simulation.airmode"></span><br />
=== simulation.airMode ===<br />
<br />
<span id="simulation.ambientairtemp"></span><br />
=== simulation.ambientAirTemp ===<br />
<br />
<span id="simulation.ambientheat"></span><br />
=== simulation.ambientHeat ===<br />
<br />
<span id="simulation.ambientheatsim"></span><br />
=== simulation.ambientHeatSim ===<br />
<br />
=== simulation.brush ===<br />
<br />
<span id="simulation.canmove"></span><br />
=== simulation.canMove ===<br />
<br />
<span id="simulation.clearrect"></span><br />
=== simulation.clearRect ===<br />
<br />
<span id="simulation.clearsim"></span><br />
=== simulation.clearSim ===<br />
<br />
<span id="simulation.createbox"></span><br />
=== simulation.createBox ===<br />
<br />
<span id="simulation.createline"></span><br />
=== simulation.createLine ===<br />
<br />
<span id="simulation.createparts"></span><br />
=== simulation.createParts ===<br />
<br />
<span id="simulation.createwallbox"></span><br />
=== simulation.createWallBox ===<br />
<br />
<span id="simulation.createwallline"></span><br />
=== simulation.createWallLine ===<br />
<br />
<span id="simulation.createwalls"></span><br />
=== simulation.createWalls ===<br />
<br />
<span id="simulation.customgravity"></span><br />
=== simulation.customGravity ===<br />
<br />
<span id="simulation.decobox"></span><br />
=== simulation.decoBox ===<br />
<br />
<span id="simulation.decobrush"></span><br />
=== simulation.decoBrush ===<br />
<br />
<span id="simulation.decocolor"></span><br />
=== simulation.decoColor ===<br />
<br />
<span id="simulation.decoline"></span><br />
=== simulation.decoLine ===<br />
<br />
<span id="simulation.decospace"></span><br />
=== simulation.decoSpace ===<br />
<br />
<span id="simulation.deletestamp"></span><br />
=== simulation.deleteStamp ===<br />
<br />
<span id="simulation.edgemode"></span><br />
=== simulation.edgeMode ===<br />
<br />
<span id="simulation.elecmap"></span><br />
=== simulation.elecMap ===<br />
<br />
<span id="simulation.elementcount"></span><br />
=== simulation.elementCount ===<br />
<br />
<span id="simulation.fanvelocityx"></span><br />
=== simulation.fanVelocityX ===<br />
<br />
<span id="simulation.fanvelocityy"></span><br />
=== simulation.fanVelocityY ===<br />
<br />
<span id="simulation.flooddeco"></span><br />
=== simulation.floodDeco ===<br />
<br />
<span id="simulation.floodparts"></span><br />
=== simulation.floodParts ===<br />
<br />
<span id="simulation.floodwalls"></span><br />
=== simulation.floodWalls ===<br />
<br />
<span id="simulation.framerender"></span><br />
=== simulation.frameRender ===<br />
<br />
<span id="simulation.getsaveid"></span><br />
=== simulation.getSaveID ===<br />
<br />
<span id="simulation.golspeedratio"></span><br />
=== simulation.golSpeedRatio ===<br />
<br />
<span id="simulation.gravityfield"></span><br />
=== simulation.gravityField ===<br />
<br />
<span id="simulation.gravitygrid"></span><br />
=== simulation.gravityGrid ===<br />
<br />
<span id="simulation.gravitymass"></span><br />
=== simulation.gravityMass ===<br />
<br />
<span id="simulation.gravitymode"></span><br />
=== simulation.gravityMode ===<br />
<br />
<span id="simulation.heatsim"></span><br />
=== simulation.heatSim ===<br />
<br />
<span id="simulation.historyforward"></span><br />
=== simulation.historyForward ===<br />
<br />
<span id="simulation.historyrestore"></span><br />
=== simulation.historyRestore ===<br />
<br />
<span id="simulation.lastupdatedid"></span><br />
=== simulation.lastUpdatedID ===<br />
<br />
<span id="simulation.listcustomgol"></span><br />
=== simulation.listCustomGol ===<br />
<br />
<span id="simulation.liststamps"></span><br />
=== simulation.listStamps ===<br />
<br />
<span id="simulation.loadsave"></span><br />
=== simulation.loadSave ===<br />
<br />
<span id="simulation.loadstamp"></span><br />
=== simulation.loadStamp ===<br />
<br />
=== simulation.neighbors ===<br />
<br />
<span id="simulation.newtoniangravity"></span><br />
=== simulation.newtonianGravity ===<br />
<br />
<span id="simulation.partchangetype"></span><br />
=== simulation.partChangeType ===<br />
<br />
<span id="simulation.partcount"></span><br />
=== simulation.partCount ===<br />
<br />
<span id="simulation.partcreate"></span><br />
=== simulation.partCreate ===<br />
<br />
<span id="simulation.partexists"></span><br />
=== simulation.partExists ===<br />
<br />
<span id="simulation.partid"></span><br />
=== simulation.partID ===<br />
<br />
<span id="simulation.partkill"></span><br />
=== simulation.partKill ===<br />
<br />
<span id="simulation.partneighbors"></span><br />
=== simulation.partNeighbors ===<br />
<br />
<span id="simulation.partposition"></span><br />
=== simulation.partPosition ===<br />
<br />
<span id="simulation.partproperty"></span><br />
=== simulation.partProperty ===<br />
<br />
=== simulation.parts ===<br />
<br />
=== simulation.paused ===<br />
<br />
=== simulation.photons ===<br />
<br />
=== simulation.pmap ===<br />
<br />
=== simulation.pressure ===<br />
<br />
<span id="simulation.prettypowders"></span><br />
=== simulation.prettyPowders ===<br />
<br />
<span id="simulation.reloadsave"></span><br />
=== simulation.reloadSave ===<br />
<br />
<span id="simulation.removecustomgol"></span><br />
=== simulation.removeCustomGol ===<br />
<br />
<span id="simulation.replacemodeflags"></span><br />
=== simulation.replaceModeFlags ===<br />
<br />
<span id="simulation.resetgravityfield"></span><br />
=== simulation.resetGravityField ===<br />
<br />
<span id="simulation.resetpressure"></span><br />
=== simulation.resetPressure ===<br />
<br />
<span id="simulation.resetspark"></span><br />
=== simulation.resetSpark ===<br />
<br />
<span id="simulation.resettemp"></span><br />
=== simulation.resetTemp ===<br />
<br />
<span id="simulation.resetvelocity"></span><br />
=== simulation.resetVelocity ===<br />
<br />
<span id="simulation.savestamp"></span><br />
=== simulation.saveStamp ===<br />
<br />
=== simulation.signs ===<br />
<br />
<span id="simulation.signs-constants"></span><br />
=== simulation.signs constants ===<br />
<br />
<span id="simulation.signsn"></span><br />
=== simulation.signs[n] ===<br />
<br />
=== simulation.signs.new ===<br />
<br />
=== simulation.signs.delete ===<br />
<br />
<span id="simulation.takesnapshot"></span><br />
=== simulation.takeSnapshot ===<br />
<br />
<span id="simulation.temperaturescale"></span><br />
=== simulation.temperatureScale ===<br />
<br />
<span id="simulation.toolbox"></span><br />
=== simulation.toolBox ===<br />
<br />
<span id="simulation.toolbrush"></span><br />
=== simulation.toolBrush ===<br />
<br />
<span id="simulation.toolline"></span><br />
=== simulation.toolLine ===<br />
<br />
<span id="simulation.updateupto"></span><br />
=== simulation.updateUpTo ===<br />
<br />
<span id="simulation.velocityx"></span><br />
=== simulation.velocityX ===<br />
<br />
<span id="simulation.velocityy"></span><br />
=== simulation.velocityY ===<br />
<br />
<span id="simulation.wallmap"></span><br />
=== simulation.wallMap ===<br />
<br />
=== simulation.walls ===<br />
<br />
<span id="simulation.wallsid"></span><br />
=== simulation.walls[id] ===<br />
<br />
<span id="simulation.walls.wl"></span><br />
=== simulation.walls.''''WL'''' ===<br />
<br />
<span id="simulation.waterequalization"></span><br />
=== simulation.waterEqualization ===<br />
<br />
<span id="constants-2"></span><br />
=== constants ===<br />
<br />
== socket ==<br />
<br />
<span id="socket.gettime"></span><br />
=== socket.getTime ===<br />
<br />
=== socket.sleep ===<br />
<br />
=== socket.tcp ===<br />
<br />
== tpt ==<br />
<br />
=== tpt.debug ===<br />
<br />
<span id="tpt.drawcap"></span><br />
=== tpt.drawCap ===<br />
<br />
<span id="tpt.fpscap"></span><br />
=== tpt.fpsCap ===<br />
<br />
<span id="tpt.getusername"></span><br />
=== tpt.getUserName ===<br />
<br />
<span id="tpt.installscriptmanager"></span><br />
=== tpt.installScriptManager ===<br />
<br />
=== tpt.log ===<br />
<br />
=== tpt.record ===<br />
<br />
=== tpt.screenshot ===<br />
<br />
=== tpt.version ===<br />
<br />
<span id="button"></span><br />
== Button ==<br />
<br />
<span id="buttonaction"></span><br />
=== Button:action ===<br />
<br />
<span id="buttonenabled"></span><br />
=== Button:enabled ===<br />
<br />
<span id="buttonposition"></span><br />
=== Button:position ===<br />
<br />
<span id="buttonsize"></span><br />
=== Button:size ===<br />
<br />
<span id="buttontext"></span><br />
=== Button:text ===<br />
<br />
<span id="buttonvisible"></span><br />
=== Button:visible ===<br />
<br />
<span id="checkbox"></span><br />
== Checkbox ==<br />
<br />
<span id="checkboxaction"></span><br />
=== Checkbox:action ===<br />
<br />
<span id="checkboxchecked"></span><br />
=== Checkbox:checked ===<br />
<br />
<span id="checkboxposition"></span><br />
=== Checkbox:position ===<br />
<br />
<span id="checkboxsize"></span><br />
=== Checkbox:size ===<br />
<br />
<span id="checkboxtext"></span><br />
=== Checkbox:text ===<br />
<br />
<span id="checkboxvisible"></span><br />
=== Checkbox:visible ===<br />
<br />
<span id="label"></span><br />
== Label ==<br />
<br />
<span id="labelposition"></span><br />
=== Label:position ===<br />
<br />
<span id="labelsize"></span><br />
=== Label:size ===<br />
<br />
<span id="labeltext"></span><br />
=== Label:text ===<br />
<br />
<span id="labelvisible"></span><br />
=== Label:visible ===<br />
<br />
<span id="progressbar"></span><br />
== ProgressBar ==<br />
<br />
<span id="progressbarposition"></span><br />
=== ProgressBar:position ===<br />
<br />
<span id="progressbarprogress"></span><br />
=== ProgressBar:progress ===<br />
<br />
<span id="progressbarsize"></span><br />
=== ProgressBar:size ===<br />
<br />
<span id="progressbarstatus"></span><br />
=== ProgressBar:status ===<br />
<br />
<span id="progressbarvisible"></span><br />
=== ProgressBar:visible ===<br />
<br />
<span id="slider"></span><br />
== Slider ==<br />
<br />
<span id="slideronvaluechanged"></span><br />
=== Slider:onValueChanged ===<br />
<br />
<span id="sliderposition"></span><br />
=== Slider:position ===<br />
<br />
<span id="slidersize"></span><br />
=== Slider:size ===<br />
<br />
<span id="slidersteps"></span><br />
=== Slider:steps ===<br />
<br />
<span id="slidervalue"></span><br />
=== Slider:value ===<br />
<br />
<span id="slidervisible"></span><br />
=== Slider:visible ===<br />
<br />
<span id="textbox"></span><br />
== Textbox ==<br />
<br />
<span id="textboxontextchanged"></span><br />
=== Textbox:onTextChanged ===<br />
<br />
<span id="textboxposition"></span><br />
=== Textbox:position ===<br />
<br />
<span id="textboxreadonly"></span><br />
=== Textbox:readonly ===<br />
<br />
<span id="textboxsize"></span><br />
=== Textbox:size ===<br />
<br />
<span id="textboxtext"></span><br />
=== Textbox:text ===<br />
<br />
<span id="textboxvisible"></span><br />
=== Textbox:visible ===<br />
<br />
<span id="window"></span><br />
== Window ==<br />
<br />
<span id="windowaddcomponent"></span><br />
=== Window:addComponent ===<br />
<br />
<span id="windowonblur"></span><br />
=== Window:onBlur ===<br />
<br />
<span id="windowondraw"></span><br />
=== Window:onDraw ===<br />
<br />
<span id="windowonexit"></span><br />
=== Window:onExit ===<br />
<br />
<span id="windowonfocus"></span><br />
=== Window:onFocus ===<br />
<br />
<span id="windowoninitialized"></span><br />
=== Window:onInitialized ===<br />
<br />
<span id="windowonkeypress"></span><br />
=== Window:onKeyPress ===<br />
<br />
<span id="windowonkeyrelease"></span><br />
=== Window:onKeyRelease ===<br />
<br />
<span id="windowonmousedown"></span><br />
=== Window:onMouseDown ===<br />
<br />
<span id="windowonmousemove"></span><br />
=== Window:onMouseMove ===<br />
<br />
<span id="windowonmouseup"></span><br />
=== Window:onMouseUp ===<br />
<br />
<span id="windowonmousewheel"></span><br />
=== Window:onMouseWheel ===<br />
<br />
<span id="windowontick"></span><br />
=== Window:onTick ===<br />
<br />
<span id="windowontryexit"></span><br />
=== Window:onTryExit ===<br />
<br />
<span id="windowontryokay"></span><br />
=== Window:onTryOkay ===<br />
<br />
<span id="windowposition"></span><br />
=== Window:position ===<br />
<br />
<span id="windowremovecomponent"></span><br />
=== Window:removeComponent ===<br />
<br />
<span id="windowsize"></span><br />
=== Window:size ===</div>
LBPHacker