forked from stujones11/clothing
-
Notifications
You must be signed in to change notification settings - Fork 2
/
colors_pictures.lua
103 lines (96 loc) · 1.84 KB
/
colors_pictures.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
local S = clothing.translator;
local basic_colors = {
white = {
color = S("white"),
hex = "FFFFFF",
},
grey = {
color = S("grey"),
hex = "C0C0C0",
},
black = {
color = S("black"),
hex = "232323",
},
red = {
color = S("red"),
hex = "FF0000",
},
yellow = {
color = S("yellow"),
hex = "FFEE00",
},
green = {
color = S("green"),
hex = "32CD32",
},
cyan = {
color = S("cyan"),
hex = "00959D",
},
blue = {
color = S("blue"),
hex = "003376",
},
magenta = {
color = S("magenta"),
hex = "D80481",
},
orange = {
color = S("orange"),
hex = "E0601A",
},
violet = {
color = S("violet"),
hex = "480080",
},
brown = {
color = S("brown"),
hex = "391A00",
},
pink = {
color = S("pink"),
hex = "FFA5A5",
},
dark_grey = {
color = S("dark grey"),
hex = "696969",
},
dark_green = {
color = S("dark green"),
hex = "154F00",
},
}
local colors = table.copy(basic_colors);
local colors2 = table.copy(basic_colors);
for color, data in pairs(basic_colors) do
colors2[color] = nil;
for color2, data2 in pairs(colors2) do
if (data2~=nil) then
key = color.."_"..color2;
colors[key] = {
color = data.color.."-"..data2.color;
alias = color2.."_"..color;
color1 = data.color,
color2 = data2.color,
key1 = color,
key2 = color2,
hex = data.hex,
hex2 = data2.hex,
}
end
end
end
local pictures = {
minetest = {
recipe = {"green","CLOTH","dark_green",
"brown","green","yellow",
"black","blue","grey",
},
production_time = 8*30,
texture = "clothing_picture_minetest.png",
},
}
clothing.basic_colors = basic_colors;
clothing.colors = colors;
clothing.pictures = pictures;