@@ -2,98 +2,22 @@ require 'prototypes/inputs'
22require ' prototypes/items'
33require ' prototypes/style'
44
5- -- Add keybindings
6- data :extend ({
7- {
8- type = " custom-input" ,
9- name = " BlueprintExtensions_flip-h" ,
10- key_sequence = " SHIFT + x" ,
11- order = ' a-a'
12- },
13- {
14- type = " custom-input" ,
15- name = " BlueprintExtensions_flip-v" ,
16- key_sequence = " SHIFT + v" ,
17- order = ' a-b'
18- },
19- {
20- type = " custom-input" ,
21- name = " BlueprintExtensions_snap-n" ,
22- key_sequence = " PAD 8" ,
23- order = ' d-a' ,
24- },
25- {
26- type = " custom-input" ,
27- name = " BlueprintExtensions_snap-e" ,
28- key_sequence = " PAD 6" ,
29- order = ' d-b' ,
30- },
31- {
32- type = " custom-input" ,
33- name = " BlueprintExtensions_snap-s" ,
34- key_sequence = " PAD 2" ,
35- order = ' d-c' ,
36- },
37- {
38- type = " custom-input" ,
39- name = " BlueprintExtensions_snap-w" ,
40- key_sequence = " PAD 4" ,
41- order = ' d-d' ,
42- },
435
44- {
45- type = " custom-input" ,
46- name = " BlueprintExtensions_snap-nw" ,
47- key_sequence = " PAD 7" ,
48- order = ' e-a' ,
49- },
50- {
51- type = " custom-input" ,
52- name = " BlueprintExtensions_snap-ne" ,
53- key_sequence = " PAD 9" ,
54- order = ' e-b' ,
55- },
56- {
57- type = " custom-input" ,
58- name = " BlueprintExtensions_snap-sw" ,
59- key_sequence = " PAD 1" ,
60- order = ' e-c' ,
61- },
62- {
63- type = " custom-input" ,
64- name = " BlueprintExtensions_snap-se" ,
65- key_sequence = " PAD 3" ,
66- order = ' e-d' ,
67- },
68- {
69- type = " custom-input" ,
70- name = " BlueprintExtensions_snap-center" ,
71- key_sequence = " PAD 5" ,
72- order = ' f-a' ,
73- },
74- {
75- type = " custom-input" ,
76- name = " BlueprintExtensions_clone-blueprint" ,
77- key_sequence = " SHIFT + U" ,
78- order = ' g-a' ,
79- },
6+ --[[
807
81- {
82- type = " selection-tool" ,
83- name = " BlueprintExtensions_cloned-blueprint" ,
84- icon = " __BlueprintExtensions__/graphics/icons/cloned-blueprint.png" ,
85- icon_size = 32 ,
86- flags = { " goes-to-quickbar" },
87- subgroup = " tool" ,
88- order = " c[automated-construction]-a[blueprint]-no-picker" ,
89- stack_size = 1 ,
90- stackable = false ,
91- selection_color = { r = 0 , g = 1 , b = 0 },
92- alt_selection_color = { r = 0 , g = 1 , b = 0 },
93- selection_mode = { " blueprint" },
94- alt_selection_mode = { " blueprint" },
95- selection_cursor_box_type = " copy" ,
96- alt_selection_cursor_box_type = " copy" ,
97- show_in_library = false
98- },
99- })
8+ function gui_init(player)
9+ local flow = mod_gui.get_button_flow(player)
10+ if not flow.upgrade_planner_config_button then
11+ local button = flow.add
12+ {
13+ type = "sprite-button",
14+ name = "upgrade_planner_config_button",
15+ style = mod_gui.button_style,
16+ sprite = "item/upgrade-builder",
17+ tooltip = {"upgrade-planner.button-tooltip"}
18+ }
19+ button.style.visible = true
20+ end
21+ end
22+
23+ ]]
0 commit comments