mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
36 lines
828 B
Plaintext
36 lines
828 B
Plaintext
/*
|
|
* Author: commy2
|
|
* Executed every time an inventory display is opened.
|
|
*
|
|
* Arguments:
|
|
* 0: Inventory display <DISPLAY>
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Example:
|
|
* [DISPLAY] call ACE_movement_fnc_inventoryDisplayLoad
|
|
*
|
|
* Public: No
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
params ["_display"];
|
|
|
|
private _fnc_update = {
|
|
params ["_display"];
|
|
private _control = _display displayCtrl 111;
|
|
|
|
_control ctrlSetText format ["%1 - %2 %3 (%4)",
|
|
[ACE_player, false, true] call EFUNC(common,getName),
|
|
localize ELSTRING(common,Weight),
|
|
[ACE_player] call EFUNC(common,getWeight),
|
|
[ACE_player, true] call EFUNC(common,getWeight)
|
|
];
|
|
};
|
|
|
|
_display displayAddEventHandler ["MouseMoving", _fnc_update];
|
|
_display displayAddEventHandler ["MouseHolding", _fnc_update];
|
|
|
|
_display call _fnc_update;
|