Skip to content

Commit

Permalink
Fixes and Improvements for new Hemtt
Browse files Browse the repository at this point in the history
  • Loading branch information
jokoho48 committed Apr 19, 2024
1 parent 3823741 commit 90c44c8
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 16 deletions.
3 changes: 0 additions & 3 deletions .hemtt/project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ include = ["./include"]
[version]
path = "addons/Streamator/macros.hpp"

[asc]
enabled = true

[hemtt.signing]
authority = "Streamator"

Expand Down
6 changes: 1 addition & 5 deletions addons/Streamator/Spectator/Input/fn_keyDownEH.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -248,11 +248,7 @@ private _return = switch (_keyCode) do {
CAMERAMODE_FREE;
};
case DIK_RETURN: {
if (GVAR(CameraMode) == CAMERAMODE_FREE) then {
CAMERAMODE_FOLLOW
} else {
GVAR(CameraMode);
};
[GVAR(CameraMode), CAMERAMODE_FOLLOW] select (GVAR(CameraMode) == CAMERAMODE_FREE);
};
case DIK_NUMPAD1: {CAMERAMODE_FOLLOW};
case DIK_NUMPAD2: {CAMERAMODE_SHOULDER};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
}] call FUNC(addMenuItem);

["View Distance", "MAIN/MISC", DIK_F4, "MAIN/MISC/VIEWDISTANCE", {!GVAR(MapOpen)}, true] call FUNC(addMenuItem);
CREATE_BACK_ACTION("MAIN/MISC/VIEWDISTANCE", "MAIN/MISC");
CREATE_BACK_ACTION("MAIN/MISC/VIEWDISTANCE","MAIN/MISC");

private _fnc_doViewDistance = {
params ["_type"];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
}] call FUNC(addMenuItem);
// Thermal Vision Modes
["Thermal Modes", "MAIN/VISION", DIK_F4, "MAIN/VISION/THERMALMODES", {true}, true] call FUNC(addMenuItem);
CREATE_BACK_ACTION("MAIN/VISION/THERMALMODES", "MAIN/VISION");
CREATE_BACK_ACTION("MAIN/VISION/THERMALMODES","MAIN/VISION");

private _fnc_setThermalMode = {
params ["_mode"];
Expand Down
10 changes: 5 additions & 5 deletions addons/Streamator/Spectator/UI/fn_findInputEvents.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -71,17 +71,17 @@ params ["_ctrlInfo"];
_data = _data select 0;
};
private _distance = switch (typeName _data) do {
case (typeName ""): {
case ("STRING"): {
GVAR(Camera) distance2D (getMarkerPos _data);
};
case (typeName []);
case (typeName objNull): {
case ("ARRAY");
case ("OBJECT"): {
GVAR(Camera) distance _data;
};
case (typeName grpNull): {
case ("GROUP"): {
GVAR(Camera) distance (leader _data);
};
case (typeName locationNull): {
case ("LOCATION"): {
GVAR(Camera) distance (getPos _data);
};
default {
Expand Down
2 changes: 1 addition & 1 deletion addons/Streamator/Spectator/User/fn_addCustom3dIcon.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ private _buildedIcons = [];
{
private _code = _x param [13, {}, [{}]];
private _codeStr = {
if (GVAR(hideUI)) then {false} else {GVAR(OverlayCustomMarker)};
!GVAR(hideUI) && GVAR(OverlayCustomMarker)
} call CFUNC(codeToString);
if (_code isNotEqualTo {}) then {
private _strCond = _code call CFUNC(codeToString);
Expand Down

0 comments on commit 90c44c8

Please sign in to comment.