mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
30 lines
575 B
Plaintext
30 lines
575 B
Plaintext
/*
|
|
* 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
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
disableSerialization;
|
|
_ctrl = ctrlParent (_this select 0) displayCtrl 40;
|
|
|
|
_ctrl ctrlSetPosition [
|
|
(_this select 1) + 0.01 * safezoneW,
|
|
(_this select 2) + 0.01 * safezoneH,
|
|
2.0 / 16 * safezoneW,
|
|
0.3 / 9 * safezoneH
|
|
];
|
|
_ctrl ctrlCommit 0;
|