]> git.somenet.org - factorio/some-autoresearch.git/blob - data.lua
RELEASE 2.0.3 - Should no longer not research anything if there is an event triggerab...
[factorio/some-autoresearch.git] / data.lua
1 data.raw["gui-style"].default["auto_research_header_label"] = {
2     type = "label_style",
3     font_color = {r = .91764705882352941176, g = .85098039215686274509, b = .67450980392156862745},
4     right_padding = 6
5 }
6
7 data.raw["gui-style"].default["auto_research_list_flow"] = {
8     type = "vertical_flow_style",
9     vertical_spacing = 0
10 }
11
12 data.raw["gui-style"].default["auto_research_tech_flow"] = {
13     type = "horizontal_flow_style",
14     horizontal_spacing = 0,
15     resize_row_to_width = true
16 }
17
18 data.raw["gui-style"].default["auto_research_sprite_button"] = {
19     type = "button_style",
20     width = 24,
21     height = 24,
22     top_padding = 0,
23     right_padding = 0,
24     bottom_padding = 0,
25     left_padding = 0,
26     left_click_sound = {
27         {
28             filename = "__core__/sound/gui-click.ogg",
29             volume = 1
30         }
31     }
32 }
33
34 data.raw["gui-style"].default["auto_research_sprite_button_toggle"] = {
35     type = "button_style",
36     parent = "auto_research_sprite_button",
37     default_graphical_set = {
38         type = "composition",
39         filename = "__core__/graphics/gui.png",
40         priority = "extra-high-no-scale",
41         load_in_minimal_mode = true,
42         corner_size = {3, 3},
43         position = {0, 0}
44     },
45     hovered_graphical_set = {
46         type = "composition",
47         filename = "__core__/graphics/gui.png",
48         priority = "extra-high-no-scale",
49         load_in_minimal_mode = true,
50         corner_size = {3, 3},
51         position = {0, 8}
52     }
53 }
54
55 data.raw["gui-style"].default["auto_research_sprite_button_toggle_pressed"] = {
56     type = "button_style",
57     parent = "auto_research_sprite_button_toggle",
58     default_graphical_set = {
59         type = "composition",
60         filename = "__core__/graphics/gui.png",
61         priority = "extra-high-no-scale",
62         load_in_minimal_mode = true,
63         corner_size = {3, 3},
64         position = {0, 40}
65     },
66     hovered_graphical_set = {
67         type = "composition",
68         filename = "__core__/graphics/gui.png",
69         priority = "extra-high-no-scale",
70         load_in_minimal_mode = true,
71         corner_size = {3, 3},
72         position = {0, 48}
73     }
74 }
75
76 data.raw["gui-style"].default["auto_research_tech_label"] = {
77     type = "label_style",
78     left_padding = 4,
79     right_padding = 4
80 }
81
82 data.raw["gui-style"].default["auto_research_sprite"] = {
83     type = "image_style",
84     width = 24,
85     height = 24,
86     top_padding = 0,
87     right_padding = 0,
88     bottom_padding = 0,
89     left_padding = 0,
90     stretch_image_to_widget_size = true
91 }
92
93 data:extend({
94         -- keybindings
95         {
96                 type = "custom-input",
97                 name = "auto_research_toggle",
98                 key_sequence = "SHIFT + T"
99         },
100
101     -- sprites
102     {
103         type = "sprite",
104         name = "auto_research_prioritize_top",
105         filename = "__some-autoresearch__/graphics/prioritize_top.png",
106         priority = "extra-high-no-scale",
107         width = 32,
108         height = 32
109     },
110     {
111         type = "sprite",
112         name = "auto_research_prioritize_bottom",
113         filename = "__some-autoresearch__/graphics/prioritize_bottom.png",
114         priority = "extra-high-no-scale",
115         width = 32,
116         height = 32
117     },
118     {
119         type = "sprite",
120         name = "auto_research_deprioritize",
121         filename = "__some-autoresearch__/graphics/deprioritize.png",
122         priority = "extra-high-no-scale",
123         width = 32,
124         height = 32
125     },
126     {
127         type = "sprite",
128         name = "auto_research_delete",
129         filename = "__some-autoresearch__/graphics/delete.png",
130         priority = "extra-high-no-scale",
131         width = 32,
132         height = 32
133     },
134     {
135         type = "sprite",
136         name = "auto_research_unknown",
137         filename = "__some-autoresearch__/graphics/questionmark.png",
138         priority = "extra-high-no-scale",
139         width = 32,
140         height = 32
141     }
142 })