From e70746ae4308053220c571920de09c8eed8b30db Mon Sep 17 00:00:00 2001 From: MihailRis Date: Tue, 11 Mar 2025 03:48:27 +0300 Subject: [PATCH] update console layout --- res/layouts/console.xml | 75 +++++++++++++------------- res/layouts/console.xml.lua | 59 +++++++++++++++----- res/layouts/templates/problem.xml | 4 +- res/layouts/templates/script_file.xml | 6 +++ res/preload.json | 3 +- res/textures/gui/lock.png | Bin 0 -> 120 bytes 6 files changed, 95 insertions(+), 52 deletions(-) create mode 100644 res/layouts/templates/script_file.xml create mode 100644 res/textures/gui/lock.png diff --git a/res/layouts/console.xml b/res/layouts/console.xml index e0c5fa09..2262026e 100644 --- a/res/layouts/console.xml +++ b/res/layouts/console.xml @@ -2,17 +2,14 @@ + size-func="gui.get_viewport()[1],30"> - - - + size-func="unpack(vec2.add(gui.get_viewport(), {-450,-100}))"> - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + - - - + diff --git a/res/layouts/templates/script_file.xml b/res/layouts/templates/script_file.xml new file mode 100644 index 00000000..ed2025ac --- /dev/null +++ b/res/layouts/templates/script_file.xml @@ -0,0 +1,6 @@ + diff --git a/res/preload.json b/res/preload.json index c4e60cad..de016e04 100644 --- a/res/preload.json +++ b/res/preload.json @@ -24,7 +24,8 @@ "misc/snow", "gui/check_mark", "gui/left_arrow", - "gui/right_arrow" + "gui/right_arrow", + "gui/lock" ], "fonts": [ { diff --git a/res/textures/gui/lock.png b/res/textures/gui/lock.png new file mode 100644 index 0000000000000000000000000000000000000000..10c877a3a2e127b528084ff491c0c76869d92a70 GIT binary patch literal 120 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`_MR?|Ar*6y6Bh_1ARUv{T`_X+qsvIvNCutma!C@ SGFcvI6oaR$pUXO@geCxoha;K* literal 0 HcmV?d00001