Version 2.9.4
------------------------
[+] Improved LoadImageAsPcx16 exported function, allowing to load any png/jpg/bmp file as pcx16 resource.
LoadImageAsPcx16 (FilePath, PcxName: pchar; Width, Height, MaxWidth, MaxHeight, ResizeAlg: integer): {OU} Heroes.PPcx16Item; stdcall;
Now it supports size constraints (0 for none) and resizing algorithm.
ALG_NO_RESIZE = 0, ALG_STRETCH = 1, ALG_CONTAIN = 2, ALG_DOWNSCALE = 3, ALG_UPSCALE = 4, ALG_COVER = 5, ALG_FILL = 6.
Use ALG_STRETCH to set fixed dimensions, ALG_FILL to fill the box with tiles and ALG_DOWNSCALE for custom dialogs
to shrink large images proportionally.
Example of using custom jpg image in DL-dialog.
!!SN:F^LoadImageAsPcx16^/^Data\Pics\test.jpg^/^rW3.cust.pcx^/400/300/0/0/1;
!!VRy1:Sv1; y1 - image resource
...call DL dialog, where rW3.cust.pcx is used.
!!SN:F^DecRef^/y1; free image resource
[+] Included "view mage guild without spellbook.bin" by igrik, allowing to enter magic guild without spellbook.
[*] Allowed old SN:P[n] syntax instead of Pz[n].
[*] Replaced WoG Native Dialog plugin by igrik with the one without non-dialog features.
[-] Fixed sound handling issues and appropriate sound error message.
[-] Fixed wrong flag 1000 value in triggers. Thanks to Valery (Salamandre).
[-] Fixed crash in !!RD:O and a few other RD-related issues.
[-] Fixed bug: SN:R was treated as missing command.
[-] Fixed bug: heroes could not be dismissed.
[!] battery.dll by MoP (included in Typhon too) is not supported anymore.
[!] erm_hooker.era MUST BE deleted from all mods, unless you know, what you are doing. It's a part of Era package now.