F1nder 4 Posted June 8, 2021 Всех приветствую! Хочу сделать ХП в ушах команд посредством мода XVM. Сколько бы не рылся в конфигах подобного параметра не нашел. Вопрос: Скажите в каком файле хранится сей параметр? И вопрос можно ли стандартными средствами включить хп в ушах и на миникарте? Заранее спасибо)) P.S за основу взят стандартный конфиг. P.S.S в нем уже включены хп в ушах по Alt. Quote Share this post Link to post Short link Share on other sites
ktulho 5,790 #503688 Posted June 9, 2021 16 часов назад, F1nder сказал: Хочу сделать ХП в ушах команд посредством мода XVM. Сколько бы не рылся в конфигах подобного параметра не нашел. В файле playersPanel.xc есть шаблоны: // HP bar background. // Подложка индикатора HP. "hpBarBg": { "hotKeyCode": 56, "onHold": "true", "visibleOnHotKey": true, "x": 96, "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": 97, "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, "bindToIcon": true, "alpha": "{{alive?100|0}}", "x": 96, "width": 72, "y": 4, "textFormat": { "font": "$FieldFont", "size": 11, "color": "0xD9D9D9", "bold": "true", "align": "center" }, "format": "<font alpha='{{alive?{{ready?#FF|#80}}|#80}}'>{{alive?{{hp|{{hp-max}}}}|{{l10n:Destroyed}}}}</font>", "shadow": { "enabled": true, "color": "0x000000", "alpha": 100, "blur": 4, "strength": 1, "distance": 0, "angle": 0 } } Для каждого режима "ушей", в параметрах "extraFieldsLeft", "extraFieldsRight" добавляется ссылка на шаблоны "hpBarBg", "hpBar" и "hp": // Extra fields. Each field have size 350x25. Fields are placed one above the other. // Дополнительные поля. Каждое поле имеет размер 350x25. Поля располагаются друг над другом. // Set of formats for left panel (extended format supported, see above). // Набор форматов для левой панели (поддерживается расширенный формат, см. выше). "extraFieldsLeft": [ ${"def.hpBarBg"}, ${"def.hpBar"}, ${"def.hp"}, ${"def.clanIcon"}, ${"def.xvmUserMarker"}, ${"def.xmqpServiceMarker"} ], // Set of formats for right panel (extended format supported, see above). // Набор форматов для правой панели (поддерживается расширенный формат, см. выше). "extraFieldsRight": [ ${"def.hpBarBg"}, ${"def.hpBar"}, ${"def.hp"}, ${"def.clanIcon"}, ${"def.xvmUserMarker"}, ${"def.enemySpottedMarker"} ] Quote Share this post Link to post Short link Share on other sites