mirror of
https://github.com/Insality/druid.git
synced 2025-09-27 18:12:19 +02:00
Update grid usage at grid example page
This commit is contained in:
@@ -46,7 +46,7 @@ function M.init(self, parent, element, in_row)
|
||||
self.node_size = gui.get_size(node)
|
||||
self.node_pivot = const.PIVOTS[gui.get_pivot(node)]
|
||||
|
||||
self.border = vmath.vector4(0)
|
||||
self.border = vmath.vector4(0) -- Current grid content size
|
||||
self.border_offset = vmath.vector3(0)
|
||||
|
||||
self.on_add_item = Event()
|
||||
|
@@ -431,6 +431,15 @@ function Druid.new_grid(self, ...)
|
||||
end
|
||||
|
||||
|
||||
--- Create staic grid basic component
|
||||
-- @function druid:new_staic_grid
|
||||
-- @tparam args ... grid init args
|
||||
-- @treturn Component grid component
|
||||
function Druid.new_static_grid(self, ...)
|
||||
return Druid.create(self, static_grid, ...)
|
||||
end
|
||||
|
||||
|
||||
--- Create scroll basic component
|
||||
-- @function druid:new_scroll
|
||||
-- @tparam args ... scroll init args
|
||||
|
Reference in New Issue
Block a user