Added support without ace_intract_menu

This commit is contained in:
jonpas 2015-08-06 23:43:18 +02:00
parent 016f45f0e8
commit 2e386038b7

View File

@ -33,6 +33,12 @@ _images = [_logic getVariable ["Images", ""], true, false] call FUNC(makeList);
_names = [_logic getVariable ["Names", ""], true, false] call FUNC(makeList);
_duration = _logic getVariable ["Duration", 0];
// If interaction menu module is not present, set default duration value
if (["ace_interact_menu"] call EFUNC(common,isModLoaded)) then {
_duration = 5;
diag_log "[ACE]: ace_interact_menu not present, assuming default Slideshow duration value.";
};
// Prepare with actions
[_objects, _controllers, _images, _names, _duration] call FUNC(createSlideshow);