From 63badba1451d1faa8ba6710d89c14a9d3db392cd Mon Sep 17 00:00:00 2001 From: past-due <30942300+past-due@users.noreply.github.com> Date: Sat, 25 May 2024 14:01:09 -0400 Subject: [PATCH] Minor adjustments to centering of lobby and host options views --- src/multiint.cpp | 4 ++-- src/multiint.h | 4 ++-- src/titleui/gamefind.cpp | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/multiint.cpp b/src/multiint.cpp index 00d16074b5e..4c916a081f4 100644 --- a/src/multiint.cpp +++ b/src/multiint.cpp @@ -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) @@ -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()) { diff --git a/src/multiint.h b/src/multiint.h index ef99ccb02b6..033be7b653b 100644 --- a/src/multiint.h +++ b/src/multiint.h @@ -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 @@ -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 diff --git a/src/titleui/gamefind.cpp b/src/titleui/gamefind.cpp index 7a06582c29e..0b002764e63 100644 --- a/src/titleui/gamefind.cpp +++ b/src/titleui/gamefind.cpp @@ -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"), @@ -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;