2015-05-09 02:47:15 +00:00
|
|
|
/*
|
|
|
|
* Author: commy2
|
|
|
|
* Updates tooltip's position
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: Tooltip Display <NUMBER>
|
|
|
|
* 1: X Coordinate <NUMBER>
|
|
|
|
* 2: Y Coordinate <NUMBER>
|
|
|
|
*
|
|
|
|
* Return value:
|
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* [player, 0.5, 0.5] call ace_interaction_fnc_updateTooltipPosition
|
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
2015-01-11 23:13:47 +00:00
|
|
|
#include "script_component.hpp"
|
2015-01-11 19:32:51 +00:00
|
|
|
|
2015-05-09 20:14:00 +00:00
|
|
|
PARAMS_3(_tooltip,_coordinateX,_coordinateY);
|
|
|
|
|
2015-05-01 23:12:24 +00:00
|
|
|
private["_ctrl"];
|
|
|
|
|
2015-01-11 19:32:51 +00:00
|
|
|
disableSerialization;
|
2015-05-09 20:14:00 +00:00
|
|
|
_ctrl = ctrlParent _tooltip displayCtrl 40;
|
2015-01-11 19:32:51 +00:00
|
|
|
|
|
|
|
_ctrl ctrlSetPosition [
|
2015-05-09 20:14:00 +00:00
|
|
|
_coordinateX + 0.01 * safezoneW,
|
|
|
|
_coordinateY + 0.01 * safezoneH,
|
2015-04-06 16:22:43 +00:00
|
|
|
2.0 / 16 * safezoneW,
|
|
|
|
0.3 / 9 * safezoneH
|
2015-01-11 19:32:51 +00:00
|
|
|
];
|
|
|
|
_ctrl ctrlCommit 0;
|