Skip to content

Commit

Permalink
Fix VehicleInfoText overflowing with long Rack Names
Browse files Browse the repository at this point in the history
  • Loading branch information
mrschick committed Aug 11, 2024
1 parent 0b2875c commit 095bac7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion addons/sys_gui/RscTitles.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class RscTitles {
};
class VehicleInfoText: RscStructuredText {
idc = 2;
w = QUOTE(10 * VEHICLE_INFO_DEFAULT_W); // Must be specifically widened
w = QUOTE(VEHICLE_INFO_DEFAULT_W);
};
};
};
Expand Down
2 changes: 1 addition & 1 deletion addons/sys_gui/fnc_updateVehicleInfo.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ _ctrlText ctrlSetStructuredText parseText _str;

// Calculate new height (3 elements per row)
private _rows = ceil ((1 max _elements) / 3);
private _newBaseH = (((safezoneW / safezoneH) min 1.2) / 1.2) / 25;
private _newBaseH = (((safezoneW / safezoneH) min 1.2) / 1.2) / 23;
private _newH = _newBaseH * _rows;
private _newContainerH = (0.8 * _newH) + 0.001;
TRACE_4("vehicle info height",_elements,_rows,_newH,_newContainerH);
Expand Down

0 comments on commit 095bac7

Please sign in to comment.