-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Open editable objects dialog when clicking main action (#430)
- Loading branch information
Showing
4 changed files
with
33 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
addons/context_actions/functions/fnc_openEditableObjectsDialog.sqf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#include "script_component.hpp" | ||
/* | ||
* Author: mharis001 | ||
* Opens the "Update Editable Objects" module dialog at the given position. | ||
* | ||
* Arguments: | ||
* 0: Position <ARRAY> | ||
* | ||
* Return Value: | ||
* None | ||
* | ||
* Example: | ||
* [_position] call zen_context_actions_fnc_openEditableObjectsDialog | ||
* | ||
* Public: No | ||
*/ | ||
|
||
params ["_position"]; | ||
|
||
private _logic = QEGVAR(modules,moduleEditableObjects) createVehicleLocal [0, 0, 0]; | ||
_logic setPosASL _position; | ||
|
||
_logic call BIS_fnc_showCuratorAttributes; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters