Skip to content

Commit

Permalink
fixed display idd
Browse files Browse the repository at this point in the history
  • Loading branch information
tuntematonjr committed Nov 29, 2021
1 parent d2f2f0e commit 2fff2d7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 11 deletions.
2 changes: 1 addition & 1 deletion addons/Briefingtime/XEH_postInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
GVAR(Notifications) = [];
[{ !isNull findDisplay 53 || !isNull findDisplay 52 }, {

private _display = [52, 53] select isDedicated;
private _display = [53, 52] select !isNull findDisplay 52;
private _control = findDisplay _display ctrlCreate [QGVAR(timeText), 320001];
uiNamespace setVariable [QGVAR(timeText), _control ];

Expand Down
2 changes: 1 addition & 1 deletion addons/Briefingtime/functions/fnc_notification.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ if (!isNull (uiNamespace getVariable QGVAR(notificationBox))) exitWith {
[_text] call FUNC(notification);
}] call CBA_fnc_waitUntilAndExecute;
};
private _display = [52, 53] select isDedicated;
private _display = [53, 52] select !isNull findDisplay 52;

private _control = findDisplay _display ctrlCreate [QGVAR(notificationBox), 320006];
uiNamespace setVariable [QGVAR(notificationBox), _control ];
Expand Down
2 changes: 1 addition & 1 deletion addons/Briefingtime/functions/fnc_openTimeDialog.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*/
#include "script_component.hpp"

private _display = [52, 53] select isDedicated;
private _display = [53, 52] select !isNull findDisplay 52;
private _control = findDisplay _display createDisplay "Tun_Briefingtime_Time";
uiNamespace setVariable ["Tun_Briefingtime_Time", _control ];
[{!isNull findDisplay 320000}, {
Expand Down
10 changes: 2 additions & 8 deletions addons/Briefingtime/script_component.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,15 @@

#define MAJOR 1
#define MINOR 0
#define PATCHLVL 4
#define BUILD 28112021
#define PATCHLVL 5
#define BUILD 29112021

#define VERSION MAJOR.MINOR.PATCHLVL.BUILD
#define VERSION_AR MAJOR,MINOR,PATCHLVL,BUILD

// MINIMAL required version for the Mod. Components can specify others..
#define REQUIRED_VERSION 1.94

/*
#define DEBUG_ENABLED_SYS_MAIN
*/

#define DEBUG_MODE_FULL

#ifdef DEBUG_ENABLED_MAIN
#define DEBUG_MODE_FULL
#endif
Expand Down

0 comments on commit 2fff2d7

Please sign in to comment.