Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DRP - add setting to enable the update part #73

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
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
2 changes: 1 addition & 1 deletion .hemtt/missions/ttt_test.VR/cba_settings.sqf
Original file line number Diff line number Diff line change
@@ -1 +1 @@
force ttt_teleporter_cam_enableTeleport = false;
force ttt_teleporter_cam_enableTeleport = false;
2 changes: 1 addition & 1 deletion addons/discord_richpresence/XEH_preInit.sqf
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#include "script_component.hpp"

PREP_RECOMPILE_START;

Check notice on line 3 in addons/discord_richpresence/XEH_preInit.sqf

View workflow job for this annotation

GitHub Actions / build

Variable should not be all caps: PREP_RECOMPILE_START

all caps variable
#include "XEH_PREP.hpp"
PREP_RECOMPILE_END;

// private _category = [QUOTE(MOD_NAME), LLSTRING(displayName)];

// #include "initSettings.inc.sqf"
#include "initSettings.inc.sqf"
// #include "initKeybinds.inc.sqf"
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@
* Example:
* [] call ttt_discord_richpresence_fnc_updateRichPresence
*
* Public: No
* Public: Yes

*/

if (!GVAR(enable)) exitWith {};

[
["UpdateDetails", missionNameSource],
["UpdateState", serverName],
Expand Down
7 changes: 7 additions & 0 deletions addons/discord_richpresence/initSettings.inc.sqf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[
QGVAR(enable),
"CHECKBOX",
["Aktivieren", "Aktiviert die Discord Rich Presence Funktion"],
["Tactical Training Team", "Discord Rich Presence"],
true
] call CBA_fnc_addSetting;
Loading