Fix vertical position of Comms Relay textbox
Some checks failed
CI / Build (macos-latest) (push) Has been cancelled
CI / Build (Steam Linux Runtime Sniper) (push) Has been cancelled
CI / Build (windows-latest) (push) Has been cancelled

Fixes #1242.

Turns out it was a really simple fix - the X positions were good, but
the Y positions were always at the top of the screen regardless of the
height of the textbox. Now they're vertically centered respective to
the speaker.
This commit is contained in:
Dav999 2025-06-15 19:54:39 +02:00 committed by Ethan Lee
parent d53861553e
commit 65b024a9a3

View file

@ -3402,6 +3402,7 @@ static void commsrelay_textbox(textboxclass* THIS)
THIS->wrap(11);
THIS->resize();
THIS->xp = 224 - THIS->w;
THIS->yp = 32 - THIS->h/2;
}
void Graphics::textboxcommsrelay(const char* text)