2018-09-17 19:19:29 +00:00
|
|
|
#include "script_component.hpp"
|
2016-08-22 13:09:08 +00:00
|
|
|
/*
|
|
|
|
* Author: Jonpas
|
|
|
|
* Updates controls hints based on current state.
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Example:
|
2016-09-02 23:39:34 +00:00
|
|
|
* call ace_advanced_throwing_fnc_updateControlsHint
|
2016-08-22 13:09:08 +00:00
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
|
|
|
if (!GVAR(showMouseControls)) exitWith {};
|
|
|
|
|
|
|
|
private _primed = ACE_player getVariable [QGVAR(primed), false];
|
|
|
|
|
|
|
|
private _mmb = [localize LSTRING(ChangeMode), localize LSTRING(Extend)] select (ACE_player getVariable [QGVAR(dropMode), false]);
|
|
|
|
|
|
|
|
if (!_primed) then {
|
|
|
|
_mmb = [_mmb, localize LSTRING(Cook)] joinString " / ";
|
|
|
|
};
|
|
|
|
|
|
|
|
[
|
|
|
|
localize LSTRING(Throw),
|
|
|
|
[localize ELSTRING(common,Cancel), ""] select _primed,
|
|
|
|
_mmb
|
|
|
|
] call EFUNC(interaction,showMouseHint);
|