ACE3/addons/interact_menu/functions/fnc_ctrlSetParsedTextCached.sqf
2015-08-05 00:47:18 +02:00

12 lines
323 B
Plaintext

// by commy2
#include "script_component.hpp"
params ["_ctrl", "_index", "_text"];
//systemChat str (_text != ARR_SELECT(GVAR(ParsedTextCached),_index,"-1"));
if (_text != ARR_SELECT(GVAR(ParsedTextCached),_index,"-1")) then {
GVAR(ParsedTextCached) set [_index, _text];
_ctrl ctrlSetStructuredText parseText _text;
};