noxworld-dev / opennox

OpenNox main repository.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to scroll through shopkeeper inventory with mouse wheel

al0fdf opened this issue · comments

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.

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.

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