----------------------------------------------------------------------------------------
--Wrapper for TalkBoxForPlayers---------------------------------------------------------
----------------------------------------------------------------------------------------
--params – description of the table of values
function TalkBox(parametrs)
print("TalkBoxStarted");
TalkBoxForPlayers(PLAYER_1,
parametrs.icon, --Icon
nil, --Text for the icon
GetMapDataPath()..parametrs.text, --Main text of the message
nil, --Text after the answers
parametrs.func, --Function - answer handler
0, --"Close" button mode (on/off)
GetMapDataPath()..parametrs.name, --Title
nil, --Text before the answers
0, --Answer highlighted by default
GetMapDataPath()..parametrs.ans1, --Answer 1
GetMapDataPath()..parametrs.ans2, --Answer 2
GetMapDataPath()..parametrs.ans3, --Answer 3
GetMapDataPath()..parametrs.ans4, --Answer 4
GetMapDataPath()..parametrs.ans5); --Answer 5
print("TalkBoxFinished");
end;Calling TalkBox involves setting an array of parameters:
talkbox_parametrs=
{icon=...
text=...
name=...
ans1=...
ans2=...
ans3=...
ans4=...
ans5=...
func=...
}
TalkBox(talkbox_parametrs);
_________________
Группа картостроителей
Там ответы на вопросы, руководства, гайды и прочее
Discord-сервер "Герои 5: S.T.A.L.K.E.R"
Сервер по модификации "Герои 5: S.T.A.L.K.E.R"
_________________