From ef5d3209f8fb658e1c8a6c546fc54ac44223e9b2 Mon Sep 17 00:00:00 2001 From: erysdren Date: Tue, 12 Nov 2024 10:44:25 -0600 Subject: [PATCH] MENU: m_menu.qc: shift drawn areas of server list --- source/menu/m_menu.qc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source/menu/m_menu.qc b/source/menu/m_menu.qc index c12ad5e..0799a71 100644 --- a/source/menu/m_menu.qc +++ b/source/menu/m_menu.qc @@ -622,7 +622,7 @@ void(string id, vector pos, vector size, __inout vector scrollofs, float num_ser // bg vector bpos = [0, 0]; - vector bsize = [rowsize.x / 3, rowsize.y]; + vector bsize = [(rowsize.x / 8) * 5, rowsize.y]; sui_fill(bpos, rowsize, [0.25, 0.25, 0.25], 0.5, 0); // name @@ -630,11 +630,12 @@ void(string id, vector pos, vector size, __inout vector scrollofs, float num_ser sui_text(bpos + [8, 0], MENU_TEXT_SMALL, gethostcachestring(gethostcacheindexforkey("name"), index), MENU_TEXT_1, 1, 0); // map - bpos.x = size.x / 3; + bsize.x = (rowsize.x / 8); + bpos.x = bsize.x * 5; sui_text(bpos + [8, 0], MENU_TEXT_SMALL, gethostcachestring(gethostcacheindexforkey("map"), index), MENU_TEXT_1, 1, 0); // players - bpos.x *= 2; + bpos.x = bsize.x * 7; string s = sprintf("%d/%d", stof(gethostcachestring(gethostcacheindexforkey("numhumans"), index)), stof(gethostcachestring(gethostcacheindexforkey("maxplayers"), index))