mirror of
https://github.com/Insality/druid
synced 2025-09-27 18:12:21 +02:00
Update examples, fix scroll params
This commit is contained in:
@@ -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
|
||||
|
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user