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

Remove h60 mentions & wrap debug messages #39

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
Binary file modified .sconsign.dblite
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[] spawn {
if (missionNamespace getVariable ["vxf_uh60_interaction_autoclose_actionmenu", false]) then {
if (missionNamespace getVariable ["vxf_interaction_autoclose_actionmenu", false]) then {
showCommandingMenu "RscMainMenu";
showCommandingMenu "";
};
Expand Down
2 changes: 1 addition & 1 deletion addons/hatchet_vxf_interaction/functions/keys/buttonUp.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ vxf_interaction_buttonHoldCode = nil;
if (!isNil "_knobClick") then {
private _clickTime = time - vxf_interaction_dragging_buttonDownTime;
if (_clickTime < 0.25) then {
systemChat format["CLICK TIME %1", _clickTime];
if (vxf_interactionShowDebugMessages) then {systemChat format["CLICK TIME %1", _clickTime];};
[_vehicle] call _knobClick;
};
};
Expand Down
2 changes: 1 addition & 1 deletion addons/hatchet_vxf_interaction/functions/keys/drag.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ if (count _screenPos == 2) then {
//systemchat str (_verticalDistance / _dragRange) * _animRange;
//systemChat str [abs _verticalDistance, abs vxf_interaction_dragging_lastDragDistance, abs (abs vxf_interaction_dragging_lastDragDistance - abs _verticalDistance)];
if(abs (abs vxf_interaction_dragging_lastDragDistance - abs _verticalDistance) > 0.02) then {
systemChat str _verticalDistance;
if (vxf_interactionShowDebugMessages) then {systemChat str _verticalDistance;};
private _animRange = (_animLimits # 0) - (_animLimits # 1);
vxf_interaction_dragging_lastDragDistance = _verticalDistance;
private _dragEndPoint = vxf_interaction_dragging_startAnimPhase + ((_verticalDistance / _dragRange) * _animRange);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@

params ["_vehicle", "_pointPos", "_iconIndex", "_label"];

if(vxf_uh60_interaction_pointing) then {
if(vxf_interaction_pointing) then {
[_pointPos, _iconIndex, _label] remoteExecCall ["vxf_interaction_fnc_pointNetReceive", crew _vehicle];
};
22 changes: 12 additions & 10 deletions addons/hatchet_vxf_interaction/functions/preInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
] call CBA_Settings_fnc_init;

[
"vxf_uh60_interaction_pointing",
"vxf_interaction_pointing",
"checkbox",
"Enable pointing system(uses remoteCall)",
"Hatchet Vehicle Framework",
Expand Down Expand Up @@ -79,7 +79,7 @@
] call CBA_fnc_addKeybind;

[
"vxf_uh60_interaction_autoclose_actionmenu",
"vxf_interaction_autoclose_actionmenu",
"checkbox",
"Automatically close action menu (experimental)",
"Hatchet Vehicle Framework",
Expand All @@ -103,13 +103,15 @@
]
] call CBA_fnc_addSetting;

vtx_uh60m_enabled_jvmf = true;
vtx_uh60m_enabled_fms = true;
vtx_uh60m_enabled_mfd = true;
vtx_uh60m_enabled_fd = true;
vtx_uh60m_enabled_cas = true;
vtx_uh60m_enabled_aar = true;
vtx_uh60m_enabled_flir = true;
vtx_uh60m_enabled_engine = true;
[
"vxf_interaction_showDebugMessages",
"checkbox",
"Enable debug messages",
"Hatchet Vehicle Framework",
[false],
nil,
{}
] call CBA_Settings_fnc_init;

vxf_alternative_scroll_up = false;
vxf_alternative_scroll_down = false;
Loading