Basic examples done

This commit is contained in:
Insality
2025-03-29 20:00:55 +02:00
parent e1339a2ca8
commit 45493bc9dd
25 changed files with 537 additions and 474 deletions

View File

@@ -43,4 +43,18 @@ function M:on_slider_back_hover(is_hover)
end
---@return string
function M:get_debug_info()
local info = ""
local s = self.scroll
info = info .. "View Size Y: " .. gui.get(s.view_node, "size.y") .. "\n"
info = info .. "Content Size Y: " .. gui.get(s.content_node, "size.y") .. "\n"
info = info .. "Content position Y: " .. math.ceil(s.position.y) .. "\n"
info = info .. "Content Range Y: " .. s.available_pos.y .. " - " .. s.available_pos.w .. "\n"
return info
end
return M