Jump to content
Korean Random
Sign in to follow this  
Asulan

Прошу помощи по разделу markersAliveNormal.xc

Recommended Posts

В разделе markersAliveNormal.xc хочу добавить XVM иконки отображающие рейтинг игрока по динамическому цвету .

"stat": {
      "name": "Rating",
      "enabled": true,
      "x": -40,
      "y": -40,
      "alpha": "{{a:xr}}",
      "align": "right",
      "textFormat": {
        "font": "xvm",
        "size": 30,
        "color": "{{c:xr|#999999}}",
        "bold": false,
        "italic": false
      },
      "shadow": {
        "enabled": true,
        "distance": 0,
        "angle": 100,
        "color": null,
        "alpha": 100,
        "blur": 2,
        "strength": 2
      },
      "format": "ě" - сюда нужна формула, по динамической прозрачности по шкале XVM

 

проблема только в том что в разделе "format" нужна указать еще и шрифт Ĝ изменяющийся согласно цвету alpha.xc:

"x": [
      { "value": 16.5, "alpha": 100 },
      { "value": 33.5, "alpha": 100 },
      { "value": 52.5, "alpha": 0 },
      { "value": 75.5, "alpha": 0 },
      { "value": 92.5, "alpha": 0 },
      { "value": 999,  "alpha": 0 }
    ],

 

 

Отображение в данное время:

5ab93d1f40f6f_.thumb.jpg.193a38c72a7b4de9785d77f2e3217f8f.jpg

Хотелось сделать:

5ab93d26a544c_.thumb.jpg.0edd07061fdbaac5cc5d8905fa274200.jpg

World_of_Tanks.rar

Edited by Asulan

Share this post


Link to post

Short link
Share on other sites

Можно так прописать:

"alpha": 100,
"format": "{{xr<16.5?&#x11B;|{{xr<33.5?&#x11C;}}}}"

 

Edited by night_dragon_on

Share this post


Link to post

Short link
Share on other sites
59 минут назад, night_dragon_on сказал:

Можно так прописать:


"alpha": 100,
"format": "{{xr<16.5?&#x11B;|{{xr<33.5?&#x11C;}}}}"

 

Получилось, но выше 33,5 рейтинга выходят квадратики... они мне не нужны. Мне нужен диапазон 16,5-33,5 но не выше

shot_004.jpg

 

Я не программист, но с предоставленными выше формулами побывал манипулировать и в итоге получил работающий: "format": "{{xr<16.5?&#x11B;|{{xr<33.5?&#x11C;|{{xr<52.5?&#x20;|{{xr<75.5?&#x20;|{{xr<92.5?&#x20;|{{xr<999?&#x20;}}}}}}}}}}}}" ... профессионалов прошу адаптировать под нормальную формулу... :honoring:

Edited by Asulan

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.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...