]> git.somenet.org - factorio/some-autoresearch.git/blob - data.lua
Fixed too big icons in the auto-research-list.
[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     stretch_image_to_widget_size = true
95 }
96
97 data:extend({
98         -- keybindings
99         {
100                 type = "custom-input",
101                 name = "auto_research_toggle",
102                 key_sequence = "SHIFT + T"
103         },
104
105     -- sprites
106     {
107         type = "sprite",
108         name = "auto_research_prioritize_top",
109         filename = "__some-autoresearch__/graphics/prioritize_top.png",
110         priority = "extra-high-no-scale",
111         width = 32,
112         height = 32
113     },
114     {
115         type = "sprite",
116         name = "auto_research_prioritize_bottom",
117         filename = "__some-autoresearch__/graphics/prioritize_bottom.png",
118         priority = "extra-high-no-scale",
119         width = 32,
120         height = 32
121     },
122     {
123         type = "sprite",
124         name = "auto_research_deprioritize",
125         filename = "__some-autoresearch__/graphics/deprioritize.png",
126         priority = "extra-high-no-scale",
127         width = 32,
128         height = 32
129     },
130     {
131         type = "sprite",
132         name = "auto_research_delete",
133         filename = "__some-autoresearch__/graphics/delete.png",
134         priority = "extra-high-no-scale",
135         width = 32,
136         height = 32
137     },
138     {
139         type = "sprite",
140         name = "auto_research_unknown",
141         filename = "__some-autoresearch__/graphics/questionmark.png",
142         priority = "extra-high-no-scale",
143         width = 32,
144         height = 32
145     }
146 })