2019-01-26 16:39:07 -05:00
|
|
|
-- LUALOCALS < ---------------------------------------------------------
|
2019-03-03 16:53:12 -05:00
|
|
|
local minetest, nodecore, table
|
|
|
|
= minetest, nodecore, table
|
|
|
|
local table_concat
|
|
|
|
= table.concat
|
2019-01-26 16:39:07 -05:00
|
|
|
-- LUALOCALS > ---------------------------------------------------------
|
|
|
|
|
2019-02-04 20:15:33 -05:00
|
|
|
local version = nodecore.version
|
|
|
|
version = version and ("Version " .. version) or "DEVELOPMENT VERSION"
|
|
|
|
|
2019-03-03 16:53:12 -05:00
|
|
|
local lines = {
|
|
|
|
"NodeCore - " .. version,
|
|
|
|
"",
|
|
|
|
"(C)2018-2019 by Aaron Suen <warr1024@gmail.com>",
|
|
|
|
"MIT License: http://www.opensource.org/licenses/MIT",
|
|
|
|
"",
|
|
|
|
"GitLab: https://gitlab.com/sztest/nodecore",
|
|
|
|
"Discord: https://discord.gg/SHq2tkb"
|
|
|
|
}
|
|
|
|
|
2019-03-04 19:33:55 -05:00
|
|
|
nodecore.inventory_formspec = "size[12,5]"
|
2019-02-04 20:15:33 -05:00
|
|
|
.. "bgcolor[#000000C0;true]"
|
|
|
|
.. "listcolors[#00000000;#00000000;#00000000;#000000FF;#FFFFFFFF]"
|
2019-03-03 16:53:12 -05:00
|
|
|
.. "label[0,0;" .. minetest.formspec_escape(table_concat(lines, "\n")) .. "]"
|
2019-01-26 22:17:36 -05:00
|
|
|
|
2019-01-26 16:39:07 -05:00
|
|
|
minetest.register_on_joinplayer(function(player)
|
2019-02-08 23:45:41 -05:00
|
|
|
player:set_inventory_formspec(nodecore.inventory_formspec)
|
2019-01-26 16:39:07 -05:00
|
|
|
end)
|