mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Now uses BIS_fnc_rscLayer
This commit is contained in:
parent
c8d4acfc81
commit
21199a4ee6
@ -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"];
|
||||
};
|
@ -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';
|
||||
|
Loading…
Reference in New Issue
Block a user