Jump to content
Korean Random
horussjr

Rating colour does not work

Recommended Posts

Hi,

 

I am using a custom wn8 scale (wotlabs 10 colours) and i have added it into colors.xc as such:

    "wn8": [
     { "value": 301,  "color": ${"def.colorRatingNew.very_bad"         } },    //    0 - 300      - very bad           (better than 0% of players)
      { "value": 450,  "color": ${"def.colorRatingNew.bad"             } },    //  300 - 449      - bad              (better than 6% of players)
      { "value": 650,  "color": ${"def.colorRatingNew.below_average"        } },    //  450 - 649      - below average     (better than 20% of players)
      { "value": 900, "color": ${"def.colorRatingNew.average"            } },    //  650 - 899      - average        (better than 40% of players)
      { "value": 1200, "color": ${"def.colorRatingNew.above_average"        } },    //  900 - 1199     - above average        (better than 63% of players)
      { "value": 1600, "color": ${"def.colorRatingNew.good"            } },    // 1200 - 1599     - good            (better than 82% of players)
      { "value": 2000, "color": ${"def.colorRatingNew.very_good"        } },    // 1600 - 1999     - very good        (better than 95% of players)
      { "value": 2450, "color": ${"def.colorRatingNew.great"            } },    // 2000 - 2449     - great            (better than 99% of players)
      { "value": 2900, "color": ${"def.colorRatingNew.unicum"            } },    // 2450 - 2899     - unicum        (better than 99.9% of players)
      { "value": 99999, "color": ${"def.colorRatingNew.super_unicum"        } }    // 2900 - *        - super unicum        (better than 99.99% of players)
    ],

 

However this does not get applied in Statistics widget, Players Panel or Statistic Form.

 

Winrate works fine:

    "winrate": [
      { "value": 47,  "color": ${"def.colorRatingNew.very_bad"            } },    //  -46%      - very bad        (better than 0% of players)
      { "value": 48,  "color": ${"def.colorRatingNew.bad"            } },    //  46% to 47%      - bad            (better than 6% of players)
      { "value": 49,  "color": ${"def.colorRatingNew.below_average"        } },    //  47 to 48%%      - below average        (better than 20% of players)
      { "value": 50,  "color": ${"def.colorRatingNew.average"            } },    //  48% to 49%  - average        (better than 40% of players)
      { "value": 52,  "color": ${"def.colorRatingNew.above_average"        } },    //  50% to 51%  - above average        (better than 63% of players)
      { "value": 54,  "color": ${"def.colorRatingNew.good"            } },    //  52% to 53%  - good            (better than 82% of players)
      { "value": 56,  "color": ${"def.colorRatingNew.very_good"        } },    //  54% to 55%  - very good        (better than 95% of players)
      { "value": 60,  "color": ${"def.colorRatingNew.great"            } },    //  56% to 59%  - great            (better than 99% of players)
      { "value": 65,  "color": ${"def.colorRatingNew.unicum"            } },    //  60% to 64%  - unicum        (better than 99.9% of players)
      { "value": 101, "color": ${"def.colorRatingNew.super_unicum"        } }     //  +65%     - super unicum        (better than 99.9% of players)
    ],

 

And here is the colour definition:

    "colorRatingNew": {
      "very_bad":        "0x930D0D",   // very bad dark red
      "bad":            "0xF11919",   // bad red
      "below_average":        "0xFF8A00",   // below average orange
      "average":        "0xE6DF27",   // average yellow
      "above_average":        "0x77E812",   // above average green
      "good":            "0x459300",   // good dark green
      "very_good":        "0x2AE4FF",   // very good blue
      "great":            "0x00A0B8",   // great dark blue
      "unicum":            "0xC64CFF",   // unicum violet
      "super_unicum":        "0x8225AD"    // super_unicum dark violet
    },

I have tried instead of "wn8" to do "r" and that didn't work either - as per macros.txt file - {{r}}              │ X │ X │ X │ X │ X │ X │ player's rating (type of rating can be selected in the personal cabinet: https://modxvm.com/)

 

Any ideas what i need to define for these colours to be applied to my rating (which is set to wn8 in personal cabinet)

 

Many thanks,

horussjr

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.

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...