This commit is contained in:
Kacper Kostka 2023-02-23 17:30:38 +01:00
parent a5e59139f0
commit 21c2c6c2a3
2 changed files with 9 additions and 4 deletions

View File

@ -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)

View File

@ -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");