-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdata.lua
93 lines (90 loc) · 1.85 KB
/
data.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
require("prototypes.style")
local GRAPHICS_PATH = "__lua-compiler__/graphics/"
local new_combinator = table.deepcopy(data.raw['constant-combinator']['constant-combinator'])
new_combinator.name = "zLua-compiler"
new_combinator.icon = "__lua-compiler__/thumbnail.png"
new_combinator.icon_size = 144
new_combinator.minable = {
hardness = 0.1,
mining_time = 0.1,
result = new_combinator.name
}
if data.raw["custom-input"]["open-gui"] == nil then
data.raw["custom-input"]["open-gui"] = {
type = "custom-input",
name = "open-gui",
key_sequence = "",
linked_game_control = "open-gui"
}
end
data:extend{
new_combinator, {
type = "item",
name = new_combinator.name,
place_result = new_combinator.name,
icon = "__lua-compiler__/thumbnail.png",
icon_size = 144,
stack_size = 50,
subgroup = "circuit-network",
order = 'zz'
}, {
type = "sprite",
name = "microcontroller-play-sprite",
filename = GRAPHICS_PATH .. "play.png",
width = 32,
height = 32,
flags = {
"gui-icon"
}
}, {
type = "sprite",
name = "microcontroller-copy-sprite",
filename = GRAPHICS_PATH .. "copy.png",
width = 32,
height = 32,
flags = {
"gui-icon"
}
}, {
type = "sprite",
name = "microcontroller-paste-sprite",
filename = GRAPHICS_PATH .. "draft.png",
width = 32,
height = 32,
flags = {
"gui-icon"
}
}, {
type = "sprite",
name = "refresh",
filename = GRAPHICS_PATH .. "refresh.png",
width = 32,
height = 32,
flags = {
"gui-icon"
}
}, {
type = "sprite",
name = "power-on",
filename = GRAPHICS_PATH .. "power-on.png",
width = 32,
height = 32,
flags = {
"gui-icon"
}
}, {
type = "sprite",
name = "power-off",
filename = GRAPHICS_PATH .. "power-off.png",
width = 32,
height = 32,
flags = {
"gui-icon"
}
}, {
type = "font",
name = "default-mono",
from = "default-mono",
size = 16
},
}