mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
MicroDAGR - Add mode switching keybinds (#8216)
* Initial push * Mode cycling * Use defines
This commit is contained in:
parent
5a57b9fdc5
commit
3a74ed3125
@ -17,6 +17,22 @@ private _closeCode = {
|
||||
};
|
||||
[(localize LSTRING(itemName)), QPATHTOF(images\microDAGR_item.paa), _conditonCode, _toggleCode, _closeCode] call EFUNC(common,deviceKeyRegisterNew);
|
||||
|
||||
// Mode keybinds:
|
||||
["ACE3 Equipment", QGVAR(previousMode), LLSTRING(previousMode), {
|
||||
private _newMode = GVAR(currentApplicationPage) - 1;
|
||||
if (_newMode < APP_MODE_INFODISPLAY) then {
|
||||
_newMode = APP_MODE_SETUP;
|
||||
};
|
||||
[_newMode] call FUNC(saveCurrentAndSetNewMode);
|
||||
}, ""] call CBA_fnc_addKeybind;
|
||||
|
||||
["ACE3 Equipment", QGVAR(nextMode), LLSTRING(nextMode), {
|
||||
private _newMode = GVAR(currentApplicationPage) + 1;
|
||||
if (_newMode > APP_MODE_SETUP) then {
|
||||
_newMode = APP_MODE_INFODISPLAY;
|
||||
};
|
||||
[_newMode] call FUNC(saveCurrentAndSetNewMode);
|
||||
}, ""] call CBA_fnc_addKeybind;
|
||||
|
||||
//Add Eventhandler:
|
||||
[QEGVAR(vector,rangefinderData), {_this call FUNC(recieveRangefinderData)}] call CBA_fnc_addEventHandler;
|
||||
|
@ -20,7 +20,7 @@ params ["_newMode"];
|
||||
disableSerialization;
|
||||
private _display = uiNamespace getVariable [[QGVAR(RscTitleDisplay), QGVAR(DialogDisplay)] select (GVAR(currentShowMode) == DISPLAY_MODE_DIALOG), displayNull];
|
||||
|
||||
if (isNull _display) exitWith {ERROR("No Display");};
|
||||
if (isNull _display) exitWith {LOG("No Display");};
|
||||
|
||||
if (GVAR(currentApplicationPage) == 2) then {
|
||||
private _theMap = [_display displayCtrl IDC_MAPDETAILS, _display displayCtrl IDC_MAPPLAIN] select (!GVAR(mapShowTexture));
|
||||
|
@ -584,5 +584,11 @@
|
||||
<Chinesesimp>设定有多少数据会显示在微型军用GPS接收器上。这些资料的多寡会反映在迷你地图的显示上。</Chinesesimp>
|
||||
<Chinese>設定有多少數據會顯示在微型軍用GPS接收器上。這些資料的多寡會反映在迷你地圖的顯示上。</Chinese>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_MicroDAGR_previousMode">
|
||||
<English>MicroDAGR - Previous Mode</English>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_MicroDAGR_nextMode">
|
||||
<English>MicroDAGR - Next Mode</English>
|
||||
</Key>
|
||||
</Package>
|
||||
</Project>
|
||||
|
Loading…
Reference in New Issue
Block a user