mirror of
https://github.com/nzp-team/quakec.git
synced 2025-02-22 11:42:01 +00:00
MENU: m_menu.qc: fix pos+size of TextInputs
This commit is contained in:
parent
a97469e7be
commit
7245c18a2f
1 changed files with 3 additions and 3 deletions
|
@ -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 =
|
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_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_border_box([0, 0], size, 2, [0.2, 0.2, 0.2], 0.3, 0);
|
||||||
sui_set_align([SUI_ALIGN_START, SUI_ALIGN_CENTER]);
|
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 =
|
void(string id, float order, __inout string text, __inout float cursor) Menu_TextInput =
|
||||||
{
|
{
|
||||||
vector pos = [320, 50 + (order * 25)];
|
vector pos = [320, 50 + (order * 25)];
|
||||||
vector size = [240, 20];
|
vector size = [290, 22];
|
||||||
|
|
||||||
handle_text_input(id, pos, size, text, cursor);
|
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 =
|
void(string id, float order, __inout string text, __inout float cursor) Menu_PasswordInput =
|
||||||
{
|
{
|
||||||
vector pos = [320, 50 + (order * 25)];
|
vector pos = [320, 50 + (order * 25)];
|
||||||
vector size = [240, 20];
|
vector size = [290, 22];
|
||||||
string safe = "";
|
string safe = "";
|
||||||
|
|
||||||
for (int i = 0; i < strlen(text); i++)
|
for (int i = 0; i < strlen(text); i++)
|
||||||
|
|
Loading…
Reference in a new issue