Difference between revisions of "TES5Edit Scripting Functions"
→Script User Interface: Found more stuff!
imported>DavidJCobb (→Script User Interface: found some stuff!) |
imported>DavidJCobb (→Script User Interface: Found more stuff!) |
||
Line 328: | Line 328: | ||
*''TSaveDialog'' used in "Assets browser.pas" | *''TSaveDialog'' used in "Assets browser.pas" | ||
*''TScrollBox' used in "ExportImportTexts.pas" | *''TScrollBox' used in "ExportImportTexts.pas" | ||
{| class="wikitable" style="background-color: #AAAAAA; cellpadding: 0" | |||
|- align="left" | |||
! scope="col" style="background-color: #DDDDDD" | Class | |||
! scope="col" style="background-color: #DDDDDD" | Reference | |||
! scope="col" style="background-color: #DDDDDD" | Description | |||
! scope="col" style="background-color: #DDDDDD" | Use example | |||
! scope="col" style="background-color: #DDDDDD" | Note | |||
|- align="left" style="background-color: #F8F8F8" | |||
| scope="row" | <b>TComboBox</b> || [http://lazarus-ccr.sourceforge.net/docs/lcl/stdctrls/tcombobox.html TComboBox] || Combobox (a drop-down you can type into) || none || Set the <code>ReadOnly</code> property to true to disallow custom text entry, mimicking the function of a typical drop-down menu | |||
|- align="left" style="background-color: #EEEEEE" | |||
| scope="row" | <b>TForm</b> || [http://lazarus-ccr.sourceforge.net/docs/lcl/forms/tform.html TForm] || A dialog? || ExportImportTexts.pas || | |||
|- align="left" style="background-color: #F8F8F8" | |||
| scope="row" | <b>TPanel</b> || [http://lazarus-ccr.sourceforge.net/docs/lcl/extctrls/tpanel.html TPanel] || General-purpose container for UI widgets || ExportImportTexts.pas || | |||
|- align="left" style="background-color: #F8F8F8" | |||
|} | |||
TES5Edit appears to provide the following variables: | |||
{| class="wikitable" style="background-color: #AAAAAA; cellpadding: 0" | |||
|- align="left" | |||
! scope="col" style="background-color: #DDDDDD" | Name | |||
! scope="col" style="background-color: #DDDDDD" | Type | |||
! scope="col" style="background-color: #DDDDDD" | Description | |||
! scope="col" style="background-color: #DDDDDD" | Note | |||
|- align="left" style="background-color: #F8F8F8" | |||
| scope="row" | <b>frmFileSelect</b> || TForm || Returns a copy of the plug-in select dialog, which can be shown by calling <code>fMyDialogVariable.ShowModal</code> || You can get a reference to the checkbox list (as a TCheckListBox) by calling <code>TCheckListBox(fMyDialogVariable.FindComponent('CheckListBox1'))</code> | |||
|- align="left" style="background-color: #EEEEEE" | |||
| scope="row" | <b>ScriptsPath</b> || String || Provides the file path to Tes5Edit's 'Edit Scripts' folder as a String || | |||
|- align="left" style="background-color: #F8F8F8" | |||
|} | |||
=== Simple Script Sample === | === Simple Script Sample === |