132 code.Replace(
"Print(",
"ScriptConsoleEnfScriptTab.PrintS(");
133 code.Replace(
"Print (",
"ScriptConsoleEnfScriptTab.PrintS(");
134 bool success =
GetGame().ExecuteEnforceScript(
"void scConsMain() \n{\n" +
code +
"\n}\n",
"scConsMain");
200 case ERPCs.DEV_RPC_SERVER_SCRIPT_RESULT:
override bool OnClick(Widget w, int x, int y, int button)
buttons clicks
PluginBase GetPlugin(typename plugin_type)
ref TStringArray m_EnscriptConsoleHistoryServer
int m_EnscriptHistoryRowServer
ButtonWidget m_EnfScriptClear
ScriptConsoleEnfScriptTab ScriptConsoleTabBase OnSelected()
TextListboxWidget m_ScriptOutputListbox
static ref TStringArray m_ScriptOutputHistory
void ReloadScriptOutput()
ButtonWidget m_EnfScriptRun
void EnscriptHistoryBack()
MultilineEditBoxWidget m_EnfScriptEdit
void EnscriptHistoryForward()
static ref Param1< bool > PARAM1_BOOL
static ref Param1< string > PARAM1_STRING
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)
Serialization general interface. Serializer API works with:
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 "...
int ARGB(int a, int r, int g, int b)