FS22_simpleInspector icon indicating copy to clipboard operation
FS22_simpleInspector copied to clipboard

Compatibility with Precision Farming UI

Open Dwinesk opened this issue 2 years ago • 5 comments

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 avatar Jul 05 '23 00:07 Dwinesk

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

Dwinesk avatar Jul 07 '23 11:07 Dwinesk

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.

jtsage avatar Jul 07 '23 14:07 jtsage

@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?

KITT3000 avatar Jul 08 '23 07:07 KITT3000

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.

jtsage avatar Jul 08 '23 12:07 jtsage

@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?

Dwinesk avatar Jul 11 '23 19:07 Dwinesk