FTBTeam / FTB-Mods-Issues

Any mod issues, be it FTB Teams, Quests or any other of our mods can be reported here!
22 stars 1 forks source link

[Bug]: FTB Quests—hit target is not rotated along with rotated images #1281

Open SubordinalBlue opened 3 months ago

SubordinalBlue commented 3 months ago

Mod

FTB Quests

Mod version

Any NeoForge version, at least, afaik.

Forge / Fabric version

NeoForge 1.21

Modpack & version

Craftoria... all versions we've produced so far. xD

What issue are you having?

Easier to explain with a visual reference, I think.

In the example quest chapter design below, the horizontal ae2 spatial pylon images can be difficult to work with, because their hit target for right clicking is not rotated to match their rotation (90° in this case). The user (quest editor) is left to guess-and-try-again to find the right place to right click to work with a rotated image (in this example the problem is exacerbated much by it also being a stretched texture).

Screenshot 2024-07-18 at 7 01 06 PM

Crashlogs

No response

Steps to reproduce

  1. Place image
  2. Rotate it (optionally stretch it out to make the resulting problem much more annoying)
  3. Try to right-click on it... it will only work where the image would be if it wasn't rotated.

Anything else to note?

Nope.

desht commented 3 months ago

Yeah, it's a known issue, and one that's rather difficult to resolve, since the vanilla game doesn't support the concept of click areas which are rotated to anything other than the cardinal compass points.

I guess one option might be to show a hitbox where the image can be clicked (some kind of highlighted rectangular area).#

Update: actually, maybe it's a lot easier than I thought :smiley: Updating the mouse-over check to work with rotated mouse coords (around either the center or corner of the image, based on settings) should work well here, I think...