mirror of
https://github.com/Insality/druid.git
synced 2025-06-27 18:37:44 +02:00
Fix scroll annotations
This commit is contained in:
parent
32aa760386
commit
2cef65ed40
@ -1042,25 +1042,25 @@ function druid__scroll.is_node_in_view(self, node) end
|
|||||||
--- Start scroll to target point.
|
--- Start scroll to target point.
|
||||||
---@param self druid.scroll @{Scroll}
|
---@param self druid.scroll @{Scroll}
|
||||||
---@param point vector3 Target point
|
---@param point vector3 Target point
|
||||||
---@param is_instant bool Instant scroll flag
|
---@param is_instant? bool Instant scroll flag
|
||||||
function druid__scroll.scroll_to(self, point, is_instant) end
|
function druid__scroll.scroll_to(self, point, is_instant) end
|
||||||
|
|
||||||
--- Scroll to item in scroll by point index.
|
--- Scroll to item in scroll by point index.
|
||||||
---@param self druid.scroll @{Scroll}
|
---@param self druid.scroll @{Scroll}
|
||||||
---@param index number Point index
|
---@param index number Point index
|
||||||
---@param skip_cb bool If true, skip the point callback
|
---@param skip_cb? bool If true, skip the point callback
|
||||||
function druid__scroll.scroll_to_index(self, index, skip_cb) end
|
function druid__scroll.scroll_to_index(self, index, skip_cb) end
|
||||||
|
|
||||||
--- Start scroll to target scroll percent
|
--- Start scroll to target scroll percent
|
||||||
---@param self druid.scroll @{Scroll}
|
---@param self druid.scroll @{Scroll}
|
||||||
---@param percent vector3 target percent
|
---@param percent vector3 target percent
|
||||||
---@param is_instant bool instant scroll flag
|
---@param is_instant? bool instant scroll flag
|
||||||
function druid__scroll.scroll_to_percent(self, percent, is_instant) end
|
function druid__scroll.scroll_to_percent(self, percent, is_instant) end
|
||||||
|
|
||||||
--- Strict drag scroll area.
|
--- Strict drag scroll area.
|
||||||
--- Useful for restrict events outside stencil node
|
--- Useful for restrict events outside stencil node
|
||||||
---@param self druid.drag
|
---@param self druid.drag
|
||||||
---@param node node Gui node
|
---@param node node|string Gui node (or node id)
|
||||||
function druid__scroll.set_click_zone(self, node) end
|
function druid__scroll.set_click_zone(self, node) end
|
||||||
|
|
||||||
--- Set extra size for scroll stretching.
|
--- Set extra size for scroll stretching.
|
||||||
@ -1094,7 +1094,7 @@ function druid__scroll.set_points(self, points) end
|
|||||||
--- It will change content gui node size
|
--- It will change content gui node size
|
||||||
---@param self druid.scroll @{Scroll}
|
---@param self druid.scroll @{Scroll}
|
||||||
---@param size vector3 The new size for content node
|
---@param size vector3 The new size for content node
|
||||||
---@param offset vector3 Offset value to set, where content is starts
|
---@param offset? vector3 Offset value to set, where content is starts
|
||||||
---@return druid.scroll Current scroll instance
|
---@return druid.scroll Current scroll instance
|
||||||
function druid__scroll.set_size(self, size, offset) end
|
function druid__scroll.set_size(self, size, offset) end
|
||||||
|
|
||||||
|
@ -325,7 +325,7 @@ end
|
|||||||
-- It will change content gui node size
|
-- It will change content gui node size
|
||||||
-- @tparam Scroll self @{Scroll}
|
-- @tparam Scroll self @{Scroll}
|
||||||
-- @tparam vector3 size The new size for content node
|
-- @tparam vector3 size The new size for content node
|
||||||
-- @tparam vector3 offset Offset value to set, where content is starts
|
-- @tparam[opt] vector3 offset Offset value to set, where content is starts
|
||||||
-- @treturn druid.scroll Current scroll instance
|
-- @treturn druid.scroll Current scroll instance
|
||||||
function Scroll.set_size(self, size, offset)
|
function Scroll.set_size(self, size, offset)
|
||||||
if offset then
|
if offset then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user