MENU: m_menu.qc: fix pos+size of TextInputs

This commit is contained in:
erysdren 2024-11-12 13:20:43 -06:00
parent a97469e7be
commit 7245c18a2f

View file

@ -566,7 +566,7 @@ static void(string id, vector pos, vector size, __inout string text, __inout flo
static void(vector pos, vector size, string text) draw_text_input =
{
sui_push_frame(pos, size);
sui_push_frame(pos - [6, 5], size);
sui_fill([0, 0], size, [0, 0, 0], 1.0, 0);
sui_border_box([0, 0], size, 2, [0.2, 0.2, 0.2], 0.3, 0);
sui_set_align([SUI_ALIGN_START, SUI_ALIGN_CENTER]);
@ -581,7 +581,7 @@ static void(vector pos, vector size, string text) draw_text_input =
void(string id, float order, __inout string text, __inout float cursor) Menu_TextInput =
{
vector pos = [320, 50 + (order * 25)];
vector size = [240, 20];
vector size = [290, 22];
handle_text_input(id, pos, size, text, cursor);
@ -595,7 +595,7 @@ void(string id, float order, __inout string text, __inout float cursor) Menu_Tex
void(string id, float order, __inout string text, __inout float cursor) Menu_PasswordInput =
{
vector pos = [320, 50 + (order * 25)];
vector size = [240, 20];
vector size = [290, 22];
string safe = "";
for (int i = 0; i < strlen(text); i++)