PigBrains Posted November 4, 2018 Share 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 Link to comment Short link Share on other sites More sharing options...
Kotyarko_O Posted November 4, 2018 Share Posted November 4, 2018 (edited) @PigBrains, try this: "format": "{{.years.{{vehiclename}}|}}" Edited November 4, 2018 by Kotyarko_O 1 @ Quote Link to comment Short link Share on other sites More sharing options...
point one five Posted November 4, 2018 Share Posted November 4, 2018 Well PigBrains I hope this works for you. This should work on speed as well? 1 @ Quote Link to comment Short link Share on other sites More sharing options...
PigBrains Posted November 5, 2018 Author Share Posted November 5, 2018 Still gives error > illegal characters @ Quote Link to comment Short link Share on other sites More sharing options...
HEKPOMAHT Posted November 5, 2018 Share 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 Link to comment Short link Share on other sites More sharing options...
Руслан cb Posted November 5, 2018 Share Posted November 5, 2018 чётко )))))продумано но как в ангар то это перенести ,............. 1 @ Quote Link to comment Short link Share on other sites More sharing options...
night_dragon_on Posted November 5, 2018 Share Posted November 5, 2018 1 час назад, Руслан cb сказал: но как в ангар то это перенести Используй аналогичные подстановки не в: battleLabels.xc battleLabelsTemplates.xc А в: widgets.xc widgetsTemplates.xc Оформление такое же. 2 @ Quote Link to comment Short link Share on other sites More sharing options...
PigBrains Posted November 5, 2018 Author Share Posted November 5, 2018 Thank you all !!!! 1 @ Quote Link to comment Short link Share on other sites More sharing options...
point one five Posted November 6, 2018 Share Posted November 6, 2018 told you we could use widgets @ 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.