Jump to content
Korean Random
Sign in to follow this  
Gorod

Настройка максимальной ширины "ушей"?

Recommended Posts

Подскажите пожалуйста.

Как настроить максимальную ширину поля "ушей".

То есть как сделать, что бы длинные ники игроков резались и не занимали пол экрана.

Заранее спасибо за ответ.

Share this post


Link to post

Short link
Share on other sites

Еще один вопрос.

Можно ли правые "уши" выравнять по левому краю?

То есть я внес следующее изменение:

"playersPanel": {

      "medium": {
            "formatLeft": "<font color='{{c:wn8}}'>{{nick%-.10s}}</font>",
            "formatRight": "<font color='{{c:wn8}}'>{{nick%-.10s}}</font>",
            "width": 10

      },

Но ники в правых "ушах" выравниваются по правому краю.

Edited by Gorod

Share this post


Link to post

Short link
Share on other sites

Metallist95, нет. Выравнивание для правых "ушей" по левому краю не работает.

Edited by Gorod

Share this post


Link to post

Short link
Share on other sites

Metallist95, к сожалению у меня не выходит аленький цветочек:

4bcec779327ct.jpg

Может быть подскажете что не так xvm.xc

Заранее спасибо)

Edited by Gorod

Share this post


Link to post

Short link
Share on other sites

@Gorod, без доп данных справа выровнять не получится, т. к. невозможно применить tabstops

Share this post


Link to post

Short link
Share on other sites

Metallist95, можно пример. Что нужно написать, что бы было как у вас?

Share this post


Link to post

Short link
Share on other sites

@Gorod, вы через цитирование хоть обращайтесь .. на тему то не подписан

 

попробуйте 

"medium": {
      "formatLeft": "<textformat leading='9' tabstops='[65,75]'><font face='Luicida Console' size='13' color='#FFFFFF'><font color='{{c:t-battles}}'>{{t-hb%2d~h|--h}} </font><font color='{{c:t-rating}}'>{{t-rating%2d~%|--%}}</font></font><tab>{{nick%-11.11s}}<tab> </textformat>",
      "formatRight": "<textformat leading='9' tabstops='[75]'>{{nick%-11.11s}}<tab><font face='Luicida Console' size='13' color='#FFFFFF'><font color='{{c:t-battles}}'>{{t-hb%2d~h|--h}} </font><font color='{{c:t-rating}}'>{{t-rating%2d~%|--%}}</font></font></textformat>",
      "width": 130
    },
  • Upvote 1

Share this post


Link to post

Short link
Share on other sites

, спасибо за помощь.

Пока решил сделать так:

"medium": {
     "formatLeft": "<textformat leading='9' tabstops='[25]'><font color='{{c:rating}}'>{{rating}}</font><tab><font color='{{c:wn8}}'>{{nick%-8.8s}}</font></textformat>",
     "formatRight": "<textformat leading='9' tabstops='[60]'><font color='{{c:wn8}}'>{{nick%-8.8s}}</font><tab><font color='{{c:rating}}'>{{rating}}</font></textformat>",
     "width": 8
 },

21681c19060at.jpg

Еще раз спасибочки)

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