Jump to content
Korean Random
Kornet_WA

Конфигурации TotalHP средствами XVM

Recommended Posts

Уважаемый night_dragon_on как опустить чуть ниже общее ХП команд (выделенное синим) ну или вообще убрать эту информацию?

shot_015.jpg

Share this post


Link to post

Short link
Share on other sites
1 минуту назад, Raevsky77 сказал:

как опустить чуть ниже

  • battleLabelsTemplates.xc
// Total hp indicator.
// Индикатор общего HP команд.
"totalHP": {
  "y": 30,

Необходимо увеличить значение 30

 

1 минуту назад, Raevsky77 сказал:

или вообще убрать эту информацию

// Total hp indicator.
// Индикатор общего HP команд.
"totalHP": {
  "enabled": false,

Share this post


Link to post

Short link
Share on other sites

Здравствуйте! Подскажите пожалуйста, как к стандартной (от WG) панели общего НР прикрутить счётчики среднего урона и основного калибра? Буду очень благодарен за подсказку. 967993980_(15).thumb.png.e5fc046d83446ac54105d416a072f6be.pngshot_1914.jpg.9810f9a67b2f8b2c3e94fe9275a81d33.jpg.0f8d8a0c9819ddb92321d043da508180.jpg

Share this post


Link to post

Short link
Share on other sites
9 часов назад, Ksandr_ZK сказал:

Подскажите пожалуйста 

res_mods\configs\xvm\default

battleLabelsTemplates.xc

в этих секциях настроить координаты под себя:

    "avgDamage": 

    "mainGun": 
 

 

 

Share this post


Link to post

Short link
Share on other sites
10 часов назад, Ksandr_ZK сказал:

Здравствуйте! Подскажите пожалуйста, как к стандартной (от WG) панели общего НР прикрутить счётчики среднего урона и основного калибра?

в моде XVM есть это по умолчанию:

 

514cb7b9590ded9239ea6f625bd645da.jpg

Share this post


Link to post

Short link
Share on other sites

@Kornet_WA тут были изменения в событии PY(ON_UPDATE_HP).

Так что для фрагов оно уже не подходит (часто вместо 15 - показывает 14). А вот ON_VEHICLE_DESTROYED наоборот, теперь подходит :hmm:.

Share this post


Link to post

Short link
Share on other sites

Hi.. Im using one of those beatifull Team Hp Panel..

post-10592-0-35674400-1500132133_thumb.png.afb434dd6ff5f02d38f9673c19193774.png

 

And i just want to change one thing... At the midlle is this sign: ( | ) and is colored Red when we have lees hp,, or Green when we have more Hp..

Im wanna use This: ( > ) when we win, or this ( < ) when we loose , Like on Original sign...

 

My config looks like this:

TeamHp.png.ff07ddb365b1246d715f2390438dc4b2.png

 

Original line:

 

"format": "<font size='20' color='{{py:math.sub({{py:xvm.total_hp.ally}}, {{py:xvm.total_hp.enemy}})>0?#5ACB00|#F30900}}'>|</font>"

 

What i should Change???

 

When is Draw im just Want Like on 2nd pic.. just this sign (:)

When we winning ,This sign (>) green

When Loosing This (<) red

Thx for Advice...Btw...

Edited by Szulson

Share this post


Link to post

Short link
Share on other sites

@Szulson 

"format": "<font size='20' color='{{py:math.sub({{py:xvm.total_hp.ally}}, {{py:xvm.total_hp.enemy}})>0?#5ACB00|#F30900}}'>{{py:xvm.total_hp.sign}}</font>"

 

  • Upvote 1

Share this post


Link to post

Short link
Share on other sites

@night_dragon_on thx for quick reply.. Im Edit my post.. can u look once again?? what i exactly want?? couse this what u say just marki this sign when we got more or lees hp.. Im just wanna use this mark when we win 2:0 and should looks like this 2>0 or we loose 0:2 like this 0<2

Edited by Szulson

Share this post


Link to post

Short link
Share on other sites

@sasha_1_nm_ru отлогируй панель в элементах. Там должны быть все настройки.

цифры были во втором уровне вложенности, если память не изменяет.

  • Upvote 1

Share this post


Link to post

Short link
Share on other sites

@night_dragon_on

Thx for Reply.. i use that what u say.. Now Comand line looks like this.( i try many options as u can see)

Quote

    "totalHP_sing": {
      "enabled": "{{battletype-key=epic_battle?false|true}}",
      "updateEvent": "PY(ON_UPDATE_HP)",
      "x": 0,
      "y": 0,
      "width": 30,
      "height": 32,
      "screenHAlign": "center",
      "shadow": { "distance": 1, "angle": 90, "alpha": 80, "blur": 5, "strength": 1.5 },
      "textFormat": { "font": "$TitleFont", "size": 20, "align": "center" },
      //"format": "<font size='20'>:</font>"
      "format": "<font size='20' color='{{py:math.sub({{py:sp.allyFrags}}, {{py:sp.enemyFrags}})>0?#5ACB00|#F30900}}'>{{py:sp.signScore}}</font>"
      //"format": "<font size='20' color='{{py:math.sub({{py:xvm.total_hp.ally}}, {{py:xvm.total_hp.enemy}})>0?#5ACB00|#F30900}}'>{{py:math.sub(>), (<)}}</font>" // "color": "0xCCCCCC",
      ///"format": "<font size='20' color='{{py:math.sub({{py:xvm.total_hp.ally}}, {{py:xvm.total_hp.enemy}})>0?#5ACB00|#F30900}}'>{{py:sp.signScore}}</font>"
    },

and it looks like this now:

teamHp2.png.9f4f17e6297c6ea7d3208a4eee1cf78b.png

 

As u can see at the beginning is this Sign; ( = ) on red color..

 

is it possible to change the sign ( = ) to ( : ) on white color?? to look like this???::

1634461008_MytHP.png.63d24e61a553b5d9434f1f096a4bf5d5.png

 

Btw.. if not possible Thx a lot..

 

Edited by Szulson

Share this post


Link to post

Short link
Share on other sites

@Szulson 

"totalHP_sing": {
  "enabled": "{{battletype-key=epic_battle?false|true}}",
  "updateEvent": "ON_VEHICLE_DESTROYED",
  "x": 0,
  "y": 0,
  "width": 30,
  "height": 32,
  "screenHAlign": "center",
  "shadow": { "distance": 1, "angle": 90, "alpha": 80, "blur": 5, "strength": 1.5 },
  "textFormat": { "font": "$TitleFont", "size": 20, "align": "center" },
  "format": "<font size='20' color='{{py:sp.signScore=>?#5ACB00|{{py:sp.signScore=<?#F30900|#CCCCCC}}}}'>{{py:replace('{{py:sp.signScore}}', '=', ':')}}</font>"
},

 

You can write it like this:

"totalHP_sing": {
  "enabled": "{{battletype-key=epic_battle?false|true}}",
  "updateEvent": "ON_VEHICLE_DESTROYED",
  "x": 0,
  "y": 0,
  "width": 30,
  "height": 32,
  "screenHAlign": "center",
  "shadow": { "distance": 1, "angle": 90, "alpha": 80, "blur": 5, "strength": 1.5 },
  "textFormat": { "font": "$TitleFont", "size": 20, "align": "center", "color": "{{py:sp.signScore=>?0x5ACB00|{{py:sp.signScore=<?0xF30900|0xCCCCCC}}}}" },
  "format": "{{py:replace('{{py:sp.signScore}}', '=', ':')}}"
},
  • Upvote 1

Share this post


Link to post

Short link
Share on other sites
13 часов назад, night_dragon_on сказал:

 

 

У меня не завелся ни первый вариант, ни второй. Категорически отказывается менять цвет. Проверял на реплее. Не пойму где может быть проблема. У кого нибудь заработало, цвет меняет?

Share this post


Link to post

Short link
Share on other sites

У меня такой вариант:

 

"format": "{{py:math.sub({{py:xvm.total_hp.ally}}, {{py:xvm.total_hp.enemy}})>0?<img src='xvm://res/icons/totalHP/Arm/1.png' width='25' height='20' align='baseline' vspace='0'>|{{py:math.sub({{py:xvm.total_hp.ally}}, {{py:xvm.total_hp.enemy}})<0?<img src='xvm://res/icons/totalHP/Arm/2.png' width='25' height='20' align='baseline' vspace='0'>|<img src='xvm://res/icons/totalHP/Arm/3.png' width='25' height='20' align='baseline' vspace='0'>}}}}"

 

Картинки заменить на свои.

Спасибо night_dragon_on за подсказку.

Edited by S.N
не то

Share this post


Link to post

Short link
Share on other sites
5 часов назад, S.N сказал:

Мне@night_dragon_on ,такой вариант подсказал:

"format": "<font size='14' color='{{py:math.sub({{py:xvm.total_hp.ally}}, {{py:xvm.total_hp.enemy}})>0?#5ACB00|{{py:math.sub({{py:xvm.total_hp.ally}}, {{py:xvm.total_hp.enemy}})<0?#F30900|#FFFFFF}}}}'>{{py:math.abs({{py:math.sub({{py:xvm.total_hp.ally}}, {{py:xvm.total_hp.enemy}})}})}}</font>"

 

Это не то, Вы показываете перевес в hp. А нас интересует центральный маркер, который пытаемся настроить так:  " > " -то зеленого цвета, " < "- красного цвета ,  " = " или " : " -белого цвета.

5 часов назад, S.N сказал:

У меня такой вариант:

 

"format": "{{py:math.sub({{py:xvm.total_hp.ally}}, {{py:xvm.total_hp.enemy}})>0?<img src='xvm://res/icons/totalHP/Arm/1.png' width='25' height='20' align='baseline' vspace='0'>|{{py:math.sub({{py:xvm.total_hp.ally}}, {{py:xvm.total_hp.enemy}})<0?<img src='xvm://res/icons/totalHP/Arm/2.png' width='25' height='20' align='baseline' vspace='0'>|<img src='xvm://res/icons/totalHP/Arm/3.png' width='25' height='20' align='baseline' vspace='0'>}}}}"

 

Картинки заменить на свои.

Спасибо night_dragon_on за подсказку.

 

И это работает у Вас? У меня висит картинка под номером 2 и ничего не происходит.

Был конфликт. Но это не то что нужно. Нужно для фрагов. А это для hp.

Edited by sasha_1_nm_ru

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.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...