ready for dedi -- improvements to resupply, triageIcons too
This commit is contained in:
54
framework/fbcb2_main/functions/fn_initClient.sqf
Normal file
54
framework/fbcb2_main/functions/fn_initClient.sqf
Normal file
@@ -0,0 +1,54 @@
|
||||
#include "../script_component.hpp"
|
||||
|
||||
if ( !hasInterface ) exitWith {};
|
||||
|
||||
GVAR(recordTitleColor) = "#ff6666";
|
||||
GVAR(recordTitleFont) = "PuristaMedium";
|
||||
GVAR(recordTitleSize) = 20;
|
||||
|
||||
GVAR(recordTextHeaderSize) = 16;
|
||||
GVAR(recordTextBodySize) = 14;
|
||||
|
||||
GVAR(subjectStatusID) = "FBCB2_Status";
|
||||
GVAR(subjectIntelID) = "FBCB2_Intel";
|
||||
GVAR(subjectMessagesID) = "FBCB2_Messages";
|
||||
GVAR(subjectFrequenciesID) = "FBCB2_Frequencies";
|
||||
GVAR(subjectAssetsFixedWingID) = "FBCB2_Assets_FixedWing";
|
||||
GVAR(subjectAssetsRotaryID) = "FBCB2_Assets_Rotary";
|
||||
GVAR(subjectAssetsGroundID) = "FBCB2_Assets_Ground";
|
||||
|
||||
player createDiarySubject[GVAR(subjectStatusID), "FBCB2 Status"];
|
||||
player createDiarySubject[GVAR(subjectMessagesID), "FBCB2 Messages"];
|
||||
player createDiarySubject[GVAR(subjectIntelID), "FBCB2 Intel"];
|
||||
player createDiarySubject[GVAR(subjectFrequenciesID), "FBCB2 Frequencies"];
|
||||
player createDiarySubject[GVAR(subjectAssetsFixedWingID), "FBCB2 Planes"];
|
||||
player createDiarySubject[GVAR(subjectAssetsRotaryID), "FBCB2 Helicopters"];
|
||||
player createDiarySubject[GVAR(subjectAssetsGroundID), "FBCB2 Ground"];
|
||||
|
||||
// store records in format:
|
||||
// [subject, [
|
||||
// [title, diaryRecord]
|
||||
// ]]
|
||||
GVAR(diaryRecords) = createHashMap;
|
||||
|
||||
// run main inits
|
||||
[] call FUNC(addFrequenciesRecord);
|
||||
[] call FUNC(addSignalColorsRecord);
|
||||
[] call FUNC(addEnvironmentRecord);
|
||||
|
||||
// starting 5 minutes after postInit, update weather diary record every 5 minutes
|
||||
[{
|
||||
[
|
||||
{call FUNC(addEnvironmentRecord);},
|
||||
60*5
|
||||
] call CBA_fnc_addPerFrameHandler;
|
||||
}, 60*5] call CBA_fnc_waitAndExecute;
|
||||
|
||||
[
|
||||
LEVEL_DEBUG,
|
||||
QUOTE(COMPONENT),
|
||||
"postInit complete",
|
||||
[]
|
||||
] call EFUNC(common,log);
|
||||
|
||||
localNamespace setVariable [QGVAR(complete), true];
|
||||
Reference in New Issue
Block a user