HEKPOMAHT 2,158 #482704 Posted May 20, 2020 https://koreanrandom.com/forum/topic/38120-19-/#aimingSystem 5 Quote Share this post Link to post Short link Share on other sites
ktulho 5,780 #485878 Posted July 26, 2020 Обновлен скрипт и конфигурационный файл. Изменения: в макросы {{py:bst.leftTime(index)}} и {{py:bst.leftTimeCR(index)}} подставляются единицы измерения из секции "unit" файла boosters.xc //Единицы измерений для макросов {{py:bst.leftTime(index)}} и {{py:bst.leftTimeCR(index)}} "unit":{ "hour": "ч", "minute": "м" } 1 Quote Share this post Link to post Short link Share on other sites
HEKPOMAHT 2,158 #485881 Posted July 26, 2020 1 час назад, ktulho сказал: Обновлен скрипт нужно чтоб пусто для часов возвращал, если осталось меньше часа. 0ч 50м -> 50м Quote Share this post Link to post Short link Share on other sites
Slava7572 1,685 #485885 Posted July 26, 2020 2 часа назад, HEKPOMAHT сказал: чтоб пусто для часов возвращал, если осталось меньше часа разве у тебя не такМой скрипт немного другой просто,но в плане секунд...насколько я помню. Quote Share this post Link to post Short link Share on other sites
ktulho 5,780 #485901 Posted July 27, 2020 17 часов назад, HEKPOMAHT сказал: нужно чтоб пусто для часов возвращал, если осталось меньше часа. 0ч 50м -> 50м Обновил скрипт. 3 Quote Share this post Link to post Short link Share on other sites
HEKPOMAHT 2,158 #485924 Posted July 27, 2020 9 часов назад, ktulho сказал: Обновил скрипт. Quote Share this post Link to post Short link Share on other sites
AtotIK 580 #486022 Posted July 30, 2020 27.07.2020 в 09:27, ktulho сказал: Обновил скрипт. Привет. Обновил скрипт. Но почему-то перестало отображать оставшееся время в ангаре при помощи bst.leftTimeMin и bst.leftTimeHrMin. Или использовать bst.leftTime везде? "boosterTime": { "enabled": true, "layer": "normal", "type": "extrafield", "formats": [ { "updateEvent": "ON_EVERY_SECOND", "screenHAlign": "left", "x": 390, "y": 215, "width": 400, "height": 60, "alpha": 75, "textFormat": { "color": "0xF9F1BC", "bold": "true", "size": 15}, "format": "<textformat tabstops='[68,137]' leading='-9'><font color='{{py:bst.leftTimeMin(1)<11?#FFB841|}}'>{{py:bst.leftTimeHrMin(1)}}</font><tab><font color='{{py:bst.leftTimeMin(2)<11?#FFB841|}}'>{{py:bst.leftTimeHrMin(2)}}</font><tab><font color='{{py:bst.leftTimeMin(3)<11?#FFB841|}}'>{{py:bst.leftTimeHrMin(3)}}</font></textformat>" } ] } Quote Share this post Link to post Short link Share on other sites
ktulho 5,780 #486024 Posted July 30, 2020 7 минут назад, AtotIK сказал: bst.leftTimeHrMin В моем скрипте нет такого макроса. Можете оставить свой старый скрипт, там ни чего не ломалось. 1 Quote Share this post Link to post Short link Share on other sites
AtotIK 580 #486025 Posted July 30, 2020 14 минут назад, ktulho сказал: В моем скрипте нет такого макроса. Можете оставить свой старый скрипт, там ни чего не ломалось. Понял. Заменил всё на bst.leftTime. Работает вроде как надо. Спасибо за помощь! Quote Share this post Link to post Short link Share on other sites
HEKPOMAHT 2,158 #486054 Posted July 31, 2020 26.07.2020 в 13:47, ktulho сказал: Обновлен скрипт и конфигурационный файл. 41 минуту назад, Szulson сказал: Thx... Quote Share this post Link to post Short link Share on other sites
AtotIK 580 #486193 Posted August 3, 2020 @ktulho можешь помочь с конфигом? Когда три резерва активированы, то всё прекрасно отображается. А когда один иди два - время не отображается. "boostersTime": { "enabled": true, "layer": "bottom", "type": "extrafield", "updateEvent": "ON_EVERY_SECOND", "x": "{{{{py:sub({{py:xvm.screenWidth}},225)}}}}", "y": 15, "width": 500, "height": 200, "textFormat": {"align": "left", "bold": "true", "color": "0x{{py:bst.leftTime(0)<16?F5A00F|A3F5FE}}", "size": 14}, "shadow": {"enabled": true, "distance": 0, "angle": 0, "color": "0x000000", "alpha": 70, "blur": 4, "strength": 2}, "format": "<textformat tabstops='[100,155]' leading='-17'><img src='{{py:bst.countBoosters>0?img://gui/maps/icons/boosters/activeBoosterIcon.png|}}' width='42' height='42' vspace='-8'><img src='xvm://res/icons/boosters/{{py:bst.type(1)}}{{py:bst.leftTime(1)<16?_big|_tt_big}}.png' width='42' height='42' vspace='-6'>\t<img src='xvm://res/icons/boosters/{{py:bst.type(2)}}{{py:bst.leftTime(2)<16?_big|_tt_big}}.png' width='42' height='42' vspace='-6'>\t<img src='xvm://res/icons/boosters/{{py:bst.type(3)}}{{py:bst.leftTime(3)<16?_big|_tt_big}}.png' width='42' height='42' vspace='-6'></textformat>\n<textformat tabstops='[65,120,175]' leading='-6'>\t<font color='{{py:bst.leftTime(1)<16?#F5A00F|#A3F5FE}}'>{{py:bst.leftTime(1)}}</font>\t<font color='{{py:bst.leftTime(2)<16?#F5A00F|#A3F5FE}}'>{{py:bst.leftTime(2)}}</font>\t<font color='{{py:bst.leftTime(3)<16?#F5A00F|#A3F5FE}}'>{{py:bst.leftTime(3)}}</font></textformat>" } Подключаю через battleLabels.xc. Вот как надо: Вот как отображает с 1-2: Quote Share this post Link to post Short link Share on other sites
ktulho 5,780 #486195 Posted August 3, 2020 (edited) Ну проще всего сделать отдельные поля для иконок и для времени. Edited August 3, 2020 by ktulho 1 Quote Share this post Link to post Short link Share on other sites
AtotIK 580 #486271 Posted August 4, 2020 22 часа назад, ktulho сказал: Ну проще всего сделать отдельные поля для иконок и для времени. Спасибо за подсказку. Quote Share this post Link to post Short link Share on other sites
Aslain 399 #487867 Posted August 26, 2020 @ktulho Is it possible for this script to display clan reserves at hangar as well? Quote Share this post Link to post Short link Share on other sites
night_dragon_on 5,601 #487868 Posted August 26, 2020 30.09.2017 в 01:44, ktulho сказал: Макросы: Для клановых резервов: Quote Share this post Link to post Short link Share on other sites
Slava7572 1,685 #487883 Posted August 26, 2020 4 часа назад, Aslain сказал: @ktulho Is it possible for this script to display clan reserves at hangar as well? these are just clan reserves macro with prefix CR 1 Quote Share this post Link to post Short link Share on other sites
zimpixa 0 #490342 Posted October 5, 2020 I think that displaying personal boosters in battle stoped working. Macro {{py:bst.countBoosters}} returns 0 (in hangar works perfect). Can someone verify it's not issue with my config and hopefully repair it? Quote Share this post Link to post Short link Share on other sites
Slava7572 1,685 #490345 Posted October 5, 2020 29 минут назад, zimpixa сказал: Can someone verify it's not issue with my config и как мы должны это сделать,ментально Quote Share this post Link to post Short link Share on other sites
ktulho 5,780 #490348 Posted October 5, 2020 @zimpixa attach config. Quote Share this post Link to post Short link Share on other sites
zimpixa 0 #490356 Posted October 5, 2020 1 hour ago, Slava7572 said: и как мы должны это сделать,ментально Check if on your config everything works 1 hour ago, ktulho said: @zimpixa attach config. If any additional files needed let me know. Im using boosters.py from few months ago (with additional methods) but also tried freshly downloaded boosters.py from first post (here named boosters.py.new) Tried adding {{py:bst.countBoosters}} in boosterCR just to show value, then it returned 0 battleLabelsTemplates.xc boosters.py boosters.py.new Quote Share this post Link to post Short link Share on other sites