jtsage / FS22_simpleInspector

Spiritual ripoff of VehicleInspector - pared down to what I need/want, and completely re-written
22 stars 3 forks source link

Compatibility with Precision Farming UI #32

Open Dwinesk opened 1 year ago

Dwinesk commented 1 year ago

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 :

Dwinesk commented 1 year ago

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

jtsage commented 1 year ago

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 commented 1 year ago

@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 commented 1 year ago

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 commented 1 year ago

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