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