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

Replace all usages of obsolete MapGridComponent methods #5547

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

MilenVolf
Copy link
Contributor

For #33279

Some other obsolete methods were also replaced in edited files
@@ -25,7 +25,9 @@ public override void Render(in OverlayDrawArgs args)
{
var viewportSize = (Vector2)pManager.Clyde.ScreenSize;

var gridPosition = Grid.MapToGrid(pManager.EyeManager.ScreenToMap(Vector2.Zero));
var gridUid = pManager.EntityManager.System<SharedTransformSystem>().GetGrid(MouseCoords);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure about this one with MouseCoords

Copy link
Contributor Author

@MilenVolf MilenVolf Dec 2, 2024

Choose a reason for hiding this comment

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

Nah, it's good. Tested multiple times. It will render only if our mouse on grid anyways

@MilenVolf MilenVolf changed the title Replace all obsolete usages of MapGridComponent methods Replace all usages of obsolete MapGridComponent methods Nov 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant