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

Feature/option clear jvmf #432

Merged
merged 14 commits into from
Oct 20, 2024
Merged
3 changes: 3 additions & 0 deletions addons/uh60_jvmf/XEH_preInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ VTX_JVMF_MESSAGES = [
]
*/
];
if (!vtx_uh60_jvmf_defaults) then {
VTX_JVMF_MESSAGES = [];
};
VTX_JVMF_SELECTED_IDX = 0;

ADDON = true;
8 changes: 8 additions & 0 deletions addons/uh60_jvmf/XEH_preStart.sqf
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
#include "script_component.hpp"

#include "XEH_PREP.hpp"

[
"vtx_uh60_jvmf_defaults"
,"CHECKBOX"
,["Enable JVMF Default Messages", "The JVMF Default messages provide an example of usage of the JVMF"]
,["UH-60M", "JVMF"]
[true];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't look correct.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, I see it. I'm missing a comma. Does the syntax for cba_fnc_addSetting look correct?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also think the order on where I'm executing the code if off as well, and this function belongs in the "XEH_preInit.sqf"

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bool, not an array.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you

] call CBA_fnc_addSetting;