Scanmen 31 #432186 Posted June 2, 2018 5 minutes ago, night_dragon_on said: No, it's not forbidden. The information panel has been in existence for five years already and the recharge characteristic has always been displayed in it. Спасибо (I hope I have written correctly) :) Quote Share this post Link to post Short link Share on other sites
Scanmen 31 #432223 Posted June 2, 2018 I would like to ask what I'm doing wrong, because the infoPanel appears on dead enemy also. Can i turn off this behavior? Another small thing is that when I set the {{gun_accuracy}} macro in the infoPanel.xc file, the whole infoPanel it does not work anymore (not appears on battle gui). With other macros work perfect. Thanks Quote Share this post Link to post Short link Share on other sites
Kotyarko_O 1,906 #432224 Posted June 2, 2018 (edited) 1 hour ago, Scanmen said: because the infoPanel appears on dead enemy also. Can i turn off this behavior? At this moment, no. I`ll try to implement. 1 hour ago, Scanmen said: Another small thing is that when I set the {{gun_accuracy}} macro in the infoPanel.xc file, the whole infoPanel it does not work anymore (not appears on battle gui). There is typo in resource script i didn`t see before. Thanks, i`ll fix it. Обновлено. Исправлен макрос "{{gun_accuracy}}". Добавлена опция конфига "aliveOnly" (true - отображать только для живых игроков, false - для живых и уничтоженных). Edited June 2, 2018 by Kotyarko_O 2 Quote Share this post Link to post Short link Share on other sites
Scanmen 31 #432237 Posted June 3, 2018 (edited) 11 hours ago, Kotyarko_O said: At this moment, no. I`ll try to implement. There is typo in resource script i didn`t see before. Thanks, i`ll fix it. Обновлено. Исправлен макрос "{{gun_accuracy}}". Добавлена опция конфига "aliveOnly" (true - отображать только для живых игроков, false - для живых и уничтоженных). The "aliveOnly" option works like a charm. :) Using the {{gun_accuracy}} macro, now it's not blocking the whole infoPanel, but show only 0.00 value on my, and every enemy tanks. The used xvm is 7.6.3 ver, and no other mods. Edited June 3, 2018 by Scanmen Quote Share this post Link to post Short link Share on other sites
night_dragon_on 5,601 #432239 Posted June 3, 2018 (edited) 12 часов назад, Kotyarko_O сказал: Исправлен макрос "{{gun_accuracy}}" @Kotyarko_O , замени: _typeDescriptor.gun.shotDispersionAngle >>> round(_typeDescriptor.gun.shotDispersionAngle * 100, 2) C:\res\scripts\client\gui\shared\items_parameters\__init__.py (1 hit) Line 77: curDispRadius = round(descr.shotDispersionAngle * 100, 2) Edited June 3, 2018 by night_dragon_on 1 Quote Share this post Link to post Short link Share on other sites
Scanmen 31 #432243 Posted June 3, 2018 (edited) _typeDescriptor.gun.shotDispersionAngle >>> round(_typeDescriptor.gun.shotDispersionAngle * 100, 2) It works! Edited June 3, 2018 by Scanmen Quote Share this post Link to post Short link Share on other sites
Kotyarko_O 1,906 #432251 Posted June 3, 2018 Обновлено. Повторно исправлен макрос "{{gun_accuracy}}". Quote Share this post Link to post Short link Share on other sites
aster 53 #433509 Posted June 15, 2018 Придумал для себя способ воткнуть {{gun_clip}} без лишней строки, авось кому пригодится: Добавил в infoPanel.py блок с @xvm.export('cClip', deterministic=False) def cClip(value1): if value1 > 1: return ' x'+str(value1) else: return None , с ним строка Урон{{py:cClip({{gun_clip}})}}: выглядит, как на скрине. 2 Quote Share this post Link to post Short link Share on other sites
Kotyarko_O 1,906 #433560 Posted June 15, 2018 Обновлено. Исправлены ошибки, проявляющиеся в футбольном режиме. 3 Quote Share this post Link to post Short link Share on other sites
Scanmen 31 #433773 Posted June 16, 2018 (edited) I've expanded the number of macros to make it possible to compare more parameters based on their color. Which is much faster in the course of battle than to compare numerical values. Aiming to enemy, i see the numeric value of his parameters. Green numbers indicate that my values are better, the red indicates that the enemy has better parameters. Have a nice day :) Я увеличил количество макросов, чтобы можно было сравнивать больше параметров в зависимости от их цвета. Что гораздо быстрее в ходе битвы, чем сравнивать числовые значения. Стремясь к врагу, я вижу числовое значение его параметров. Зеленые цифры показывают, что мои значения лучше, красные - что у противника лучшие параметры. Хорошего дня :) code that you need to add to info_panel_data.py код, который нужно добавить в info_panel_data.py ##################################################################### def pl_shell_power_1(): global _gunShots _gunShots = _typeDescriptor.gun.shots return shell_power_1() def pl_shell_power_2(): global _gunShots _gunShots = _typeDescriptor.gun.shots return shell_power_2() def pl_shell_power_3(): global _gunShots _gunShots = _typeDescriptor.gun.shots return shell_power_3() def pl_shell_damage_1(): global _gunShots _gunShots = _typeDescriptor.gun.shots return shell_damage_1() def pl_shell_damage_2(): global _gunShots _gunShots = _typeDescriptor.gun.shots return shell_damage_2() def pl_shell_damage_3(): global _gunShots _gunShots = _typeDescriptor.gun.shots return shell_damage_3() code that you need to add to MACROS section on infoPanel.py код, который нужно добавить в раздел MACROS на infoPanel.py ##################################################################### '{{pl_shell_power_1}}', '{{pl_shell_power_2}}', '{{pl_shell_power_3}}', '{{pl_shell_damage_1}}', '{{pl_shell_damage_2}}', '{{pl_shell_damage_3}}' example for formats section on infoPanel.xc (I use Aster code also. Good job, and thanks Aster. :) ) пример для раздела форматов на infoPanel.xc (я также использую код Aster. Отличная работа, и спасибо Aster. :) ) "formats": [ "<br/><textformat><b><font size='20'>{{vehicle_name}}</font></b></textformat> <br/><textformat tabstops='[95]'>Reload-time:<tab>{{py:isTarget=trg?<font size='16' color='{{py:compareColor({{pl_gun_reload_equip}}, {{gun_reload_equip}})}}'>{{gun_reload_equip}}</font>|{{pl_gun_reload_equip}}}}</textformat> <br/><textformat tabstops='[95,140]'>Ammo-type:<tab>{{shell_type_1}}<tab>{{shell_type_2}}</textformat> <br/><textformat tabstops='[95,140]'>Penetration:<tab>{{py:isTarget=trg?<font size='16' color='{{py:compareColor({{shell_power_1}}, {{pl_shell_power_1}})}}'>{{shell_power_1}}</font>|{{pl_shell_power_1}}}}<tab>{{py:isTarget=trg?<font size='16' color='{{py:compareColor({{shell_power_2}}, {{pl_shell_power_2}})}}'>{{shell_power_2}}</font>|{{pl_shell_power_2}}}}</textformat> <br/><textformat tabstops='[73,95,140]'>Damage:<tab>{{py:cClip({{gun_clip}})}}<tab>{{py:isTarget=trg?<font size='16' color='{{py:compareColor({{shell_damage_1}}, {{pl_shell_damage_1}})}}'>{{shell_damage_1}}</font>|{{pl_shell_damage_1}}}}<tab>{{py:isTarget=trg?<font size='16' color='{{py:compareColor({{shell_damage_2}}, {{pl_shell_damage_2}})}}'>{{shell_damage_2}}</font>|{{pl_shell_damage_2}}}}</textformat> <br/><textformat tabstops='[95,140]'>Weight:<tab>{{py:isTarget=trg?<font size='16' color='{{py:compareColor({{vehicle_weight}}, {{pl_vehicle_weight}})}}'>{{vehicle_weight}}</font>|{{pl_vehicle_weight}}}}</textformat>" ] Edited February 10, 2019 by Scanmen 2 Quote Share this post Link to post Short link Share on other sites
aster 53 #433840 Posted June 16, 2018 А у т49 так у всех едет оформление? Quote Share this post Link to post Short link Share on other sites
Kotyarko_O 1,906 #433890 Posted June 17, 2018 12 hours ago, aster said: А у т49 так у всех едет оформление? Так "поедет" оформление, если комбинация названий типов снарядов будет заходить на следующую заданную табуляцию. Есть два выхода: Использовать моноширинный шрифт, в котором любая комбинация из трёх типов снарядов будет иметь одинаковую длину. Увеличивать пороги табуляций. Quote Share this post Link to post Short link Share on other sites
aster 53 #433892 Posted June 17, 2018 Ага, вижу, Ф широковата. Спасибо. Quote Share this post Link to post Short link Share on other sites
Molnio 5 #434914 Posted June 25, 2018 как настроить панель если нету файла "infopanel.xvm"? Quote Share this post Link to post Short link Share on other sites
Pensioner 55 #434915 Posted June 25, 2018 (edited) В конфиге должен быть файл infoPanel.xc, если инфопанель от XVM у вас установлена. Edited June 25, 2018 by Pensioner Quote Share this post Link to post Short link Share on other sites
Molnio 5 #434996 Posted June 26, 2018 19 часов назад, Pensioner сказал: В конфиге должен быть файл infoPanel.xc, если инфопанель от XVM у вас установлена. Нету такого файла в моем ХВМ и где искать эту панель? Quote Share this post Link to post Short link Share on other sites
Kotyarko_O 1,906 #434997 Posted June 26, 2018 10 minutes ago, Molnio said: Нету такого файла в моем ХВМ и где искать эту панель? Значит у вас не установлен этот аддон. Перейдите к шапке темы и ознакомьтесь, инструкция по установке там же. Quote Share this post Link to post Short link Share on other sites
Molnio 5 #435037 Posted June 27, 2018 16 часов назад, Kotyarko_O сказал: Значит у вас не установлен этот аддон. Перейдите к шапке темы и ознакомьтесь, инструкция по установке там же. у меня модпак протанки и там есть этот мод или аддон там три варианта (обзор и КД) (Вся инфа) (Вся инфа цветная). Скажите пожалуйста, если я установлю ваш аддон он не наложится поверх того что уже стоит в модпаке. Или нужно переставлять мод пак без инфо панели? Все разобрался. В варианте инфо панели от ПроТанки файл настроек лежит тут Quote Share this post Link to post Short link Share on other sites
Kotyarko_O 1,906 #435038 Posted June 27, 2018 15 minutes ago, Molnio said: у меня модпак протанки и там есть этот мод или аддон там три варианта (обзор и КД) (Вся инфа) (Вся инфа цветная). Я не имею понятия, под каким видом там выполнена инфо-панель. Но исходя из скрина вашего конфига, прикреплённого выше, там отдельная модификация. 18 minutes ago, Molnio said: Скажите пожалуйста, если я установлю ваш аддон он не наложится поверх того что уже стоит в модпаке. Или нужно переставлять мод пак без инфо панели? Скорее всего, наложится в виде отдельной модификации со схожим функционалом. Если вы хотите использовать этот аддон, то да, вам понадобится переустановка без той инфо-панели. Quote Share this post Link to post Short link Share on other sites
aster 53 #435156 Posted June 28, 2018 Собственно говоря, разница между ними -- только то, что эту можно хитрее настроить. Условный "базовый" функционал ("из коробки") практически не отличается. Quote Share this post Link to post Short link Share on other sites