mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
convert log macros to cba versions (#4282)
* convert log macros to cba versions * Add changes to AB * remove obsolete macro
This commit is contained in:
@ -30,10 +30,10 @@ params [
|
||||
|
||||
// Verify data
|
||||
if (_objects isEqualTo []) exitWith {
|
||||
ACE_LOGERROR("Slideshow Objects field must NOT be empty!");
|
||||
ERROR("Slideshow Objects field must NOT be empty!");
|
||||
};
|
||||
if (count _images != count _names || {_images isEqualTo []} || {_names isEqualTo []}) exitWith {
|
||||
ACE_LOGERROR("Slideshow Images or Names fields must NOT be empty and must have equal number of items!");
|
||||
ERROR("Slideshow Images or Names fields must NOT be empty and must have equal number of items!");
|
||||
};
|
||||
|
||||
// If no controllers use objects as controllers
|
||||
@ -58,7 +58,7 @@ _currentSlideshow = GVAR(slideshows); // Local variable in case GVAR gets change
|
||||
// If interaction menu module is not present, set default duration value
|
||||
if !(["ace_interact_menu"] call EFUNC(common,isModLoaded)) then {
|
||||
_duration = NOINTERACTMENU_DURATION;
|
||||
ACE_LOGINFO_1("Interaction Menu module not present, defaulting duration value to %1",_duration);
|
||||
INFO_1("Interaction Menu module not present, defaulting duration value to %1",_duration);
|
||||
};
|
||||
|
||||
// Add interactions if automatic transitions are disabled, else setup automatic transitions
|
||||
|
@ -39,4 +39,4 @@ _duration = _logic getVariable ["Duration", 0];
|
||||
// Prepare with actions
|
||||
[_objects, _controllers, _images, _names, _duration] call FUNC(createSlideshow);
|
||||
|
||||
ACE_LOGINFO_1("Slideshow Module Initialized on %1 Objects", count _objects);
|
||||
INFO_1("Slideshow Module Initialized on %1 Objects", count _objects);
|
||||
|
Reference in New Issue
Block a user