Jump to content
Korean Random
Sign in to follow this  
Wilem82

Макросы цвета на миникарте

Recommended Posts

Это возможно? Например, отображать vehicle-class + vehicle цветом c:eff.

 

У меня не получилось. Подозреваю, там могут быть трудности с тем, что в css надо указывать #aabbcc, а макрос возвращает то ли строку 0xaabbcc, то ли вообще число.

Share this post


Link to post

Short link
Share on other sites

@Wilem82, в css вы указываете то, что как отображать, а в format - как отображать из css

Ну и будет у вас на миникарте не 15 зелёных и 15 красных, а 25 красных ... и что тогда будет ?

Edited by Metallist95

Share this post


Link to post

Short link
Share on other sites

Ни в format-е, ни в css-е, макрос не даёт желаемого результата.

 

"format": { "ally": "<span style='color: {{c:eff}}'>{{vehicle-class}}</span>" }

 

или

 

"css": { "ally": ".mm_a { color: {{c:eff}}; }" }

 

И то и другое - выражение css.

 

25 красных не будет, цвета можно настроить как угодно, это вообще не проблема.

Share this post


Link to post

Short link
Share on other sites

"format": { "ally": "<span style='color: {{c:eff}}'>{{vehicle-class}}</span>" }

Всё работает, если правильно прописать:

// Формат поля.
        "format": {
          // Союзник.
          "ally":           "<span class='mm_a'><font color='{{c:wn8}}' alpha=''>{{vehicle}}</font></span>",

post-12526-0-86077300-1405770984_thumb.png

Edited by leecher88
  • Upvote 2

Share this post


Link to post

Short link
Share on other sites

Попробуйте у demon2597 поклацать конфиг миникарты - у него данная фича реализована

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.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...