Berserker
Posts: 16657
|
|
24.12.2013 01:39 |
|
Valery
Posts: 2196
|
It looks like backpack needs special redraw, as when you move equipped artifacts manually from one hero to another, screen automatically redraws, but NOT backpack.
|
|
24.12.2013 01:56 |
|
Valery
Posts: 2196
|
Is there any reason why igrik buttons size isn't specified?
To trigger button animation it should be:
Heroes;YBackpack1;bckpck.def;326;521;52;36; but last two were 0;0;
Asking because I gonna make several buttons in CM3, and I see that parameters work ok, have you had any problems I am not aware of?
(This post was last modified: 24.12.2013 23:32 by Valery.)
|
|
24.12.2013 23:29 |
|
igrik
Posts: 2819
|
Да есть причина. Если кнопки сделать отличными от 0.0., то часть кода не срабатывает (а именно автоматический клик в первый слот (строка 021 скрипта). Артефакты не берутся. Поэтому пришлось отказаться от нажимаемых кнопок.
game bug fixes extended.dll || My Plugins || My GitHub
(This post was last modified: 25.12.2013 01:00 by igrik.)
|
|
25.12.2013 00:57 |
|
Valery
Posts: 2196
|
|
25.12.2013 01:41 |
|
Valery
Posts: 2196
|
I have a question: what is y3 when you activate one button?
Example: I have 10 buttons named YBackpack0 to YBackpack10. How to know which one was clicked without having to do:
...and so on until YBackpack10?
y3 returns 417 to 427 to those buttons. Any idea how to simplify search so the right button is activated if y3 is specified right?
(This post was last modified: 25.12.2013 03:37 by Valery.)
|
|
25.12.2013 03:36 |
|
Berserker
Posts: 16657
|
|
25.12.2013 06:05 |
|
igrik
Posts: 2819
|
|
25.12.2013 17:24 |
|
Valery
Posts: 2196
|
And what does MoP code? I see no change in test.
(This post was last modified: 25.12.2013 18:36 by Valery.)
|
|
25.12.2013 18:31 |
|
Berserker
Posts: 16657
|
igrik, обновление с этой функцией работает?
Valery,
Quote:Hero;YBackpack;bckpck.def;386;430;0;0;Click here to open your hero backpack bag.;Look into your backpack bag;
Heroes;YBackpack1;bckpck.def;326;521;0;0; Click here to open your hero backpack bag.;Look into your backpack bag;
Heroes;YBackpack2;bckpck.def;420;521;0;0; Click here to open your hero backpack bag.;Look into your backpack bag;
Heroes;YBackpack3;BTM1.def;377;521;0;0; Transfer backpacks.;Transfer backpack between heroes;
Heroes;YBackpack4;BTM2.def;401;521;0;0; Transfer backpacks.;Transfer backpack between heroes;
YBackpack will obtain some unknown ID, say X.
YBackpack1 will have ID = X + 1
YBackpack2 will have ID = X + 2 and so on.
To determine which particular button was pressed 0..4 in the above example, where 0 is YBackpack , 1 is YBackpack1 and so on, you should obtain ID of the first button and ID of the button pressed.
Скачать Герои 3 Эра и всё, что с ней связано / ERA 2.46f для старых модов
Поддержать проект
|
|
25.12.2013 19:23 |
|
igrik
Posts: 2819
|
(25.12.2013 19:23)Berserker Wrote: igrik, обновление с этой функцией работает?
Да. Но небольшой косяк. Если много раз передать арты через кнопки Valery, то после закрытия окна встечи героев оно несколько раз быстро мелькает.
Valery, у меня работает! Автообновление окон переданых артефактов
Вы эти строки учли?
!!if&y50>=378/y50<=394/y51>=523/y51<=554/ y36=13:; тут
game bug fixes extended.dll || My Plugins || My GitHub
(This post was last modified: 25.12.2013 19:33 by igrik.)
|
|
25.12.2013 19:30 |
|
Valery
Posts: 2196
|
Bers, thanks, got it.
Igrik, still not working, pasted as you did it, no effect. Anyway my code changed a lot yesterday, half shorter.
|
|
25.12.2013 19:35 |
|