PigBrains 492 Posted November 4, 2018 Need Help In my Last Xvm update I added > Tank Developed Years ,to Hangar & Battle it shows what year the tank was developed Yellow icon year stands for Real Tank ,The Purple icons years represents that the tank was never made , just blueprints of tank or prototype was never complete . Hawgs Alternative Xvm It reads a png file for the year . This is format line for png "format": "<img src='xvm://res/icons/icons/battle/tanks/{{vehiclename}}.png'>" I am trying to now is make it read a text file instead of . png in battle I'm not getting pass the format line. Here is what I got so far with no luck I'm stuck on the format line in battleLabelsTemplates.xc @xvm.xc "years" : ${"years.xc":"years"} battleLabels.xc ${ "battleLabelsTemplates.xc":"def.tankyears"} ${ "battleLabelsTemplates.xc":"def.years"} battleLabelsTemplates }, "tankyears": { "enabled": true, "layer": "bottom", "x":-740, "y": 920, "width": 300, "height":270, "screenHAlign": "center", "shadow": { "enabled": true, "distance": 0, "angle": 0, "color": "0x000000", "alpha": 100, "blur": 4, "strength": 2 }, "textFormat": { "align": "right", "valign": "center"}, "format": ${"years.xc":"years":"{{vehiclename}}"} " } years.xc { "years":{ "china-Ch01_Type59": "<b><font size='16' color='#D8E6BD'> 1958 </font></b>", "china-Ch01_Type59_Gold": "<b><font size='16' color='#5A3DAB'> 1958 </font></b>", "china-Ch02_Type62": "<b><font size='16' color='#D8E6BD'> 1958 </font></b>" } } Quote Share this post Link to post Short link Share on other sites
Kotyarko_O 1,906 #444626 Posted November 4, 2018 (edited) @PigBrains, try this: "format": "{{.years.{{vehiclename}}|}}" Edited November 4, 2018 by Kotyarko_O 1 Quote Share this post Link to post Short link Share on other sites
point one five 2 #444627 Posted November 4, 2018 Well PigBrains I hope this works for you. This should work on speed as well? 1 Quote Share this post Link to post Short link Share on other sites
PigBrains 492 #444629 Posted November 5, 2018 Still gives error > illegal characters Quote Share this post Link to post Short link Share on other sites
HEKPOMAHT 2,168 #444632 Posted November 5, 2018 @xvm.xc "years": ${"years.xc":"years"}, ... battleLabels.xc { "labels": { "formats": [ ${"battleLabelsTemplates.xc":"def.tankyears"}, ... battleLabelsTemplates { "def": { "tankyears": { "enabled": true, "layer": "bottom", "x": -740, "y": 920, "width": 300, "height": 270, "screenHAlign": "center", "shadow": { "color": "0x000000", "alpha": 100, "blur": 4, "strength": 2 }, "textFormat": { "align": "right", "valign": "center" }, "format": "{{.years.{{vehiclename}}}}" }, ... years.xc { "years": { "ussr-R88_Object268": "<b><font size='40' color='#D8E6BD'> TEST </font></b>" } } Cheers! 2 Quote Share this post Link to post Short link Share on other sites
Руслан cb 16 #444645 Posted November 5, 2018 чётко )))))продумано но как в ангар то это перенести ,............. 1 Quote Share this post Link to post Short link Share on other sites
night_dragon_on 5,601 #444646 Posted November 5, 2018 1 час назад, Руслан cb сказал: но как в ангар то это перенести Используй аналогичные подстановки не в: battleLabels.xc battleLabelsTemplates.xc А в: widgets.xc widgetsTemplates.xc Оформление такое же. 2 Quote Share this post Link to post Short link Share on other sites
PigBrains 492 #444648 Posted November 5, 2018 Thank you all !!!! 1 Quote Share this post Link to post Short link Share on other sites
point one five 2 #444685 Posted November 6, 2018 told you we could use widgets Quote Share this post Link to post Short link Share on other sites