Enfusion Script API
Loading...
Searching...
No Matches
ScriptEditor Interface Reference
Inheritance diagram for ScriptEditor:
WBModuleDef global_pointer pointer

Public Member Functions

proto external bool GetCurrentFile (out string filename)
 
proto external int GetCurrentLine ()
 
proto external int GetLinesCount ()
 
proto external bool GetLineText (out string text, int line=-1)
 Gets line text (if line is -1, current line is used).
 
proto external void SetLineText (string text, int line=-1)
 Sets line text (if line is -1, current line is used).
 
proto external void InsertLine (string text, int line=-1)
 Insert line before line (if line is -1, current line is used).
 
proto external void RemoveLine (int line=-1)
 Removes line (if line is -1, current line is used).
 
- Public Member Functions inherited from WBModuleDef
proto external bool SetOpenedResource (string filename)
 
proto external BaseContainer GetContainer (int index=0)
 
proto external int GetNumContainers ()
 
proto external bool Save ()
 
proto external bool GetCmdLine (string name, out string value)
 
proto external bool Close ()
 
proto external bool ExecuteAction (notnull array< string > menuPath, bool bKeepFocus=true)
 
proto external WorkbenchPlugin GetPlugin (TypeName pluginType)
 
- Public Member Functions inherited from pointer
proto string ToString ()
 

Member Function Documentation

◆ GetCurrentFile()

proto external bool ScriptEditor.GetCurrentFile ( out string filename)

◆ GetCurrentLine()

proto external int ScriptEditor.GetCurrentLine ( )

◆ GetLinesCount()

proto external int ScriptEditor.GetLinesCount ( )

◆ GetLineText()

proto external bool ScriptEditor.GetLineText ( out string text,
int line = -1 )

Gets line text (if line is -1, current line is used).

◆ InsertLine()

proto external void ScriptEditor.InsertLine ( string text,
int line = -1 )

Insert line before line (if line is -1, current line is used).

◆ RemoveLine()

proto external void ScriptEditor.RemoveLine ( int line = -1)

Removes line (if line is -1, current line is used).

◆ SetLineText()

proto external void ScriptEditor.SetLineText ( string text,
int line = -1 )

Sets line text (if line is -1, current line is used).


The documentation for this interface was generated from the following file: