Skip to content

Commit

Permalink
Merge pull request #1075 from CBATeam/layout-editor-saved-event
Browse files Browse the repository at this point in the history
add event for confirming changes in Layout Editor
  • Loading branch information
ViperMaul authored Feb 22, 2019
2 parents 9743fc5 + 1c6098d commit 0bac2f8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions addons/ui/fnc_initDisplayOptionsLayout.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@

params ["_display"];

private _ok = _display displayCtrl IDC_OK;

_ok ctrlAddEventHandler ["ButtonClick", {
["CBA_layoutEditorSaved", []] call CBA_fnc_localEvent;
}];

for "_idc" from IDCBASE to (IDCBASE + 99) do {
private _control = _display displayCtrl _idc;

Expand Down

0 comments on commit 0bac2f8

Please sign in to comment.