Now uses BIS_fnc_rscLayer

This commit is contained in:
Glowbal 2015-02-19 19:32:49 +01:00
parent c8d4acfc81
commit 21199a4ee6
2 changed files with 3 additions and 8 deletions

View File

@ -10,8 +10,6 @@
#include "script_component.hpp"
#define DISPLAY_LAYER 32547
private["_title", "_content","_type","_display","_headerCtrl","_contentCtrl","_contentAmountOfChars","_pos","_icon","_iconCtrl"];
_title = [_this, 0, "",[""]] call BIS_fnc_Param;
_content = [_this, 1, [""],[[""]]] call BIS_fnc_Param;
@ -19,7 +17,7 @@ _type = [_this, 2, 0, [0]] call BIS_fnc_Param;
_icon = [_this, 3, "",[""]] call BIS_fnc_Param;
if (_title != "") then {
DISPLAY_LAYER cutRsc ['ACE_RscDisplayInformation',"PLAIN"];
("ACE_RscDisplayInformation" call BIS_fnc_rscLayer) cutRsc ['ACE_RscDisplayInformation',"PLAIN"];
disableSerialization;
_display = uiNamespace getvariable 'ACE_RscDisplayInformation';
@ -62,6 +60,5 @@ if (_title != "") then {
};
};
} else {
DISPLAY_LAYER cutText ["","PLAIN"];
("ACE_RscDisplayInformation" call BIS_fnc_rscLayer) cutText ["","PLAIN"];
};

View File

@ -10,15 +10,13 @@
#include "script_component.hpp"
#define DISPLAY_LAYER 546
private["_title", "_content","_type","_display","_headerCtrl","_contentCtrl","_contentAmountOfChars","_pos"];
_title = [_this, 0, "",[""]] call BIS_fnc_Param;
_content = [_this, 1, "",[""]] call BIS_fnc_Param;
_type = [_this, 2, 0, [0]] call BIS_fnc_Param;
if (_title != "" && _content != "") then {
DISPLAY_LAYER cutRsc ['ACE_RscDisplayMessage',"PLAIN"];
("ACE_RscDisplayMessage" call BIS_fnc_rscLayer) cutRsc ['ACE_RscDisplayMessage',"PLAIN"];
disableSerialization;
_display = uiNamespace getvariable 'ACE_RscDisplayMessage';