Update examples, fix scroll params

This commit is contained in:
Insality
2021-04-05 01:05:38 +03:00
parent f8458f8554
commit 077a84d7b1
3 changed files with 9 additions and 3 deletions

View File

@@ -391,7 +391,7 @@ nodes {
}
type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "kenney/back_blue"
texture: "kenney/back_green"
id: "icon"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE

View File

@@ -41,7 +41,10 @@ function init(self)
self.scroll = self.druid:new_scroll("data_list_view", "data_list_content")
self.scroll:set_horizontal_scroll(false)
self.grid = self.druid:new_static_grid("data_list_content", "prefab", 1)
-- Pass already created scroll and grid components to data_list:
self.data_list = self.druid:new_data_list(self.scroll, self.grid, create_function)
self.data_list:set_data(data)
end