MICROB Posted January 9, 2016 Share Posted January 9, 2016 В сообщениях об окончании боя в чат сделал выравнивание текста по центру, но не могу додуматься как теперь сместить текст к левому краю с сохранением выравнивания по центру(как на скрине). Прошу помощи, заранее большое СПС battleChat.zip @ Quote Link to comment Short link Share on other sites More sharing options...
MadMaxNN Posted January 9, 2016 Share Posted January 9, 2016 Сделай просто выравнивание по левому краю и через таб стопы интервалы настрой и будет тебе счастье! Пример таб стопов (из хит лога xvm) <textformat leading='-4' tabstops='[50,90,190]'><font color='{{c:hp-ratio}}'> {{hp}}</font><tab><font color='#FFFFFF'>/ </font>{{hp-max}}<tab><font color='#FFFFFF'>|</font><font color='{{c:vtype}}'>{{vehicle}}</font><tab><font color='#FFFFFF'>|{{name%.15s~..}} <font alpha='#A0'>{{clan}}</font></font></textformat> @ Quote Link to comment Short link Share on other sites More sharing options...
Helkar Posted January 9, 2016 Share Posted January 9, 2016 <textformat> с атрибутом rightmargin? @ Quote Link to comment Short link Share on other sites More sharing options...
MICROB Posted January 9, 2016 Author Share Posted January 9, 2016 как то так margin-right='20%' ? @ Quote Link to comment Short link Share on other sites More sharing options...
Helkar Posted January 9, 2016 Share Posted January 9, 2016 как то так margin-right='20%' ? "resultWin": "<textformat rightmargin='100'>то что раньше было тут</textformat>", указываются пиксели, % не поддерживаются @ Quote Link to comment Short link Share on other sites More sharing options...
MICROB Posted January 9, 2016 Author Share Posted January 9, 2016 (edited) Спасибо -уже смотрится лучше ,но если делать отступ с права больше ,то длинное название карты (напр. Зимний Химмельсдорф ) может не поместиться в строке. Уже ради интереса ,на будущее хотелось бы узнать, может всё таки есть возможность сделать с начала строки(в инете ясного ответа не нашёл) Edited January 9, 2016 by MICROB @ Quote Link to comment Short link Share on other sites More sharing options...
Recommended Posts
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.