eug.ramires Posted October 7, 2022 Share Posted October 7, 2022 Просьба подсказать и ли сбросить файлы конфигурации XVM необходимые для работы скрипта infoPremium.py @ Quote Link to comment Short link Share on other sites More sharing options...
HEKPOMAHT Posted October 10, 2022 Share Posted October 10, 2022 08.10.2022 в 00:56, eug.ramires сказал: Просьба подсказать и ли сбросить файлы конфигурации XVM необходимые для работы скрипта infoPremium.py это лучше в профильной теме спрашивать Вот нашёл какой-то образец: 10.06.2020 в 17:08, SEREGA_SF сказал: Такой пойдет? В widgets.xc дописать ${ "widgetsTemplates.xc":"premium" } В widgetsTemplates.xc добавить код: "premium": { "enabled": true, "layer": "top", "type": "extrafield", "formats": [ { // картинка. "x": -356.5, "y": 5, "alpha": 70, "width": 63, "height": 40, "screenHAlign": "center", "format": "<img src='xvm://res/icons/bcPremium.png'>" }, { "updateEvent": "PY(ON_INFO_PREMIUM)", "x": -357, "y": -10, "width": 200, "height": 75, "screenHAlign": "center", "textFormat": { "align": "center", "valign": "center" }, "format": "<font face='$FieldFont' size='14' color={{py:prem.timeLeftDays>0?'#FFCC00'|'#FF0000'}}>{{py:prem.timeLeft? <font size='16'><b>{{py:prem.timeLeft}}</b></font> | <font color='#FFCC00''>базовый</font>}}</font>" } ] } В \World_of_Tanks\res_mods\mods\shared_resources\xvm\res\icons закинуть иконку Только координаты настраивай под себя отдельно, я их под себя подгонял @ 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.