26 m_EnfScriptEdit = MultilineEditBoxWidget.Cast(root.FindAnyWidget(
"MultilineEditBoxWidget0"));
27 m_EnfScriptRun = ButtonWidget.Cast(root.FindAnyWidget(
"RunButton"));
63 PrintS(message.ToString());
78 PrintS(message.ToString());
82 void Add(
string message,
bool isReload =
false)
84 if (message !=
string.
Empty)
96 protected void Clear(
bool clearFile =
false)
132 string codeNoReplace = code;
135 code.
Replace(
"Print(",
"ScriptConsoleEnfScriptTab.PrintS(");
136 code.
Replace(
"Print (",
"ScriptConsoleEnfScriptTab.PrintS(");
181 if (history_index > -1)
207 super.OnRPCEx(rpc_type, ctx);
208 #ifdef DIAG_DEVELOPER
211 case ERPCs.DEV_RPC_SERVER_SCRIPT_RESULT:
225 super.OnClick(w,
x,
y,button);
243 super.OnChange(w,
x,
y, finished);
250 if (!show && (selectedHandler.Type() ==
ScriptConsoleEnfScriptTab || selectedHandler.Type() == ScriptConsoleEnfScriptServerTab))
283 if (history_index > -1)
PluginBase GetPlugin(typename plugin_type)
ref TStringArray m_EnscriptConsoleHistoryServer
int m_EnscriptHistoryRowServer
ButtonWidget m_EnfScriptClear
TextListboxWidget m_ScriptOutputListbox
static ref TStringArray m_ScriptOutputHistory
ButtonWidget m_EnfScriptRun
MultilineEditBoxWidget m_EnfScriptEdit
proto native void RPCSingleParam(Object target, int rpc_type, Param param, bool guaranteed, PlayerIdentity recipient=null)
see CGame.RPC
override ScriptCallQueue GetCallQueue(int call_category)
proto native bool ExecuteEnforceScript(string expression, string mainFnName)
Delevoper only: Executes Enforce Script expression, if there is an error, is printed into the script ...
static ref Param1< bool > PARAM1_BOOL
static ref Param1< string > PARAM1_STRING
proto void CallLater(func fn, int delay=0, bool repeat=false, void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL)
adds call into the queue with given parameters and arguments (arguments are held in memory until the ...
static void PrintS(bool message)
override bool OnChange(Widget w, int x, int y, bool finished)
override void OnRPCEx(int rpc_type, ParamsReadContext ctx)
PluginLocalEnscriptHistoryServer m_ModuleLocalEnscriptHistoryServer
static void PrintS(string message)
static ScriptConsoleEnfScriptTab m_Instance
static void PrintS(float message)
void ResetRunButtonColor()
void ~ScriptConsoleEnfScriptTab()
void Clear(bool clearFile=false)
static ref TStringArray m_ScriptOutputHistory
void ReloadScriptOutput()
MultilineEditBoxWidget m_EnfScriptEdit
override void OnSelected()
void ColorRunButton(bool success)
ref TStringArray m_EnscriptConsoleHistoryServer
ref TStringArray m_EnscriptConsoleHistory
void EnscriptHistoryBack()
void EnscriptHistoryForward()
ButtonWidget m_EnfScriptClear
override bool OnClick(Widget w, int x, int y, int button)
int m_EnscriptHistoryRowServer
void ScriptConsoleEnfScriptTab(Widget root, ScriptConsole console, Widget button, ScriptConsoleTabBase parent=null)
void Add(string message, bool isReload=false)
ButtonWidget m_EnfScriptRun
TextListboxWidget m_ScriptOutputListbox
static void PrintS(vector message)
PluginLocalEnscriptHistory m_ModuleLocalEnscriptHistory
static void PrintS(Object message)
override void Show(bool show, ScriptConsoleTabBase selectedHandler)
static void PrintS(int message)
void ScriptConsoleTabBase(Widget root, ScriptConsole console, Widget button, ScriptConsoleTabBase parent=null)
proto bool Read(void value_in)
proto string ToString(bool simple=true)
proto string ToString(bool beautify=true)
Vector to string.
Serializer ParamsReadContext
proto native CGame GetGame()
proto void Print(void var)
Prints content of variable to console/log.
array< string > TStringArray
string String(string s)
Helper for passing string expression to functions with void parameter. Example: Print(String("Hello "...
proto int Replace(string sample, string replace)
Replace all occurrances of 'sample' in 'str' by 'replace'.
int ARGB(int a, int r, int g, int b)