major updates to fbcb2 diary stuff

This commit is contained in:
2024-02-01 15:19:30 -08:00
parent 2d6fbcfcef
commit a7550d374e
11 changed files with 261 additions and 166 deletions

View File

@@ -1,8 +1,16 @@
_sunTimes = date call BIS_fnc_sunriseSunsetTime;
private _recordTitle = "MDS - INTEL - ENVIRONMENT";
_text = "
<font size='24' color='#ff0000'>=======------ Mission Data Set ------=======</font>
<br/><br/>
_sunTimes = date call BIS_fnc_sunriseSunsetTime;
_text = format[
"<font size='%1' color='%2' face='%3'>%4</font><br/><br/>",
milsim_fbcb2_recordTitleSize,
milsim_fbcb2_recordTitleColor,
milsim_fbcb2_recordTitleFont,
_recordTitle
];
_text = _text + "
<font size='16' color='#4A86E8'>Local Sunrise</font>
<br/>
<font size='20' color='#FF0000'>" + ([_sunTimes select 0, "HH:MM"] call BIS_fnc_timeToString) + "</font>
@@ -13,4 +21,10 @@ _text = "
<br/><br/>
";
player createDiaryRecord ["Status", ["MDS - INTEL - ENVIRONMENT", _text]];
player createDiaryRecord ["Status", ["MDS - INTEL - ENVIRONMENT", _text]];
[
milsim_fbcb2_subjectIntelID,
_recordTitle,
_text
] call milsim_fnc_createOrUpdateDiaryRecord;