Jump to content
Korean Random

XVM 6.4.3 проблема с оставшимся хп


cluster

Recommended Posts

Доброе время танкисты.

Такая проблема после обновы, в моем конфиге, при нажатии альт появляется оставшееся хп. Так вот цифры в нем сдвинулись. Как вернуть по центру???

Скрин и файл приложил. Всем заранее спасибо!

playersPanel.xc

post-37345-0-42697400-1473953788_thumb.jpg

Link to comment
Short link
Share on other sites

В файле у меня вот так:

// Оставшееся ХП
    "hp": {
      "bindToIcon": true, "x": "{{ally?120|140}}", "y": 8, "alpha": "{{alive?100|0}}", "width": 70,
      "textFormat": { "font": "mono", "align": "center", "size": 11, "color": "{{c:hp-ratio}}", "bold": true },
      "shadow": { "enabled": true, "blur": 4, "strength": 1 },
      "format": " {{hp%4d|----}} "

 

и проблема есть!


Сделал так, вроде работает... это правильно?

// Оставшееся ХП
    "hp": {
      "bindToIcon": true, "x": "{{ally?85|85}}", "y": 8, "alpha": "{{alive?100|0}}", "width": 70,
      "textFormat": { "font": "mono", "align": "center", "size": 11, "color": "{{c:hp-ratio}}", "bold": true },
      "shadow": { "enabled": true, "blur": 4, "strength": 1 },
      "format": " {{hp%4d|----}} "
    },
    // Динамическая полоса здоровья
    "hpBar": {
      "bindToIcon":true,
      "x": "{{ally?85|85}}", "y": 11, "alpha": "{{alive?45|0}}", "bgColor": "{{c:system}}",
      "height": 12, "width": "{{hp-ratio:70}}"
    },
    // Фон полосы здоровья
    "hpBg": {
      "bindToIcon":true,
      "x": "{{ally?84|84}}", "alpha": "{{alive?35|0}}", "bgColor": "0x000000",
      "y": 10, "height": 14, "width": 72

Link to comment
Short link
Share on other sites

cluster, макрос вида {{ally?85|85}} не имеет смысла, поскольку отдает одно и то же значение и для союзников и для противника. Замени на просто числа, по типу "x": 85,

СПАСИБО за ответ, не могли бы Вы примерчик сделать ???- я, к сожалению, не бетман в этом...

Edited by cluster
Link to comment
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...