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

Allow to center camera messages #775

Merged
merged 4 commits into from
Sep 12, 2024
Merged

Allow to center camera messages #775

merged 4 commits into from
Sep 12, 2024

Conversation

smlpt
Copy link
Contributor

@smlpt smlpt commented Aug 27, 2024

This adds a new centering parameter to Camera.showMessage() (default = false) that attempts to center the text based on message length (bounding boxes are not available for textboards, so can't use those). The scaling factor is a bit eyeballed, but it seems to work for the text sizes I currently use.

@smlpt smlpt added the enhancement Issue or PR discusses an enhancement label Aug 27, 2024
@smlpt smlpt requested a review from moreApi September 2, 2024 13:38
Copy link
Member

@moreApi moreApi left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Member

@skalarproduktraum skalarproduktraum left a comment

Choose a reason for hiding this comment

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

lgtmt! Thanks, @smlpt 👍

@skalarproduktraum skalarproduktraum merged commit 0a67c8b into main Sep 12, 2024
3 of 6 checks passed
@skalarproduktraum skalarproduktraum deleted the message-centering branch September 12, 2024 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Issue or PR discusses an enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants