MultiCraft2/builtin/mainmenu/tab_credits.lua

175 lines
6.4 KiB
Lua
Raw Normal View History

--Minetest
--Copyright (C) 2013 sapier
--
--This program is free software; you can redistribute it and/or modify
--it under the terms of the GNU Lesser General Public License as published by
2020-08-06 11:33:21 -07:00
--the Free Software Foundation; either version 3.0 of the License, or
--(at your option) any later version.
--
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
--GNU Lesser General Public License for more details.
--
--You should have received a copy of the GNU Lesser General Public License along
--with this program; if not, write to the Free Software Foundation, Inc.,
--51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
local esc = core.formspec_escape
local defaulttexturedir = esc(defaulttexturedir)
--------------------------------------------------------------------------------
2020-08-06 11:33:21 -07:00
local multicraft_developers = {
2022-02-27 12:33:33 -08:00
"Maksim Gamarnik (MoNTE48) <Maksym48@pm.me>",
2020-08-06 11:33:21 -07:00
"Bektur Mambetov (ubulem) <berkut87@gmail.com>",
2022-08-03 02:40:14 -07:00
"Alexander Zavrin (Ransom.00) <alexanderzavrin@gmail.com>",
"Luke (luk3yx) <luk3yx@proton.me>",
2021-07-15 13:01:11 -07:00
"Nathan Salapat (NathanS21) <nathan@nathansalapat.com>",
2020-08-06 11:33:21 -07:00
"Vitaliy Lobachevskiy (numberZero) <numzer0@yandex.ru>",
2022-08-03 02:40:14 -07:00
"Abdullaah Iqbal (An0n3m0us) <an0n3m0us@hotmail.com>",
"ElCeejo",
2022-02-27 12:33:33 -08:00
"Jean-Patrick Guerrero (kilbith) <jeanpatrick.guerrero@gmail.com>",
2020-08-06 11:33:21 -07:00
"sfan5 <sfan5@live.de>",
"Stuart Jones (stujones11) <stujones111@gmail.com>",
"And other people who helped make the world better!"
}
2016-03-20 21:15:50 -07:00
local core_developers = {
"Perttu Ahola (celeron55) <celeron55@gmail.com>",
"sfan5 <sfan5@live.de>",
2016-03-24 09:17:37 -07:00
"Nathanaël Courant (Nore/Ekdohibs) <nore@mesecons.net>",
2016-03-20 21:15:50 -07:00
"Loic Blot (nerzhul/nrz) <loic.blot@unix-experience.fr>",
"paramat",
2020-04-05 09:30:44 -07:00
"Andrew Ward (rubenwardy) <rw@rubenwardy.com>",
"Krock/SmallJoker <mk939@ymail.com>",
2019-02-15 16:41:30 -08:00
"Lars Hofhansl <larsh@apache.org>",
2021-02-18 10:52:59 -08:00
"Pierre-Yves Rollo <dev@pyrollo.com>",
"v-rob <robinsonvincent89@gmail.com>",
2016-03-20 21:15:50 -07:00
}
2021-02-18 10:52:59 -08:00
-- For updating active/previous contributors, see the script in ./util/gather_git_credits.py
2016-03-20 21:15:50 -07:00
local active_contributors = {
2021-02-18 10:52:59 -08:00
"Wuzzy [devtest game, visual corrections]",
"Zughy [Visual improvements, various fixes]",
2019-02-15 16:41:30 -08:00
"Maksim (MoNTE48) [Android]",
2021-02-18 10:52:59 -08:00
"numzero [Graphics and rendering]",
"appgurueu [Various internal fixes]",
"Desour [Formspec and vector API changes]",
"HybridDog [Rendering fixes and documentation]",
"Hugues Ross [Graphics-related improvements]",
"ANAND (ClobberXD) [Mouse buttons rebinding]",
"luk3yx [Fixes]",
"hecks [Audiovisuals, Lua API]",
"LoneWolfHT [Object crosshair, documentation fixes]",
"Lejo [Server-related improvements]",
"EvidenceB [Compass HUD element]",
"Paul Ouellette (pauloue) [Lua API, documentation]",
"TheTermos [Collision detection, physics]",
"David CARLIER [Unix & Haiku build fixes]",
2020-04-05 09:30:44 -07:00
"dcbrwn [Object shading]",
2021-02-18 10:52:59 -08:00
"Elias Fleckenstein [API features/fixes]",
"Jean-Patrick Guerrero (kilbith) [model element, visual fixes]",
"k.h.lai [Memory leak fixes, documentation]",
2016-03-20 21:15:50 -07:00
}
local previous_core_developers = {
2016-03-24 09:17:37 -07:00
"BlockMen",
"Maciej Kasatkin (RealBadAngel) [RIP]",
2016-03-20 21:15:50 -07:00
"Lisa Milne (darkrose) <lisa@ltmnet.com>",
"proller",
"Ilya Zhuravlev (xyz) <xyz@minetest.net>",
"PilzAdam <pilzadam@minetest.net>",
"est31 <MTest31@outlook.com>",
"kahrl <kahrl@gmx.net>",
"Ryan Kwolek (kwolekr) <kwolekr@minetest.net>",
"sapier",
2019-02-15 16:41:30 -08:00
"Zeno",
2020-04-05 09:30:44 -07:00
"ShadowNinja <shadowninja@minetest.net>",
2021-02-18 10:52:59 -08:00
"Auke Kok (sofar) <sofar@foo-projects.org>",
2016-03-20 21:15:50 -07:00
}
local previous_contributors = {
"Nils Dagsson Moskopp (erlehmann) <nils@dieweltistgarnichtso.net> [Minetest Logo]",
2020-04-05 09:30:44 -07:00
"red-001 <red-001@outlook.ie>",
"Giuseppe Bilotta",
2021-02-18 10:52:59 -08:00
"Dániel Juhász (juhdanad) <juhdanad@gmail.com>",
2020-04-05 09:30:44 -07:00
"MirceaKitsune <mirceakitsune@gmail.com>",
"Constantin Wenger (SpeedProg)",
"Ciaran Gultnieks (CiaranG)",
"stujones11 [Android UX improvements]",
2019-02-15 16:41:30 -08:00
"Rogier <rogier777@gmail.com> [Fixes]",
2020-04-05 09:30:44 -07:00
"Gregory Currie (gregorycu) [optimisation]",
2021-02-18 10:52:59 -08:00
"srifqi [Fixes]",
"JacobF",
"Jeija <jeija@mesecons.net> [HTTP, particles]",
2016-03-20 21:15:50 -07:00
}
local function buildCreditList(source)
local ret = {}
for i = 1, #source do
ret[i] = esc(source[i])
end
return table.concat(ret, ",,")
end
return {
name = "credits",
2022-02-27 12:33:33 -08:00
caption = "", -- fgettext("Credits"),
2016-03-20 21:15:50 -07:00
cbf_formspec = function(tabview, name, tabdata)
2014-05-06 19:31:35 -07:00
local version = core.get_version()
local logofile = defaulttexturedir .. "logo.png"
2022-08-03 02:40:14 -07:00
local fs = "image[-0.25,-0.3;2,2;" .. logofile .. "]" ..
"label[1.3,-0.25;" ..
2021-06-10 23:14:03 -07:00
"MultiCraft Open Source, ver. " .. version.string .. "\n" ..
2022-02-27 12:33:33 -08:00
"Copyright (C) 2014-2022 MultiCraft Development Team\n" ..
2021-09-04 10:58:50 -07:00
"License: GNU LGPLv3.0+ and CC BY-SA 4.0\n" ..
2021-06-07 15:37:38 -07:00
"Created and Powered by Minetest Engine, ver. 5.4.1]" ..
"style[homepage;padding=-5;bgimg=" .. defaulttexturedir ..
"select_btn.png;bgimg_middle=10]" ..
2022-08-03 02:40:14 -07:00
"image_button[9.5,-0.2;2.6,0.8;;homepage;Home Page;true;false]" ..
"style[privacy;padding=-5;bgimg=" .. defaulttexturedir ..
"select_btn.png;bgimg_middle=10]" ..
2022-08-03 02:40:14 -07:00
"image_button[9.5,0.65;2.6,0.8;;privacy;Privacy Policy;true;false]" ..
2022-08-03 02:40:14 -07:00
"background9[0,1.5;12,4.2;" .. defaulttexturedir ..
"worldlist_bg.png" .. ";false;40]" ..
2016-03-20 21:15:50 -07:00
"tablecolumns[color;text]" ..
2022-02-27 12:33:33 -08:00
"tableoptions[background=#0000;highlight=#00000000;border=false]" ..
2022-08-03 02:40:14 -07:00
"table[0,1.5;11.75,4.05;list_credits;" ..
"#FFFF00," .. fgettext("Core Developers") .. " (MultiCraft)" .. ",," ..
2020-08-06 11:33:21 -07:00
buildCreditList(multicraft_developers) .. ",,," ..
"#FFFF00," .. fgettext("Core Developers") .. " (Minetest Engine)" .. ",," ..
buildCreditList(core_developers) .. ",,," ..
2016-03-20 21:15:50 -07:00
"#FFFF00," .. fgettext("Active Contributors") .. ",," ..
buildCreditList(active_contributors) .. ",,," ..
2016-03-20 21:15:50 -07:00
"#FFFF00," .. fgettext("Previous Core Developers") ..",," ..
buildCreditList(previous_core_developers) .. ",,," ..
2016-03-20 21:15:50 -07:00
"#FFFF00," .. fgettext("Previous Contributors") .. ",," ..
2022-02-27 12:33:33 -08:00
buildCreditList(previous_contributors) .. ";1]"
2021-06-10 23:14:03 -07:00
--[[if PLATFORM ~= "Android" then
fs = fs .. "tooltip[userdata;" ..
fgettext("Opens the directory that contains user-provided worlds, games, mods,\n" ..
"and texture packs in a file manager / explorer.") .. "]"
fs = fs .. "button[0,4.75;3.5,1;userdata;" .. fgettext("Open User Data Directory") .. "]"
2021-06-10 23:14:03 -07:00
end]]
return fs
end,
cbf_button_handler = function(this, fields, name, tabdata)
if fields.homepage then
2020-08-06 11:33:21 -07:00
core.open_url("http://multicraft.world")
end
2021-09-04 10:58:50 -07:00
if fields.privacy then
core.open_url("http://multicraft.world/privacy")
end
if fields.userdata then
core.open_dir(core.get_user_path())
end
end,
2016-03-20 21:15:50 -07:00
}