From 58bada62360d10d14ab74dba034efd550176f042 Mon Sep 17 00:00:00 2001 From: Looki2000 Date: Thu, 2 Mar 2023 23:31:12 +0100 Subject: [PATCH] MINETEST GUI SYSTEM SUCKS!!!!!!! AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA --- builtin/mainmenu/tab_about.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/builtin/mainmenu/tab_about.lua b/builtin/mainmenu/tab_about.lua index c8d8e57..e1576ca 100644 --- a/builtin/mainmenu/tab_about.lua +++ b/builtin/mainmenu/tab_about.lua @@ -199,9 +199,11 @@ return { "button[0.1,3.4;5.3,0.5;label_button;" .. core.formspec_escape("SussyCraft " .. core.get_version().string) .. "]" .. - -- original x positions: 1.5 and 2.5 - "button[1.1,4.1;3.3,0.8;privacy;Privacy Policy]" .. - "button[0.6,5.1;4.3,0.8;discord;SussyCraft Discord]" .. + -- minetest gui system sucks so I had to make these calculations to center the buttons BECAUSE THEY CHANGE ON EVERY ANDROID DEVICE AND I HAVE TO WIDEN THEM MORE BECAUSE MINETEST IS A PIECE OF CRAP AAAAAAAAAAAAAAAA + local privacy_button_size = 3.5 + local discord_button_size = 4.5 + "button[" .. tostring(-privacy_button_size / 2 + 2.75) .. ",4.1;" .. tostring(privacy_button_size) .. ",0.8;privacy;Privacy Policy]" .. + "button[" .. tostring(-discord_button_size / 2 + 2.75) .. ",5.1;" .. tostring(discord_button_size) .. ",0.8;discord;SussyCraft Discord]" .. "scroll_container[5.5,0.1;13.5,6.9;scroll_credits;vertical;" .. -- originally: 5.5,0.1;9.5,6.9 tostring(scroll_height / 1000) .. "]" .. credit_fs ..