From 861076cd49d68a98d6981bd1a1b0df8cdc8b1e17 Mon Sep 17 00:00:00 2001 From: Looki2000 Date: Thu, 23 Feb 2023 18:06:59 +0100 Subject: [PATCH] modified about tab buttons --- builtin/mainmenu/tab_about.lua | 24 +++++++----------------- 1 file changed, 7 insertions(+), 17 deletions(-) diff --git a/builtin/mainmenu/tab_about.lua b/builtin/mainmenu/tab_about.lua index 59c7da7..fbe43d1 100644 --- a/builtin/mainmenu/tab_about.lua +++ b/builtin/mainmenu/tab_about.lua @@ -187,13 +187,17 @@ return { "style[label_button;border=false]" .. "button[0.1,3.4;5.3,0.5;label_button;" .. core.formspec_escape("SussyCraft 0.8") .. "]" .. - "button[1.5,4.1;3.5,0.9;homepage;Privacy Policy]" .. + + -- original x positions: 1.5 and 2.5 + "button[1.3,4.1;2.9,0.8;homepage;Privacy Policy]" .. + "button[1.0,5.1;3.5,0.8;discord;SussyCraft Discord]" .. + "scroll_container[5.5,0.1;9.5,6.9;scroll_credits;vertical;" .. tostring(scroll_height / 1000) .. "]" .. credit_fs .. "scroll_container_end[]".. - "scrollbar[15,0.1;0.4,6.9;vertical;scroll_credits;0]".. + "scrollbar[15,0.1;0.4,6.9;vertical;scroll_credits;0]" + - "button[1.5,5.1;3.5,0.8;discord;Discord]" -- Render information fs = fs .. "style[label_button2;border=false]" .. @@ -202,12 +206,6 @@ return { fgettext("Active renderer:") .. "\n" .. core.formspec_escape(core.get_screen_info().render_info) .. "]" - if PLATFORM == "Android" then - - else - - end - return fs, "size[15.5,7.1,false]real_coordinates[true]" end, cbf_button_handler = function(this, fields, name, tabdata) @@ -218,13 +216,5 @@ return { if fields.discord then core.open_url("https://discord.gg/aJmhBN74sh") end - if fields.share_debug then - local path = core.get_user_path() .. DIR_DELIM .. "debug.txt" - core.share_file(path) - end - - if fields.userdata then - core.open_dir(core.get_user_path()) - end end, }