Skip to content

Commit

Permalink
Merge pull request #382 from CBATeam/fix_display_configure
Browse files Browse the repository at this point in the history
use a displayLoad eh for DisplayConfigure instead of overloading the onLoad config entry
  • Loading branch information
Killswitch00 committed Jun 18, 2016
2 parents f7f5010 + 77d535f commit 038f9ca
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
14 changes: 9 additions & 5 deletions addons/keybinding/CfgEventHandlers.hpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
class Extended_PreInit_EventHandlers
{
class ADDON
{
clientInit = QUOTE(call COMPILE_FILE(XEH_preClientInit));

class Extended_PreInit_EventHandlers {
class ADDON {
init = QUOTE(call COMPILE_FILE(XEH_preInit));
};
};

class Extended_DisplayLoad_EventHandlers {
class RscDisplayConfigure {
ADDON = QUOTE(_this call COMPILE_FILE(XEH_configureDisplayLoad));
};
};
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#include "script_component.hpp"
SCRIPT(XEH_preInit);

if (!hasInterface) exitWith {};

ADDON = false;

// Load DIK to string conversion table.
Expand Down
2 changes: 0 additions & 2 deletions addons/keybinding/gui/gui.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ class RscListBoxKeys;
///////////////////////////////////////////////////////////////////////////////

class RscDisplayConfigure {
onLoad = "[""onLoad"",_this,""RscDisplayConfigure"",'GUI'] call compile preprocessfilelinenumbers ""a3\ui_f\scripts\initDisplay.sqf""; _this call compile preprocessfilelinenumbers ""\x\cba\addons\keybinding\gui\initDisplay.sqf""";

class controls {
class CA_ButtonCancel: RscButtonMenuCancel {
onButtonClick = "_this call cba_keybinding_fnc_onButtonClick_cancel";
Expand Down

0 comments on commit 038f9ca

Please sign in to comment.