2
0

tab_credits.lua 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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. local core_developers = {
  19. "Perttu Ahola (celeron55) <celeron55@gmail.com>",
  20. "sfan5 <sfan5@live.de>",
  21. "ShadowNinja <shadowninja@minetest.net>",
  22. "Nathanaël Courant (Nore/Ekdohibs) <nore@mesecons.net>",
  23. "Loic Blot (nerzhul/nrz) <loic.blot@unix-experience.fr>",
  24. "paramat",
  25. "Zeno",
  26. "Auke Kok (sofar) <sofar@foo-projects.org>",
  27. "rubenwardy <rw@rubenwardy.com>",
  28. "Krock/SmallJoker <mk939@ymail.com>",
  29. }
  30. local active_contributors = {
  31. "red-001 <red-001@outlook.ie> [CSM & Menu fixes]",
  32. "Dániel Juhász (juhdanad) <juhdanad@gmail.com> [Audiovisuals: lighting]",
  33. "numberZero [Audiovisuals: meshgen]",
  34. "Lars Hofhansl <larsh@apache.org> [Occulusion culling, fixes]",
  35. "Jean-Patrick G (kilbith) <jeanpatrick.guerrero@gmail.com> [Audiovisuals]",
  36. "Vincent Glize (Dumbeldor) <vincent.glize@live.fr> [CSM]",
  37. "bigfoot547 [CSM]",
  38. "Rogier <rogier777@gmail.com> [Fixes]",
  39. "Wuzzy [Audiovisuals]",
  40. "Shara/Ezhh [Settings]",
  41. }
  42. local previous_core_developers = {
  43. "BlockMen",
  44. "Maciej Kasatkin (RealBadAngel) [RIP]",
  45. "Lisa Milne (darkrose) <lisa@ltmnet.com>",
  46. "proller",
  47. "Ilya Zhuravlev (xyz) <xyz@minetest.net>",
  48. "PilzAdam <pilzadam@minetest.net>",
  49. "est31 <MTest31@outlook.com>",
  50. "kahrl <kahrl@gmx.net>",
  51. "Ryan Kwolek (kwolekr) <kwolekr@minetest.net>",
  52. "sapier",
  53. }
  54. local previous_contributors = {
  55. "Gregory Currie (gregorycu) [optimisation]",
  56. "Diego Martínez (kaeza) <kaeza@users.sf.net>",
  57. "T4im [Profiler]",
  58. "TeTpaAka [Hand overriding, nametag colors]",
  59. "HybridDog [Fixes]",
  60. "Duane Robertson <duane@duanerobertson.com> [MGValleys]",
  61. "neoascetic [OS X Fixes]",
  62. "TriBlade9 <triblade9@mail.com> [Audiovisuals]",
  63. "Jurgen Doser (doserj) <jurgen.doser@gmail.com> [Fixes]",
  64. "MirceaKitsune <mirceakitsune@gmail.com> [Audiovisuals]",
  65. "Guiseppe Bilotta (Oblomov) <guiseppe.bilotta@gmail.com> [Fixes]",
  66. "matttpt <matttpt@gmail.com> [Fixes]",
  67. "Nils Dagsson Moskopp (erlehmann) <nils@dieweltistgarnichtso.net> [Minetest Logo]",
  68. "Jeija <jeija@mesecons.net> [HTTP, particles]",
  69. }
  70. local function buildCreditList(source)
  71. local ret = {}
  72. for i = 1, #source do
  73. ret[i] = core.formspec_escape(source[i])
  74. end
  75. return table.concat(ret, ",,")
  76. end
  77. return {
  78. name = "credits",
  79. caption = fgettext("Credits"),
  80. cbf_formspec = function(tabview, name, tabdata)
  81. local logofile = defaulttexturedir .. "logo.png"
  82. local version = core.get_version()
  83. return "image[0.5,1;" .. core.formspec_escape(logofile) .. "]" ..
  84. "label[0.5,3.2;" .. version.project .. " " .. version.string .. "]" ..
  85. "label[0.5,3.5;http://minetest.net]" ..
  86. "tablecolumns[color;text]" ..
  87. "tableoptions[background=#00000000;highlight=#00000000;border=false]" ..
  88. "table[3.5,-0.25;8.5,6.05;list_credits;" ..
  89. "#FFFF00," .. fgettext("Core Developers") .. ",," ..
  90. buildCreditList(core_developers) .. ",,," ..
  91. "#FFFF00," .. fgettext("Active Contributors") .. ",," ..
  92. buildCreditList(active_contributors) .. ",,," ..
  93. "#FFFF00," .. fgettext("Previous Core Developers") ..",," ..
  94. buildCreditList(previous_core_developers) .. ",,," ..
  95. "#FFFF00," .. fgettext("Previous Contributors") .. ",," ..
  96. buildCreditList(previous_contributors) .. "," ..
  97. ";1]"
  98. end
  99. }