Skip to content

Commit

Permalink
Removed and replaced date topic from diary record
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasBrostrom committed Jun 12, 2019
1 parent 3606d6f commit ae72280
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 3 deletions.
8 changes: 5 additions & 3 deletions addons/help/XEH_postInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

if (!hasInterface) exitWith {};

if !(profileNamespace getVariable QGVAR(ShowDiaryRecords)) exitWith {};

{
// create diary, entries added in reverse order
private _unit = player;
Expand Down Expand Up @@ -37,7 +39,7 @@ if (!hasInterface) exitWith {};
// delete last line breaks
_keys = _keys select [0, count _keys - 10];

_unit createDiaryRecord [QGVAR(docs), [localize "STR_CBA_Help_Keys", _keys]];
_unit createDiaryRecord [QGVAR(docs), [localize "STR_CBA_Credits", call (uiNamespace getVariable QGVAR(credits))]];
_unit createDiaryRecord [QGVAR(docs), [localize "STR_CBA_Addons", call (uiNamespace getVariable QGVAR(mods))]];
_unit createDiaryRecord [QGVAR(docs), [localize "STR_CBA_Help_Keys", format ["<font size=20>%1</font><br/>%2", localize "STR_CBA_Help_Keys", _keys]], taskNull, "", false];
_unit createDiaryRecord [QGVAR(docs), [localize "STR_CBA_Credits", format ["<font size=20>%1</font><br/>%2", localize "STR_CBA_Credits", call (uiNamespace getVariable QGVAR(credits))]], taskNull, "", false];
_unit createDiaryRecord [QGVAR(docs), [localize "STR_CBA_Addons", format ["<font size=20>%1</font><br/>%2", localize "STR_CBA_Addons", call (uiNamespace getVariable QGVAR(mods))]], taskNull, "", false];
} call CBA_fnc_execNextFrame;
9 changes: 9 additions & 0 deletions addons/help/XEH_preInit.sqf
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
//#define DEBUG_MODE_FULL
#include "script_component.hpp"

[
QGVAR(ShowDiaryRecords), "CHECKBOX",
[LLSTRING(ShowDiaryRecords), LLSTRING(ShowDiaryRecordsTooltip)],
LLSTRING(Category),
true,
nil,
{profileNamespace setVariable [QGVAR(ShowDiaryRecords), _this];}
] call CBA_fnc_addSetting;

if (!hasInterface) exitWith {};

ADDON = false;
Expand Down
9 changes: 9 additions & 0 deletions addons/help/stringtable.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,14 @@
<Chinesesimp>模组</Chinesesimp>
<Turkish>Modüller</Turkish>
</Key>
<Key ID="STR_CBA_Help_Category">
<English>CBA Help</English>
</Key>
<Key ID="STR_CBA_Help_ShowDiaryRecords">
<English>Create helper diary records</English>
</Key>
<Key ID="STR_CBA_Help_ShowDiaryRecordsTooltip">
<English>Setting to create helper diary record on mission start; key bindings, credits and addons.</English>
</Key>
</Package>
</Project>

0 comments on commit ae72280

Please sign in to comment.