ACE3/addons/interact_menu/functions/fnc_ctrlSetParsedTextCached.sqf

12 lines
329 B
Plaintext
Raw Normal View History

2015-04-25 11:28:21 +00:00
// by commy2
#include "script_component.hpp"
params ["_ctrl", "_index", "_text"];
2015-04-25 11:28:21 +00:00
//systemChat str (_text != ARR_SELECT(GVAR(ParsedTextCached),_index,"-1"));
2015-04-26 10:41:15 +00:00
if (_text != ARR_SELECT(GVAR(ParsedTextCached),_index,"-1")) then {
2015-12-21 16:05:48 +00:00
GVAR(ParsedTextCached) set [_index, _text];
_ctrl ctrlSetStructuredText parseText _text;
2015-04-25 11:28:21 +00:00
};