ktulho Posted November 2, 2017 Author Share Posted November 2, 2017 Так не работает? "screenVAlign": "bottom", @ Quote Link to comment Short link Share on other sites More sharing options...
steaxch Posted November 2, 2017 Share Posted November 2, 2017 28 минут назад, Xotabych сказал: Как можно привязать координаты к левому нижнему углу в ангаре, а не так как сейчас идет отсчет с лева с верху? 23 минуты назад, ktulho сказал: Так не работает? "screenVAlign": "bottom", еще так можно "y": "{{py:sub({{py:xvm.screenHeight}} , 325)}}", где 325 необходимый отступ от нижнего края @ Quote Link to comment Short link Share on other sites More sharing options...
HEKPOMAHT Posted November 2, 2017 Share Posted November 2, 2017 33 минуты назад, Xotabych сказал: Как можно привязать координаты к левому нижнему углу в ангаре, а не так как сейчас идет отсчет с лева с верху? "screenVAlign" : "bottom" // вертикальное выравнивание поля на экране ("top" [по-умолчанию], "center", "bottom") @ Quote Link to comment Short link Share on other sites More sharing options...
Xotabych Posted November 2, 2017 Share Posted November 2, 2017 21 час назад, Kaeptn сказал: maybe add an option to hide the default boost timer/icon? Это реализовать возможно? 26 минут назад, steaxch сказал: еще так можно "y": "{{py:sub({{py:xvm.screenHeight}} , 325)}}", где 325 необходимый отступ от нижнего края Спасибо. @ Quote Link to comment Short link Share on other sites More sharing options...
ktulho Posted November 3, 2017 Author Share Posted November 3, 2017 В 01.11.2017 в 14:16, Kaeptn сказал: maybe add an option to hide the default boost timer/icon? Добавил: //true - скрыть иконку и время активных резервов "hideActiveBooster": "false", 2 @ Quote Link to comment Short link Share on other sites More sharing options...
Slava7572 Posted November 3, 2017 Share Posted November 3, 2017 В 29.09.2017 в 23:44, ktulho сказал: В файл hangar.xc в секцию "hangar" добавить: //true - скрыть иконку и время активных резервов "hideActiveBooster": "false", Скорее всего так должно быть "hideActiveBooster": false,без кавычек false,не? 1 @ Quote Link to comment Short link Share on other sites More sharing options...
ktulho Posted November 3, 2017 Author Share Posted November 3, 2017 (edited) И так, и так вроде можно. Edited November 4, 2017 by ktulho @ Quote Link to comment Short link Share on other sites More sharing options...
Slava7572 Posted November 3, 2017 Share Posted November 3, 2017 3 минуты назад, ktulho сказал: И так, и так вроде можно. Ок,понятно,просто остальное без кавычек там,решил переспросить. // true - включить замок для золота "enableGoldLocker": true, // true - enable locker for free XP // true - включить замок для свободного опыта "enableFreeXpLocker": true, //true - скрыть иконку и время активных резервов "hideActiveBooster": false, @ Quote Link to comment Short link Share on other sites More sharing options...
Kaeptn Posted November 3, 2017 Share Posted November 3, 2017 (edited) 2 часа назад, ktulho сказал: And so, and so it seems possible. thanks man. much appreciated Edited November 3, 2017 by Kaeptn @ Quote Link to comment Short link Share on other sites More sharing options...
ktulho Posted November 3, 2017 Author Share Posted November 3, 2017 В 02.11.2017 в 09:39, steaxch сказал: как в конфиге прописать ссылки на картинки, чтобы текст заменить, как у интуриста в сообщение выше? Добавил макрос: {{py:bst.type(index)}} - тип активных резервов. Может возвращать одно из следующих значений: booster_gold, booster_credits, booster_xp, booster_crew_xp, booster_free_xp, None. Параметр index - номер активного резерва от 1 до 3. 2 @ Quote Link to comment Short link Share on other sites More sharing options...
steaxch Posted November 3, 2017 Share Posted November 3, 2017 3 часа назад, ktulho сказал: Добавил макрос: {{py:bst.type(index)}} - тип активных резервов. Может возвращать одно из следующих значений: booster_gold, booster_credits, booster_xp, booster_crew_xp, booster_free_xp, None. Параметр index - номер активного резерва от 1 до 3. не пойму где туплю, не отдает иконку, просто название название значения выводит booster_xp "booster": { "enabled": true, "layer": "top", "type": "extrafield", "formats": [ { "updateEvent": "ON_EVERY_SECOND", "x": 330, "y": 0, "width": 400, "height": 80, "textFormat": { "color": "0xA8A888", "size": 12}, "format": "<textformat tabstops='[50]'>{{py:bst.type(1)}}<tab>{{py:bst.leftTime(1)}}</textformat>\n<textformat tabstops='[50]'>{{py:bst.type(2)}}<tab>{{py:bst.leftTime(2)}}</textformat>\n<textformat tabstops='[50]'>{{py:bst.type(3)}}<tab>{{py:bst.leftTime(3)}}</textformat>" } ] }, @ Quote Link to comment Short link Share on other sites More sharing options...
ktulho Posted November 3, 2017 Author Share Posted November 3, 2017 Так этот макрос и не отдаёт иконки, он отдаёт текст, который можно использовать для отображения иконок, своего текста или ещё чего-нибудь. @ Quote Link to comment Short link Share on other sites More sharing options...
Slava7572 Posted November 3, 2017 Share Posted November 3, 2017 47 минут назад, steaxch сказал: не отдает иконку, просто название название значения выводит booster_xp Иконки в boosters.xc цепляются.Что то типа такого. { "boosters":{ // Текст для макроса {{py:bst.name(index)}} "boostersName":{ "gold": "<img src='xvm://res/icons/other/booster_credits_small_bw.png' width='20' height='11' align='baseline' vspace='-1'> Золото:", "credits": "<img src='xvm://res/icons/other/booster_credits_small_bw.png' width='20' height='11' align='baseline' vspace='-1'> Серебро:", "xp": "<img src='xvm://res/icons/other/booster_xp_small_bw.png' width='20' height='11' align='baseline' vspace='-1'> Опыт танка:", "crew_xp": "<img src='xvm://res/icons/other/booster_crew_xp_small_bw.png' width='20' height='11' align='baseline' vspace='-1'> Опыт экипажа:", "free_xp": "<img src='xvm://res/icons/other/booster_free_xp_small_bw.png' width='20' height='11' align='baseline' vspace='-1'> Свободный опыт:" } } } Можно родные прицепить(img://gui/maps/icons/boosters/booster_crew_xp_small_bw.png к примеру),но у меня не получилось их выровнять нормально и они большие,все три строки не вмещались наверх ангара,там такой отступ затененный. @ Quote Link to comment Short link Share on other sites More sharing options...
Kaeptn Posted November 3, 2017 Share Posted November 3, 2017 or like this: "format": "<textformat tabstops='[110, 220]'><img src='img://gui/maps/icons/boosters/{{py:bst.type(1)}}.png' vspace='-8'>{{py:bst.leftTime(1)}}<tab><img src='img://gui/maps/icons/boosters/{{py:bst.type(2)}}.png' vspace='-8'>{{py:bst.leftTime(2)}}<tab><img src='img://gui/maps/icons/boosters/{{py:bst.type(3)}}.png' vspace='-8'>{{py:bst.leftTime(3)}}</textformat>" @ktulho "hideActiveBooster": true, doesn't hide the icon for me (7.2.3 dev). python.log xvm.log 1 @ Quote Link to comment Short link Share on other sites More sharing options...
ktulho Posted November 4, 2017 Author Share Posted November 4, 2017 14 часа назад, Slava7572 сказал: Скорее всего так должно быть "hideActiveBooster": false,без кавычек false,не? Да, все таки в кавычках не работает. 5 часов назад, Kaeptn сказал: doesn't hide the icon for me fix @ Quote Link to comment Short link Share on other sites More sharing options...
steaxch Posted November 4, 2017 Share Posted November 4, 2017 (edited) В 04.11.2017 в 00:38, ktulho сказал: Так этот макрос и не отдаёт иконки, он отдаёт текст, который можно использовать для отображения иконок, своего текста или ещё чего-нибудь. я уже понял, вчера просто второпях глянул макрос, увидел вот это 'booster_credits': 'booster_credits_small_bw' подумал это название иконок и будет автоматом отдавать. ЗЫ. как сделать чтобы например при 10 и меньше минутах менялся цвет таймера? В 04.11.2017 в 00:47, Slava7572 сказал: Иконки в boosters.xc цепляются.Что то типа такого. Показать содержимое { "boosters":{ // Текст для макроса {{py:bst.name(index)}} "boostersName":{ "gold": "<img src='xvm://res/icons/other/booster_credits_small_bw.png' width='20' height='11' align='baseline' vspace='-1'> Золото:", "credits": "<img src='xvm://res/icons/other/booster_credits_small_bw.png' width='20' height='11' align='baseline' vspace='-1'> Серебро:", "xp": "<img src='xvm://res/icons/other/booster_xp_small_bw.png' width='20' height='11' align='baseline' vspace='-1'> Опыт танка:", "crew_xp": "<img src='xvm://res/icons/other/booster_crew_xp_small_bw.png' width='20' height='11' align='baseline' vspace='-1'> Опыт экипажа:", "free_xp": "<img src='xvm://res/icons/other/booster_free_xp_small_bw.png' width='20' height='11' align='baseline' vspace='-1'> Свободный опыт:" } } } Можно родные прицепить(img://gui/maps/icons/boosters/booster_crew_xp_small_bw.png к примеру),но у меня не получилось их выровнять нормально и они большие,все три строки не вмещались наверх ангара,там такой отступ затененный. я так сделал: // Таймер активных резервов "booster": { "enabled": true, "layer": "top", "type": "extrafield", "formats": [ { "updateEvent": "ON_EVERY_SECOND", "x": 300, "y": -5, "width": 100, "height": 80, "alpha": 80, "textFormat": { "color": "0xF9F1BC", "bold": "true", "size": 12}, "format": "<textformat tabstops='[32]' leading='-7'><img src='img://gui/maps/icons/boosters/{{py:bst.type(1)}}_small_bw.png' width='24' height='24' vspace='-8'><tab>{{py:bst.leftTime(1)}}</textformat>\n<textformat tabstops='[32]' leading='-7'><img src='img://gui/maps/icons/boosters/{{py:bst.type(2)}}_small_bw.png' width='24' height='24' vspace='-8'><tab>{{py:bst.leftTime(2)}}</textformat>\n<textformat tabstops='[32]' leading='-7'><img src='img://gui/maps/icons/boosters/{{py:bst.type(3)}}_small_bw.png' width='24' height='24' vspace='-8'><tab>{{py:bst.leftTime(3)}}</textformat>" } ] }, иконки на опыт и экипаж правда получаются немного сплюснутые с боков, но терпимо, можно конечно повытыркиваться и сделать нормально. Edited November 7, 2017 by steaxch @ Quote Link to comment Short link Share on other sites More sharing options...
Slava7572 Posted November 4, 2017 Share Posted November 4, 2017 1 час назад, steaxch сказал: я уже понял, вчера просто второпях глянул макрос, увидел вот это 'booster_credits': 'booster_credits_small_bw' подумал это название иконок и будет автоматом отдавать. ЗЫ. как сделать чтобы например при 10 и меньше минутах менялся цвет таймера? я так сделал: // Таймер активных резервов "booster": { "enabled": true, "layer": "top", "type": "extrafield", "formats": [ { "updateEvent": "ON_EVERY_SECOND", "x": 300, "y": -5, "width": 100, "height": 80, "alpha": 80, "textFormat": { "color": "0xF9F1BC", "bold": "true", "size": 12}, "format": "<textformat tabstops='[32]' leading='-7'><img src='img://gui/maps/icons/boosters/{{py:bst.type(1)}}_small_bw.png' width='24' height='24' vspace='-8'><tab>{{py:bst.leftTime(1)}}</textformat>\n<textformat tabstops='[32]' leading='-7'><img src='img://gui/maps/icons/boosters/{{py:bst.type(2)}}_small_bw.png' width='24' height='24' vspace='-8'><tab>{{py:bst.leftTime(2)}}</textformat>\n<textformat tabstops='[32]' leading='-7'><img src='img://gui/maps/icons/boosters/{{py:bst.type(3)}}_small_bw.png' width='24' height='24' vspace='-8'><tab>{{py:bst.leftTime(3)}}</textformat>" } ] }, иконки на опыт и экипаж правда получаются немного сплюснутые с боков, но терпимо, можно конечно повытыркиваться и сделать нормально. Может быть проблема с расположением когда будет базовый ангар,вот эта граница после надписи "Премиум:4дня" не фиксированная,т.е. когда прем кончится.то граница передвинется,не помню правда влево или вправо.Просто чтоб знал об этой особенности,у меня наложение было)) @ Quote Link to comment Short link Share on other sites More sharing options...
Kaeptn Posted November 4, 2017 Share Posted November 4, 2017 can we also have clan boost display vie this script? especially in hangar i find it quite stupid that i have to load the stronghold interface to see the duration. 2 @ Quote Link to comment Short link Share on other sites More sharing options...
steaxch Posted November 4, 2017 Share Posted November 4, 2017 22 часа назад, Slava7572 сказал: Показать содержимое { "boosters":{ // Текст для макроса {{py:bst.name(index)}} "boostersName":{ "gold": "<img src='xvm://res/icons/other/booster_credits_small_bw.png' width='20' height='11' align='baseline' vspace='-1'> Золото:", "credits": "<img src='xvm://res/icons/other/booster_credits_small_bw.png' width='20' height='11' align='baseline' vspace='-1'> Серебро:", "xp": "<img src='xvm://res/icons/other/booster_xp_small_bw.png' width='20' height='11' align='baseline' vspace='-1'> Опыт танка:", "crew_xp": "<img src='xvm://res/icons/other/booster_crew_xp_small_bw.png' width='20' height='11' align='baseline' vspace='-1'> Опыт экипажа:", "free_xp": "<img src='xvm://res/icons/other/booster_free_xp_small_bw.png' width='20' height='11' align='baseline' vspace='-1'> Свободный опыт:" } } } Можно родные прицепить(img://gui/maps/icons/boosters/booster_crew_xp_small_bw.png к примеру),но у меня не получилось их выровнять нормально и они большие,все три строки не вмещались наверх ангара,там такой отступ затененный. выровнял родные в widgetsTemplates.xc // Таймер активных резервов "booster": { "enabled": true, "layer": "top", "type": "extrafield", "formats": [ { "updateEvent": "ON_EVERY_SECOND", "x": 370, "y": 0, "width": 100, "height": 80, "alpha": 80, "textFormat": { "align": "left", "color": "0xF9F1BC", "bold": "true", "size": 13}, "format": "<textformat tabstops='[36]' leading='-8'>{{py:bst.name(1)}}<tab>{{py:bst.leftTime(1)}}</textformat>\n<textformat tabstops='[36]' leading='-8'>{{py:bst.name(2)}}<tab>{{py:bst.leftTime(2)}}</textformat>\n<textformat tabstops='[36]' >{{py:bst.name(3)}}<tab>{{py:bst.leftTime(3)}}</textformat>" } ] } в boosters.xc { "boosters":{ //Текст для макроса {{py:bst.name(index)}} "boostersName":{ "gold": "Дополнительное золото", "credits": "<img src='img://gui/maps/icons/boosters/booster_credits_small_bw.png' width='24' height='24' vspace='-8'>", "xp": "<img src='img://gui/maps/icons/boosters/booster_xp_small_bw.png' width='34' height='24' vspace='-8'>", "crew_xp": "<img src='img://gui/maps/icons/boosters/booster_crew_xp_small_bw.png' width='26' height='24' vspace='-8'>", "free_xp": "<img src='img://gui/maps/icons/boosters/booster_free_xp_small_bw.png' width='24' height='24' vspace='-8'>" } } } 2 @ Quote Link to comment Short link Share on other sites More sharing options...
ktulho Posted November 6, 2017 Author Share Posted November 6, 2017 В 04.11.2017 в 14:33, steaxch сказал: ЗЫ. как сделать чтобы например при 10 и меньше минутах менялся цвет таймера? Добавил макрос: {{py:bst.leftTimeMin(index)}} - оставшееся время действия активного резерва в минутах. Параметр index - номер активного резерва от 1 до 3. 3 @ 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.