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

Better Inventory Window Positioning #30058

Closed

Conversation

Plykiya
Copy link
Contributor

@Plykiya Plykiya commented Jul 15, 2024

About the PR

When the user has that one bag locked position setting turned off, currently the bag will open in the same spot based off of the top left corner of the window.

I updated the behavior for both the X axis and the Y axis.

  • For the X axis, the window will now match the center position between windows.
  • For the Y axis, the window will now match the gap from the bottom of the screen.

Why / Balance

When you have bags that are of extremely different sizes, the experience is quite poor. This is especially noticeable when you go from something tiny like a survival box to something massive like a bag of holding. Your window will be completely askew from where you would expect the "middle" of the window to be.

Technical details

I think the math is pretty simple, I added comments and overly obvious variable names. The only issue at the moment is that Storage UI prediction is making the experience super jank, but this is what I would want the math to be once Storage UI prediction gets fixed.

#27637

Media

  • I have added screenshots/videos to this PR showcasing its changes ingame, or this PR does not require an ingame showcase

Before:

2024-07-14.21-39-36.mp4

After:

2024-07-14.21-55-04.mp4

Breaking changes

Changelog

🆑

  • tweak: Changes have been made to the UI positioning of storage windows.

@Plykiya
Copy link
Contributor Author

Plykiya commented Jul 15, 2024

I just realized I just reimplemented how StaticStorage positions the window but my way allows it to get moved around the screen, sigh...

apparently StaticStorage needs to be removed from the StorageUIController anyways so... I guess that's nice

@SlamBamActionman SlamBamActionman added the S: Untriaged Status: Indicates an item has not been triaged and doesn't have appropriate labels. label Nov 14, 2024
@github-actions github-actions bot added the S: Merge Conflict Status: Needs to resolve merge conflicts before it can be accepted label Jan 27, 2025
Copy link
Contributor

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@github-actions github-actions bot removed the S: Merge Conflict Status: Needs to resolve merge conflicts before it can be accepted label Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S: Untriaged Status: Indicates an item has not been triaged and doesn't have appropriate labels.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants