Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to show splat bounding box #165

Merged
merged 2 commits into from
Aug 14, 2024
Merged

Add option to show splat bounding box #165

merged 2 commits into from
Aug 14, 2024

Conversation

slimbuck
Copy link
Member

Fixes: #164

This PR:

  • adds the option to hide splat bound.
  • fixes a bug where selection in rings mode was wrong with debug rendering disabled.
  • bump package version.

@slimbuck slimbuck added the enhancement New feature or request label Aug 14, 2024
@slimbuck slimbuck requested a review from a team August 14, 2024 14:31
@slimbuck slimbuck self-assigned this Aug 14, 2024
@slimbuck slimbuck merged commit e86f604 into main Aug 14, 2024
2 checks passed
@slimbuck slimbuck deleted the view-dev branch August 14, 2024 15:29
Comment on lines +83 to +96
const showBoundRow = new Container({
class: 'view-panel-row'
});

const showBoundLabel = new Label({
text: 'Show Bound',
class: 'view-panel-row-label'
});

const showBoundToggle = new BooleanInput({
type: 'toggle',
class: 'view-panel-row-toggle',
value: true
});
Copy link
Contributor

Choose a reason for hiding this comment

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

Any reason that you're not using LabelGroup: https://api.playcanvas.com/classes/PCUI.LabelGroup.html

Copy link
Member Author

Choose a reason for hiding this comment

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

Yep the best of reasons - I didn't know of its existence. :) I will consider using this for future updates (though in some cases it's easier to start from a css-blank-sheet rather than wrestle pcui styling).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

How to use the old version?
3 participants