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

add setting #49

Merged
merged 1 commit into from
Feb 16, 2021
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
2 changes: 2 additions & 0 deletions addons/uh60_anvishud/XEH_preInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ ADDON = false;

#include "XEH_PREP.hpp"

#include "initSettings.sqf"

ADDON = true;
2 changes: 1 addition & 1 deletion addons/uh60_anvishud/functions/fnc_setup.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ params ["_vehicle"];

if (!(typeOf _vehicle in ["vtx_MH60S_Pylons_GAU21L","vtx_MH60S_GAU21L","vtx_MH60S_Pylons","vtx_MH60S","vtx_MH60M_DAP","vtx_MH60M"])) exitWith { false };

_vehicle setUserMFDValue [15, 1];
_vehicle setUserMFDValue [15, vtx_uh60_anvishud_defaultMode];
true
13 changes: 13 additions & 0 deletions addons/uh60_anvishud/initSettings.sqf
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[
"vtx_uh60_anvishud_defaultMode", "LIST",
["HMD Default Mode", "The mode which the HMD will start on. Default: Off"],
"UH-60M",
[[-1, 1, 2, 3, 4], [
"STR_3DEN_Attributes_Radar_RadarOff_text",
"Imperial Full",
"Imperial Decluttered",
"Metric Full",
"Metric Decluttered"
], 0],
false // isGlobal
] call CBA_settings_fnc_init;