scyorkie 50 Posted January 15, 2018 I'm trying to create an extraField to highlight the tanks on which I've turned off accelerated crew training (see my earlier suggestion thread here). In this regard, I can't get {{v.name}}=Obj. 430 II? to work. It works for the IS and T-10, as well as other tanks which have spaces in their v.names. Does anyone else have the same problem? 1 Quote Share this post Link to post Short link Share on other sites
SmashPuppet 72 #418559 Posted January 16, 2018 Have you tried escaping the dot? Use a backslash Obj\. etc... The dot is a special character. I haven't tested this. Only a hunch. Good luck! 1 Quote Share this post Link to post Short link Share on other sites
scyorkie 50 #418566 Posted January 16, 2018 Unfortunately that didn't work. Quote Share this post Link to post Short link Share on other sites
vlad_cs_sr 1,575 #418578 Posted January 16, 2018 15 часов назад, scyorkie сказал: I'm trying to create an extraField to highlight the tanks on which I've turned off accelerated crew training (see my earlier suggestion thread here). In this regard, I can't get {{v.name}}=Obj. 430 II? to work. It works for the IS and T-10, as well as other tanks which have spaces in their v.names. Does anyone else have the same problem? maybe this way: {{v.name=Obj. 430 II?...}} 2 Quote Share this post Link to post Short link Share on other sites
scyorkie 50 #418615 Posted January 16, 2018 (edited) 6 hours ago, vlad_cs_sr said: maybe this way: {{v.name=Obj. 430 II?...}} Interesting. That actually works.. However, my problem isn't completely solved. I actually list the vehicles in texts.sc, and use this to determine whether my highlight shows: "alpha": "{{.texts.carouselHighlightList.{{v.name}}?100|0}}" And in texts.xc I have: "carouselHighlightList": { "Obj. 430 II": "", "IS": "", "T-10": "" }, With the above, only the IS and T-10 are highlighted. And unfortunately I can't make vlad's method work with mine. The following will completely fail: "alpha": "{{.texts.carouselHighlightList.{{v.name?100|0}}}}" Any ideas? Edited January 16, 2018 by scyorkie Quote Share this post Link to post Short link Share on other sites
ktulho 5,790 #418616 Posted January 16, 2018 @scyorkie "alpha": "{{.texts.carouselHighlightList.{{v.sysname}}?100|0}}" "carouselHighlightList": { "ussr-R104_Object_430_II": "", "ussr-R01_IS": "", "ussr-R81_IS8": "" }, 1 Quote Share this post Link to post Short link Share on other sites
scyorkie 50 #418622 Posted January 16, 2018 Thanks! Didn't think of using that. :) Quote Share this post Link to post Short link Share on other sites