fix(CarrouselButton): broken meta return value #45
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
mupen64/ugui!45
Loading…
Reference in a new issue
No description provided.
Delete branch "fix-carrousel-button-meta-return"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes
carrousel_buttonhaving a brokenmetareturn value.Pull request overview
Fixes
ugui.carrousel_buttonreturning an incorrectly shapedmetavalue, and updates tests to validatemeta.signal_changetransitions.Changes:
carrousel_buttonto returnmetaas aMetatable (instead of an array-wrapped table).carrousel_buttontests to assertsignal_changestate progression across frames.Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
src/ugui/controls/carrousel_button.luametareturn shape to match theMetatype and other controls.test/carrousel_button.luameta.signal_changeacross frames for decrement/increment click scenarios.💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
metais not declared local in this test (index, meta = ...), so Lua will treat it as a global. This can leak state across tests and make results flaky; declarelocal metanearlocal index = 2(as done inleft_click_decrements_index).