Jump to content
Korean Random
scyorkie

{{v.name}}=Obj. 430 II? does not work in carousel

Recommended Posts

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?

  • Upvote 1

Share this post


Link to post

Short link
Share on other sites

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!

  • Upvote 1

Share this post


Link to post

Short link
Share on other sites
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?...}}

  • Upvote 2

Share this post


Link to post

Short link
Share on other sites
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 by scyorkie

Share this post


Link to post

Short link
Share on other sites

@scyorkie 

"alpha": "{{.texts.carouselHighlightList.{{v.sysname}}?100|0}}"
    "carouselHighlightList": {
      "ussr-R104_Object_430_II": "",
      "ussr-R01_IS":             "",
      "ussr-R81_IS8":            ""
    },

 

  • Upvote 1

Share this post


Link to post

Short link
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...