Jump to content
Korean Random
Nanitor

Как включить HP в ушах

Recommended Posts

Прошу прощения за возможно тупой вопрос, но как включить HP в ушах?

Достаточно ли для этого дефолтного конфига?

 

В файлике battle.xc параметр "allowHpInPanelsAndMinimap": поставил "true", ничего не появилось. И, насколько я понимаю, в дефолтном файлике playersPanel.xc вообще нет макросов вида {{hp*}}.

 

Или эта фича пока только доводится до ума и в базовой версии XVM её нет?

 

 

Заранее спасибо за помощь.

Edited by Nanitor

Share this post


Link to post

Short link
Share on other sites

 

 

в дефолтном файлике playersPanel.xc вообще нет макросов вида {{hp*}}
 

Share this post


Link to post

Short link
Share on other sites

 

 

в дефолтном файлике playersPanel.xc вообще нет макросов вида {{hp*}}.

вот вы сами нашли ответ. Добавьте или возьмите любую готовую реализации  напр

Share this post


Link to post

Short link
Share on other sites

С выводом ХП в числах всё понятно.

 

Может кто-то рассусолить варианты ХП полоской:

Как сделать статическую полоску? т.е. одна длинна для всех танков толи 1500 толи 580 хп

Как сделать умную полоску? Задать длинну полоски 200 пикселей, и что бы в эти 200

Share this post


Link to post

Short link
Share on other sites

в конфиге sirmax'а довольно подробно разобран пример. Так же есть тема специальная тык

вот еще пример у меня так сделано для "none" режима:

"none": {
      // Extra fields.
      // Дополнительные поля.
      "extraFields": {
        "leftPanel": {
          "x": 0, // from left side of screen
          "y": 0,
          "width": 350,
          "height": 25,
          // Set of formats for left panel
          // Набор форматов для левой панели
          "formats": [ { "x": 229, "y": 2, "h": 24, "w": 24, "align": "center", "valign": "center", "src": "xvm://res/clanicons/RU/clan/{{clannb}}.png", "alpha": "{{alive?100|50}}", "shadow": { } },
     { "x": 189, "y": 2, "src": "xvm://configs/Hawk1983x_newformat/myicons/squads/{{squad}}{{squad-num}}.png", "alpha": "{{alive?100|50}}", "shadow": { } },
     { "x": 0, "y": 0, "h": 25, "w": 112, "src": "xvmres://icons/_ally{{alive|dead}}.png", "shadow": {  }, "alpha": 20 },
     { "x": 93, "align": "center", "valign": "center", "format": "<font face='a_RubricaCn' size='13' color='#4CFF00'><b>|   {{frags}}<tab>|</b></font>", "alpha": "{{alive?100|50}}", "shadow": {  } },
     { "x": 1, "y": 2, "h": 19, "w": 70, "src": "xvmres://icons/hp_bg.png", "alpha": "{{alive?100|50}}",  "shadow": {  } },
     { "x": 1, "y": 2, "h": 20, "w": "{{hp-ratio:72}}", "src": "xvmres://icons/hp_{{squad}}{{alive}}.png", "shadow": {  } },
     { "x": 35, "y": 0, "align": "center", "valign": "center", "format": "<b><font color='#FFFFFF' face='ZurichCondMono' size='13'><b>{{hp%4.4s|----}}/{{hp-max%-4.4s|----}}</b></font>", "alpha": "{{alive?100|0}}", "shadow": {  } },
     { "x": 113, "alpha": "{{alive?100|50}}", "src": "xvmres://contour1/{{vehiclename}}.png", "shadow": {  } }
    ]
        },
        "rightPanel": {
          "x": 0, // from right side of screen
          "y": 0,
          "width": 350,
          "height": 25,
          // Set of formats for right panel (extended format supported, see above)
          // Набор форматов для правой панели (поддерживается расширенный формат, см. выше)
          "formats": [ { "x": 229, "y": 2, "h": 24, "w": 24, "align": "center", "valign": "center", "src": "xvm://res/clanicons/RU/clan/{{clannb}}.png", "alpha": "{{alive?100|50}}", "shadow": { } },
     { "x": 189, "y": 2, "src": "xvm://configs/Hawk1983x_newformat/myicons/squads/{{squad}}{{squad-num}}.png", "alpha": "{{alive?100|50}}", "shadow": {  } },
     { "x": 0, "y": 0, "h": 25, "w": 112, "src": "xvmres://icons/_enemy{{alive|dead}}.png", "shadow": {  }, "alpha": 20 },
     { "x": 92, "align": "center", "valign": "center", "format": "<font face='a_RubricaCn' size='13' color='#FF0000'><b>|   {{frags}}<tab>|</b></font>", "alpha": "{{alive?100|50}}", "shadow": {  } },
     { "x": 1, "y": 2, "h": 19, "w": 70, "src": "xvmres://icons/hp_bg.png", "alpha": "{{alive?100|50}}", "shadow": {  } },
     { "x": 1, "y": 2, "h": 20, "w": "{{hp-ratio:72}}", "src": "xvmres://icons/enemy/hp_{{alive}}.png", "shadow": {  } },
     { "x": 35, "y": 0, "align": "center", "valign": "center", "format": "<font color='#FFFFFF' face='ZurichCondMono' size='13'><b>{{hp%4.4s|----}}/{{hp-max%-4.4s|----}}</b></font>", "alpha": "{{alive?100|0}}", "shadow": {  } },
     { "x": 113, "alpha": "{{alive?100|50}}", "src": "xvmres://contour2/{{vehiclename}}.png", "shadow": {  } }
    ]
        }
      }
    },

скрин:

post-8744-0-72501400-1402857899_thumb.jpg
Edited by Hawk1983x
  • Upvote 1

Share this post


Link to post

Short link
Share on other sites
Up

Спасибо.

P/S/ А как же кайфово выглядит код, когда есть форматирование текста=)

'Код'

"none":
{
	// Extra fields.
	// Дополнительные поля.
	"extraFields":
	{
		"leftPanel":
		{
			"x": 0, // from left side of screen
			"y": 0,
			"width": 350,
			"height": 25,
			// Set of formats for left panel
			// Набор форматов для левой панели
			"formats":
			[
				{"x": 229, "y": 2, "h": 24, "w": 24, "align": "center", "valign": "center", "src": "xvm://res/clanicons/RU/clan/{{clannb}}.png", "alpha": "{{alive?100|50}}", "shadow": {}},
				{"x": 189, "y": 2, "src": "xvm://configs/Hawk1983x_newformat/myicons/squads/{{squad}}{{squad-num}}.png", "alpha": "{{alive?100|50}}", "shadow": { }},
				{"x": 0, "y": 0, "h": 25, "w": 112, "src": "xvmres://icons/_ally{{alive|dead}}.png", "shadow": {  }, "alpha": 20},
				{"x": 93, "align": "center", "valign": "center", "format": "<font face='a_RubricaCn' size='13' color='#4CFF00'><b>|   {{frags}}<tab>|</b></font>", "alpha": "{{alive?100|50}}", "shadow": {  }},
				{"x": 1, "y": 2, "h": 19, "w": 70, "src": "xvmres://icons/hp_bg.png", "alpha": "{{alive?100|50}}",  "shadow": {  }},
				{"x": 1, "y": 2, "h": 20, "w": "{{hp-ratio:72}}", "src": "xvmres://icons/hp_{{squad}}{{alive}}.png", "shadow": {  }},
				{"x": 35, "y": 0, "align": "center", "valign": "center", "format": "<b><font color='#FFFFFF' face='ZurichCondMono' size='13'><b>{{hp%4.4s|----}}/{{hp-max%-4.4s|----}}</b></font>", "alpha": "{{alive?100|0}}", "shadow": {  }},
				{"x": 113, "alpha": "{{alive?100|50}}", "src": "xvmres://contour1/{{vehiclename}}.png", "shadow": {  }}
			]
        },
        "rightPanel":
		{
			"x": 0, // from right side of screen
			"y": 0,
			"width": 350,
			"height": 25,
			// Set of formats for right panel (extended format supported, see above)
			// Набор форматов для правой панели (поддерживается расширенный формат, см. выше)
			"formats":
			[
				{"x": 229, "y": 2, "h": 24, "w": 24, "align": "center", "valign": "center", "src": "xvm://res/clanicons/RU/clan/{{clannb}}.png", "alpha": "{{alive?100|50}}", "shadow": {}},
				{"x": 189, "y": 2, "src": "xvm://configs/Hawk1983x_newformat/myicons/squads/{{squad}}{{squad-num}}.png", "alpha": "{{alive?100|50}}", "shadow": {}},
				{"x": 0, "y": 0, "h": 25, "w": 112, "src": "xvmres://icons/_enemy{{alive|dead}}.png", "shadow": {}, "alpha": 20},
				{"x": 92, "align": "center", "valign": "center", "format": "<font face='a_RubricaCn' size='13' color='#FF0000'><b>|   {{frags}}<tab>|</b></font>", "alpha": "{{alive?100|50}}", "shadow": {}},
				{"x": 1, "y": 2, "h": 19, "w": 70, "src": "xvmres://icons/hp_bg.png", "alpha": "{{alive?100|50}}", "shadow": {}},
				{"x": 1, "y": 2, "h": 20, "w": "{{hp-ratio:72}}", "src": "xvmres://icons/enemy/hp_{{alive}}.png", "shadow": {}},
				{"x": 35, "y": 0, "align": "center", "valign": "center", "format": "<font color='#FFFFFF' face='ZurichCondMono' size='13'><b>{{hp%4.4s|----}}/{{hp-max%-4.4s|----}}</b></font>", "alpha": "{{alive?100|0}}", "shadow": {}},
				{"x": 113, "alpha": "{{alive?100|50}}", "src": "xvmres://contour2/{{vehiclename}}.png", "shadow": {}}
			]
		}
	}
},

Share this post


Link to post

Short link
Share on other sites

 

Круто, а не мог бы ты скинуть свой конфиг полностью? Осень интересный, что нибудь себе бы вырезал.

Share this post


Link to post

Short link
Share on other sites

в конфиге sirmax'а довольно подробно разобран пример. Так же есть тема специальная тык

вот еще пример у меня так сделано для "none" режима:

"none": {

      // Extra fields.

      // Дополнительные поля.

      "extraFields": {

        "leftPanel": {

          "x": 0, // from left side of screen

          "y": 0,

          "width": 350,

          "height": 25,

          // Set of formats for left panel

          // Набор форматов для левой панели

          "formats": [ { "x": 229, "y": 2, "h": 24, "w": 24, "align": "center", "valign": "center", "src": "xvm://res/clanicons/RU/clan/{{clannb}}.png", "alpha": "{{alive?100|50}}", "shadow": { } },

     { "x": 189, "y": 2, "src": "xvm://configs/Hawk1983x_newformat/myicons/squads/{{squad}}{{squad-num}}.png", "alpha": "{{alive?100|50}}", "shadow": { } },

     { "x": 0, "y": 0, "h": 25, "w": 112, "src": "xvmres://icons/_ally{{alive|dead}}.png", "shadow": {  }, "alpha": 20 },

     { "x": 93, "align": "center", "valign": "center", "format": "<font face='a_RubricaCn' size='13' color='#4CFF00'><b>|   {{frags}}<tab>|</b></font>", "alpha": "{{alive?100|50}}", "shadow": {  } },

     { "x": 1, "y": 2, "h": 19, "w": 70, "src": "xvmres://icons/hp_bg.png", "alpha": "{{alive?100|50}}",  "shadow": {  } },

     { "x": 1, "y": 2, "h": 20, "w": "{{hp-ratio:72}}", "src": "xvmres://icons/hp_{{squad}}{{alive}}.png", "shadow": {  } },

     { "x": 35, "y": 0, "align": "center", "valign": "center", "format": "<b><font color='#FFFFFF' face='ZurichCondMono' size='13'><b>{{hp%4.4s|----}}/{{hp-max%-4.4s|----}}</b></font>", "alpha": "{{alive?100|0}}", "shadow": {  } },

     { "x": 113, "alpha": "{{alive?100|50}}", "src": "xvmres://contour1/{{vehiclename}}.png", "shadow": {  } }

    ]

        },

        "rightPanel": {

          "x": 0, // from right side of screen

          "y": 0,

          "width": 350,

          "height": 25,

          // Set of formats for right panel (extended format supported, see above)

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

          "formats": [ { "x": 229, "y": 2, "h": 24, "w": 24, "align": "center", "valign": "center", "src": "xvm://res/clanicons/RU/clan/{{clannb}}.png", "alpha": "{{alive?100|50}}", "shadow": { } },

     { "x": 189, "y": 2, "src": "xvm://configs/Hawk1983x_newformat/myicons/squads/{{squad}}{{squad-num}}.png", "alpha": "{{alive?100|50}}", "shadow": {  } },

     { "x": 0, "y": 0, "h": 25, "w": 112, "src": "xvmres://icons/_enemy{{alive|dead}}.png", "shadow": {  }, "alpha": 20 },

     { "x": 92, "align": "center", "valign": "center", "format": "<font face='a_RubricaCn' size='13' color='#FF0000'><b>|   {{frags}}<tab>|</b></font>", "alpha": "{{alive?100|50}}", "shadow": {  } },

     { "x": 1, "y": 2, "h": 19, "w": 70, "src": "xvmres://icons/hp_bg.png", "alpha": "{{alive?100|50}}", "shadow": {  } },

     { "x": 1, "y": 2, "h": 20, "w": "{{hp-ratio:72}}", "src": "xvmres://icons/enemy/hp_{{alive}}.png", "shadow": {  } },

     { "x": 35, "y": 0, "align": "center", "valign": "center", "format": "<font color='#FFFFFF' face='ZurichCondMono' size='13'><b>{{hp%4.4s|----}}/{{hp-max%-4.4s|----}}</b></font>", "alpha": "{{alive?100|0}}", "shadow": {  } },

     { "x": 113, "alpha": "{{alive?100|50}}", "src": "xvmres://contour2/{{vehiclename}}.png", "shadow": {  } }

    ]

        }

      }

    },

скрин:

Скажи пожалуйста какой именно файл ты редактировал 

Share this post


Link to post

Short link
Share on other sites

 

 

Скажи пожалуйста какой именно файл ты редактировал 

за панель игроков отвечает  playersPanel.хс 

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