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

Lobby Manager - Always use maximum available space for warning label #1461

Merged
merged 1 commit into from
Jun 4, 2021
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
1 change: 1 addition & 0 deletions addons/ui/LobbyManager.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ class GVAR(LobbyManager) {
idc = IDC_LM_WARNING;
x = (getResolution select 2) * 0.5 * pixelW - (140/2) * GRID_3DEN_W;
y = 0.5 + (120/2 - 10 - 1) * GRID_3DEN_H;
w = 87 * GRID_3DEN_W;
h = 5 * GRID_3DEN_H;
};
class ButtonOK: ctrlButtonOK {
Expand Down
2 changes: 0 additions & 2 deletions addons/ui/fnc_openLobbyManager.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ private _display = _display3DEN createDisplay QGVAR(LobbyManager);
// Initialize warning label
private _ctrlWarning = _display displayCtrl IDC_LM_WARNING;
_ctrlWarning ctrlSetStructuredText parseText format ["<img image='%1'/><t> %2</t>", ICON_WARNING, LLSTRING(LobbyManager_Warning)];
_ctrlWarning ctrlSetPositionW ctrlTextWidth _ctrlWarning;
_ctrlWarning ctrlCommit 0;

private _ctrlSlots = _display displayCtrl IDC_LM_SLOTS;

Expand Down