347{
361
363
365 {
376 }
377
379 {
381 }
382
384 {
387 {
390 }
392 }
393
395 {
399 }
400
402 {
404 }
405
407 {
409 }
410
412 {
414 }
415
417 {
419 }
420
422 {
424 }
425
426
428 {
430 {
432 {
437 }
438 }
439 }
440
442 {
446 }
447
448
450 {
456 }
457
459 {
460
462 }
463
465 {
467 }
468
470 {
471#ifdef DEVELOPER
477 code.Replace(
"Print(",
"ScriptConsoleEnfScriptTab.PrintS(");
478 code.Replace(
"Print (",
"ScriptConsoleEnfScriptTab.PrintS(");
479 bool success =
GetGame().ExecuteEnforceScript(
"void scConsMain() \n{\n" +
code +
"\n}\n",
"scConsMain");
482
485#endif
486 }
487
489 {
492 else
495 }
496
498 {
500 }
501
503 {
510 }
511
513 {
516 {
522 }
523 }
524
525
527 {
529 {
536 }
537 }
538
540 {
542#ifdef DIAG_DEVELOPER
544 {
545 case ERPCs.DEV_RPC_SERVER_SCRIPT_RESULT:
546 {
549 break;
550 }
551 }
552#endif
553 }
554
556 {
559 {
561 return true;
562 }
564 {
567 return true;
568 }
569
570 return false;
571 }
572
574 {
576 return false;
577 }
578
579
581 {
583 {
584
585 }
586 else
587 {
590 }
591 }
592
593}
594
596{
598 {
601 {
604 }
606 }
607
609 {
612 {
618 }
619 }
620
622 {
624 {
626
632 }
633 }
634
636 {
638 {
640 return true;
641 }
643 {
646 return true;
647 }
648
649 return false;
650 }
651
652}
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
override void OnRPCEx(int rpc_type, ParamsReadContext ctx)
ButtonWidget m_EnfScriptClear
ScriptConsoleEnfScriptTab ScriptConsoleTabBase OnSelected()
void ResetRunButtonColor()
void Add(string message, bool isReload=false)
TextListboxWidget m_ScriptOutputListbox
void ScriptConsoleEnfScriptTab(Widget root, ScriptConsole console, Widget button, ScriptConsoleTabBase parent=null)
static ref TStringArray m_ScriptOutputHistory
static void PrintS(string message)
void ~ScriptConsoleEnfScriptTab()
override bool OnClick(Widget w, int x, int y, int button)
PluginLocalEnscriptHistoryServer m_ModuleLocalEnscriptHistoryServer
void Clear(bool clearFile=false)
void ReloadScriptOutput()
ButtonWidget m_EnfScriptRun
void EnscriptHistoryBack()
override bool OnChange(Widget w, int x, int y, bool finished)
PluginLocalEnscriptHistory m_ModuleLocalEnscriptHistory
ref TStringArray m_EnscriptConsoleHistory
static ScriptConsoleEnfScriptTab m_Instance
void ColorRunButton(bool success)
MultilineEditBoxWidget m_EnfScriptEdit
void EnscriptHistoryForward()
static ref Param1< bool > PARAM1_BOOL
static ref Param1< string > PARAM1_STRING
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)