[INTERFACE]
DIALOG, "Вызов функции", 581, 177;
STATIC, "Вызвать функцию", 4, 4, 96, 20;
EDIT, 104, 4, 152, 20, unknown Name;
STATIC, "Параметры", 4, 28, 64, 20;
EDIT, 72, 28, 496, 20, unknown Par;
STATIC, "Записать возврат в переменную", 4, 52, 176, 20;
EDIT_WRITE_RETURN, 184, 52, 144, 20, unknown Var;
COMBO, "int""double""string""char""win", 336, 52, 100, 80, string Type;
CHECK, "Использовать логику переходов. Идти по Истина при условие:", 4, 76, 348, 20, int GL;
EDIT, 356, 76, 144, 20, unknown LOGIK;
STATIC, "Комментарий", 4, 100, 72, 20;
EDIT, 80, 100, 312, 20, unknown Comment;
BUTTON_OK, "Принять", 360, 124, 100, 20;
BUTTON_CANCEL, "Закрыть", 468, 124, 100, 20;
[END]

[APPEARANCE]
COLOR = 205, 108, 35;
SIZE_X = 12;
SIZE_Y =6;
[END]

[INFO]
>>" ">>Name>>[ENDL]>>Par>>[ENDL]>>"Переход Ложь  " >>GL>>[ENDL]>>Comment
[END]

[ASSOC_VAR]
Name=NameFun;
Par=;
Var=;
Type="int";
GL=0;
LOGIK===1;
vType=~GET(regexsearch(~Type~,"(?<=\")(.*)+(?=\")")~;
GL_V=~GL~!@#@W#&;
CALLS=~GL_V~~Name~(~Par~)~GL_V~~LOGIK~~GL_V~;
Comment=;
[END]

[GLOBAL_VAR]
~vType~ ~Var~;
[END]

[REGEXPLACE_CODE]
~Name~"\("~Par~"\)"~LOGIK~~LOGIK~=~Name~"("~Par~")"~LOGIK~;
"1!@#@W#&\)"=;
"1!@#@W#&\);"="){}";
"\)1!@#@W#&"=")";
"Call\(1!@#@W#&" = "if (";
(.*?)"=Call\(1!@#@W#&"="if (";
" "(.*?)"=Call\(1!@#@W#&"=" if (";
"if \(Call\(1!@#@W#&" = "if (";
"if \("(.*?)"=Call\(1!@#@W#&" = "if (";
"0!@#@W#&"(.*?)"0!@#@W#&\)" = ;
"Call\(0!@#@W#&" = ;
[END]

[EVENT]
IF (GL==1)ENABLE(GETID(Var), 0);
IF (GL==1)ENABLE(GETID(Type), 0);
IF (GL==1)ENABLE(GETID(LOGIK), 1);
IF (GL==0)ENABLE(GETID(LOGIK), 0);
IF (GL==0)ENABLE(GETID(Var), 1);
IF (GL==0)ENABLE(GETID(Type), 1);
IF (GL==1)ENABLELOGIC;
[END]

[CALL]
(CALLS)
[END]

[LOGIC]
FALSE=1
[END]
