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

Option to have BFT markers on vanilla map #83

Merged
merged 1 commit into from
Jan 18, 2025
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
18 changes: 18 additions & 0 deletions @cTab/addons/core/XEH_preInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,21 @@ if (isClass (configFile >> "CfgWeapons" >> "ACE_microDAGR")) then {

[QGVAR(helmetcam_mode), "LIST", [LLSTRING(helmetcam_mode), LLSTRING(helmetcam_modeDetails)], ["cTab", LLSTRING(videoCategory)], [[0, 1], [LLSTRING(disabled), LLSTRING(enabled)], 1], 0, {}, false] call CBA_fnc_addSetting;
[QGVAR(uav_mode), "LIST", [LLSTRING(uav_mode), LLSTRING(uav_modeDetails)], ["cTab", LLSTRING(videoCategory)], [[0, 1], [LLSTRING(disabled), LLSTRING(enabled)], 1], 0, {}, false] call CBA_fnc_addSetting;

// Main Map settings
GVAR(drawMainMapHandler) = -1;
[QGVAR(drawMainMap), "CHECKBOX", [LLSTRING(drawMainMap), LLSTRING(drawMainMapDetails)], ["cTab", LLSTRING(mapCategory)], false, 0, {
if (!hasInterface) exitWith {};
if ( GVAR(drawMainMap) ) then {
GVAR(drawMainMapHandler) = (findDisplay 12 displayCtrl 51) ctrlAddEventHandler ["draw", {
params ["_ctrl"];
[_ctrl,false] call cTab_fnc_drawUserMarkers;
[_ctrl,0] call cTab_fnc_drawBftMarkers;
}];
} else {
if ( GVAR(drawMainMapHandler) != -1 ) then {
(findDisplay 12 displayCtrl 51) ctrlRemoveEventHandler ["draw", GVAR(drawMainMapHandler)];
GVAR(drawMainMapHandler) = -1;
};
};
}, false] call CBA_fnc_addSetting;
8 changes: 8 additions & 0 deletions @cTab/addons/core/stringtable.xml
Original file line number Diff line number Diff line change
Expand Up @@ -784,5 +784,13 @@
<English>Where is the unit moving?</English>
<French>Par où se déplace l'unité ?</French>
</Key>
<Key ID="STR_ctab_core_drawMainMap">
<English>Add Blue Force Tracking to game map</English>
<French>Ajouter le Blue Force Tracking à la carte du jeu</French>
</Key>
<Key ID="STR_ctab_core_drawMainMapDetails">
<English>Displays Blue Force Tracking symbols from cTab on standard game map</English>
<French>Affiche les symboles Blue Force Tracking sur la carte standard du jeu</French>
</Key>
</Package>
</Project>
Loading