]> git.lizzy.rs Git - dragonfireclient.git/blob - builtin/mainmenu/tab_about.lua
Merge pull request #35 from arydevy/patch-1
[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 local dragonfire_team = {
20         "Elias Fleckenstein [Main Developer]",
21         "cora [Core Developer]",
22         "emilia [Core Developer]",
23         "oneplustwo [Developer]",
24         "joshia_wi [Developer]",
25         "Code-Sploit [Developer]",
26         "DerZombiiie [User Support]",
27         "Rtx [User Support]",
28 }
29
30 local core_developers = {
31         "Perttu Ahola (celeron55) <celeron55@gmail.com>",
32         "sfan5 <sfan5@live.de>",
33         "Nathanaël Courant (Nore/Ekdohibs) <nore@mesecons.net>",
34         "Loic Blot (nerzhul/nrz) <loic.blot@unix-experience.fr>",
35         "paramat",
36         "Andrew Ward (rubenwardy) <rw@rubenwardy.com>",
37         "Krock/SmallJoker <mk939@ymail.com>",
38         "Lars Hofhansl <larsh@apache.org>",
39         "Pierre-Yves Rollo <dev@pyrollo.com>",
40         "v-rob <robinsonvincent89@gmail.com>",
41 }
42
43 -- For updating active/previous contributors, see the script in ./util/gather_git_credits.py
44
45 local active_contributors = {
46         "Wuzzy [devtest game, visual corrections]",
47         "Zughy [Visual improvements, various fixes]",
48         "Maksim (MoNTE48) [Android]",
49         "numzero [Graphics and rendering]",
50         "appgurueu [Various internal fixes]",
51         "Desour [Formspec and vector API changes]",
52         "HybridDog [Rendering fixes and documentation]",
53         "Hugues Ross [Graphics-related improvements]",
54         "ANAND (ClobberXD) [Mouse buttons rebinding]",
55         "luk3yx [Fixes]",
56         "hecks [Audiovisuals, Lua API]",
57         "LoneWolfHT [Object crosshair, documentation fixes]",
58         "Lejo [Server-related improvements]",
59         "EvidenceB [Compass HUD element]",
60         "Paul Ouellette (pauloue) [Lua API, documentation]",
61         "TheTermos [Collision detection, physics]",
62         "David CARLIER [Unix & Haiku build fixes]",
63         "dcbrwn [Object shading]",
64         "Elias Fleckenstein [API features/fixes]",
65         "Jean-Patrick Guerrero (kilbith) [model element, visual fixes]",
66         "k.h.lai [Memory leak fixes, documentation]",
67 }
68
69 local previous_core_developers = {
70         "BlockMen",
71         "Maciej Kasatkin (RealBadAngel) [RIP]",
72         "Lisa Milne (darkrose) <lisa@ltmnet.com>",
73         "proller",
74         "Ilya Zhuravlev (xyz) <xyz@minetest.net>",
75         "PilzAdam <pilzadam@minetest.net>",
76         "est31 <MTest31@outlook.com>",
77         "kahrl <kahrl@gmx.net>",
78         "Ryan Kwolek (kwolekr) <kwolekr@minetest.net>",
79         "sapier",
80         "Zeno",
81         "ShadowNinja <shadowninja@minetest.net>",
82         "Auke Kok (sofar) <sofar@foo-projects.org>",
83 }
84
85 local previous_contributors = {
86         "Nils Dagsson Moskopp (erlehmann) <nils@dieweltistgarnichtso.net> [Minetest Logo]",
87         "red-001 <red-001@outlook.ie>",
88         "Giuseppe Bilotta",
89         "Dániel Juhász (juhdanad) <juhdanad@gmail.com>",
90         "MirceaKitsune <mirceakitsune@gmail.com>",
91         "Constantin Wenger (SpeedProg)",
92         "Ciaran Gultnieks (CiaranG)",
93         "stujones11 [Android UX improvements]",
94         "Rogier <rogier777@gmail.com> [Fixes]",
95         "Gregory Currie (gregorycu) [optimisation]",
96         "srifqi [Fixes]",
97         "JacobF",
98         "Jeija <jeija@mesecons.net> [HTTP, particles]",
99 }
100
101 local function buildCreditList(source)
102         local ret = {}
103         for i = 1, #source do
104                 ret[i] = core.formspec_escape(source[i])
105         end
106         return table.concat(ret, ",,")
107 end
108
109 return {
110         name = "about",
111         caption = fgettext("About"),
112         cbf_formspec = function(tabview, name, tabdata)
113                 local logofile = defaulttexturedir .. "logo.png"
114                 local version = core.get_version()
115                 local fs = "image[0.75,0.5;2.2,2.2;" .. core.formspec_escape(logofile) .. "]" ..
116                         "style[label_button;border=false]" ..
117                         "button[0.5,2;2.5,2;label_button;" .. version.project .. " " .. version.string .. "]" ..
118                         "button[0.75,2.75;2,2;homepage;minetest.net]" ..
119                         "tablecolumns[color;text]" ..
120                         "tableoptions[background=#00000000;highlight=#00000000;border=false]" ..
121                         "table[3.5,-0.25;8.5,6.05;list_credits;" ..
122                         "#FFFF00," .. fgettext("Dragonfire Team") .. ",," ..
123                         buildCreditList(dragonfire_team) .. ",,," ..
124                         "#FFFF00," .. fgettext("Core Developers") .. ",," ..
125                         buildCreditList(core_developers) .. ",,," ..
126                         "#FFFF00," .. fgettext("Active Contributors") .. ",," ..
127                         buildCreditList(active_contributors) .. ",,," ..
128                         "#FFFF00," .. fgettext("Previous Core Developers") ..",," ..
129                         buildCreditList(previous_core_developers) .. ",,," ..
130                         "#FFFF00," .. fgettext("Previous Contributors") .. ",," ..
131                         buildCreditList(previous_contributors) .. "," ..
132                         ";1]"
133
134                 -- Render information
135                 fs = fs .. "label[0.75,4.9;" ..
136                         fgettext("Active renderer:") .. "\n" ..
137                         core.formspec_escape(core.get_screen_info().render_info) .. "]"
138
139                 if PLATFORM ~= "Android" then
140                         fs = fs .. "tooltip[userdata;" ..
141                                         fgettext("Opens the directory that contains user-provided worlds, games, mods,\n" ..
142                                                         "and texture packs in a file manager / explorer.") .. "]"
143                         fs = fs .. "button[0,4;3.5,1;userdata;" .. fgettext("Open User Data Directory") .. "]"
144                 end
145
146                 return fs
147         end,
148         cbf_button_handler = function(this, fields, name, tabdata)
149                 if fields.homepage then
150                         core.open_url("https://www.minetest.net")
151                 end
152
153                 if fields.userdata then
154                         core.open_dir(core.get_user_path())
155                 end
156         end,
157 }