Moved sendDisplay & sendMessage functions to GUI instead of common.

This commit is contained in:
Thomas Kooi 2015-01-17 13:03:51 +01:00
parent e5579f1c32
commit 38947ba669
6 changed files with 17 additions and 11 deletions

View File

@ -195,10 +195,6 @@ PREP(getDefinedVariable);
PREP(getAllDefinedSetVariables);
PREP(getDefinedVariableInfo);
PREP(getDefinedVariableDefault);
PREP(sendHintTo);
PREP(sendMessageTo);
PREP(sendDisplayInformationTo);
PREP(sendDisplayMessageTo);
PREP(getDeathAnim);
PREP(insertionSort);
PREP(uniqueElementsOnly);

View File

@ -20,5 +20,9 @@ PREP(displayIcon);
PREP(effectPain);
PREP(effectBleeding);
PREP(effectBlackOut);
PREP(sendHintTo);
PREP(sendMessageTo);
PREP(sendDisplayInformationTo);
PREP(sendDisplayMessageTo);
ADDON = true;

View File

@ -21,7 +21,6 @@ if (isPlayer _reciever) then {
if (!local _reciever) then {
[_this, QUOTE(FUNC(sendDisplayInformationTo)), _reciever, false] call EFUNC(common,execRemoteFnc);
} else {
if (isLocalized _title) then {
_title = localize _title;
};

View File

@ -17,8 +17,6 @@ _content = [_this, 2, "",[""]] call BIS_fnc_Param;
_type = [_this, 3, 0,[0]] call BIS_fnc_Param;
_parameters = [_this, 4, [], [[]]] call BIS_fnc_Param;
[_this] call FUNC(debug);
if (isPlayer _reciever) then {
if (!local _reciever) then {
[_this, QUOTE(FUNC(sendDisplayMessageTo)), _reciever, false] call EFUNC(common,execRemoteFnc);

View File

@ -13,12 +13,14 @@
private ["_reciever","_message"];
_reciever = _this select 0;
_message = _this select 1;
//[_reciever,_message] call cms_fnc_sendChatMessageTo;
if (isPlayer _reciever) then {
if (!local _reciever) then {
[_this, QUOTE(FUNC(sendHintTo)), _reciever, false] spawn EFUNC(common,execRemoteFnc);
[_this, QUOTE(FUNC(sendHintTo)), _reciever, false] call EFUNC(common,execRemoteFnc);
} else {
hintsilent format ["%1",_message];
if (isLocalized _message) then {
_message = localize _message;
};
hintsilent format ["%1",_message];
};
};

View File

@ -17,8 +17,15 @@ _message = _this select 1;
if (isPlayer _reciever) then {
if (!local _reciever) then {
[_this, QUOTE(FUNC(sendMessageTo)), _reciever, false] spawn EFUNC(common,execRemoteFnc);
[_this, QUOTE(FUNC(sendMessageTo)), _reciever, false] call EFUNC(common,execRemoteFnc);
} else {
if (isnil QGVAR(LOGIC_OBJECT)) exitwith {
// need to create an object instead
};
if (isLocalized _message) then {
_message = localize _message;
};
GVAR(LOGIC_OBJECT) globalChat format ["%1",_message];
};
};