Skip to content

Commit

Permalink
Minor adjustments to centering of lobby and host options views
Browse files Browse the repository at this point in the history
  • Loading branch information
past-due committed May 27, 2024
1 parent f66b851 commit 63badba
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/multiint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1254,7 +1254,7 @@ static void addGameOptions()
psWidget->setGeometry(MULTIOP_OPTIONSX, MULTIOP_OPTIONSY, MULTIOP_OPTIONSW, MULTIOP_OPTIONSH);
}));

addSideText(FRONTEND_SIDETEXT3, MULTIOP_OPTIONSX - 3 , MULTIOP_OPTIONSY, _("OPTIONS"));
addSideText(FRONTEND_SIDETEXT3, MULTIOP_OPTIONSX - 6 , MULTIOP_OPTIONSY, _("OPTIONS"));

// game name box
if (NetPlay.bComms)
Expand Down Expand Up @@ -5478,7 +5478,7 @@ static void addChatBox(bool preserveOldChat)
chatBox->setSendMode(desiredSendMode);
chatBox->initializeMessages(preserveOldChat);

addSideText(FRONTEND_SIDETEXT4, MULTIOP_CHATBOXX - 3, MULTIOP_CHATBOXY, _("CHAT"));
addSideText(FRONTEND_SIDETEXT4, MULTIOP_CHATBOXX - 6, MULTIOP_CHATBOXY, _("CHAT"));

if (!getModList().empty())
{
Expand Down
4 changes: 2 additions & 2 deletions src/multiint.h
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ void multiClearHostRequestMoveToPlayer(uint32_t playerIdx);
// GAME OPTIONS SCREEN

#define MULTIOP_PLAYERS 10231
#define MULTIOP_PLAYERSX 323
#define MULTIOP_PLAYERSX 315
#define MULTIOP_PLAYERSY 1
#define MULTIOP_PLAYER_START 102350 //list of players
#define MULTIOP_PLAYER_END 102381
Expand Down Expand Up @@ -201,7 +201,7 @@ void multiClearHostRequestMoveToPlayer(uint32_t playerIdx);
#define MULTIOP_PLAYERHEIGHT 38

#define MULTIOP_OPTIONS 10250
#define MULTIOP_OPTIONSX 40
#define MULTIOP_OPTIONSX 32
#define MULTIOP_OPTIONSY 1
#define MULTIOP_OPTIONSW 284
#define MULTIOP_OPTIONSH MULTIOP_PLAYERSH
Expand Down
4 changes: 2 additions & 2 deletions src/titleui/gamefind.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ void WzGameFindTitleUI::start()
psWidget->setGeometry(MULTIOP_OPTIONSX, MULTIOP_OPTIONSY, MULTIOP_CHATBOXW, 415); // FIXME: Add box at bottom for server messages
}));

addSideText(FRONTEND_SIDETEXT, MULTIOP_OPTIONSX - 3, MULTIOP_OPTIONSY, _("GAMES"));
addSideText(FRONTEND_SIDETEXT, MULTIOP_OPTIONSX - 6, MULTIOP_OPTIONSY, _("GAMES"));

// cancel
addMultiBut(psWScreen, FRONTEND_BOTFORM, CON_CANCEL, 10, 5, MULTIOP_OKW, MULTIOP_OKH, _("Return To Previous Screen"),
Expand Down Expand Up @@ -732,7 +732,7 @@ void WzGameFindTitleUI::addGames()
W_BUTINIT sButInit;
sButInit.formID = FRONTEND_BOTFORM;
sButInit.id = FRONTEND_NOGAMESAVAILABLE;
sButInit.x = 70;
sButInit.x = 60;
sButInit.y = 50;
sButInit.style = WBUT_TXTCENTRE;
sButInit.width = FRONTEND_BUTWIDTH;
Expand Down

0 comments on commit 63badba

Please sign in to comment.