-
Notifications
You must be signed in to change notification settings - Fork 150
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 #1212 from CBATeam/fixed-error-messages
add CONTACT SERVER ADMIN header to signature mismatch message
- Loading branch information
Showing
4 changed files
with
24 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#include "script_component.hpp" | ||
|
||
params ["_display"]; | ||
|
||
private _messageBox = _display displayCtrl IDC_MSG_BOX_MESSAGE; | ||
private _message = ctrlText _messageBox; | ||
|
||
// This check has to work with all languages and without functions defined in mission namespace. | ||
private _isSignatureMissingMessage = _message find (with uiNamespace do { | ||
[localize "str_signature_missing", "%s"] call CBA_fnc_split | ||
} select 1) != -1; | ||
|
||
if (_isSignatureMissingMessage) then { | ||
private _messageBoxHeader = _display displayCtrl 11001; | ||
_messageBoxHeader ctrlSetText toUpper LLSTRING(ContactServerAdmin); | ||
}; |
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