Jump to content
Korean Random

Совместить ХП в ушах и хитлог.


Recommended Posts

В ночной сборке добавили возможность смотреть ХП каждого игрока.

 

playerspanel.xc

    // HP bar background.
    // Подложка индикатора HP.
    "hpBarBg": { "hotKeyCode": 56, "onHold": "true", "visibleOnHotKey": true, "x": 76, "y": 6, "width": 72, "bindToIcon": true, "height": 14, "bgColor": "0x000000", "alpha": "{{alive?35|0}}" },
    // HP bar.
    // Индикатор HP.
    "hpBar": { "hotKeyCode": 56, "onHold": "true", "visibleOnHotKey": true, "x": 77, "y": 7, "bindToIcon": true, "width": "{{hp-ratio:70}}", "height": 12, "bgColor": "{{player?#FFDD33|{{c:system}}}}", "alpha": "{{alive?50|0}}" },
    // Remaining HP.
    // Оставшиеся HP.
    "hp": { "hotKeyCode": 56, "onHold": "true", "visibleOnHotKey": true, "x": 112, "y": 4, "bindToIcon": true, "align": "center", "alpha": "{{alive?100|0}}",
      "format": "<font face='$FieldFont' size='11' color='#D9D9D9' alpha='{{alive?{{ready?#FF|#80}}|#80}}'><b>{{alive?{{hp|{{l10n: }}}}|{{l10n:Destroyed}}}}</b></font>",
      "shadow": { "enabled": true, "color": "0x000000", "alpha": 100, "blur": 4, "strength": 1, "distance": 0, "angle": 0 }

и далее по разделам ушей применение макро.

 

При включенном хитлоге в расширенной его редакции (с подробностями) он закрывается этой панелькой (по нажатию на alt появляется ХП) .

 

Bezymyannyj.1471111857.png

 

battleLabelsTemplates.xc

    "hitlog": {
      "enabled": true,
      "updateEvent": "ON_DAMAGE_CAUSED",
      "x": 350,
      "y": 40,
      "width": 500,
      "height": 1000,
      "textFormat": { "color": "0xF4EFE8", "size": 15 },
      "format": "{{hitlog-header}}\n{{hitlog-body}}"
      // Format of the full hitlog (header and body)
      // Формат полного хит-лога (шапка и тело)
      // "format": "{{hitlog-header}}\n{{hitlog-body}}"
    },

как грамотно вписать скрывание хитлога при нажатии на alt?

Edited by Nekonome
Link to comment
Short link
Share on other sites

Спасибо, разобрался, сделал наоборот и получилось.

 

Теперь постоянно показывает заголовок хитлога.

Без альта хитлог, по альту хитлог прячется, показывает ХП всех игроков.

battleLabelsTemplates.xc

battleLabels.xc

playersPanel.xc

Link to comment
Short link
Share on other sites

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

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