-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdata.lua
More file actions
145 lines (136 loc) · 3.8 KB
/
data.lua
File metadata and controls
145 lines (136 loc) · 3.8 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
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
data.raw["gui-style"].default["auto_research_header_label"] = {
type = "label_style",
font_color = {r = .91764705882352941176, g = .85098039215686274509, b = .67450980392156862745},
font = "default-large-semibold",
top_padding = 0,
bottom_padding = 0,
left_padding = 0,
right_padding = 6
}
data.raw["gui-style"].default["auto_research_list_flow"] = {
type = "vertical_flow_style",
vertical_spacing = 0
}
data.raw["gui-style"].default["auto_research_tech_flow"] = {
type = "horizontal_flow_style",
horizontal_spacing = 0,
resize_row_to_width = true
}
data.raw["gui-style"].default["auto_research_sprite_button"] = {
type = "button_style",
width = 24,
height = 24,
top_padding = 0,
right_padding = 0,
bottom_padding = 0,
left_padding = 0,
left_click_sound = {
{
filename = "__core__/sound/gui-click.ogg",
volume = 1
}
}
}
data.raw["gui-style"].default["auto_research_sprite_button_toggle"] = {
type = "button_style",
parent = "auto_research_sprite_button",
default_graphical_set = {
type = "composition",
filename = "__core__/graphics/gui.png",
priority = "extra-high-no-scale",
load_in_minimal_mode = true,
corner_size = {3, 3},
position = {0, 0}
},
hovered_graphical_set = {
type = "composition",
filename = "__core__/graphics/gui.png",
priority = "extra-high-no-scale",
load_in_minimal_mode = true,
corner_size = {3, 3},
position = {0, 8}
}
}
data.raw["gui-style"].default["auto_research_sprite_button_toggle_pressed"] = {
type = "button_style",
parent = "auto_research_sprite_button_toggle",
default_graphical_set = {
type = "composition",
filename = "__core__/graphics/gui.png",
priority = "extra-high-no-scale",
load_in_minimal_mode = true,
corner_size = {3, 3},
position = {0, 40}
},
hovered_graphical_set = {
type = "composition",
filename = "__core__/graphics/gui.png",
priority = "extra-high-no-scale",
load_in_minimal_mode = true,
corner_size = {3, 3},
position = {0, 48}
}
}
data.raw["gui-style"].default["auto_research_tech_label"] = {
type = "label_style",
left_padding = 4,
right_padding = 4
}
data.raw["gui-style"].default["auto_research_sprite"] = {
type = "image_style",
width = 24,
height = 24,
top_padding = 0,
right_padding = 0,
bottom_padding = 0,
left_padding = 0
}
data:extend({
-- keybindings
{
type = "custom-input",
name = "auto_research_toggle",
key_sequence = "SHIFT + T"
},
-- sprites
{
type = "sprite",
name = "auto_research_prioritize_top",
filename = "__auto-research__/graphics/prioritize_top.png",
priority = "extra-high-no-scale",
width = 32,
height = 32
},
{
type = "sprite",
name = "auto_research_prioritize_bottom",
filename = "__auto-research__/graphics/prioritize_bottom.png",
priority = "extra-high-no-scale",
width = 32,
height = 32
},
{
type = "sprite",
name = "auto_research_deprioritize",
filename = "__auto-research__/graphics/deprioritize.png",
priority = "extra-high-no-scale",
width = 32,
height = 32
},
{
type = "sprite",
name = "auto_research_delete",
filename = "__auto-research__/graphics/delete.png",
priority = "extra-high-no-scale",
width = 32,
height = 32
},
{
type = "sprite",
name = "auto_research_unknown",
filename = "__auto-research__/graphics/questionmark.png",
priority = "extra-high-no-scale",
width = 32,
height = 32
}
})