Jump to content
Korean Random
Sign in to follow this  
Kosminhotep

Players panel alignment

Recommended Posts

Hi. I've searched high and low, but couldn't find anything about this.

In playerspanel.xc I have this vehicle config for the large panels:

// Display format for player nickname (macros allowed, see readme-en.txt).
// Формат отображения имени игрока (допускаются макроподстановки, см. readme-ru.txt).
"nickFormatLeft": "<font alpha='{{alive?#FF|#80}}'><font face='Lucida Console' size='11'><font color='{{c:kb}}'>{{kb%2d~k|--k}}</font> <font color='{{c:wn8}}'>{{wn8%4d|----}}</font> <font color='{{c:rating}}'>{{rating%2d~%|--%}}</font></font> {{name%.12s~..}}<font alpha='#A0'>{{clan}}</font></font>",
"nickFormatRight": "<font alpha='{{alive?#FF|#80}}'>{{name%.12s~..}}<font alpha='#A0'>{{clan}}</font> <font face='Lucida Console' size='11'><font color='{{c:rating}}'>{{rating%2d~%|--%}}</font> <font color='{{c:wn8}}'>{{wn8%4d|----}}</font> <font color='{{c:kb}}'>{{kb%2d~k|--k}}</font></font></font>",
// Display format for vehicle name (macros allowed, see readme-en.txt).
// Формат отображения названия танка (допускаются макроподстановки, см. readme-ru.txt).
"vehicleFormatLeft": "<font alpha='{{alive?#FF|#80}}'><font color='{{c:t-rating}}'>{{vehicle}} <font face='Lucida Console' size='11'>{{t-rating%2d~%|--%}}</font></font></font>",
"vehicleFormatRight": "<font alpha='{{alive?#FF|#80}}'><font color='{{c:t-rating}}'><font face='Lucida Console' size='11'>{{t-rating%2d~%|--%}}</font> {{vehicle}}</font></font>",
// Display format for frags (macros allowed, see readme-en.txt).
// Формат отображения фрагов (допускаются макроподстановки, см. readme-ru.txt).
"fragsFormatLeft": "{{frags}}",
"fragsFormatRight": "{{frags}}",

which gives me:

 

LR5RpvI.jpg

 

The "nickFormatLeft" and "nickFormatRight" fields are aligned to left and right respectively.

"vehicleFormatLeft" and "vehicleFormatRight" are centered. How can I align them to the right and left?

Thanks in advance!

Share this post


Link to post

Short link
Share on other sites

I fiddled with this for almost a year... got it to align columns with ANY monospaced font. I use the stock font. Shows 0's when a stat isnt available.. here is the format from my Large Panel, maybe it will help you:

 

"large": {
      // Minimum width of the player's name column, 0-250. Default is 170.
      // ??????????? ?????? ????? ??????, 0-250. ?? ?????????: 170.
      "width": 200,
      // Display format for player nickname (macros allowed, see readme-en.txt).
      // ?????? ??????????? ????? ?????? (??????????? ????????????????, ??. readme-ru.txt).
      "nickFormatLeft": "<font color='{{c:wn8}}'>{{wn8%4.4d|0000}}</font> <font color='{{c:rating}}'>{{rating%2.2d~%|00%}}</font> <font color='{{c:kb}}'>{{kb%2.2d~k|00k}}</font> <font color='{{c:eff}}'>{{nick}}</font></font>",
      "nickFormatRight": "<font color='{{c:eff}}'>{{nick}}</font> <font color='{{c:wn8}}'>{{wn8%4.4d|0000}}</font> <font color='{{c:rating}}'>{{rating%2.2d~%|00%}}</font> <font color='{{c:kb}}'>{{kb%2.2d~k|00k}}</font>",
      // Display format for vehicle name (macros allowed, see readme-en.txt).
      // ?????? ??????????? ???????? ????? (??????????? ????????????????, ??. readme-ru.txt).
      "vehicleFormatLeft": "<font color='{{c:t-battles}}'>{{t-battles%4.4d|0000}}</font> <font color='{{c:t-rating}}'>{{t-rating%2.2d~%|00%}}</font>",
      "vehicleFormatRight": "<font color='{{c:t-rating}}'>{{t-rating%2.2d~%|00%}}</font> <font color='{{c:t-battles}}'>{{t-battles%4.4d|0000}}</font>",
      // Display format for frags (macros allowed, see readme-en.txt).
      // ?????? ??????????? ?????? (??????????? ????????????????, ??. readme-ru.txt).
      "fragsFormatLeft": "{{frags}}",
      "fragsFormatRight": "{{frags}}",

Share this post


Link to post

Short link
Share on other sites

Thanks, but that doesn't help me at all. Sure if it's all numbers, monospace and 4 digits it's aligned nicely.

But I want the vehicle name too, and the vehicleFormatLeft/Right are centered instead of aligned left/right like the nicks.

Align left/right in the font tag does nothing.

Can I use extra fields or something, can those be aligned?

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