-
-
Notifications
You must be signed in to change notification settings - Fork 307
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #590 from KillahPotatoes/v0.97S12-585-Wyqer
Sprint 11 Bugs/Tweaks (Wyqers part)
- Loading branch information
Showing
21 changed files
with
198 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/* | ||
KPLIB_fnc_common_log | ||
File: fn_common_log.sqf | ||
Author: KP Liberation Dev Team - https://github.com/KillahPotatoes | ||
Date: 2019-04-15 | ||
Last Update: 2019-04-17 | ||
License: GNU General Public License v3.0 - https://www.gnu.org/licenses/gpl-3.0.html | ||
Public: Yes | ||
Description: | ||
A replacement for the diag_log function. This should be used instead of the vanilla function. | ||
It'll add automatically the [KP LIBERATION] tag and allows to specify a module tag and if the diag_tickTime should be shown. | ||
It also gets rid of the quotation marks in the rpt for the log messages. | ||
Parameter(s): | ||
_text - Text of the log entry [STRING, defaults to ""] | ||
_module - Tag which should be written before the log entry text in square brackets [STRING, defaults to ""] | ||
_tickTime - Should a diag_tickTime shown in the log entry [BOOL, defaults to false] | ||
Returns: | ||
Function reached the end [BOOL] | ||
*/ | ||
|
||
params [ | ||
["_text", "", [""]], | ||
["_module", "", [""]], | ||
["_tickTime", false, [false]] | ||
]; | ||
|
||
// Compose log entry | ||
private _entry = [ | ||
"[KP LIBERATION] ", | ||
(["", format ["[%1] ", diag_tickTime]] select _tickTime), | ||
(["", format ["[%1] ", _module]] select !(_module isEqualTo "")), | ||
_text | ||
] joinString ""; | ||
|
||
// Write log entry | ||
diag_log text _entry; | ||
|
||
true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.