Skip to content

Implement interactor on all widgets#48

Merged
treeform merged 9 commits into
treeform:masterfrom
RowDaBoat:master
May 4, 2026
Merged

Implement interactor on all widgets#48
treeform merged 9 commits into
treeform:masterfrom
RowDaBoat:master

Conversation

@RowDaBoat

Copy link
Copy Markdown
Collaborator

This propagates the new interactor changes in buttons to all widgets, solving the overlapping issues on both windows and controls keeping track of warm/hot ids.

Once it's accepted, I'll add reseting the id tracking after each mouse-click interaction, preventing layouts that change from frame to frame from registering incorrect interactions.

Comment thread src/silky/contexts.nim

var traceActive*: bool = false

proc currentDrawLayer*(sk: Silky): int =

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

inline this

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Found out that semantic.nim has no drawer, so this actually makes sense!

Comment thread src/silky/semantic.nim
window*: Window

proc currentDrawLayer*(sk: Silky): int =
sk.currentLayer

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as previous comment.

@treeform treeform merged commit 853c2bd into treeform:master May 4, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants