Changed license

This commit is contained in:
TenPlus1 2016-08-19 19:21:32 +01:00
parent fdd11d55ca
commit c721f04580
3 changed files with 38 additions and 25 deletions

View File

@ -1,4 +1,5 @@
-- Simple Skins mod for minetest (13th August 2015)
-- Simple Skins mod for minetest (5th June 2016)
-- Adds a simple skin selector to the inventory, using inventory_plus
-- or by using the /skin command to bring up selection list.
-- Released by TenPlus1 and based on Zeg9's code under WTFPL
@ -30,7 +31,7 @@ id = id - 1
-- load Metadata
skins.meta = {}
local f, data
for _, i in ipairs(skins.list) do
for _, i in pairs(skins.list) do
skins.meta[i] = {}
f = io.open(skins.modpath .. "/meta/" .. i .. ".txt")
data = nil
@ -54,7 +55,7 @@ skins.load = function()
end
if data and data ~= "" then
local lines = string.split(data, "\n")
for _, line in ipairs(lines) do
for _, line in pairs(lines) do
data = string.split(line, ' ', 2)
skins.skins[data[1]] = data[2]
end
@ -85,8 +86,10 @@ skins.formspec.main = function(name)
.. "label[.5,2;Select Player Skin:]"
.. "textlist[.5,2.5;5.8,4;skins_set;"
for i, v in ipairs(skins.list) do
formspec = formspec .. skins.meta[v].name .. ","
for i = 1, #skins.list do
formspec = formspec .. skins.meta[ skins.list[i] ].name .. ","
if skins.skins[name] == skins.list[i] then
selected = i
end
@ -94,7 +97,8 @@ skins.formspec.main = function(name)
formspec = formspec .. ";" .. selected .. ";true]"
local meta = skins.meta[skins.skins[name]]
local meta = skins.meta[ skins.skins[name] ]
if meta then
if meta.name then
formspec = formspec .. "label[2,.5;Name: " .. meta.name .. "]"
@ -207,4 +211,6 @@ minetest.register_chatcommand("skin", {
.."button_exit[0,.75;2,.5;;Close]"
)
end,
})
})
print ("[MOD] Simple Skins loaded")

View File

@ -1,14 +1,21 @@
The MIT License (MIT)
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (c) 2016 TenPlus1
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. You just DO WHAT THE FUCK YOU WANT TO.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

View File

@ -1,4 +1,4 @@
simple skins
Simple Skins
Simple Skins mod for Minetest uses Inventory Plus mod when available or the
/skin command to allow players to select a skin/texture from the list.
@ -6,10 +6,10 @@ Also supports 3d_armor mod.
https://forum.minetest.net/viewtopic.php?id=9100
Changes:
0.4 - Added /skin command to set player skin, no longer dependent on Inventory+
- also /setskin command for server admin to set custom skins for player.
0.3 - Now works with Minetest 0.4.10+
0.2 - Added 3D_Armor mod compatibility
0.1 - Added addi's changes to highlight selected skin on list (thanks)
0.0 - Initial release
Change log:
- 0.4 - Added /skin command to set player skin, no longer dependent on Inventory+, also /setskin command for server admin to set custom skins for player.
- 0.3 - Now works with Minetest 0.4.10+
- 0.2 - Added 3D_Armor mod compatibility
- 0.1 - Added addi's changes to highlight selected skin on list (thanks)
- 0.0 - Initial release