2023-09-12 18:58:10 +00:00
|
|
|
#include "..\script_component.hpp"
|
2015-04-17 09:02:01 +00:00
|
|
|
/*
|
|
|
|
* Author: commy2
|
|
|
|
* Hides the height and velocity display while freefalling or parachuting on higher difficulties.
|
|
|
|
*
|
|
|
|
* Arguments:
|
2017-06-08 13:31:51 +00:00
|
|
|
* Stuff from infoDisplayChanged eventhandler. <UNKNOWN>
|
2015-04-17 09:02:01 +00:00
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None
|
|
|
|
*
|
2017-06-08 13:31:51 +00:00
|
|
|
* Example:
|
|
|
|
* [?] call ACE_parachute_fnc_handleInfoDisplayChanged
|
|
|
|
*
|
2015-04-17 09:02:01 +00:00
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
2016-09-04 14:44:22 +00:00
|
|
|
params ["_dialog", "_type"];
|
2015-04-17 09:02:01 +00:00
|
|
|
|
|
|
|
// don't do anything in noob mode
|
2017-12-02 17:02:32 +00:00
|
|
|
if (!GVAR(hideAltimeter)) exitWith {};
|
2015-04-17 09:02:01 +00:00
|
|
|
|
|
|
|
switch (_type) do {
|
|
|
|
case ("Parachute"): {
|
|
|
|
{
|
|
|
|
(_dialog displayCtrl _x) ctrlShow false;
|
|
|
|
} forEach [121, 122, 1004, 1005, 1006, 1014];
|
|
|
|
};
|
|
|
|
|
|
|
|
case ("Soldier"): {
|
|
|
|
{
|
2016-09-04 14:44:22 +00:00
|
|
|
private _control = (_dialog displayCtrl _x);
|
2015-04-17 09:02:01 +00:00
|
|
|
|
|
|
|
// these reset ctrlShow every frame by the engine. Set height/width to 0 as work around.
|
|
|
|
_control ctrlSetPosition [0,0,0,0];
|
|
|
|
_control ctrlCommit 0;
|
|
|
|
} forEach [380, 382];
|
|
|
|
};
|
|
|
|
};
|