move local diary mgmt to common module, clarify clientInit complete msg
This commit is contained in:
@@ -109,4 +109,4 @@ _text = _text joinString "<br/>";
|
||||
GVAR(subjectIntelID),
|
||||
_recordTitle,
|
||||
_text
|
||||
] call FUNC(createOrUpdateDiaryRecord);
|
||||
] call EFUNC(common,createOrUpdateDiaryRecord);
|
||||
@@ -62,7 +62,7 @@ reverse _battalionElementCfgs;
|
||||
GVAR(subjectFrequenciesID),
|
||||
_diaryTitleText#0,
|
||||
_diaryTitleText#1
|
||||
] call FUNC(createOrUpdateDiaryRecord);
|
||||
] call EFUNC(common,createOrUpdateDiaryRecord);
|
||||
} forEach _battalionElementCfgs;
|
||||
|
||||
// add the battalion command to the top of the list
|
||||
@@ -72,6 +72,6 @@ private _diaryTitleText = [_battalionInfoCfg >> "Command", false] call FUNC(gene
|
||||
GVAR(subjectFrequenciesID),
|
||||
_diaryTitleText#0,
|
||||
_diaryTitleText#1
|
||||
] call FUNC(createOrUpdateDiaryRecord);
|
||||
] call EFUNC(common,createOrUpdateDiaryRecord);
|
||||
|
||||
true;
|
||||
@@ -56,4 +56,4 @@ _text = _text joinString "<br/><br/>";
|
||||
GVAR(subjectIntelID),
|
||||
_recordTitle,
|
||||
_text
|
||||
] call FUNC(createOrUpdateDiaryRecord);
|
||||
] call EFUNC(common,createOrUpdateDiaryRecord);
|
||||
@@ -25,12 +25,6 @@ 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);
|
||||
@@ -47,7 +41,7 @@ GVAR(diaryRecords) = createHashMap;
|
||||
[
|
||||
LEVEL_DEBUG,
|
||||
QUOTE(COMPONENT),
|
||||
"postInit complete",
|
||||
"initClient complete",
|
||||
[]
|
||||
] call EFUNC(common,log);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user