2015-09-18 06:23:18 +00:00
|
|
|
/*
|
|
|
|
* Author: commy2
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* Display where the Unload event was added <DISPLAY>
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
2015-01-13 19:56:02 +00:00
|
|
|
#include "script_component.hpp"
|
2015-01-11 16:42:31 +00:00
|
|
|
|
|
|
|
disableSerialization;
|
2015-09-18 06:23:18 +00:00
|
|
|
|
|
|
|
private "_dlg";
|
2015-01-11 16:42:31 +00:00
|
|
|
_dlg = ctrlParent _this;
|
|
|
|
|
|
|
|
_dlg displayAddEventHandler ["unload", {
|
2015-05-14 18:02:42 +00:00
|
|
|
if (_this select 1 == 1) then {
|
|
|
|
[missionnamespace getvariable ["BIS_fnc_initCuratorAttributes_target", objNull]] call FUNC(fixCrateContent);
|
|
|
|
};
|
2015-01-11 16:42:31 +00:00
|
|
|
}];
|