-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathdata.lua
More file actions
37 lines (34 loc) · 1.24 KB
/
data.lua
File metadata and controls
37 lines (34 loc) · 1.24 KB
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
local styles = data.raw["gui-style"].default
--TODO use styling mod
styles["fh_content_frame"] = {
type = "frame_style",
parent = "frame",
}
styles["fh_deep_frame"] = {
type = "frame_style",
parent = "slot_button_deep_frame",
vertically_stretchable = "on",
horizontally_stretchable = "on"
-- top_margin = 16,
-- left_margin = 8,
-- right_margin = 8,
-- bottom_margin = 4
}
-- in order to override the logic for an entity just add their name pointing to a remote interface in your own mod:
-- data.raw["mod-data"]["fh_add_items_drop_target_entity"].data["assembling-machine-3"] = {"interface", "function"}
data:extend{
{
type = "mod-data",
name = "fh_add_items_drop_target_entity",
data = {},
},
{
type = "mod-data",
name = "fh_add_items_pickup_target_entity",
data = {},
},
}
-- in your remote interface you will receive the entity and an empty array of items for your convenience,
-- the array of items should always be returned, items are allowed to be in several formats.
-- (see fh_util for details, most notably: item_name, {name = "name"} & prototypes)
-- note: your mod becomes responsible for ALL suggestions for that entity, like burn results and spoilage.