Difference between revisions of "Script editor"

From Divinity Engine Wiki
Jump to: navigation, search
(Using the Script Editor)
Line 1: Line 1:
=Description=
+
==Description==
The Script Editor allows you to create and edit scripts. It can also be used to [[script_debugger|debug scripts]].
+
The Script Editor allows you to create and edit scripts. You can also use it to [[script_debugger|debug scripts]].
  
 
== Using the Script Editor ==
 
== Using the Script Editor ==
Line 17: Line 17:
 
===Menu===
 
===Menu===
 
====File====
 
====File====
 +
<sub>A closeup of the File menu</sub>
 +
The File menu allows you to create, save, open, or reload script files. It also allows you to exit the editor.
 
====Edit====
 
====Edit====
 +
<sub>A closeup of the Edit menu</sub>
 +
The Edit menu allows you to undo or redo, cut/copy/paste, select all, or find within scripts.
 
====View====
 
====View====
 +
<sub>A closeup of the View menu</sub>
 +
The View menu allows you to show the Solution Panel, the Errors Panel, the Watch Panel, and the Output Panel.
 
====Build====
 
====Build====
 +
<sub>A closeup of the Build menu</sub>
 +
The Build menu allows you to build the current file, build all files, rebuild all files, and reload the object lists.
 
====Debug====
 
====Debug====
 +
<sub>A closeup of the Debug menu</sub>
 +
The Debug menu allows you to pause, continue, and step when debugging. These are not available while editing scripts. More information can be found [[script_debugger|here]].
  
 
<br />
 
<br />
 
===Quick Menu===
 
===Quick Menu===
 +
The Quick Menu contains the most used options from the Menu and a couple more. All debugging related options on the Quick Menu are explained in detail on the [[script_debugger|debug scripts]] page.
 +
From left to right the Quick Menu buttons do the following:
 +
# Create a new script file
 +
# Open a script file
 +
# Save a script file
 +
# Save all script files
 +
# Cut selected text
 +
# Copy selected text
 +
# Paste text
 +
# Build the current script
 +
# Build all scripts
 +
# Rebuild all scripts
 +
# Reload the object lists
 +
# Collapse all regions by one level in the current script
 +
# Expand all regions by one level in the current script
  
 
<br />
 
<br />
Line 34: Line 59:
 
<br />
 
<br />
 
===Debug Panel===
 
===Debug Panel===
 +
 +
<br />
 +
===Find Panel===

Revision as of 14:13, 9 September 2017

Description

The Script Editor allows you to create and edit scripts. You can also use it to debug scripts.

Using the Script Editor

ScriptEditor StepByStep.png

The Script Editor with each component numbered


The Script Editor consists of the following components:

  1. Menu
  2. Quick Menu
  3. Solution Explorer
  4. Script Editor
  5. Debug Panel


Menu

File

A closeup of the File menu The File menu allows you to create, save, open, or reload script files. It also allows you to exit the editor.

Edit

A closeup of the Edit menu The Edit menu allows you to undo or redo, cut/copy/paste, select all, or find within scripts.

View

A closeup of the View menu The View menu allows you to show the Solution Panel, the Errors Panel, the Watch Panel, and the Output Panel.

Build

A closeup of the Build menu The Build menu allows you to build the current file, build all files, rebuild all files, and reload the object lists.

Debug

A closeup of the Debug menu The Debug menu allows you to pause, continue, and step when debugging. These are not available while editing scripts. More information can be found here.


Quick Menu

The Quick Menu contains the most used options from the Menu and a couple more. All debugging related options on the Quick Menu are explained in detail on the debug scripts page. From left to right the Quick Menu buttons do the following:

  1. Create a new script file
  2. Open a script file
  3. Save a script file
  4. Save all script files
  5. Cut selected text
  6. Copy selected text
  7. Paste text
  8. Build the current script
  9. Build all scripts
  10. Rebuild all scripts
  11. Reload the object lists
  12. Collapse all regions by one level in the current script
  13. Expand all regions by one level in the current script


Solution Explorer


Script Editor


Debug Panel


Find Panel