bes1 Posted January 5, 2017 Share Posted January 5, 2017 (edited) В infoPanel.xc прописал скобки как в архиве так они инфопанель не сработала убрал две скобки заработало 'Так работает' { "infoPanel": { "delay": 5,"altKey": 56,"formats": [" {{vehicle_name}}<br/>Перезарядка: <font color = '#00FBFF'size='15' >{{gun_reload_equip}}</font> сек<br/>Обзор: <font color = '#9D00FF' size='15'>{{vision_radius}}</font> м" ] }} 'Как в архиве не работает' { "infoPanel": { "delay": 5,"altKey": 56,"format": [ { " {{vehicle_name}}<br/>Перезарядка: <font color = '#00FBFF'size='15' >{{gun_reload_equip}}</font> сек<br/>Обзор: <font color = '#9D00FF' size='15'>{{vision_radius}}</font> м" } ] }} Edited January 6, 2017 by _bes_1 @ Quote Link to comment Short link Share on other sites More sharing options...
Kapany3uk Posted January 5, 2017 Share Posted January 5, 2017 В infoPanel.xc прописал скобки как в архиве так они инфопанель не сработала потому что для массива (нескольких полей) надо поменять еще и параметр "formats" (бывш. "format") @ Quote Link to comment Short link Share on other sites More sharing options...
Kotyarko_O Posted January 5, 2017 Author Share Posted January 5, 2017 (edited) Как в архиве не работает Да, скобки я туда лупанул лишними. А ведь в туторе написал всё правильно =) Обновил шапку, спасибо. + @Kapany3uk указал на ошибку у вас в конфиге. И если с "format" у вас работает, то вы не обновили скрипт. Edited January 5, 2017 by Kotyarko_O @ Quote Link to comment Short link Share on other sites More sharing options...
refaol Posted January 5, 2017 Share Posted January 5, 2017 Способа сделать удобнее не нашёл, но разобраться во всём этом вполне возможно =) Спасибо! Буду пробовать. @ Quote Link to comment Short link Share on other sites More sharing options...
bes1 Posted January 6, 2017 Share Posted January 6, 2017 Два поля нормально получились .Класс и главное работает. @ Quote Link to comment Short link Share on other sites More sharing options...
ADv Posted January 7, 2017 Share Posted January 7, 2017 Поделитесь вариантом конфига как на втором скриншоте, пожалуйста. @ Quote Link to comment Short link Share on other sites More sharing options...
Kotyarko_O Posted January 7, 2017 Author Share Posted January 7, 2017 (edited) Поделитесь вариантом конфига как на втором скриншоте, пожалуйста. infoPanel.xc: "formats": [ "<font color='#F0F0F0'><b>{{vehicle_name}}</b></font> <br/><textformat tabstops='[80]'><font color='#14AFF1'>{{gun_reload_equip}} сек.</font><tab><font color='#96CC29'>{{vision_radius}} м.</font></textformat>" ] battleLabelsTemplates.xc: "infoPanel": { "enabled": true, "updateEvent": "PY(ON_INFO_PANEL)", "x": 0, "y": 150, "width": 200, "height": 100, "align": "center", "valign": "center", "screenHAlign": "center", "screenVAlign": "center", "shadow": { "enabled": true, "distance": 1, "angle": 90, "color": "0x000000", "alpha": 80, "blur": 5, "strength": 2 }, "textFormat": { "font": "$TitleFont", "size": 15, "align": "center", "leading": -12 }, "format": "{{py:infoPanelFormat}}" } Edited January 7, 2017 by Kotyarko_O 2 @ Quote Link to comment Short link Share on other sites More sharing options...
refaol Posted January 7, 2017 Share Posted January 7, 2017 Способа сделать удобнее не нашёл, но разобраться во всём этом вполне возможно =) Можно тоже в шапку plz @ Quote Link to comment Short link Share on other sites More sharing options...
OlliN Posted January 7, 2017 Share Posted January 7, 2017 (edited) Two suggestions: -localize the shell_type text -add a macro for shell travel time to target (usefull for arty sights) And a very minor issue: plural of macro is macros, not macroses. Edited January 7, 2017 by OlliN 1 @ Quote Link to comment Short link Share on other sites More sharing options...
refaol Posted January 7, 2017 Share Posted January 7, 2017 {{marks_on_gun}} Добавил этот макрос в свой конфиг - работать перестало, убрал - работает,Проверьте plz у кого нибудь повторяется? @ Quote Link to comment Short link Share on other sites More sharing options...
Kotyarko_O Posted January 7, 2017 Author Share Posted January 7, 2017 (edited) Обновлено. Локализация названий типов снарядов, через l10n-конфиги. Исправлен макрос {{marks_on_gun}}. Можно тоже в шапку plzДобавил. {{marks_on_gun}}Добавил этот макрос в свой конфиг - работать перестало, убрал - работает, Проверьте plz у кого нибудь повторяется? Исправил, спасибо. Two suggestions: -localize the shell_type text -add a macro for shell travel time to target (usefull for arty sights) And a very minor issue: plural of macro is macros, not macroses. 1) Done (l10n configs). 2) I`ll add, in the next time. 3) Fixed =) Edited January 7, 2017 by Kotyarko_O 2 @ Quote Link to comment Short link Share on other sites More sharing options...
refaol Posted January 7, 2017 Share Posted January 7, 2017 3) Fixed =) Отлично, заработало как надо. Настроил, все как было еще в панели от Dellux, отдельное спасибо за возможность реализации нескольких "инфо-полей". @ Quote Link to comment Short link Share on other sites More sharing options...
cektop Posted January 7, 2017 Share Posted January 7, 2017 Отлично, заработало как надо. Настроил, все как было еще в панели от Dellux, отдельное спасибо за возможность реализации нескольких "инфо-полей". Привет! Конфигом не поделишься? @ Quote Link to comment Short link Share on other sites More sharing options...
TornadoCat Posted January 7, 2017 Share Posted January 7, 2017 @Kotyarko_O, так что, получится у тебя сделать то, что в первых постах я на пикчах постил ? У меня конфиг сохранился для инфопанели .Уж хотелось бы её вернуть, а то из сборки изымать пришлось . Я даже заплачу за адаптацию, если нужно будет . Возьмёшься ? @ Quote Link to comment Short link Share on other sites More sharing options...
Kotyarko_O Posted January 7, 2017 Author Share Posted January 7, 2017 (edited) так что, получится у тебя сделать то, что в первых постах я на пикчах постил ? У меня конфиг сохранился для инфопанели . Прикрепи конфиг. Edited January 7, 2017 by Kotyarko_O @ Quote Link to comment Short link Share on other sites More sharing options...
TornadoCat Posted January 7, 2017 Share Posted January 7, 2017 @Kotyarko_O, InfoPanel.xml @ Quote Link to comment Short link Share on other sites More sharing options...
Kotyarko_O Posted January 7, 2017 Author Share Posted January 7, 2017 (edited) @Tornado_Odan_Rot, 'battleLabelsTemplates.xc' "infoPanel0": { "enabled": true, "updateEvent": "PY(ON_INFO_PANEL)", "x": 200, "y": 100, "width": 200, "height": 200, "align": "center", "valign": "center", "screenHAlign": "center", "screenVAlign": "center", "shadow": { "enabled": true, "distance": 1, "angle": 90, "color": "0x000000", "alpha": 80, "blur": 5, "strength": 2 }, "textFormat": { "align": "left", "leading": -10 }, "format": "{{py:infoPanelFormat(0)}}" }, "infoPanel1": { "enabled": true, "updateEvent": "PY(ON_INFO_PANEL)", "x": -50, "y": 50, "width": 200, "height": 200, "align": "center", "valign": "center", "screenHAlign": "center", "screenVAlign": "center", "shadow": { "enabled": true, "distance": 1, "angle": 90, "color": "0x000000", "alpha": 80, "blur": 5, "strength": 2 }, "textFormat": { "align": "left", "leading": -10 }, "format": "{{py:infoPanelFormat(1)}}" } 'battleLabels.xc' ${ "battleLabelsTemplates.xc":"def.infoPanel0" }, ${ "battleLabelsTemplates.xc":"def.infoPanel1" } 'infoPanel.xc' ... "formats": [ "<font face='Cuprum' size='15'>{{vehicle_weight}}т</font> <br/><font face='Arial' size='14' color='#FF9900'>Б: {{armor_turret_front}}/{{armor_turret_side}}/{{armor_turret_back}} <br/>К: {{armor_hull_front}}/{{armor_hull_side}}/{{armor_hull_back}}</font> <br/><font face='Arial' size='12' color='#9FF781' alpha='90'>{{vehicle_name}}</font>", "<font face='Arial' size='15' color='#FF9900' alpha='85'>{{gun_reload_equip}} сек</font> <br/><font face='Arial' size='14' color='#9FF781' alpha='90'>{{vision_radius}} м</font>" ] Координаты уже сам поправишь.Выглядит так: Edited January 7, 2017 by Kotyarko_O 1 @ Quote Link to comment Short link Share on other sites More sharing options...
TornadoCat Posted January 7, 2017 Share Posted January 7, 2017 @Kotyarko_O, Котико лучший ) А превышение веса не реализовано пока что ? @ Quote Link to comment Short link Share on other sites More sharing options...
Kotyarko_O Posted January 7, 2017 Author Share Posted January 7, 2017 А превышение веса не реализовано пока что ? Пока что) @ Quote Link to comment Short link Share on other sites More sharing options...
refaol Posted January 7, 2017 Share Posted January 7, 2017 (edited) Привет! Конфигом не поделишься? Я настраивал под свой ноут 1366х768, картинка примерно такая: Если оно надо, то вот: 'infoPanel.xc' "formats": [ "<p align='center'><font face='$FieldFont' size='14'><font color='#cbcab7'>{{vehicle_name}}</font> [ <font color='#ffcc66'>{{marks_on_gun}}</font> ]\n<textformat tabstops='[80,160]'><font color='#96ff00'><font face='xvm' size='15'>V</font> {{gun_reload_equip}}</font><tab><font color='#00bcff'><font face='xvm' size='15'>n</font> {{vision_radius}}</font><tab><font color='#f50800'><font face='xvm' size='15'>,</font> {{shell_damage_1}}</font></textformat></font></p>", "<img src='img://gui/maps/icons/vehicle/contour/{{icon_system_name}}.png'><p align='left'><font face='$FieldFont' size='12' color='#cbcab7'><tab> {{vehicle_weight}}т<tab> {{speed_forward}}км/ч \n<textformat tabstops='[85,100,135]'>Reload-Vision<tab>:<tab>{{gun_reload_equip}}<tab>{{vision_radius}}</font>\nPower-Damage<tab>:<tab>{{shell_power_1}}<tab>{{shell_damage_1}}\nTurret-Hull<tab>:<tab>{{armor_turret_front}}<tab>{{armor_hull_front}}</textformat></p></font>" ] 'battleLabelsTemplates.xc' "infoPanel0": { "enabled": true, "updateEvent": "PY(ON_INFO_PANEL)", "x": 0, "y": 242, "width": 250, "height": 250, "align": "center", "valign": "center", "screenHAlign": "center", "screenVAlign": "center", "shadow": { "enabled": true, "distance": 0, "angle": 45, "color": "0x000000", "alpha": 80, "blur": 5, "strength": 6 }, "textFormat": { "font": "$FieldFont", "size": 14, "color": "0xFCFCFC", "align": "center"}, "format": "{{py:infoPanelFormat(0)}}" }, "infoPanel1": { "enabled": true, "updateEvent": "PY(ON_INFO_PANEL)", "x": 280, "y": 181, "width": 250, "height": 250, "align": "center", "valign": "center", "screenHAlign": "left", "screenVAlign": "bottom", "shadow": { "enabled": true, "distance": 0, "angle": 45, "color": "0x000000", "alpha": 80, "blur": 5, "strength": 5 }, "textFormat": { "font": "$FieldFont", "size": 14, "color": "0xFCFCFC", "align": "left", "leading": -6 }, "format": "{{py:infoPanelFormat(1)}}" } 'battleLabels.xc' ${ "battleLabelsTemplates.xc":"def.infoPanel0" }, ${ "battleLabelsTemplates.xc":"def.infoPanel1" } Edited January 7, 2017 by refaol 1 @ 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.