diff --git a/builtin/mainmenu/tab_about.lua b/builtin/mainmenu/tab_about.lua index 004b6df..59c7da7 100644 --- a/builtin/mainmenu/tab_about.lua +++ b/builtin/mainmenu/tab_about.lua @@ -183,20 +183,22 @@ 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) - 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 0.8") .. "]" .. - "button[1.5,4.1;2.5,0.8;homepage;Privacy Policy]" .. + "button[1.5,4.1;3.5,0.9;homepage;Privacy Policy]" .. "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]" .. "button[0.1,6;5.3,1;label_button2;" .. + fgettext("Active renderer:") .. "\n" .. core.formspec_escape(core.get_screen_info().render_info) .. "]" @@ -213,6 +215,9 @@ return { core.open_url("https://cubesoftware.xyz/sussycraft/privacy.html") end + 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) diff --git a/src/defaultsettings.cpp b/src/defaultsettings.cpp index 39db6d0..320f66b 100644 --- a/src/defaultsettings.cpp +++ b/src/defaultsettings.cpp @@ -466,7 +466,7 @@ void set_default_settings() #ifdef HAVE_TOUCHSCREENGUI settings->setDefault("touchtarget", "true"); - settings->setDefault("touchscreen_threshold","5"); + settings->setDefault("touchscreen_threshold","10"); settings->setDefault("fixed_virtual_joystick", "false"); settings->setDefault("virtual_joystick_triggers_aux1", "false"); settings->setDefault("clickable_chat_weblinks", "false");