zekias87 2 Posted August 4, 2016 When pressing ALT-key you used to be able to see how much HP the enemy tanks that have been spotted has left. Is that still not implemented or is it something I need to change myself in one of the files? Quote Share this post Link to post Short link Share on other sites
TornadoCat 1,027 #342442 Posted August 4, 2016 @zekias87, function was removed in 6.4.0 Quote Share this post Link to post Short link Share on other sites
Jerryfer 2 #342459 Posted August 4, 2016 Removed permanently or put in queue as minimap? Quote Share this post Link to post Short link Share on other sites
TornadoCat 1,027 #342463 Posted August 4, 2016 @Jerryfer, permanently Quote Share this post Link to post Short link Share on other sites
sirmax 5,499 #342471 Posted August 4, 2016 This function can me implemented by {{hp*}} macros, which is more powerful. Quote Share this post Link to post Short link Share on other sites
Jerryfer 2 #342485 Posted August 4, 2016 (edited) OK, so I made hpLeft definition to be used in PlayersPanel: "hpLeft" : { "x": 90, "y": 0, "bindToIcon": true, "format": "<font face='mono' size='15' color='{{c:hp-ratio}}'>{{alive?{{hp%4d~hp|}}|}}</font>" }, I use it with "AltMode", works like a charm. Edited August 4, 2016 by Jerryfer Quote Share this post Link to post Short link Share on other sites
zekias87 2 #342617 Posted August 4, 2016 OK, so I made hpLeft definition to be used in PlayersPanel: "hpLeft" : { "x": 90, "y": 0, "bindToIcon": true, "format": "<font face='mono' size='15' color='{{c:hp-ratio}}'>{{alive?{{hp%4d~hp|}}|}}</font>" }, I use it with "AltMode", works like a charm. Could you post that file? I'd love to use that but I don't understand how to do it. Quote Share this post Link to post Short link Share on other sites
Jerryfer 2 #342654 Posted August 4, 2016 Well, if you can't edit XVM config, find somebody to do it for you. I've shared my concept so public config makers can use it. My settings are tailored for my weird sense of taste and modded vehicle icons. If you don't have basic skills with config editing, just copying my file won't help. Quote Share this post Link to post Short link Share on other sites
Andyss 16 #342671 Posted August 4, 2016 just add {{hp}} macro to playerspanel, you can easily test it with replays for instance like this, this can be seen all the time and not hided behind alt "nickFormatRight": "{{name%.15s~..}} <font alpha='#A0'>{{clan}}</font> <font color='{{c:rating}}' alpha='{{alive?#FF|#80}}'>{{rating%2d~%|--%}}</font> {{hp}}", Quote Share this post Link to post Short link Share on other sites
zekias87 2 #342709 Posted August 4, 2016 just add {{hp}} macro to playerspanel, you can easily test it with replays for instance like this, this can be seen all the time and not hided behind alt "nickFormatRight": "{{name%.15s~..}} <font alpha='#A0'>{{clan}}</font> <font color='{{c:rating}}' alpha='{{alive?#FF|#80}}'>{{rating%2d~%|--%}}</font> {{hp}}", Thank you very much Andyss! Well, if you can't edit XVM config, find somebody to do it for you. I've shared my concept so public config makers can use it. My settings are tailored for my weird sense of taste and modded vehicle icons. If you don't have basic skills with config editing, just copying my file won't help. Thing is, I can edit XVM config on a basic level. I have changed several of the files to my liking. But I dont know programming very well. What I dont understand is where in playerspanel to put your code and I also dont get how to make it in "altmode". Quote Share this post Link to post Short link Share on other sites
bograd 14 #342726 Posted August 4, 2016 (edited) You define it in battleLabelsTemplate si add it as extra field in PlayersPanel? OK, so I made hpLeft definition to be used in PlayersPanel: "hpLeft" : { "x": 90, "y": 0, "bindToIcon": true, "format": "<font face='mono' size='15' color='{{c:hp-ratio}}'>{{alive?{{hp%4d~hp|}}|}}</font>" }, I use it with "AltMode", works like a charm. Edited August 4, 2016 by bograd Quote Share this post Link to post Short link Share on other sites
Jerryfer 2 #342865 Posted August 5, 2016 You define it in the top part of playersPanel.xc, you will find "xvmUserMarker" or "clanIcon" definitions there as examples. Then in the panel mode of your choice (short, medium, medium2, large) you add ${"hpLeft"} to list of extra fields (again, in default config you will see references xvmUserMarker or clanIcon). Quote Share this post Link to post Short link Share on other sites
zekias87 2 #342919 Posted August 5, 2016 You define it in the top part of playersPanel.xc, you will find "xvmUserMarker" or "clanIcon" definitions there as examples. Then in the panel mode of your choice (short, medium, medium2, large) you add ${"hpLeft"} to list of extra fields (again, in default config you will see references xvmUserMarker or clanIcon). Thank you very much for that explanation! I got it to work. If I want it to only show when ALT is pressed, is there an easy fix for that perhaps? Quote Share this post Link to post Short link Share on other sites
bograd 14 #342963 Posted August 5, 2016 Define it like this in playerspanel "hpLeft" : { "x": 88, "y": 4, "hotKeyCode": 56, "bindToIcon": true, "format": "<font face='mono' size='12' color='{{c:hp-ratio}}'><b>{{alive?{{hp%4d~|}}|}}</b></font>" }, and add the extra field in extraFieldsRight: "extraFieldsRight": [ ${"clanIcon2"}, //${"xvmUserMarker"} // enemy spotted status marker (see above). // маркер статуса засвета противника (см. выше). ${"enemySpottedMarker"}, ${"hpLeft"} ] 2 Quote Share this post Link to post Short link Share on other sites
zekias87 2 #343008 Posted August 5, 2016 Define it like this in playerspanel "hpLeft" : { "x": 88, "y": 4, "hotKeyCode": 56, "bindToIcon": true, "format": "<font face='mono' size='12' color='{{c:hp-ratio}}'><b>{{alive?{{hp%4d~|}}|}}</b></font>" }, and add the extra field in extraFieldsRight: "extraFieldsRight": [ ${"clanIcon2"}, //${"xvmUserMarker"} // enemy spotted status marker (see above). // маркер статуса засвета противника (см. выше). ${"enemySpottedMarker"}, ${"hpLeft"} ] Thank you very much sir! Quote Share this post Link to post Short link Share on other sites
bograd 14 #343025 Posted August 5, 2016 No problem, glad to help. Quote Share this post Link to post Short link Share on other sites
scyorkie 50 #345211 Posted August 10, 2016 Ok so the method above can make something appear when Alt is pressed. Is there a way to make something in the players' panel disappear when Alt is pressed? For example, replacing the players' names with their stats, but without changing between the modes of the players panel? Quote Share this post Link to post Short link Share on other sites
Kapany3uk 948 #345237 Posted August 11, 2016 Is there a way to make something in the players' panel disappear when Alt is pressed? Yes. For this you need to make two identical extra fields in battleLabelsTemplates.xc and use the parameter "visibleOnHotKey" in different values ("format" of course different too) ├────────────────────────────┼────────────────────────────────────────────────────────────────────────── │ "visibleOnHotKey" │ true - field visible on hot key pressed; false - vice versa (default: true) │ │ true - поле отображается при нажатии горячей клавиши; false - наоборот (по-умолчанию: true) ├────────────────────────────┼────────────────────────────────────────────────────────────────────────── Quote Share this post Link to post Short link Share on other sites
scyorkie 50 #345242 Posted August 11, 2016 Thanks! Quote Share this post Link to post Short link Share on other sites
scyorkie 50 #345362 Posted August 11, 2016 (edited) Next question: What is the default font name and font size for player names and tank names in playersPanel? $FieldFont at size 13 is the correct height, but is slightly wider. $FieldFont at size 12 is the correct width, but is slightly shorter. Edited August 11, 2016 by scyorkie Quote Share this post Link to post Short link Share on other sites