fix: Button code stability refactors#1213
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
1 issue found across 1 file
Confidence score: 3/5
- There is a concrete regression risk in
scripts/scr_buttons/scr_buttons.gml:LabeledIconno longer callsupdate()in the constructor, sox2/y2/w/hcan remain zero and make the hitbox invalid at creation time. - Because this is severity 7/10 with high confidence (9/10) and affects input behavior, it could cause user-facing click/hover failures until some external
update()happens. - This is likely fixable with a small, targeted constructor change, but as-is it carries meaningful runtime behavior risk.
- Pay close attention to
scripts/scr_buttons/scr_buttons.gml- constructor-time bounds initialization may be missing, leading to zero-area hitboxes.
Shadow auto-approve: would not auto-approve because issues were found.
Re-trigger cubic
Contributor
There was a problem hiding this comment.
No issues found across 1 file
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Shadow auto-approve: would require human review. This is a large refactor of core UI button code (254 additions, 269 deletions) that the author explicitly notes has caused a regression in character creation, so it requires human review to verify that no critical UI flows are broken.
Re-trigger cubic
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I can do a proper run down of all the changes tomorrow after work but i need to sleep and dont merge this i technically caused a regression with the "distribute specialists" buttons in character creation.... I think. I haven't actually looked at those buttons specifically yet to see if it's a regression or exposure of patchy code i need time and figured i'd post my progress for eyeballs rn.
Summary by cubic
Refactors core UI/button code for consistent constructors, draw-state handling, and reliable bounds. Fixes hover/click and layout edge cases across buttons, sliders, and text UI.
Refactors
Migration
Written for commit 4863706. Summary will update on new commits.