ihhub / fheroes2

fheroes2 is a recreation of Heroes of Might and Magic II game engine.
https://ihhub.github.io/fheroes2/
GNU General Public License v2.0
2.58k stars 359 forks source link

Add monster info popup in battle mode #8193

Open jez9999 opened 6 months ago

jez9999 commented 6 months ago

Preliminary checks

Describe the problem requiring a solution

The original HOMM2 has a "monster info" option in battle mode, with "None", "Spells only", and "Full". It provides a handy popup on the bottom-right when you mouseover a monster, as well as info on your active unit at the bottom-left. Here's a screenshot of the dialog on Full mode:

image

For some reason fheroes2 doesn't seem to have this; it should be added.

Describe the possible solution

Add the "monster info" dialog.

Additional info

No response

oleg-derevenetz commented 6 months ago

In fheroes2 at the time, a decision was made to implement a more useful popup instead that shows damage range and the number of units that will be killed in a potential attack (including magic attacks):

https://github.com/ihhub/fheroes2/assets/32623900/0d5c21cc-da44-4b33-b470-584ac7daf6db

OG popup was pretty useless and and just duplicated the information that can now be accessed using the right mouse button. In addition, it partially overlapped the battlefield.

jez9999 commented 6 months ago

I liked the morale, luck, and HP info that didn't require the extra right mouse click. Admittedly the other info isn't so useful.

ihhub commented 6 months ago

The window is very mediocre to be honest. It barely holds even English text. Imagine what can we put in German. It also covers a significant portion of battlefield which is tiny. Moreover, it should exactly the same information which you can get by mouse right clicking on the creature.

Honestly, I've never seen players using this window at all in the last 25 years.

What we can do is to upgrade our existing window to show something more if needed.

jez9999 commented 6 months ago

Well as I said your popup one should have morale, luck, and HP. Also I don't really like the delay for your one, it'd be nice if it popped up immediately.