Jump to content
Korean Random
Slavarus

Как выделить анонимов другим цветом

Recommended Posts

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

О сейчас затестим ++++

Сделал такую иконку для этой категории  anon.png.b151783c46ae94fe6efcafc8d3015a0e.png

Edited by bes1

Share this post


Link to post

Short link
Share on other sites

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 by Heliomalt
Code corrected
  • Upvote 2

Share this post


Link to post

Short link
Share on other sites
14 часов назад, Heliomalt сказал:

And maybe someone knows the location of the vanilla crossed-out eye?

5ddf485047115f25cd897159cf8511fa.png
 

  • Upvote 1

Share this post


Link to post

Short link
Share on other sites

32087993_Opera_2019-12-13_105406_vk_com.png.c8f91d10fd2366879fadc47a8d17fb57.png

приятно удивило))так держать!спасибо за труды

вариантов много смотрю,да и так видно новичок или аноним

сегодня даже один крендель в бою спросил про статку свою которая скрыта)дурака влепил и проверял себя:veryhappy:

всем удачи

Share this post


Link to post

Short link
Share on other sites
12.12.2019 в 00:29, Sergei Nik сказал:

Здравствуйте@night_dragon_on ,а скажите можно ли анонимов выделить не цветом,а картинкой.

так сломалось же это после обновы.

а может протунки выключил где?

как проверить?

Share this post


Link to post

Short link
Share on other sites
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"},

 

вот так работает всё класс

Share this post


Link to post

Short link
Share on other sites
12.12.2019 в 10:47, night_dragon_on сказал:

"{{r?{{c:system}}|{{.colors.anonymousColor}}}}"

Подскажите а как щас например сделать альфу если рейтинг то рейтинг если аноним то пусто то есть полностью прозрачность я хочу сделать что бы в маркерах если ананим то символы скрывались без какого либо цвета . Как это все мне организовать. за ранее спасибо. 

Может сюда надо что то прописать alpha.xc или макрос какой нужен 

Edited by P.S.Enot

Share this post


Link to post

Short link
Share on other sites

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?

Share this post


Link to post

Short link
Share on other sites

Как нужно прописать чтоб в маркерах  ,если неизвестен рейтинг тоесть анонимист  ,отображалась иконка анонима

у меня сейчас так <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 by bes1

Share this post


Link to post

Short link
Share on other sites

Ребята, ну выложите готовый, устал мучатся, видимо тямы не хватает все знаки правильно поставить.

Share this post


Link to post

Short link
Share on other sites

В укрепах всех анонимами отображает ,а  нет оказывается если не активировать хвм ,ТО у всех иконка анонимов загорается:veryhappy:

Edited by bes1

Share this post


Link to post

Short link
Share on other sites
10.12.2019 в 20:03, night_dragon_on сказал:

 


<font color='{{c:xr|#FFB964}}'>{{r}}</font>

Где цвет: #FFB964 будет присвоен тем игрокам, для которых недоступно отображение, в данном случае рейтинга выбранного в ЛК.

Оппа, а что, хороший вариант для выделения педиков анонимов от других игроков. Спасибо

Осталось только придумать им самый-самый "грязный" цвет xD

Коричневый :rolleyes:

Edited by Goodrik

Share this post


Link to post

Short link
Share on other sites
12.12.2019 в 18:55, bes1 сказал:

 

Сделал такую иконку для этой категории  anon.png.b151783c46ae94fe6efcafc8d3015a0e.png

 

Приветствую!

А пару скриншотиков можно, что бы иметь представление, как это выглядит в игре?   :Default:

Share this post


Link to post

Short link
Share on other sites

Добавил для анонимов в конфиг цвет.

У меня рейтинг звездочки выводятся через  markersAliveNormal.xc

Цитата

     "format": "{{xvm-stat?<img src='xvm://res/icons/skill/{{c:xr}}.png' width='25' height='25'>}}"

 

Создал картинку с именем #1240AB.png  и положил рядом с другими. Но её не показывает.

А в ушах и ост. местах красит темно синим цветов анонимов.

 

 

 

Share this post


Link to post

Short link
Share on other sites

Друзья, скиньте, пож-та, полный расклад - куда, чего и скока, а то штатное отображение не есть комильфо.   :confused:

Share this post


Link to post

Short link
Share on other sites
3 часа назад, ЧАЙНИК сказал:

Друзья, скиньте, пож-та, полный расклад - куда, чего и скока, а то штатное отображение не есть комильфо.   :confused:

держи(вполне возможно,что есть новее,но работает),событие 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

  • Upvote 1

Share this post


Link to post

Short link
Share on other sites
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 скачивание

 

Большое спасибо, Слава!

Только уточни, пож-та, бестолковому, в какие файлы что прописать.

 

С уважением.   :honoring:

Share this post


Link to post

Short link
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...