ACE3/addons/interaction/functions/fnc_canRenameGroup.sqf
Seb 88e774c30d
Interaction - Rename group self-interact (#8346)
* Group renaming self interact

* UI base

* Custom UI solution (looks terrible)

* Improve GUI, optimise functions

* Add exitWith return value to fnc_renameGroup

* tabs to spaces

* Small tweaks

* newlines

pre-empting newline gestapo

* input prompt caps

* Implement suggestions

* Remove already inherited value

* Per-side group name handling

* Add same group case sensitive changes.

* Suggestions

- Use ace_common_fnc_displayTextStructured
- Formatting
- Phrasing of strings

* replace spawn with CBA_fnc_execNextFrame

* Update addons/interaction/initSettings.sqf

Co-authored-by: PabstMirror <pabstmirror@gmail.com>

Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2021-10-12 12:53:35 -05:00

21 lines
394 B
Plaintext

#include "script_component.hpp"
/*
* Author: Seb
* Checks if the unit is allowed to rename its group.
*
* Arguments:
* 0: Unit <OBJECT>
*
* Return Value:
* Is this unit allowed to rename its group? <BOOL>
*
* Example:
* player call ace_interaction_fnc_canRenameGroup
*
* Public: No
*/
params [["_unit", objNull, [objNull]]];
GVAR(enableGroupRenaming) && {_unit == leader _unit}