bes1 115 #472379 Posted December 12, 2019 (edited) 1 час назад, Heliomalt сказал: I'm trying to show an icon, following the same principle as the Friend Icon, but nothing is displayed. "anon": { "enabled": true, "x": 128, "y": 5, "width": 12, "height": 18, "align": "center", "alpha": 100, "bindToIcon": true, "src": "xvm://res/icons/other/{{name?anon}}.png" And maybe someone knows the location of the vanilla crossed-out eye? Tested with replay, not live. playersPanel.xc О сейчас затестим ++++ Сделал такую иконку для этой категории Edited December 12, 2019 by bes1 Quote Share this post Link to post Short link Share on other sites
Heliomalt 53 #472395 Posted December 12, 2019 (edited) Found a solution: // Anonym Icon. "anon": { "enabled": true, "x": 128, "y": 5, "width": 25, "height": 16, "align": "center", "alpha": 100, "bindToIcon": true, "format": "{{r?| <img src='img://gui/maps/icons/library/icon_eye.png'>}}" }, add in extraFieldsLeft and extraFieldsRight: ${"def.anon"}, Edited December 13, 2019 by Heliomalt Code corrected 2 Quote Share this post Link to post Short link Share on other sites
aster 53 #472435 Posted December 13, 2019 14 часов назад, Heliomalt сказал: And maybe someone knows the location of the vanilla crossed-out eye? 1 Quote Share this post Link to post Short link Share on other sites
Prosubaru 354 #472453 Posted December 13, 2019 приятно удивило))так держать!спасибо за труды вариантов много смотрю,да и так видно новичок или аноним сегодня даже один крендель в бою спросил про статку свою которая скрыта)дурака влепил и проверял себя всем удачи Quote Share this post Link to post Short link Share on other sites
nehalemex 24 #472494 Posted December 13, 2019 12.12.2019 в 00:29, Sergei Nik сказал: Здравствуйте@night_dragon_on ,а скажите можно ли анонимов выделить не цветом,а картинкой. так сломалось же это после обновы. а может протунки выключил где? как проверить? Quote Share this post Link to post Short link Share on other sites
bes1 115 #472506 Posted December 13, 2019 21 час назад, Heliomalt сказал: Found a solution: // Anonym Icon. "anon": { "enabled": true, "x": 128, "y": 5, "width": 25, "height": 16, "align": "center", "alpha": 100, "bindToIcon": true, "format": "{{r?| <img src='img://gui/maps/icons/library/icon_eye.png'>}}" }, add in extraFieldsLeft and extraFieldsRight: ${"def.anon"}, вот так работает всё класс Quote Share this post Link to post Short link Share on other sites
P.S.Enot 416 #472536 Posted December 13, 2019 (edited) 12.12.2019 в 10:47, night_dragon_on сказал: "{{r?{{c:system}}|{{.colors.anonymousColor}}}}" Подскажите а как щас например сделать альфу если рейтинг то рейтинг если аноним то пусто то есть полностью прозрачность я хочу сделать что бы в маркерах если ананим то символы скрывались без какого либо цвета . Как это все мне организовать. за ранее спасибо. Может сюда надо что то прописать alpha.xc или макрос какой нужен Edited December 13, 2019 by P.S.Enot Quote Share this post Link to post Short link Share on other sites
Heliomalt 53 #472690 Posted December 15, 2019 After some testing, I have to say that the code doesn't work 100%. If you have activated the playerstats at battle, then the icon for the anonymous players will be displayed. If you are anonymous yourself or have deactivated the playerstats at battle, then the icon is displayed for every player, even for themselves. What is missing is the detection of whether someone is really anonymous and then they are really only displayed, regardless of whether you have activated the playerstats at battle or not. If you are anonymous yourself, no icon should be displayed. Here is another way, but the same problem as described above. // Anonym Icon. "anon": { "enabled": true, "x": 128, "y": 5, "width": 25, "height": 16, "align": "center", "alpha": "{{r?0|100}}", "bindToIcon": true, "src": "img://gui/maps/icons/library/icon_eye.png" }, Is there a solution, or is it not possible to display the icon correctly if you are anonymous or have deactivated the statistics in battle? Quote Share this post Link to post Short link Share on other sites
Budyx69 32 #472721 Posted December 15, 2019 (edited) script removed. it is not forbidden, but not popular... Edited December 27, 2019 by Budyx69 2 Quote Share this post Link to post Short link Share on other sites
bes1 115 #472725 Posted December 15, 2019 (edited) Как нужно прописать чтоб в маркерах ,если неизвестен рейтинг тоесть анонимист ,отображалась иконка анонима у меня сейчас так <img src='xvm://res/Icons_bes_1/mark/{{c:wn8}}.png' width='10' height='11'> А в ушах у анонимов картинку прописал так "{{r?| <img src='xvm://res/Icons_bes_1/icons/library/Anom.png'>}}" ps/F ф Хотя я тут по сути сам и ответил себе сделал так "format": "<img src='xvm://res/Icons_bes_1/mark/{{c:wn8}}.png' width='10' height='11'>{{r?| <img src='xvm://res/Icons_bes_1/Icons/anon.png'>}}{{vehicle}}" Edited December 16, 2019 by bes1 Quote Share this post Link to post Short link Share on other sites
ktulho 5,790 #472760 Posted December 15, 2019 @Budyx69 я бы заменил строчку: @xvm.export('IsAnonym', deterministic=False) на: @xvm.export('IsAnonym') 1 Quote Share this post Link to post Short link Share on other sites
Menrad 8 #472784 Posted December 16, 2019 Ребята, ну выложите готовый, устал мучатся, видимо тямы не хватает все знаки правильно поставить. Quote Share this post Link to post Short link Share on other sites
bes1 115 #472913 Posted December 16, 2019 (edited) В укрепах всех анонимами отображает ,а нет оказывается если не активировать хвм ,ТО у всех иконка анонимов загорается Edited December 16, 2019 by bes1 Quote Share this post Link to post Short link Share on other sites
Heliomalt 53 #473173 Posted December 17, 2019 With Budyx69 script it works as it should, except that anonymous players see who else is anonymous. Quote Share this post Link to post Short link Share on other sites
Goodrik 2 #474126 Posted December 27, 2019 (edited) 10.12.2019 в 20:03, night_dragon_on сказал: <font color='{{c:xr|#FFB964}}'>{{r}}</font> Где цвет: #FFB964 будет присвоен тем игрокам, для которых недоступно отображение, в данном случае рейтинга выбранного в ЛК. Оппа, а что, хороший вариант для выделения педиков анонимов от других игроков. Спасибо Осталось только придумать им самый-самый "грязный" цвет xD Коричневый Edited December 27, 2019 by Goodrik Quote Share this post Link to post Short link Share on other sites
ЧАЙНИК 163 #479305 Posted March 15, 2020 12.12.2019 в 18:55, bes1 сказал: Сделал такую иконку для этой категории Приветствую! А пару скриншотиков можно, что бы иметь представление, как это выглядит в игре? Quote Share this post Link to post Short link Share on other sites
Scharfhobel 216 #479323 Posted March 15, 2020 Добавил для анонимов в конфиг цвет. У меня рейтинг звездочки выводятся через markersAliveNormal.xc Цитата "format": "{{xvm-stat?<img src='xvm://res/icons/skill/{{c:xr}}.png' width='25' height='25'>}}" Создал картинку с именем #1240AB.png и положил рядом с другими. Но её не показывает. А в ушах и ост. местах красит темно синим цветов анонимов. Quote Share this post Link to post Short link Share on other sites
ЧАЙНИК 163 #479667 Posted March 21, 2020 Друзья, скиньте, пож-та, полный расклад - куда, чего и скока, а то штатное отображение не есть комильфо. Quote Share this post Link to post Short link Share on other sites
Slava7572 1,685 #479669 Posted March 21, 2020 3 часа назад, ЧАЙНИК сказал: Друзья, скиньте, пож-та, полный расклад - куда, чего и скока, а то штатное отображение не есть комильфо. держи(вполне возможно,что есть новее,но работает),событие py:IsAnonym,реализовать можно по разному,у меня например так // Иконка анонимного игрока. "isAnonym": { "enabled": true, "x": "{{ally?12|68}}", "y": 3, "width": 16, "height": 13, "align": "center", "alpha": "{{py:IsAnonym('{{name}}')}}", "bindToIcon": true, "src": "img://gui/maps/icons/library/icon_eye.png" }, и ${"def.isAnonym"}, в вариантах Показывает всех,и вражин,и союзников. IsAnonym.py 1 Quote Share this post Link to post Short link Share on other sites
ЧАЙНИК 163 #479679 Posted March 22, 2020 11 часов назад, Slava7572 сказал: держи(вполне возможно,что есть новее,но работает),событие py:IsAnonym,реализовать можно по разному,у меня например так // Иконка анонимного игрока. "isAnonym": { "enabled": true, "x": "{{ally?12|68}}", "y": 3, "width": 16, "height": 13, "align": "center", "alpha": "{{py:IsAnonym('{{name}}')}}", "bindToIcon": true, "src": "img://gui/maps/icons/library/icon_eye.png" }, и ${"def.isAnonym"}, в вариантах Показывает всех,и вражин,и союзников. IsAnonym.py 1 kB · 1 скачивание Большое спасибо, Слава! Только уточни, пож-та, бестолковому, в какие файлы что прописать. С уважением. Quote Share this post Link to post Short link Share on other sites