См. определение в файле ScriptConsoleEnfScriptTab.c строка 127
128 {
129 #ifdef DEVELOPER
130 string code;
132 string codeNoReplace = code;
135 code.
Replace(
"Print(",
"ScriptConsoleEnfScriptTab.PrintS(");
136 code.
Replace(
"Print (",
"ScriptConsoleEnfScriptTab.PrintS(");
137 bool success =
g_Game.ExecuteEnforceScript(
"void scConsMain() \n{\n" + code +
"\n}\n",
"scConsMain");
140
143 #endif
144 }
MultilineEditBoxWidget m_EnfScriptEdit
void ColorRunButton(bool success)
ref TStringArray m_EnscriptConsoleHistory
PluginLocalEnscriptHistory m_ModuleLocalEnscriptHistory
proto int Replace(string sample, string replace)
Replace all occurrances of 'sample' in 'str' by 'replace'.
Перекрестные ссылки _player, ColorRunButton(), g_Game, m_AllowScriptOutput, m_EnfScriptEdit, m_EnscriptConsoleHistory, m_ModuleLocalEnscriptHistory и string::Replace().
Используется в OnClick().