Jump to content
Korean Random
Sign in to follow this  
Wilem82

Не отображаются круги из minimap/circles/special

Recommended Posts

https://gist.github.com/wilem82/fb16d350f40978d3ccdb26ac563f1dce

 

Пробовал два разных танка - не работает, т.е. на миникарте этих кругов нет.  Если их вставить в круги "view", то рисуются, а через "special" - нет. Названия танков взял из ангара {{v.sysname}}, что прямо соответствует комментарию про имена из vehinfo_short.py.

 

Эта фича поломалась, или я что-то не так делаю?

xvm 7.7.9, в xvm.log ошибок нет.

Edited by Wilem82

Share this post


Link to post

Short link
Share on other sites

@Wilem82 Похоже в комментариях закралась неточность:

    // Специальные круги, зависящие от модели техники.
    // Несколько строк для одной техники делают несколько кругов.
    // Названия танков для дополнения брать по ссылке (символ : заменяется -):
    // http://code.google.com/p/wot-xvm/source/browse/trunk/src/xpm/xvmstat/vehinfo_short.py

не нужно двоеточие заменять на дефис

{ "usa:A99_T92_LT": { "enabled": true, "thickness": 0.1, "alpha": 85, "color": "0x000000", "distance": 275 } },

 P.S. И ссылку надо поменять. 

P.P.S. Хотя лучше сделать, чтобы здесь вместо двоеточия был дефис.

P.P.P.S. Запулил исправление.

Edited by ktulho

Share this post


Link to post

Short link
Share on other sites

> не нужно двоеточие заменять на дефис

> P.S. И ссылку надо поменять. 

> P.P.S. Хотя лучше сделать, чтобы здесь вместо двоеточия был дефис.

> P.P.P.S. Запулил исправление. 

 

:D спасибо!

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...