Skip to content

Commit

Permalink
remove url from credits
Browse files Browse the repository at this point in the history
  • Loading branch information
commy2 committed Jun 23, 2016
1 parent 6e10dfe commit 182d044
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions addons/help/fnc_setCreditsLine.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -70,25 +70,6 @@ if (isArray (_entry >> "authors")) then {
} forEach _authors;
};

// url if any
private _url = "";

if (isText (_entry >> "url")) then {
_url = getText (_entry >> "url");

if (!CBA_MonochromeCredits) then {
_url = format ["<t color='#566D7E'>%1</t>", _url];
};
} else {
if (isText (_entry >> "authorUrl")) then {
_url = getText (_entry >> "authorUrl");

if (!CBA_MonochromeCredits) then {
_url = format ["<t color='#566D7E'>%1</t>", _url];
};
};
};

// version if any
private _version = "";

Expand All @@ -97,4 +78,4 @@ if (isText (_entry >> "version")) then {
};

// add single line
_ctrl ctrlSetStructuredText parseText format ["%1%2 by %3 %4", _name, _version, _author, _url];
_ctrl ctrlSetStructuredText parseText format ["%1%2 by %3 %4", _name, _version, _author];

0 comments on commit 182d044

Please sign in to comment.