Jump to content
Korean Random

Выравнивание по-умолчанию текста в экстра-полях правого "уха"


Kapany3uk

Recommended Posts

Некорректно ведет себя выравнивание в экстра-полях противника:

судя по описанию в playersPanel.xc должно быть так

 *   "align" - horizontal alignment ("left", "center", "right")
 *      for left panel default value is "left"
 *      for right panel default value is "right"

и так было до этого патча.

 

Сейчас при записи так

  // Фон полосы здоровья
  "hpBg": {
    "hotKeyCode": 56,
    "layer": "top",
    "x": 1, "y": 10, "alpha": "{{alive?50|0}}", "bgColor": "0x000000",
    "height": 14, "width": 72
  },
  // Динамическая полоса здоровья
  "hpBar": {
    "hotKeyCode": 56,
    "layer": "top",
    "x": 2, "y": 11, "alpha": "{{alive?45|0}}", "bgColor": "{{c:system}}",
    "height": 12, "width": "{{hp-ratio:70}}"
  },

и так

  // Оставшееся ХП
  "hp": {
    "hotKeyCode": 56,
    "layer": "top",
    "x": 10, "y": 8, "alpha": "{{alive?100|0}}",
    "width": 70,
    "shadow": { "blur": 4, "strength": 1 },
    "format": "<font size='11'><b>{{hp|----}} /<font size='6'> </font>{{hp-ratio~%|----}}</b></font>"
  },

полоса с подложкой отображаются как им и положено (на 1 и 2 рх от правого края экрана, а вот текст в левой панели ведет себя так же адекватно :)), а в правой "уезжает" к центру экрана.

post-24956-0-29199100-1470698160.jpg

 

Link to comment
Short link
Share on other sites

Я прописывал сам выравнивание по левому краю. 

ea7e67941112.jpg
"mediumFieldsRight": {
    "enabled": true,
    "x": 28, "y": 0, "alpha": "{{alive?#FF|#80}}", "align": "right",
    "format": "<textformat leading='8' tabstops='[32]'><font size='13' face='Comic Sans MS'><font color='{{c:winrate}}'><b>{{name%-9.9s}}</b></font><font face='Consolas' color='{{topclan?#02C9B3|#FFCC66}}'>{{clan%-7.7s}}</font></font><tab><font face='mono' size='15' color='{{c:wn8}}'><b>{{wn8%4d|----}}</b></font></textformat>",
	"shadow": { "enabled": true, "color": "0x000000", "alpha": 35, "blur": 3, "strength": 2.5 }
  }, 

 

Без него было так:

402d7b0fbd2e.jpg

Т.е. подтверждается.

Только в экстраполях,в обычных все нормально.

Link to comment
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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...