Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions x/ocap/addons/main/XEH_preInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,31 @@ GVAR(allSettings) = [
false // requires restart to apply
],

/*
CBA Setting: OCAP_enabledAdministratorUI
Description:
Turns on or off the Administrator UI in the briefing diary. Default: true

Setting Name:
Administrator UI Enabled

Value Type:
Boolean
*/
[
QGVARMAIN(enabledAdministratorUI),
"CHECKBOX", // setting type
[
"Administrator UI Enabled", // Pretty name shown inside the ingame settings menu. Can be stringtable entry.
"Turns on or off the Administrator UI in the briefing diary. Default: true"
],
[COMPONENT_NAME, "Core"], // Pretty name of the category where the setting can be found. Can be stringtable entry.
true, // default enabled
true, // "_isGlobal" flag. Set this to true to always have this setting synchronized between all clients in multiplayer
{}, // function that will be executed once on mission start and every time the setting is changed.
false // requires restart to apply
],

/*
CBA Setting: OCAP_administratorList
Description:
Expand Down
2 changes: 2 additions & 0 deletions x/ocap/addons/recorder/fnc_adminUIcontrol.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@

#include "script_component.hpp"

if (!GVARMAIN(enabledAdministratorUI)) exitWith {};

params [
"_PID",
["_event", "", [""]]
Expand Down