Skip to content

Commit

Permalink
Provide clean way of doing single line objectives
Browse files Browse the repository at this point in the history
  • Loading branch information
James Kingsley committed Apr 12, 2017
1 parent cd55aeb commit 2aeda6d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions ARCMF.VR/f/arc/helpers/fn_buildBriefingFromConfig.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,14 @@ private _output = "";
private _lines = getArray (missionConfigFile >> "CfgARCMF" >> "briefing" >> _faction >> _category);

{
if (_x != "") then {
_output = _output + format ["%1%2", _x, (["", "<br/><br/>"] select (_forEachIndex != (count _lines - 1)))];
private _firstChar = _x select [0, 1];
private _lineBreak = ["", "<br/><br/>"] select (_forEachIndex != (count _lines - 1));

if (_firstChar == '-') then {
_lineBreak = '<br/>';
};

_output = _output + format ["%1%2", _x, _lineBreak];
} forEach _lines;

_output
2 changes: 1 addition & 1 deletion ARCMF.VR/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.5.1
1.5.2

0 comments on commit 2aeda6d

Please sign in to comment.