Skip to content

Conversation

@ryanbennitt
Copy link
Contributor

Reduced diameter of hollow star as the thickness increases so it does not exceed its bounding box.

Adjusted original changelog entry to contain more details about usage.

@myk002 myk002 added this to 51.11-r2 Apr 28, 2025
@github-project-automation github-project-automation bot moved this to Todo in 51.11-r2 Apr 28, 2025
@myk002 myk002 moved this from Todo to Review In Progress in 51.11-r2 Apr 28, 2025
changelog.txt Outdated

## Fixes

- `gui/design`: reduced diameter of star as thickness increases to remain within bounding box
Copy link
Member

Choose a reason for hiding this comment

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

no need for a "fixes" line for the star shape since it hasn't been out in a release yet. However, if this fixes the bulge for the line shape, I'd say that deserves a "fixes" entry.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

What's the bulge in the line shape issue?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Made the horizontal and vertical thickness consistent for curved lines as well, maybe this is the bulge you were referring to.

Copy link
Member

Choose a reason for hiding this comment

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

The bulge in the line shape was similar to what was happening for the star. When increasing the line thickness, the designated tiles can bulge beyond the selected endpoint, leading to potentially "selecting" tiles that are outside of the map:
image

This PR fixes the star shape, but the line still suffers from bulging.

I'll merge this PR as-is because the line bulge was a pre-existing issue, but if you have ideas on how to fix that, I'd love to hear them

@myk002
Copy link
Member

myk002 commented Apr 29, 2025

I'm not sure if this fixes the issue. I was still able to draw a star that extended beyond the edge of the map:
image

@ryanbennitt
Copy link
Contributor Author

I'm not sure if this fixes the issue. I was still able to draw a star that extended beyond the edge of the map:

When I draw this exact size star I get the following result:

star-60x46-inverted

Am I missing something?

@myk002
Copy link
Member

myk002 commented Apr 29, 2025

Am I missing something?

I'll test again, likely not properly synced on my part

@myk002 myk002 merged commit def13b7 into DFHack:master May 3, 2025
8 checks passed
@github-project-automation github-project-automation bot moved this from Review In Progress to Done in 51.11-r2 May 3, 2025
@ryanbennitt ryanbennitt deleted the feature/design_star_thickness branch May 6, 2025 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants