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

Improve HitShape debug overlays #19467

Merged
merged 3 commits into from
Jul 2, 2021
Merged

Conversation

reaperrr
Copy link
Contributor

@reaperrr reaperrr commented Jun 25, 2021

Instead of just not rendering disabled shapes and targetable positions, they're now rendered in light gray shades when their housing HitShape trait is disabled.

Makes it easier to debug conditional HitShapes.

Also made orientation readonly since HitShape Requires<BodyOrientation> anyway.

I use this in one of my projects, so it would be nice if this were merged soonish so I can cut down the number of custom commits a bit for easier rebases/maintenance.

For those who don't feel like or don't know how to set up a testcase, this is what it looks like in-game:
ingame

abcdefg30
abcdefg30 previously approved these changes Jun 25, 2021
Copy link
Member

@abcdefg30 abcdefg30 left a comment

Choose a reason for hiding this comment

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

Code changes lgtm otherwise.

OpenRA.Mods.Common/Traits/HitShape.cs Outdated Show resolved Hide resolved
abcdefg30
abcdefg30 previously approved these changes Jun 25, 2021
@pchote
Copy link
Member

pchote commented Jul 1, 2021

LGTM. Neither of my comments above are blockers, so if you don't think they are worth changing then please go ahead and merge instead of replying and waiting for me to do it.

Instead of disabling their debug overlay entirely.
HitShape Requires<BodyOrientation> anyway.
Instead of not rendering them at all.
Also moved their debug overlay to HitShape.
@reaperrr
Copy link
Contributor Author

reaperrr commented Jul 2, 2021

Updated (and tested that everything still works).

@pchote pchote merged commit 9371cec into OpenRA:bleed Jul 2, 2021
@reaperrr reaperrr deleted the improve-hitshape-debug branch July 2, 2021 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants