Posts from NecroButton – An alternative table for raising undead.
images


Thanks to the valuable suggestion from psatkha and the help of fktifzobr@mail.ru in fixing the issue, the mod is ready. Thank you. The corrected version has also been re-uploaded in comment #23. Those who downloaded it should re-download it.images

---------------------------------------------
Неудачное планирование ведёт к неудаче ...
NCF - мод, добавляющий дополнительных существ в HeroesV 3.1
The purple numbers could also be made bolder, as they are not very visible!
Please understand, I won't ask the person again, but you can make any changes to the mod as you see fit.
Please understand, I won't ask this person again, but you can make any changes to the mod as you see fit.

---------------------------------------------
Неудачное планирование ведёт к неудаче ...
NCF - мод, добавляющий дополнительных существ в HeroesV 3.1
Before

After

This is what I got.

Even if I place it in the far upper right corner, the window doesn't change its position as needed, so I lowered it slightly so that the pop-up window wouldn't cover the button.

Added 21 hours 25 minutes ago
I'm struggling with one idea, namely disabling it with Esc. I found a similar implementation in the doc skills mod by Azarda. In the character menu, "Skills," pressing a button opens a window with a wheel, and pressing Esc closes it. The same thing exists in the modified version by vova2112, but already on the global map, where a table for raising undead appears.
I reviewed both versions countless times, and no matter how hard I try, I really don't understand where this is written or how it's implemented. If it's possible and someone knows how to implement it, please help.
Link to the mod /topic/15183/
It seems like I figured it out and added the ability to disable it with Esc, but there's a problem. The button remains in the "active" position after being disabled with Esc. As a result, it gets pressed without effect and only activates the window with the table on the second press.
I tried to assign a hotkey by entering it in the input field of both the default and custom profiles, but nothing happened except for the letter "F" appearing, which is what I was trying to do. It seems there's nothing more I can do here.
Attachment 68014
Attachment 68013
I reviewed both versions countless times, and no matter how hard I try, I really don't understand where this is defined or how it's implemented. If it's possible and someone knows how to implement it, please let me know.
Attachment 68015
Here’s an example of an unfinished battle interface mod –
К. Прутков-инженер. Мысль № 77.
Многие вещи нам непонятны не потому, что наши понятия слабы; но потому, что сии вещи не входят в круг наших понятий.
© Козьма Прутков
You were on the right track – in the profile folder, in the input_a2.cfg file, there are sections responsible for windows (WindowScreen); you need to specify the key and command designation in the appropriate section, and then specify the command in the button using GameMessageReactions
Attachment 68014
Attachment 68013
I made a button to exit onto InactiveBg.(BackgroundSimpleTexture).xdb and connected an event to it that triggers when ESC is pressed.
Attachment 68015
Here’s an example of an unfinished battle interface mod - Attachment 68016
The button stays in the “active” position after being deactivated by Esc. As a result, clicking on it does nothing, and only on the second click does it activate the window with the table.
I repeated everything, but for some reason it doesn't open, it only closes when I press "F".
К. Прутков-инженер. Мысль № 77.
Многие вещи нам непонятны не потому, что наши понятия слабы; но потому, что сии вещи не входят в круг наших понятий.
© Козьма Прутков
Thank you, vova2112. The hotkey worked right away, and then I intuitively fixed the click issue in the same file, which was causing an empty click after closing with Esc. Thanks again.
Let's have video tutorials! It would be interesting.
Let's have video tutorials! It would be interesting.
I got excited too early. The issue with the empty click hasn't been resolved. I don't know where to look or what to fix anymore. The construction of Info.(WindowMSButton).xdb and Info.(WindowMSButtonShared).xdb differs from those in the wheel or combat mode. There, the commands are not duplicated, and a single click on the button is always sufficient. I tried simply copying and substituting my own lines, but the mod either stops disabling the table when clicking the button, or the game crashes.
К. Прутков-инженер. Мысль № 77.
Многие вещи нам непонятны не потому, что наши понятия слабы; но потому, что сии вещи не входят в круг наших понятий.
© Козьма Прутков