2018-09-17 19:19:29 +00:00
|
|
|
#include "script_component.hpp"
|
2017-03-02 23:47:49 +00:00
|
|
|
/*
|
|
|
|
* Author: 654wak654
|
2017-09-22 15:33:08 +00:00
|
|
|
* Shows a Zeus message through the BIS function, handles localization.
|
2017-03-02 23:47:49 +00:00
|
|
|
* If multiple args are given, they get formatted.
|
|
|
|
*
|
|
|
|
* Arguments:
|
2017-09-22 15:33:08 +00:00
|
|
|
* 0: Message <STRING>
|
|
|
|
* N: Anything <ANY> (default: nil)
|
2017-03-02 23:47:49 +00:00
|
|
|
*
|
|
|
|
* Return Value:
|
2017-06-08 13:31:51 +00:00
|
|
|
* None
|
2017-03-02 23:47:49 +00:00
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* ["something"] call ace_zeus_fnc_showMessage
|
|
|
|
* ["something %1 in %2", "strange", getPos neighborhood] call ace_zeus_fnc_showMessage
|
|
|
|
*
|
|
|
|
* Public: Yes
|
|
|
|
*/
|
|
|
|
|
|
|
|
if (!(_this isEqualTypeParams [""])) exitWith {ERROR_1("First arg must be string [%1]",_this);};
|
|
|
|
|
|
|
|
private _message = _this apply {if ((_x isEqualType "") && {isLocalized _x}) then {localize _x} else {_x}};
|
|
|
|
[objNull, format _message] call BIS_fnc_showCuratorFeedbackMessage;
|