Jump to content
Korean Random
Sign in to follow this  
Maver1ck

Изменить меркер над танком

Recommended Posts

В альтернативных маркерах по нажатию Alt выставил вместо HP отображение количества боёв, общий процент побед и выбранный рейтинг. Но на пестром заднем фоне игры данные плохо читабельны. Как оформить эти три значения в рамку с, например, чёрной заливкой?

markersAliveExtended.xc

Share this post


Link to post

Short link
Share on other sites

Можно добавить в секцию с "количества боёв, общий процент побед и выбранный рейтинг" параметр 

"bgColor": 0xCCCCCC

Или сделать еще одно поле с подложкой, разместив ее под этим полем.

Share this post


Link to post

Short link
Share on other sites

На внедрение bgColor'а редактор ругался, оформил, как мог, взяв кусок из блока карусели:

            {
              "alpha": 100,
              "textFormat": {"align": "center", "bold": false, "name": "$FieldFont", "size": 12},
              "format": "<font color='{{c:kb}}'>{{kb%2d~k}}</font> <font color='{{c:winrate}}'>{{winrate%2d~%}}</font> <font color='{{c:r}}'>{{r}}</font>",
              //"shadow": { "angle": 0, "color": "0x000000", "alpha": 100, "blur": 9, "strength": 9 },
              "enabled": true,
              "x": 0,
              "y": -20
            },
      { "x": 1, "y": -20, "layer": "substrate", "width": 70, "height": 14, "bgColor": "0x0A0A0A"},

Но получается чёрная полоска, поверх всего, хотя должна быть подо всем.

Перебор значений ничего не меняет. Как оформить подложку правильно?

shot_009.jpg

Edited by Maver1ck

Share this post


Link to post

Short link
Share on other sites
42 минуты назад, Maver1ck сказал:

Но получается чёрная полоска, поверх всего, хотя должна быть подо всем

Измените порядок секций, сначала секция с подложкой, затем секция с текстом. 

  • Upvote 1

Share this post


Link to post

Short link
Share on other sites
17 часов назад, ktulho сказал:

Измените порядок секций, сначала секция с подложкой, затем секция с текстом. 

Метод обратной сортировки, получается)

Благодарю. Всё получилось.

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