Preload Manager – Arma 2

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Lou Montana moved page Preload Manager to Arma 2: Preload Manager without leaving a redirect: name standard)
m (Some wiki formatting)
 
Line 1: Line 1:
{{GameCategory|arma2|Editor Modules}}
{{TOC|side}}
'''Preload Manager''' module defines ''surely something''. But this is placeholder.
 


'''Preload Manager''' module defines ''surely something''. But this is placeholder.
== Initialization ==


== Initialization==
=== Paths ===
=== Paths ===
Editor:
Editor:
  Modules (F7) > Preload Manager
  Modules (F7) > Preload Manager
Line 16: Line 18:


the logic init code :
the logic init code :
<code>'''[[onPreloadStarted]]''' {
<sqf>
BIS_PRELOAD_ARRAY=[]; textLogFormat['PRELOAD_ Preload Manager - onPreloadStarted, _maxTime %1 timenow %2', _maxTime, time];
onPreloadStarted {
startLoadingScreen[localize 'str_load_game', 'RscDisplayLoadMission'];
BIS_PRELOAD_ARRAY = [];
textLogFormat["PRELOAD_ Preload Manager - onPreloadStarted, _maxTime %1 timenow %2", _maxTime, time];
startLoadingScreen [localize "str_load_game", "RscDisplayLoadMission"];
};
};
'''[[onPreloadFinished]]''' {
onPreloadFinished {
textLogFormat['PRELOAD_  Preload Manager - onPreloadFinished T %1', time];
textLogFormat ["PRELOAD_  Preload Manager - onPreloadFinished T %1", time];
startLoadingScreen[<nowiki>''</nowiki>, 'RscDisplayLoadMission'];
startLoadingScreen["", "RscDisplayLoadMission"];
endLoadingScreen;
endLoadingScreen;
};</code>
};
</sqf>
 
 
{{GameCategory|arma2|Editor Modules}}

Latest revision as of 11:59, 15 July 2022

Preload Manager module defines surely something. But this is placeholder.


Initialization

Paths

Editor:

Modules (F7) > Preload Manager

Data:

ca\modules\Functions

(only in the config.bin)

Editor setup

What it is doing

the logic init code :

onPreloadStarted { BIS_PRELOAD_ARRAY = []; textLogFormat["PRELOAD_ Preload Manager - onPreloadStarted, _maxTime %1 timenow %2", _maxTime, time]; startLoadingScreen [localize "str_load_game", "RscDisplayLoadMission"]; }; onPreloadFinished { textLogFormat ["PRELOAD_ Preload Manager - onPreloadFinished T %1", time]; startLoadingScreen["", "RscDisplayLoadMission"]; endLoadingScreen; };