]> git.lizzy.rs Git - dragonfireclient.git/blob - builtin/mainmenu/tab_about.lua
Add more neighbors on mesh update (#6765)
[dragonfireclient.git] / builtin / mainmenu / tab_about.lua
1 --Minetest
2 --Copyright (C) 2013 sapier
3 --
4 --This program is free software; you can redistribute it and/or modify
5 --it under the terms of the GNU Lesser General Public License as published by
6 --the Free Software Foundation; either version 2.1 of the License, or
7 --(at your option) any later version.
8 --
9 --This program is distributed in the hope that it will be useful,
10 --but WITHOUT ANY WARRANTY; without even the implied warranty of
11 --MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 --GNU Lesser General Public License for more details.
13 --
14 --You should have received a copy of the GNU Lesser General Public License along
15 --with this program; if not, write to the Free Software Foundation, Inc.,
16 --51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17
18 --------------------------------------------------------------------------------
19
20 local core_developers = {
21         "Perttu Ahola (celeron55) <celeron55@gmail.com>",
22         "sfan5 <sfan5@live.de>",
23         "Nathanaël Courant (Nore/Ekdohibs) <nore@mesecons.net>",
24         "Loic Blot (nerzhul/nrz) <loic.blot@unix-experience.fr>",
25         "paramat",
26         "Andrew Ward (rubenwardy) <rw@rubenwardy.com>",
27         "Krock/SmallJoker <mk939@ymail.com>",
28         "Lars Hofhansl <larsh@apache.org>",
29         "Pierre-Yves Rollo <dev@pyrollo.com>",
30         "v-rob <robinsonvincent89@gmail.com>",
31 }
32
33 -- For updating active/previous contributors, see the script in ./util/gather_git_credits.py
34
35 local active_contributors = {
36         "Wuzzy [devtest game, visual corrections]",
37         "Zughy [Visual improvements, various fixes]",
38         "Maksim (MoNTE48) [Android]",
39         "numzero [Graphics and rendering]",
40         "appgurueu [Various internal fixes]",
41         "Desour [Formspec and vector API changes]",
42         "HybridDog [Rendering fixes and documentation]",
43         "Hugues Ross [Graphics-related improvements]",
44         "ANAND (ClobberXD) [Mouse buttons rebinding]",
45         "luk3yx [Fixes]",
46         "hecks [Audiovisuals, Lua API]",
47         "LoneWolfHT [Object crosshair, documentation fixes]",
48         "Lejo [Server-related improvements]",
49         "EvidenceB [Compass HUD element]",
50         "Paul Ouellette (pauloue) [Lua API, documentation]",
51         "TheTermos [Collision detection, physics]",
52         "David CARLIER [Unix & Haiku build fixes]",
53         "dcbrwn [Object shading]",
54         "Elias Fleckenstein [API features/fixes]",
55         "Jean-Patrick Guerrero (kilbith) [model element, visual fixes]",
56         "k.h.lai [Memory leak fixes, documentation]",
57 }
58
59 local previous_core_developers = {
60         "BlockMen",
61         "Maciej Kasatkin (RealBadAngel) [RIP]",
62         "Lisa Milne (darkrose) <lisa@ltmnet.com>",
63         "proller",
64         "Ilya Zhuravlev (xyz) <xyz@minetest.net>",
65         "PilzAdam <pilzadam@minetest.net>",
66         "est31 <MTest31@outlook.com>",
67         "kahrl <kahrl@gmx.net>",
68         "Ryan Kwolek (kwolekr) <kwolekr@minetest.net>",
69         "sapier",
70         "Zeno",
71         "ShadowNinja <shadowninja@minetest.net>",
72         "Auke Kok (sofar) <sofar@foo-projects.org>",
73 }
74
75 local previous_contributors = {
76         "Nils Dagsson Moskopp (erlehmann) <nils@dieweltistgarnichtso.net> [Minetest Logo]",
77         "red-001 <red-001@outlook.ie>",
78         "Giuseppe Bilotta",
79         "Dániel Juhász (juhdanad) <juhdanad@gmail.com>",
80         "MirceaKitsune <mirceakitsune@gmail.com>",
81         "Constantin Wenger (SpeedProg)",
82         "Ciaran Gultnieks (CiaranG)",
83         "stujones11 [Android UX improvements]",
84         "Rogier <rogier777@gmail.com> [Fixes]",
85         "Gregory Currie (gregorycu) [optimisation]",
86         "srifqi [Fixes]",
87         "JacobF",
88         "Jeija <jeija@mesecons.net> [HTTP, particles]",
89 }
90
91 local function buildCreditList(source)
92         local ret = {}
93         for i = 1, #source do
94                 ret[i] = core.formspec_escape(source[i])
95         end
96         return table.concat(ret, ",,")
97 end
98
99 return {
100         name = "about",
101         caption = fgettext("About"),
102         cbf_formspec = function(tabview, name, tabdata)
103                 local logofile = defaulttexturedir .. "logo.png"
104                 local version = core.get_version()
105                 local fs = "image[0.75,0.5;2.2,2.2;" .. core.formspec_escape(logofile) .. "]" ..
106                         "style[label_button;border=false]" ..
107                         "button[0.5,2;2.5,2;label_button;" .. version.project .. " " .. version.string .. "]" ..
108                         "button[0.75,2.75;2,2;homepage;minetest.net]" ..
109                         "tablecolumns[color;text]" ..
110                         "tableoptions[background=#00000000;highlight=#00000000;border=false]" ..
111                         "table[3.5,-0.25;8.5,6.05;list_credits;" ..
112                         "#FFFF00," .. fgettext("Core Developers") .. ",," ..
113                         buildCreditList(core_developers) .. ",,," ..
114                         "#FFFF00," .. fgettext("Active Contributors") .. ",," ..
115                         buildCreditList(active_contributors) .. ",,," ..
116                         "#FFFF00," .. fgettext("Previous Core Developers") ..",," ..
117                         buildCreditList(previous_core_developers) .. ",,," ..
118                         "#FFFF00," .. fgettext("Previous Contributors") .. ",," ..
119                         buildCreditList(previous_contributors) .. "," ..
120                         ";1]"
121
122                 -- Render information
123                 fs = fs .. "label[0.75,4.9;" ..
124                         fgettext("Active renderer:") .. "\n" ..
125                         core.formspec_escape(core.get_screen_info().render_info) .. "]"
126
127                 if PLATFORM ~= "Android" then
128                         fs = fs .. "tooltip[userdata;" ..
129                                         fgettext("Opens the directory that contains user-provided worlds, games, mods,\n" ..
130                                                         "and texture packs in a file manager / explorer.") .. "]"
131                         fs = fs .. "button[0,4;3.5,1;userdata;" .. fgettext("Open User Data Directory") .. "]"
132                 end
133
134                 return fs
135         end,
136         cbf_button_handler = function(this, fields, name, tabdata)
137                 if fields.homepage then
138                         core.open_url("https://www.minetest.net")
139                 end
140
141                 if fields.userdata then
142                         core.open_dir(core.get_user_path())
143                 end
144         end,
145 }