Jump to content
Korean Random

BattleTimer средствами XVM.


Recommended Posts

sorry english how do I hide original counter  I have tried 2 methods

 

 "battleTimer": { "$delay": 100, "alpha": 0 },

 

or

 

"battleTimer": { "y": -30 } 

 

 

neither seems to work,  last one worked earlier, but timer was seen sometimes in replays, now I cant get it working at all, so I have double counter

Link to comment
Short link
Share on other sites

11 минут назад, Andyss сказал:

sorry english how do I hide original counter  I have tried 2 methods

 

 "battleTimer": { "$delay": 100, "alpha": 0 },

 

or

 

"battleTimer": { "y": -30 } 

 

 

neither seems to work,  last one worked earlier, but timer was seen sometimes in replays, now I cant get it working at all, so I have double counter

 It works fine for me:

elements.xc

"elements": [
    { "$delay": 100,
        "battleTimer":                    { "y": -30 }

    }

It's strange that it does not work for you, maybe where is the error in elements.xc?

 

Edited by Slava7572
Link to comment
Short link
Share on other sites

@Andyss 
"battleTimer": { "$delay": 100, "alpha": 0 } works fine.
Like Slava7572 said, there must be issue inside elements.xc

{
  "elements": [
    {
    "battleTimer": { "$delay": 100, "alpha": 0 },
    "debugPanel": { "$delay": 100, "alpha": 0 },
    "epicRandomScorePanel": { "alpha": 0 },
    "fragCorrelationBar": { "alpha": 0 },
    "prebattleTimer": { "$delay": 100, "alpha": 0 },
    "questProgressTopAnimContainer": { "$interval": 1000, "x": "{{py:sub({{py:xvm.screenWidth}},450)}}", "y": 27 },
    "questProgressTopView" :  { "$interval": 1000, "x": "{{py:sub({{py:xvm.screenWidth}},450)}}", "y": 27 }
    }
 ]
}

Make sure you separate them correctly or post your elements.xc

Link to comment
Short link
Share on other sites

3 часа назад, Andyss сказал:

this is my latest  try  elements  file , is there something wrong? just tested this with replay and there is double timer,

 

Edited by HEKPOMAHT
✂ удаление вложений
Link to comment
Short link
Share on other sites

18 минут назад, Andyss сказал:

sorry I dont understand, what does that mean? need to add something?

- это лишний символ. Его нужно удалять из кода!

368642491_--(30).thumb.png.f08ff87088f4e494e671774aa854a92e.png

----

тут готовый elements.xc . Скопировать с заменой в свой конфиг.

Link to comment
Short link
Share on other sites

  • 2 months later...

prebattleTimer.gif.d9180c42445042596d79c94d52bd5ab5.gif

 

Таймер до начала боя

был в ранних версиях игры

 

1) копируем скрипты в C:\Games\World_of_Tanks\res_mods\configs\xvm\py_macro

 

2) добавляем RU или EN блок в battleLabelsTemplates.xc 

RU:

"prebattleTimer": {
  "enabled": true,
  "updateEvent": "PY(ON_BATTLE_TIMER), PY(ON_BEGIN_BATTLE)",
  "x": 0, "y": 120, "width": 400, "height": 130, "screenHAlign": "center",
  "shadow": { "alpha": 45, "angle": 90, "blur": 4, "color": "0x000000", "distance": 1, "strength": 1.5 },
  "textFormat": { "align": "center", "color": "0xFFFFFF", "font": "$FieldFont", "size": 51 },
  "format": "{{py:isBattle? |<font size='35'>{{py:xvm.secondsBT=0?Бой начинается!|{{py:xvm.secondsBT>0?До начала боя:|Ожидание игроков...}}</font>\n{{py:xvm.minutesBT%02d~:}}{{py:xvm.secondsBT%02d}}}}}}"
},

EN:

"prebattleTimer": {
  "enabled": true,
  "updateEvent": "PY(ON_BATTLE_TIMER), PY(ON_BEGIN_BATTLE)",
  "x": 0, "y": 120, "width": 400, "height": 130, "screenHAlign": "center",
  "shadow": { "alpha": 45, "angle": 90, "blur": 4, "color": "0x000000", "distance": 1, "strength": 1.5 },
  "textFormat": { "align": "center", "color": "0xFFFFFF", "font": "$FieldFont", "size": 51 },
  "format": "{{py:isBattle? |<font size='35'>{{py:xvm.secondsBT=0?Battle starts!|{{py:xvm.secondsBT>0?Battle starts in:|Awaiting players...}}</font>\n{{py:xvm.minutesBT%02d~:}}{{py:xvm.secondsBT%02d}}}}}}"
},

 

3) добавляем ссылку в battleLabels.xc

${ "battleLabelsTemplates.xc":"def.prebattleTimer" },

 

4) скрываем таймер клиента в elements.xc

{
 "elements": [
   {
    "prebattleTimer": { "$delay": 100, "alpha": 0 }  // скрыть таймер до начала боя в клиенте
    }
  ]
}
  • Upvote 5
Link to comment
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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...