[Bindings/Odin] Updated odin bindings with new clip config (#397)

Great work, thanks for moving on this so quickly! 😁
This commit is contained in:
Hayden Gray 2025-05-02 00:02:40 -04:00 committed by GitHub
parent 90b45f059c
commit e4e7b113a9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 17 additions and 15 deletions

View file

@ -451,7 +451,7 @@ createLayout :: proc(lerpValue: f32) -> clay.ClayArray(clay.RenderCommand) {
if clay.UI()({ id = clay.ID("TopBorder5"), layout = { sizing = { clay.SizingGrow({ }), clay.SizingFixed(4) } }, backgroundColor = COLOR_TOP_BORDER_1 } ) {}
if clay.UI()({
id = clay.ID("ScrollContainerBackgroundRectangle"),
scroll = { vertical = true },
clip = { vertical = true, childOffset = clay.GetScrollOffset() },
layout = { sizing = { clay.SizingGrow({ }), clay.SizingGrow({ }) }, layoutDirection = clay.LayoutDirection.TopToBottom },
backgroundColor = COLOR_LIGHT,
border = { COLOR_RED, { betweenChildren = 2} },