seriych Posted April 20, 2014 Share Posted April 20, 2014 @sirmax, {{name%.9s~.}} - Длина вместе с суффиксом приводится к 8 символам, а не к 9, то есть сокращает на 1 символ больше, чем нужно. "sheptalaa" >> "sheptal." @ Quote Link to comment Short link Share on other sites More sharing options...
sirmax Posted April 20, 2014 Author Share Posted April 20, 2014 Например так - обрезаются длинные до указанного значения и в конце свой суффикс, а короткие дополнять пробелами до конца указанного значения. А в случае клана, его же может и не быть. Тогда поле пробелами заполнить. Все равно не понимаю @ Quote Link to comment Short link Share on other sites More sharing options...
seriych Posted April 20, 2014 Share Posted April 20, 2014 зачем в дефолте минус: {{name%-.16s~..}} @ Quote Link to comment Short link Share on other sites More sharing options...
sirmax Posted April 20, 2014 Author Share Posted April 20, 2014 @sirmax, {{name%.9s~.}} - Длина вместе с суффиксом приводится к 8 символам, а не к 9, то есть сокращает на 1 символ больше, чем нужно. "sheptalaa" >> "sheptal." исправил @ Quote Link to comment Short link Share on other sites More sharing options...
Ded_Shalfey Posted April 20, 2014 Share Posted April 20, 2014 (edited) Все равно не понимаю Я сам тоже). Разобрался уже, все нормально. Нужно просто так {{clannb%-.5s~.}}, тогда не будет дополняться короткие. И да обрезается до числа - 1 Edited April 20, 2014 by Ded_Shalfey @ Quote Link to comment Short link Share on other sites More sharing options...
sirmax Posted April 20, 2014 Author Share Posted April 20, 2014 зачем в дефолте минус: {{name%-.16s~..}} В данном случае не нужен, так как расширения поля не происходит, только обрезание. Если бы было расширение ({{name%-16.16s~..}}), то нужен для выравнивания влево. @ Quote Link to comment Short link Share on other sites More sharing options...
seriych Posted April 20, 2014 Share Posted April 20, 2014 @sirmax, *{{name%-11.7s~..}}*{{name%11.7s~..}}* не выводит суффикс: @ Quote Link to comment Short link Share on other sites More sharing options...
den11111 Posted April 20, 2014 Share Posted April 20, 2014 при стандартном кнофиге....левая часть наезжает @ Quote Link to comment Short link Share on other sites More sharing options...
seriych Posted April 20, 2014 Share Posted April 20, 2014 при стандартном кнофиге....левая часть наезжает там как-то так надо: "formatLeftVehicle": "{{vehicle}}<font face='Lucida Console' size='12'> <font color='{{c:kb}}'>{{kb%2d~k|--k}}</font> <font color='{{c:xwn8}}'>{{xwn8}}</font> <font color='{{c:rating}}'>{{rating%2d~%|--%}}</font></font>", "formatRightVehicle": "<font face='Lucida Console' size='12'><font color='{{c:rating}}'>{{rating%2d~%|--%}}</font> <font color='{{c:xwn8}}'>{{xwn8}}</font> <font color='{{c:kb}}'>{{kb%2d~k|--k}}</font> </font>{{vehicle}}" 1 @ Quote Link to comment Short link Share on other sites More sharing options...
sirmax Posted April 20, 2014 Author Share Posted April 20, 2014 @sirmax, *{{name%-11.7s~..}}*{{name%11.7s~..}}* не выводит суффикс: WorldOfTanks_2014_04_20_15_46_20_675.png %X.Y не имеет смысла для X > Y. @ Quote Link to comment Short link Share on other sites More sharing options...
den11111 Posted April 20, 2014 Share Posted April 20, 2014 seriych, ага спс вроде норм стало @ Quote Link to comment Short link Share on other sites More sharing options...
seriych Posted April 20, 2014 Share Posted April 20, 2014 %X.Y не имеет смысла для X > Y. то есть невозможно понять, сокращенная строка или нет, если мы применяем выравнивание строк? @ Quote Link to comment Short link Share on other sites More sharing options...
den11111 Posted April 20, 2014 Share Posted April 20, 2014 seriych. рано радовался..про загрузке и по табу тепер норм но просто в ушах бяка( @ Quote Link to comment Short link Share on other sites More sharing options...
sirmax Posted April 20, 2014 Author Share Posted April 20, 2014 то есть невозможно понять, сокращенная строка или нет, если мы применяем выравнивание строк?нет, просто в конце всегда будут пробелы на разницу X-Y. @ Quote Link to comment Short link Share on other sites More sharing options...
seriych Posted April 20, 2014 Share Posted April 20, 2014 Округление не работает. И без ведущего нуля не делается (или я не понял, как должно быть). "formatLeftVehicle": "<font face='Consolas' size='13'>|{{t-kb%.1f~k|.-k}}|{{t-kb%0.1f~k|-.-k}}|{{t-kb%3.01f~k|-.-k}}|{{t-hb%d~h|-h}}|{{t-battles%4d|----}}</font>", справа старые макросы, аналоги которых я хотел сделать. @ Quote Link to comment Short link Share on other sites More sharing options...
den11111 Posted April 20, 2014 Share Posted April 20, 2014 (edited) дел Edited April 20, 2014 by den11111 @ Quote Link to comment Short link Share on other sites More sharing options...
Ded_Shalfey Posted April 20, 2014 Share Posted April 20, 2014 (edited) И еще хитлог накрылся! И при перемотке назад в реплее, конфиг не перезагружается! Приходится каждый раз перезапускать! Что очень неудобно! +Еще размер ушей не регулируется! Широкие точно не меняют размер! Другие не проверял! Edited April 20, 2014 by Ded_Shalfey @ Quote Link to comment Short link Share on other sites More sharing options...
den11111 Posted April 20, 2014 Share Posted April 20, 2014 парни ну подскажите как добавить проценты..всю голову сломал..что-то подсказывает что конфиг устаревший... ..кого не затруднит выложить нормальный http://rghost.ru/54435815 3 @ Quote Link to comment Short link Share on other sites More sharing options...
seriych Posted April 20, 2014 Share Posted April 20, 2014 (edited) сбацал скрипт для замены старых макросов на новые.Выделено в отдельную тему: http://www.koreanrandom.com/forum/topic/14583-скрипт-для-автоматической-замены-макросов-под/ Edited April 20, 2014 by seriych 8 @ Quote Link to comment Short link Share on other sites More sharing options...
demon2597 Posted April 20, 2014 Share Posted April 20, 2014 (edited) сбацал скрипт "Вы достигли своего дневного лимита положительного изменения рейтинга." А это чего такое в дефолте появилось: "formatRightNick": "{{name%.20s~..}}<font alpha='#A0'>{{clan}}</font>",? Edited April 20, 2014 by demon2597 @ 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.