mirror of
https://github.com/Insality/druid.git
synced 2025-06-27 10:27:47 +02:00
Remove scroll node color (debug mode)
This commit is contained in:
parent
ea0e7366d0
commit
954e4c0d6e
@ -10651,7 +10651,7 @@ nodes {
|
||||
}
|
||||
type: TYPE_BOX
|
||||
blend_mode: BLEND_MODE_ALPHA
|
||||
texture: ""
|
||||
texture: "kenney/empty"
|
||||
id: "grid_dynamic_nodes"
|
||||
xanchor: XANCHOR_NONE
|
||||
yanchor: YANCHOR_NONE
|
||||
@ -10809,14 +10809,14 @@ nodes {
|
||||
w: 1.0
|
||||
}
|
||||
color {
|
||||
x: 0.4
|
||||
y: 0.3019608
|
||||
z: 0.7019608
|
||||
x: 1.0
|
||||
y: 1.0
|
||||
z: 1.0
|
||||
w: 1.0
|
||||
}
|
||||
type: TYPE_BOX
|
||||
blend_mode: BLEND_MODE_ALPHA
|
||||
texture: ""
|
||||
texture: "kenney/empty"
|
||||
id: "grid_dynamic_hor_nodes"
|
||||
xanchor: XANCHOR_NONE
|
||||
yanchor: YANCHOR_NONE
|
||||
|
@ -85,6 +85,7 @@ local function remove_dynamic_node(self, button)
|
||||
if self.dynamic_node_buttons[i] == button then
|
||||
table.remove(self.dynamic_node_buttons, i)
|
||||
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
|
||||
end
|
||||
end
|
||||
@ -132,7 +133,7 @@ local function init_dynamic_grid(self)
|
||||
add_node_dynamic(self, i)
|
||||
end
|
||||
self.druid:new_button("button_add_start_dynamic/button", function()
|
||||
add_node_dynamic(self, 3, true)
|
||||
add_node_dynamic(self, 1)
|
||||
end)
|
||||
self.druid:new_button("button_add_end_dynamic/button", function()
|
||||
add_node_dynamic(self)
|
||||
|
Loading…
x
Reference in New Issue
Block a user