Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions addons/events/XEH_preClientInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,13 @@ FUNC(attach_handler) = {
["KeyUp", QUOTE(UP call FUNC(keyHandler))] call (uiNamespace getVariable "CBA_fnc_addDisplayHandler");
["KeyDown", QUOTE(DOWN call FUNC(keyHandler))] call (uiNamespace getVariable "CBA_fnc_addDisplayHandler");

// add keyhandlers to zeus interface
["CBA_curatorOpened", {
params ["_display"];
_display displayAddEventHandler ["KeyUp", {UP call FUNC(keyHandler)}];
_display displayAddEventHandler ["KeyDown", {DOWN call FUNC(keyHandler)}];
}] call CBA_fnc_addEventHandler;

SLX_XEH_STR spawn {
waitUntil { !isNull (findDisplay 46) };
// Workaround for Single Player, mission editor, or mission, preview/continue, whatever, adding double handlers
Expand Down
5 changes: 5 additions & 0 deletions addons/keybinding/gui/gui.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,3 +174,8 @@ class RscDisplayConfigure {
};
};
};

class RscDisplayCurator {
onLoad = "['CBA_curatorOpened', _this] call CBA_fnc_localEvent; [""onLoad"",_this,""RscDisplayCurator"",'CuratorDisplays'] call (uinamespace getvariable 'BIS_fnc_initDisplay')";
onUnload = "['CBA_curatorClosed', _this] call CBA_fnc_localEvent; [""onUnload"",_this,""RscDisplayCurator"",'CuratorDisplays'] call (uinamespace getvariable 'BIS_fnc_initDisplay')";
};