Jump to content
Korean Random
Sign in to follow this  
qbAyCT

Помогите сместить HP игроков

Recommended Posts

Не могу въехать... Какой параметр нужно изменить в файле playersPanelHP.xc,  что бы полоска оставшегося HP у врагов и союзников не налезала на лампочку?

14410386.jpg

насколько я понимаю это параметры описывающие данное место находятсяно что именно менять, я не понял:

// Набор форматов для левой панели (поддерживается расширенный формат, см. выше)

      "extraFieldsLeft": [
    //Фон полоски ХП
    { "x": "{{py:math.sum({{pp.widthLeft}},30)}}", "y": 10, "h": 10, "w": "{{hp-max:75}}", "src": "xvm://res/img/hp-bg.png","alpha": "{{alive?30|0}}"},
    //Полоска ХП
    { "x": "{{py:math.sum({{pp.widthLeft}},30)}}", "y": 10, "h": 10, "w": "{{hp:75}}", "src": "xvm://res/img/hp-{{squad?squad|ally}}-{{alive}}.png","alpha": "{{alive?70|0}}"},
    //Число ХП
    { "x": "{{py:math.sum({{pp.widthLeft}},30)}}", "y": 5, "align": "left", "format": "<font size='12' color='{{c:hp-ratio}}'>{{hp|?}}</font>", "alpha": "{{alive?100|0}}", "shadow": {"alpha": "{{alive?100|0}}", "size": 6, "distance": 0, "strength": 1, "color": "0x000000"} },
    ${"../playersPanel.xc":"def.clanIcon"},
    ${"../playersPanel.xc":"def.xvmUserMarker"},
    ${"../xmqp/xmqpServiceMarker.xc":"xmqpServiceMarker"}
      ],
      // Set of formats for right panel (extended format supported, see above)
      // Набор форматов для правой панели (поддерживается расширенный формат, см. выше)
      "extraFieldsRight": [
    //Фон полоски ХП
    { "x": "{{py:math.sum({{pp.widthRight}},30)}}", "y": 10, "h": 10, "w": "{{hp-max:75}}", "src": "xvm://res/img/hp-bg.png","alpha": "{{alive?30|0}}"},
    //Полоска ХП
    { "x": "{{py:math.sum({{pp.widthRight}},30)}}", "y": 10, "h": 10, "w": "{{hp:75}}", "src": "xvm://res/img/hp-enemy-{{alive}}.png", "alpha": "{{alive?70|0}}"},
    //Число ХП
    { "x": "{{py:math.sum({{pp.widthRight}},30)}}", "y": 5, "align": "right", "format": "<font size='12' color='{{c:hp-ratio}}'>{{hp| }}</font>", "alpha": "{{alive?100|0}}", "shadow": {"alpha": "{{alive?100|0}}", "size": 6, "distance": 0, "strength": 1, "color": "0x000000"} },
    ${"../playersPanel.xc":"def.clanIcon"},
    ${"../playersPanel.xc":"def.xvmUserMarker"},
    // enemy spotted status marker (see above).
    // маркер статуса засвета противника (см. выше).
    ${"../Spotted/enemySpottedMarker.xc":"enemySpottedMarker"}
      ]
    }

}

 

Заранее спасибо.

Edited by qbAyCT

Share this post


Link to post

Short link
Share on other sites

координаты "x" и "y"

Как-то не очень грамотно реализована данная функция, т.к приходится менять парfметр "x" для всех ушей. Например, когда возникла такая необходимость с лампочкой засвета врагов, то изменил дишь в одном месте (в файле enemySpottedMarker.xc)

14404264.jpg

и лампочка корректно стала отображаться для сразу всех ушей.

Edited by qbAyCT

Share this post


Link to post

Short link
Share on other sites
Как-то не очень грамотно реализована данная функция, т.к приходится менять парfметр "x" для всех ушей.

всё там грамотно реализовано. просто в твоём примере неграмотная реализация возможностей.

в дефолтном конфиге всё красиво сделано с отображением хп при нажатии кнопки ALT

и там для всех ушей настройка полоски хп в одном месте. секрет в параметре "bindToIcon": true :gg:

Edited by CrazyST

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