noxworld-dev / opennox

OpenNox main repository.
GNU General Public License v3.0
440 stars 23 forks source link

Unable to scroll through shopkeeper inventory with mouse wheel #675

Open al0fdf opened 5 months ago

al0fdf commented 5 months ago

When hovering the mouse over your inventory, the scroll wheel scrolls the inventory, however when hovering over the shop keeper's inventory/item list, your inventory scrolls instead of the shop keeper's inventory as I would expect.

KILAH4716 commented 5 months ago

I was about to write "In OpenNox v1.8.11 or Nox Reloaded, I cannot replicate this."

But then, I wondered if the magnifying glass had anything to do with it, so I went back to test, and it does.

In both games: If you hover your mouse over your inventory and scroll, your inventory scrolls. If you hover your mouse over the shopkeeper's inventory and scroll, the shopkeeper's inventory scrolls.

If you hover your mouse over neither interface and scroll, there are mixed results: Nox Reloaded SP Spellcaster: Nothing Nox Reloaded MP/Quest Spellcaster: Your spell sets scroll Nox Reloaded SP Warrior: Nothing Nox Reloaded MP/Quest Warrior: Nothing OpenNox SP Spellcaster: Nothing OpenNox MP/Quest Spellcaster: Your spell sets scroll OpenNox SP Warrior: You switch your primary weapon to the next/previous weapon in your inventory not including your secondary OpenNox MP/Quest Warrior: You switch your primary weapon to the next/previous weapon in your inventory not including your secondary

However, in all cases, if you select the magnifying glass, all scrolling happens in your inventory no matter what version of Nox you're playing, where your cursor is, or what OpenNox augmentations we've added.

dennwc commented 5 months ago

@KILAH4716 Thank you for a detailed testing! I'll need to check this on the latest Alpha, but I suspect it will be the same.

So then I think @al0fdf was using the magnifying glass and tried to scroll the shop, which didn't work.

And thus the game likely uses a check for magnifying glass and forces input focus to stay in the inventory.