Berserker, daemon_n, from ERM help - UN:J6
random - -1
no class - 1
treasure - 2
minor - 4
major - 8
relic - 16
Archer30, i see, so that is supposed to be used that for its being random generated?
Berserker, is there a trigger for OnAfterOpenTownScreen - trigger after finishing showing the townscreen (including both enter from adv map and swithcing town screens)?
Tried both OnPreTownScreen and OnOpenTownScreen, they are both too early than my need. Tried to manage the coordinate of a custom button, crashed before seeing the town screen
No, there is no such trigger currently.
Hmm, looks like there is a ready made one. Allow me to share some classic Hawaiing hooks here.
I don't know anything about fonts, then how to change them, playing with switching them in the json file gives no result at all.
I also noticed IF:G messages don't display entirely even in highest resolution (1920x1080) - they broke exactly same, so I have no idea why such important modification was necessary, this basically screws up every txt, because such txt were already reduced to minimum words. And now they don't make any sense.
Second thing: WHO modified avlpntr6.def/avlpntr7.def (big pine trees) for Era3? That was not tested, both defs are broken.
Valery, I sent your complaints to igrik. He'll try to do something with it.
Quote:Second thing: WHO modified avlpntr6.def/avlpntr7.def (big pine trees) for Era3? That was not tested, both defs are broken.
What is broken? I don't remember, from which fix I took them )
Archer30, thanks.
Valery, please. show the json file with other font names, that you tried to use. Igrik will improve the dialog in the future.
Valery, change the font name (HoMM3 ERA III\Mods\WoG\Lang\wnd.json)

Thanks, I tested all fonts and none matches what we had in Era 2, is this possible or I am blind?
Finally tiny.fnt is the one displaying all text, but is damnt tiny as well, I think there was something intermediate before.
I will distribute my maps with the Lang folder (and only the wnd.json inside) then.
(17.08.2021 00:19)Berserker Wrote: [ -> ]What is broken? I don't remember, from which fix I took them )
The last two pines, try them. And as they are massively used in mapmaking, imagine the loneliness
Valery, a lot of mods change fonts. like:
WoG Graphic fix, Era Scripts, Advanced Classed Mod, Game Enhancement Mod. Even Wog mod could add new fonts since transfer to ERA 3

Итак: Установка размеров кнопок и их положение
ERM Help Wrote:61 – установить ширину (без перерисовки) (число/числовая переменная)
(14.01.2017 00:22)igrik Wrote: [ -> ]
Code:
+20 (2 байта) флаги;
+22 (2 байта) состояние;
+24 (2 байта) x;
+26 (2 байта) y;
+28 (2 байта) ширина;
+30 (2 байта) высота;
+32 (4 байта) указатель на текст в статус_баре;
+36 (4 байта) указатель на текст по ПКМ;
; только для дефов и кнопок
+48 (4 байта) указатель на структуру defа;
+52 (4 байта) номер кадра дефа;
+56 (4 байта) номер кадра дефа при нажатии (если кнопка);
+60 (4 байта) отобразить зеркально: 0-нет, 1-да;
+68 (2 байта) закрывает ли диалог: 0-нет, 1-да;
Что я выяснил -
!!FU(H3Dlg_GetCurrentDlg):P?(currentDlgId:y);
!!SN:E6288816/2/(currentDlgId)/(buttonId); !!VR(btnStructure:y):Sv1;
!!VR(btnAction:y):S(btnStructure) +30;
!!UN:C(btnAction)/4/24; set 24 px height - работает
!!VR(btnAction:y):S(btnStructure) +28;
!!UN:C(btnAction)/4/332; set 332 px width - НЕ работает
; Но работает
!!FU(H3Dlg_SendCmdToItem):P(currentDlg)/(buttonId)/61/332/(DLG_CMD_TYPE_DEFAULT); set 332 px width - работает
UPD: я указал не то число байтов (везде поставил "4") - сейчас всё править буду)
Я просто обязан попросить объединить это в одно, чтобы у нас была возможность любую кнопку двигать через EEF )
(16.08.2021 19:46)Archer30 Wrote: [ -> ]Hmm, looks like there is a ready made one. Allow me to share some classic Hawaiing hooks here.
Valery, igrik will try to autosize the dialog, so that any text with any font could fit the line.
I'm just tired to think of those two pines. Should I simply remove those defs?
daemon_n, какая-то каша в посте, конкретизируй, пожалуйста )