Skip to content

Commit

Permalink
Adjust lobby player box width (#1679)
Browse files Browse the repository at this point in the history
  • Loading branch information
Next67 committed Mar 27, 2021
1 parent 550e841 commit d7288f4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/multiint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2552,7 +2552,8 @@ void WzMultiplayerOptionsTitleUI::addPlayerBox(bool players)
psWidget->setGeometry(MULTIOP_PLAYERSX, MULTIOP_PLAYERSY, MULTIOP_PLAYERSW, MULTIOP_PLAYERSH);
}));

addSideText(FRONTEND_SIDETEXT2, MULTIOP_PLAYERSX - 3, MULTIOP_PLAYERSY, _("PLAYERS"));
// May be needed in the future.
//addSideText(FRONTEND_SIDETEXT2, MULTIOP_PLAYERSX - 3, MULTIOP_PLAYERSY, _("PLAYERS"));

if (players)
{
Expand Down
6 changes: 3 additions & 3 deletions src/multiint.h
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,11 @@ void displayRoomNotifyMessage(char const *text);
// GAME OPTIONS SCREEN

#define MULTIOP_PLAYERS 10231
#define MULTIOP_PLAYERSX 360
#define MULTIOP_PLAYERSX 323
#define MULTIOP_PLAYERSY 1
#define MULTIOP_PLAYER_START 10232 //list of players
#define MULTIOP_PLAYER_END 10249
#define MULTIOP_PLAYERSW 263
#define MULTIOP_PLAYERSW 298
#define MULTIOP_PLAYERSH 380

#define MULTIOP_ROW_WIDTH 246
Expand All @@ -163,7 +163,7 @@ void displayRoomNotifyMessage(char const *text);
#define MULTIOP_READY_WIDTH 41
#define MULTIOP_READY_HEIGHT 38

#define MULTIOP_PLAYERWIDTH 245
#define MULTIOP_PLAYERWIDTH 282
#define MULTIOP_PLAYERHEIGHT 38

#define MULTIOP_OPTIONS 10250
Expand Down
2 changes: 1 addition & 1 deletion src/multimenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ static const unsigned M_REQUEST_NP[] = {M_REQUEST_2P, M_REQUEST_3P, M_REQU
#define M_REQUEST_W MULTIOP_PLAYERSW
#define M_REQUEST_H MULTIOP_PLAYERSH

#define R_BUT_W 105//112
#define R_BUT_W 120//105
#define R_BUT_H 30

#define HOVER_PREVIEW_TIME 300
Expand Down

0 comments on commit d7288f4

Please sign in to comment.