Skip to content

Commit

Permalink
Merge pull request #1461 from mharis001/lobby-manager-warning-label
Browse files Browse the repository at this point in the history
Lobby Manager - Always use maximum available space for warning label
  • Loading branch information
PabstMirror committed Jun 4, 2021
2 parents 4369e19 + 77f277d commit 4ac6f35
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
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

0 comments on commit 4ac6f35

Please sign in to comment.