From 043d66e39c4abb01f2f239748ec46667e5134b0e Mon Sep 17 00:00:00 2001 From: Looki2000 Date: Sun, 5 Mar 2023 00:05:58 +0100 Subject: [PATCH] FIXED CRITICAL INSTANT CRASH ERROR IN tab_about.lua --- 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 e1576ca..967a5fd 100644 --- a/builtin/mainmenu/tab_about.lua +++ b/builtin/mainmenu/tab_about.lua @@ -194,14 +194,16 @@ return { local credit_fs, scroll_height = build_hacky_list(credit_list) -- account for the visible portion scroll_height = math.max(0, scroll_height - 6.9) + + -- 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 + local fs = "image[1.5,0.6;2.5,2.5;" .. core.formspec_escape(logofile) .. "]" .. "style[label_button;border=false]" .. "button[0.1,3.4;5.3,0.5;label_button;" .. core.formspec_escape("SussyCraft " .. core.get_version().string) .. "]" .. - -- 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]" ..