Add new and improve existing toolbar buttons #171
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
IllusionMods/HSPlugins!171
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "toolbars"
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?
Pull Request Overview
This PR adds new and improves existing toolbar buttons by implementing toolbar controls using the KKAPI.Studio.UI.Toolbars framework. The changes migrate from the deprecated CustomToolbarButtons API to the new SimpleToolbarButton and SimpleToolbarToggle controls.
Key changes:
Reviewed Changes
Copilot reviewed 14 out of 19 changed files in this pull request and generated 3 comments.
Show a summary per file
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
[nitpick] This complex null-checking chain could be simplified using the null-conditional operator:
_self?._toolbarButton?.ButtonObject?.image?.color = ...for better readability.@ -31,0 +52,4 @@protected override void CreateControl(){base.CreateControl();UpdateButton();Potential null reference exception if ButtonObject is null. Consider adding a null check before calling StopCoroutine.
Potential null reference exception if _toolbarButton is null when ShowUI is set before Awake() completes. Consider adding a null check.