scyorkie 50 Posted May 19, 2017 (edited) In default markersAliveNormal.xc > def > rating > alpha, you see this: "{{xvm-stat?100|0}}" I assumed that this meant if you didn't have XVM statistics activated, you wouldn't see the "rating" field at all. So I copied that part for my own version of the "rating" field, but realised that the field still shows up (just in white) when I play on my brother's non-XVM account. [screenshot] Is the macro not working, or am I understanding it wrong? markers.zip Edited May 19, 2017 by scyorkie Quote Share this post Link to post Short link Share on other sites
herhor67 4 #391184 Posted May 19, 2017 It was also in playerPanels. I thought it works like "no stats for this player, exitting", but your version is better. Yeah, SHOULD. I can't find it in macros.txt nor readme-en.txt, maybe it doesn't work now? Quote Share this post Link to post Short link Share on other sites
scyorkie 50 #391186 Posted May 19, 2017 It's in the 2nd table in macros.txt -- global macros. (Ah yes it's also in the default playersPanel.xc, but just not mine.) Quote Share this post Link to post Short link Share on other sites
konrad509 445 #391200 Posted May 19, 2017 (edited) It works when stats are completely turned off, rather than just being inactive. But I don't know whether it's intended action or a bug in the latter scenario. Edited May 19, 2017 by konrad509 1 Quote Share this post Link to post Short link Share on other sites
scyorkie 50 #391206 Posted May 19, 2017 Ah ok. Thanks as always -- that solved the issue I had :) Quote Share this post Link to post Short link Share on other sites
scyorkie 50 #391333 Posted May 20, 2017 So here's a follow up issue. This is how my vehicle fields are formatted in statisticForm.xc: "formatLeftVehicle": "<font size='12'>{{vehicle}}</font><font face='mono' size='11' color='#3c3c3c'> {{xvm-stat?{{kb%3d~k|---k}}}} <font color='{{c:wn8}}'>{{xvm-stat?{{wn8%4d|----}}}}</font> <font color='{{c:winrate}}'>{{xvm-stat?{{winrate%2d~%|--%}}}}</font></font>", "formatRightVehicle": "<font face='mono' size='11' color='#3c3c3c'><font color='{{c:winrate}}'>{{xvm-stat?{{winrate%2d~%|--%}}}}</font> <font color='{{c:wn8}}'>{{xvm-stat?{{wn8%4d|----}}}}</font> {{xvm-stat?{{kb%3d~k|---k}}}} </font><font size='12'>{{vehicle}}</font>", The parts in blue relate to player stats. They are supposed to hide those stats if you disable that function in XVM. Here's how it looks like with stats enabled: screenshot 1 Here's how it looks like with stats disabled: screenshot 2 In both screenshots, vehicleFieldShowBorder is enabled. You can see that the yellow rectangles do not move from one screenshot to the next. However, the text for {{vehicle}} does move, but only for the right side. In screenshot 2, there appear to be spaces to the left of RightVehicle. I presume that comes from the blue text above. But the effect is different for LeftVehicle. Any ideas why? statisticForm.xc attached. statisticForm.xc Quote Share this post Link to post Short link Share on other sites
night_dragon_on 5,601 #391364 Posted May 21, 2017 Any ideas why? statisticForm.xc attached. "formatLeftVehicle": "<font size='12'>{{vehicle}}</font><font face='mono' size='{{xvm-stat?11|0}}' color='#3c3c3c'> {{kb%3d~k|---k}} <font color='{{c:wn8}}'>{{wn8%4d|----}}</font> <font color='{{c:winrate}}'>{{winrate%2d~%|--%}}</font></font>", "formatRightVehicle": "<font face='mono' size='{{xvm-stat?11|0}}' color='#3c3c3c'><font color='{{c:winrate}}'>{{winrate%2d~%|--%}}</font> <font color='{{c:wn8}}'>{{wn8%4d|----}}</font> {{kb%3d~k|---k}} </font><font size='12'>{{vehicle}}</font>", 1 Quote Share this post Link to post Short link Share on other sites
scyorkie 50 #391404 Posted May 21, 2017 Thanks night_dragon_on, that works. What about hiding the 2 imgs in the nick fields? Using {{xvm-stat?16|0}} in width/height doesn't seem to work. "formatLeftNick": "<img src='xvm://res/icons/flags/{{flag|default}}.png' width='16' height='13'> <img src='xvm://res/icons/xvm/xvm-user-{{xvm-user}}.png'> <font size='12' alpha='#A0'>{{clan}}</font><font size='12'>{{xvm-stat?{{name%.10s~..}}|{{name}}}}</font>", "formatRightNick": "<font size='12'>{{xvm-stat?{{name%.10s~..}}|{{name}}}}</font><font size='12' alpha='#A0'>{{clan}}</font> <img src='xvm://res/icons/xvm/xvm-user-{{xvm-user}}.png'> <img src='xvm://res/icons/flags/{{flag|default}}.png' width='16' height='13'>", Quote Share this post Link to post Short link Share on other sites
night_dragon_on 5,601 #391409 Posted May 21, 2017 (edited) What about hiding the 2 imgs in the nick fields? Using {{xvm-stat?16|0}} in width/height doesn't seem to work. For a picture just like this: {{xvm-stat?<img src='xvm://res/icons/flags/{{flag|default}}.png' width='16' height='13'> <img src='xvm://res/icons/xvm/xvm-user-{{xvm-user}}.png'>}} All the spaces and indents are placed inside the macro {{xvm-stat}} Edited May 21, 2017 by night_dragon_on 1 Quote Share this post Link to post Short link Share on other sites
scyorkie 50 #391412 Posted May 21, 2017 Awesome thanks! Quote Share this post Link to post Short link Share on other sites