aster 53 #463222 Posted July 2, 2019 Хорошая идея. Quote Share this post Link to post Short link Share on other sites
P.S.Enot 416 #463374 Posted July 5, 2019 (edited) Подскажите . собрал все в одну строку решил все сделать по центру. Но есть проблема когда начинает калькулятор считать и появляются цифры то текст ползет друг от друга в право и влево. как мне сделать что бы все стояло ровно по центру и не расползалось не куда. хотя вроде и промежутки есть. вот что мне тут поправить вот еще сам файл может кто подправит totalEfficiency.xc //------------------------------------Калькулятор эффективности { "def": { "battleEfficiency": { "enabled": true, "updateEvent": "PY(ON_TOTAL_EFFICIENCY)", "x": 0, "y": 33, "width": 1100, "height": 40, "screenHAlign": "center", "screenVAlign": "top", "shadow": { "distance": 0, "color": "#0F0F0F", "angle": 45, "alpha": 80, "blur": 4, "strength": 0.8 }, "textFormat": {"align": "center", "font": "Guch", "size": 12, "color": "#FFFFD4", "bold": true, "italic": false }, "format": "{{py:xvm.total_hp.avgDamage('AVG: ', {{py:xvm.totalDamage}})}}</font> <tab><tab> WN8: <font color='{{py:efficiency.wn8Color}}'>{{py:efficiency.wn8}}</font></tab></tab> <tab><tab> EFF: <font color='{{py:efficiency.effColor}}'>{{py:efficiency.eff}}</font></tab></tab> <tab><tab> DIFF: <font color='{{py:efficiency.diffExpDmgColor}}'>{{py:efficiency.diffExpDmg}}</tab></tab></font>" }}} Edited July 5, 2019 by P.S.Enot Quote Share this post Link to post Short link Share on other sites
ktulho 5,790 #463375 Posted July 5, 2019 Использовать tabstops. Quote Share this post Link to post Short link Share on other sites
ktulho 5,790 #468503 Posted October 8, 2019 (edited) Добавлен макрос: {{py:xvm.assistStun}} - урон нанесенный технике, оглушенной игроком; Дублирующий макрос. Edited October 9, 2019 by ktulho 1 Quote Share this post Link to post Short link Share on other sites
aster 53 #468508 Posted October 8, 2019 09.10.2016 в 15:48, ktulho сказал: {{py:xvm.assistStun}} - урон нанесенный технике, оглушенной игроком; 09.10.2016 в 15:48, ktulho сказал: {{py:xvm.totalStun}} - общий урон, нанесенный по оглушенной вами технике, Quote Share this post Link to post Short link Share on other sites
ktulho 5,790 #468511 Posted October 9, 2019 М-да уж. Они одно и тоже возвращают? Quote Share this post Link to post Short link Share on other sites
aster 53 #468524 Posted October 9, 2019 3 часа назад, ktulho сказал: М-да уж. Они одно и тоже возвращают? Не уверен. У меня она пока что ничего не делает (ждёт обновления?) 2019-10-09 10:43:34: [ERROR] Traceback (most recent call last): File "../res_mods/mods/xfw_packages/xvm_main\python\python_macro.py", line 161, in process_python_macro (func, deterministic) = get_function(arg) File "../res_mods/mods/xfw_packages/xvm_main\python\python_macro.py", line 152, in get_function (func, deterministic) = _container.get(func_name) TypeError: 'NoneType' object is not iterable arg='xvm.assistStun' Quote Share this post Link to post Short link Share on other sites
ktulho 5,790 #468532 Posted October 9, 2019 Что-то я запутался. Здесь пишет, что добавлен, а на самом деле не добавлен. Ну тогда не буду добавлять. Quote Share this post Link to post Short link Share on other sites
night_dragon_on 5,601 #468533 Posted October 9, 2019 2 минуты назад, ktulho сказал: Ну тогда не буду добавлять Сейчас залью изменения. 9 минут назад, ktulho сказал: пишет, что добавлен Неверная запись, пулл ты же отменил. Нужно чтобы @sirmax и @Mixaill посмотрели этот момент. Quote Share this post Link to post Short link Share on other sites
aster 53 #468536 Posted October 9, 2019 Вообще, старая версия работает, как 0 по гусле, 0 по свету, 1248 оглушение Quote Share this post Link to post Short link Share on other sites
ktulho 5,790 #468543 Posted October 9, 2019 1 час назад, night_dragon_on сказал: Сейчас залью изменения. Не надо. 1 час назад, night_dragon_on сказал: Неверная запись, пулл ты же отменил. Ага. Quote Share this post Link to post Short link Share on other sites
night_dragon_on 5,601 #468546 Posted October 9, 2019 @ktulho , ок. 5 минут назад, ktulho сказал: Ага. Больше не будет таких сборок. Quote Share this post Link to post Short link Share on other sites
sirmax 5,499 #468549 Posted October 9, 2019 Поправил LF, можно пробовать мержить. Quote Share this post Link to post Short link Share on other sites
Sergei Nik 78 #472516 Posted December 13, 2019 Здравствуйте@ktulho .Скажите можно ли добавить динамический цвет к этому макросу {{py:xvm.totalAssistAndStuns}}. Quote Share this post Link to post Short link Share on other sites
ktulho 5,790 #472517 Posted December 13, 2019 @Sergei Nik используйте макрос: {{py:xvm.color_rating(r, v)}} - возвращает цвет из файла color.xc, r - название секции из файла color.xc, v - значение. Пример: {{py:xvm.color_rating('x', {{xwn8}})}} Quote Share this post Link to post Short link Share on other sites
Sergei Nik 78 #472519 Posted December 13, 2019 @ktulho ,а не могли бы Вы написать как надо с этим макросом {{py:xvm.totalAssistAndStuns}}.А то у меня,что то не выходит.Заранее спасибо. Quote Share this post Link to post Short link Share on other sites
ktulho 5,790 #472520 Posted December 13, 2019 Добавляете в файл colors.xc секцию, например: "totalAssistAndStuns": [ { "value": 499, "color": ${"def.colorRating.very_bad" } }, { "value": 999, "color": ${"def.colorRating.bad" } }, { "value": 1499, "color": ${"def.colorRating.normal" } }, { "value": 1999, "color": ${"def.colorRating.good" } }, { "value": 2499, "color": ${"def.colorRating.very_good"} }, { "value": 99999, "color": ${"def.colorRating.unique" } } ], и используете в макросе: {{py:xvm.color_rating('totalAssistAndStuns', {{py:xvm.totalAssistAndStuns}})}} 1 Quote Share this post Link to post Short link Share on other sites
Sergei Nik 78 #472555 Posted December 14, 2019 Спасибо@ktulho ,но так и не получилось с делать. Quote Share this post Link to post Short link Share on other sites
ktulho 5,790 #472560 Posted December 14, 2019 @Sergei Nik Ошибок в логах нет? Вроде нормально работает. Сделал на основе default конфига: battleLabelsTemplates.xc battleLabels.xc colors.xc 1 Quote Share this post Link to post Short link Share on other sites
Sergei Nik 78 #472569 Posted December 14, 2019 И ещё раз Вам @ktulho спасибо!Теперь работает как надо.Я решётку (#) забыл в ставить. Quote Share this post Link to post Short link Share on other sites