mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Moved sendDisplay & sendMessage functions to GUI instead of common.
This commit is contained in:
parent
e5579f1c32
commit
38947ba669
@ -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);
|
||||
|
@ -20,5 +20,9 @@ PREP(displayIcon);
|
||||
PREP(effectPain);
|
||||
PREP(effectBleeding);
|
||||
PREP(effectBlackOut);
|
||||
PREP(sendHintTo);
|
||||
PREP(sendMessageTo);
|
||||
PREP(sendDisplayInformationTo);
|
||||
PREP(sendDisplayMessageTo);
|
||||
|
||||
ADDON = true;
|
@ -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;
|
||||
};
|
@ -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);
|
@ -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];
|
||||
};
|
||||
};
|
@ -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];
|
||||
};
|
||||
};
|
Loading…
Reference in New Issue
Block a user