Nanitor Posted June 13, 2014 Share Posted June 13, 2014 (edited) Прошу прощения за возможно тупой вопрос, но как включить HP в ушах? Достаточно ли для этого дефолтного конфига? В файлике battle.xc параметр "allowHpInPanelsAndMinimap": поставил "true", ничего не появилось. И, насколько я понимаю, в дефолтном файлике playersPanel.xc вообще нет макросов вида {{hp*}}. Или эта фича пока только доводится до ума и в базовой версии XVM её нет? Заранее спасибо за помощь. Edited June 13, 2014 by Nanitor @ Quote Link to comment Short link Share on other sites More sharing options...
Mr A Posted June 14, 2014 Share Posted June 14, 2014 в дефолтном файлике playersPanel.xc вообще нет макросов вида {{hp*}} @ Quote Link to comment Short link Share on other sites More sharing options...
Arturick Posted June 14, 2014 Share Posted June 14, 2014 Меня тоже этот вопрос интересует, очень очень @ Quote Link to comment Short link Share on other sites More sharing options...
Олень Posted June 15, 2014 Share Posted June 15, 2014 И меня тоже! @ Quote Link to comment Short link Share on other sites More sharing options...
Hawk1983x Posted June 15, 2014 Share Posted June 15, 2014 в дефолтном файлике playersPanel.xc вообще нет макросов вида {{hp*}}. вот вы сами нашли ответ. Добавьте или возьмите любую готовую реализации напр @ Quote Link to comment Short link Share on other sites More sharing options...
Beliy.IV Posted June 15, 2014 Share Posted June 15, 2014 С выводом ХП в числах всё понятно. Может кто-то рассусолить варианты ХП полоской: Как сделать статическую полоску? т.е. одна длинна для всех танков толи 1500 толи 580 хп Как сделать умную полоску? Задать длинну полоски 200 пикселей, и что бы в эти 200 @ Quote Link to comment Short link Share on other sites More sharing options...
Hawk1983x Posted June 15, 2014 Share Posted June 15, 2014 (edited) в конфиге 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": { } } ] } } }, скрин: Edited June 15, 2014 by Hawk1983x 1 @ Quote Link to comment Short link Share on other sites More sharing options...
PinkElfant Posted June 16, 2014 Share Posted June 16, 2014 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": {}} ] } } }, @ Quote Link to comment Short link Share on other sites More sharing options...
Arturick Posted June 17, 2014 Share Posted June 17, 2014 Круто, а не мог бы ты скинуть свой конфиг полностью? Осень интересный, что нибудь себе бы вырезал. @ Quote Link to comment Short link Share on other sites More sharing options...
DimanTV Posted August 19, 2014 Share Posted August 19, 2014 в конфиге 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": { } } ] } } }, скрин: shot_079.jpg Скажи пожалуйста какой именно файл ты редактировал @ Quote Link to comment Short link Share on other sites More sharing options...
Hawk1983x Posted August 19, 2014 Share Posted August 19, 2014 Скажи пожалуйста какой именно файл ты редактировал за панель игроков отвечает playersPanel.хс @ Quote Link to comment Short link Share on other sites More sharing options...
DimanTV Posted August 19, 2014 Share Posted August 19, 2014 за панель игроков отвечает playersPanel.хс спс разобрался @ Quote Link to comment Short link Share on other sites More sharing options...
Recommended Posts
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.