Jump to content
Korean Random
Sign in to follow this  
DemouN

Цвета в hitLog и battleLabelsTemplates

Recommended Posts

Подскажите, как сделать цвет общего нанесенного урона в hitLog таким же, как и в battleLabelsTemplates (в эффективности)?

В hitLog такая строчка:

"formatHeader":  "Пробитие #{{hitlog.n}}: <font color='{{c:dmg-kind}}'><b>{{dmg}}</b> {{hitlog.dead}}</font>  {{l10n:Total}}: <b><font color='#FF0000'>{{hitlog.dmg-total}}</font></b>",

В battleLabelsTemplates:

"totalEfficiency": {
      "enabled": true,
      "updateEvent": "PY(ON_TOTAL_EFFICIENCY), ON_PANEL_MODE_CHANGED",
      "x": 231,
      "y": -30,
      "width": 50,
      "height": 200,
      "screenVAlign": "bottom",
      "shadow": { "distance": 1, "angle": 90, "alpha": 80, "blur": 5, "strength": 3 },
      "textFormat": { "color": "0xE3E3E3", "size": 14 },
      "format": "<textformat leading='2'><img src='xvm://res/icons/Efficiency/damage.png' vspace='-2'> <font color='{{py:xvm.totalDamage>0?{{py:xvm.totalDamageColor}}}}'>{{py:xvm.totalDamage}}</font>\n<img src='xvm://res/icons/Efficiency/assist.png' vspace='-2'> {{py:xvm.totalAssist}}\n<img src='xvm://res/icons/Efficiency/reflect.png' vspace='-2'> {{py:xvm.totalBlocked}}\n<img src='xvm://res/icons/Efficiency/discover.png' vspace='-2'> {{py:xvm.detection}}\n<img src='xvm://res/icons/Efficiency/stun.png' vspace='-2'> {{py:xvm.totalStun}}</textformat>"
    },

При замене <font color='#FF0000'> на <font color='{{py:xvm.totalDamage>0?{{py:xvm.totalDamageColor}}}}'> смена цвета в хитлоге как бы запаздывает. При первом выстреле в эффективности цвет красный, в хитлоге - белый, когда в эффективности становится оранжевый, в хитлоге еще красный. Как исправить?

Share this post


Link to post

Short link
Share on other sites

У меня при такой конструкции через раз показывал первый урон почему то.По этому себе сделал так:<b><font color='{{hitlog.dmg-total-color}}'>{{hitlog.dmg-total}}</font></b>

  • Upvote 1

Share this post


Link to post

Short link
Share on other sites

Другой вопрос. Если я наношу урон по танку за пределами круга отрисовки, то в эффективности он учитывается, а в хитлоге - нет. Это баг или фича?

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