Jump to content
Korean Random
Sign in to follow this  
eug.ramires

Помогите настроить работу аддона Premium аккаунт -скрипт infoPremium.py

Recommended Posts

Просьба подсказать и ли сбросить файлы конфигурации XVM  необходимые для работы скрипта infoPremium.py

Share this post


Link to post

Short link
Share on other sites
08.10.2022 в 00:56, eug.ramires сказал:

Просьба подсказать и ли сбросить файлы конфигурации XVM  необходимые для работы скрипта infoPremium.py

это лучше в профильной теме спрашивать :hmm:

 

 Вот нашёл какой-то образец:

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 закинуть иконку

bcPremium.png.be1a570695361f85380b9ec13ab7f3e0.png

 

Только координаты настраивай под себя отдельно, я их под себя подгонял

 

Share this post


Link to post

Short link
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...