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

Compatibility with Precision Farming UI #32

Open
Dwinesk opened this issue Jul 5, 2023 · 5 comments
Open

Compatibility with Precision Farming UI #32

Dwinesk opened this issue Jul 5, 2023 · 5 comments

Comments

@Dwinesk
Copy link

Dwinesk commented Jul 5, 2023

Alignment issue
The newest update allows one to have the FS22_simpleInspector hud underneath the Precision Farming UI. Issue is though that if applying lime or fertilizer, once on a field, the Precision Farming UI expands and your mod does'nt account for that

To Reproduce
Steps to reproduce the behavior:

  1. Using Precision Farming
  2. Have FS22_simpleInspector in the Top Left Corner
  3. Go Lime or Fertilizing in a field
  4. See error

Expected behavior
FS22_simpleInspector Hud to move down to avoid obscuring Precision Farming UI

Screenshots
20230705032955_1

20230705032712_1

Desktop :

  • OS: Win 11
  • Browser: Chrome
  • Version v1.0.2.3
@Dwinesk
Copy link
Author

Dwinesk commented Jul 7, 2023

Just seen that this overlaps with issue #28 so yeah.. here's more evidence of that.

@jtsage
Copy link
Owner

jtsage commented Jul 7, 2023

Yeah. I've not stumbled on a good fix yet - the issue is that the "extra" bits of that overlay are drawn last in the chain, and it doesn't seem like the function that does it really knows or cares how big it is - still looking for a good fix.

@KITT3000
Copy link
Contributor

KITT3000 commented Jul 8, 2023

@jtsage and it would not be possible to check the distance from the "Application rate" text/element, then with a fixed offset it would move your entire window by as much as the position of this text/element changes?

@jtsage
Copy link
Owner

jtsage commented Jul 8, 2023

That's the issue I'm having - finding the application rate (outside of the PF mod lua scope) I may have seen where that's done in the PF stuff, but near as I can figure, it's not set up to be able to be referenced from outside of the PF code.

@Dwinesk
Copy link
Author

Dwinesk commented Jul 11, 2023

@jtsage how about you try moving your entire UI down a few millimeters(as an exception) so that it will never be in the way when Precision Farming UI is active(expanded on field or not). And for checks you can try using whether it is seeding, liming, fertilizing or the combination of both seeding and fertilizing?

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

No branches or pull requests

3 participants