Remove scroll node color (debug mode)

This commit is contained in:
Insality 2020-09-27 22:33:37 +03:00
parent ea0e7366d0
commit 954e4c0d6e
2 changed files with 7 additions and 6 deletions

View File

@ -10651,7 +10651,7 @@ nodes {
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA blend_mode: BLEND_MODE_ALPHA
texture: "" texture: "kenney/empty"
id: "grid_dynamic_nodes" id: "grid_dynamic_nodes"
xanchor: XANCHOR_NONE xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE yanchor: YANCHOR_NONE
@ -10809,14 +10809,14 @@ nodes {
w: 1.0 w: 1.0
} }
color { color {
x: 0.4 x: 1.0
y: 0.3019608 y: 1.0
z: 0.7019608 z: 1.0
w: 1.0 w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA blend_mode: BLEND_MODE_ALPHA
texture: "" texture: "kenney/empty"
id: "grid_dynamic_hor_nodes" id: "grid_dynamic_hor_nodes"
xanchor: XANCHOR_NONE xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE yanchor: YANCHOR_NONE

View File

@ -85,6 +85,7 @@ local function remove_dynamic_node(self, button)
if self.dynamic_node_buttons[i] == button then if self.dynamic_node_buttons[i] == button then
table.remove(self.dynamic_node_buttons, i) table.remove(self.dynamic_node_buttons, i)
self.grid_dynamic_scroll:set_size(self.dynamic_grid:get_size()) self.grid_dynamic_scroll:set_size(self.dynamic_grid:get_size())
self.grid_dynamic_scroll:set_scroll_offset(self.dynamic_grid:get_zero_offset())
break break
end end
end end
@ -132,7 +133,7 @@ local function init_dynamic_grid(self)
add_node_dynamic(self, i) add_node_dynamic(self, i)
end end
self.druid:new_button("button_add_start_dynamic/button", function() self.druid:new_button("button_add_start_dynamic/button", function()
add_node_dynamic(self, 3, true) add_node_dynamic(self, 1)
end) end)
self.druid:new_button("button_add_end_dynamic/button", function() self.druid:new_button("button_add_end_dynamic/button", function()
add_node_dynamic(self) add_node_dynamic(self)