Skip to content

Commit

Permalink
progress
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCandianVendingMachine committed Mar 2, 2025
1 parent 0b8a3d9 commit 20ec109
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion addons/laser_warning/functions/fnc_ui_create.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@

(_display displayCtrl 212) ctrlAddEventHandler ["ButtonDown", _fnc_powerToggle];
{
(_display displayCtrl _x) ctrlAddEventHandler ["ButtonDown", _fnc_pushButton ];
(_display displayCtrl _x) ctrlAddEventHandler ["ButtonDown", _fnc_pushButton];
(_display displayCtrl _x) ctrlAddEventHandler ["ButtonUp", _fnc_unpushButton];
} forEach [111, 112, 113, 114, 115, 116, 117, 118];

Expand Down
17 changes: 17 additions & 0 deletions addons/laser_warning/functions/fnc_ui_pushButton.sqf
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#include "..\script_component.hpp"
/*
* Author: tcvm
* Controls a OSB button press
*
* Arguments:
* 0: Display <DISPLAY>
*
* Return Value:
* None
*
* Example:
* [displayNull] call ace_laser_warning_fnc_ui_pushButton
*
* Public: No
*/
params ["_display"];

0 comments on commit 20ec109

Please sign in to comment.