summaryrefslogtreecommitdiff
path: root/skinlist.lua
diff options
context:
space:
mode:
authorAlexander Weber <web.alexander@web.de>2017-02-09 23:06:25 +0100
committerAlexander Weber <web.alexander@web.de>2017-02-09 23:06:25 +0100
commitd5df0d5e86633c21cafe0282cb81399acf4b186c (patch)
tree3b7c9ce8376ddfc9b289124c15d2eca9f5e19edc /skinlist.lua
parent3294c653616c07dc2fe979aac75debfc4b1d1a05 (diff)
renamed back to "skins" for beter compatibility
make unified_inventory opitonal, move the UI code to an own file
Diffstat (limited to 'skinlist.lua')
-rw-r--r--skinlist.lua20
1 files changed, 10 insertions, 10 deletions
diff --git a/skinlist.lua b/skinlist.lua
index 718646c..91fa2e6 100644
--- a/skinlist.lua
+++ b/skinlist.lua
@@ -1,26 +1,26 @@
-u_skins.list = {}
-u_skins.meta = {}
+skins.list = {}
+skins.meta = {}
local id = 1
local internal_id = 1
local fetched_skip = 0
while fetched_skip < 40 do
local name = "character_"..id
- local file = io.open(u_skins.modpath.."/meta/"..name..".txt", "r")
+ local file = io.open(skins.modpath.."/meta/"..name..".txt", "r")
if file then
local data = string.split(file:read("*all"), "\n", 3)
file:close()
- u_skins.list[internal_id] = name
- u_skins.meta[name] = {}
- u_skins.meta[name].name = data[1]
- u_skins.meta[name].author = data[2]
- u_skins.meta[name].license = data[3]
- u_skins.meta[name].description = "" --what's that??
+ skins.list[internal_id] = name
+ skins.meta[name] = {}
+ skins.meta[name].name = data[1]
+ skins.meta[name].author = data[2]
+ skins.meta[name].license = data[3]
+ skins.meta[name].description = "" --what's that??
fetched_skip = 0
internal_id = internal_id + 1
end
fetched_skip = fetched_skip + 1
id = id + 1
-end \ No newline at end of file
+end