Jump to content
Korean Random
ktulho

Сборник py_macro

Recommended Posts

А  полностью копировать базовые картошкины маркеры не получится?

Share this post


Link to post

Short link
Share on other sites

@aster правильно было бы иметь настройку в маркерах xvm "отображать хп... отбражать урон клиента", но:

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

думаю этим заниматься ни кто не станет. 

а так написал сюда, думал наименьшими затратами это получиться сделать :sad:

----

хотя можно в предложения написать, мало ли.

Share this post


Link to post

Short link
Share on other sites
4 часа назад, HEKPOMAHT сказал:

думал наименьшими затратами это получиться сделать

 

Маркеры завязаны в основном на флеше, обычные скрипты тут ничего не дадут.

 

4 часа назад, HEKPOMAHT сказал:

хотя можно в предложения написать, мало ли

 

Максим с малой долей вероятности будет совмещать дефолтный код маркеров и кастомный, т.к.:

  1. Это тот еще геморой будет с технической стороны вопроса
  2. Этим будут пользоваться незначительная часть пользователей

 

5 часов назад, aster сказал:

А  полностью копировать базовые картошкины маркеры не получится

 

Можно скопировать по максимуму внешний вид клиентских, только урон не будет отображаться одним числом.

Да и сами клиентские маркеры не особо то глазу приятны.

Share this post


Link to post

Short link
Share on other sites

I'm trying to make the timer's position dynamic for the sixthsense, depending on the screen resolution, for example, for 1080p "y": 230, for 1440p "y": 320. Is there a way without me having to adjust that each time, so that it is automatically in the right position. Thanky in advance.

 

"sixthSenseTimer": { 
      "enabled": true,
      "updateEvent": "PY(ON_SIXTH_SENSE_SHOW)",
      "x": 0,
      "y": 320,
      "width": 60,
      "height": 50,
      "screenHAlign": "center",
      "shadow": { "distance": 1, "angle": 90, "alpha": 80, "blur": 5, "strength": 1.5 },
      "textFormat": {"align": "center", "size": 40 },
      "format": "{{py:xvm.sixthSenseTimer(10)}}"
    },

 

Share this post


Link to post

Short link
Share on other sites

@Heliomalt , вы хотите вручную, для каждого разрешения экрана, задать "y"? Или есть формула для расчета "y"?

  • Upvote 1

Share this post


Link to post

Short link
Share on other sites

@ktulho Sorry, I don't understand your question, maybe bad translation.

 

I try to make y coordinate dynamic, depending on the screen resolution. I try it like this way with x coordinate for example: "x": "-{{py:sum(50,{{py:xvm.screenHCenter}})}}", of course for y like "y": "-{{py:sum(240,{{py:xvm.screenHCenter}})}}", (just an example), but it don't work.

Share this post


Link to post

Short link
Share on other sites

@ktulho So there is no way that the timer is automatically at the position of the lamp, no matter if I now use my XVM config with a 1920x1080 or a 2560x1140 screen resolution? So I always have to set a value, 240 or 320?

Share this post


Link to post

Short link
Share on other sites

@Heliomalt у меня сделано так:

    "sixthSenseTimer": {
      "enabled": true,
      "updateEvent": "PY(ON_SIXTH_SENSE_SHOW)",
      "x": 0,
      "y": "{{py:sub(-{{py:div({{py:xvm.screenHeight}}, 4)}}, 14)}}",
      "width": 60,
      "height": 50,
      "screenHAlign": "center",
      "screenVAlign": "center",
      "textFormat": {"align": "center", "size": 40},
      "format": "{{py:xvm.sixthSenseTimer(10)}}"
    },

 

  • Upvote 1

Share this post


Link to post

Short link
Share on other sites

@ktulho thx it works.

 

Drive me nuts for weeks.

 

Will this also work for higher resolution like 4K or for example 1920x1200?

Edited by Heliomalt
4K resolution

Share this post


Link to post

Short link
Share on other sites
1 час назад, Heliomalt сказал:

Will this also work for higher resolution like 4K or for example 1920x1200?

У меня 1920х1200.

  • Upvote 1

Share this post


Link to post

Short link
Share on other sites

Всем доброе утро.Подскажите этот ( infoPremium.py ) скрипт выводит только в ангаре информацию или и в бою тоже?

Share this post


Link to post

Short link
Share on other sites
1 час назад, Sergei Nik сказал:

Подскажите этот ( infoPremium.py ) скрипт выводит только в ангаре информацию или и в бою тоже?

Информация должна отображаться, но обновляется во время боя не будет.

Share this post


Link to post

Short link
Share on other sites

Здравствуйте@ktulho ,а не подскажите как правильно прописать,что бы информация о премиум дне отображалась во время боя.Заранее спасибо!

Share this post


Link to post

Short link
Share on other sites
20.10.2019 в 12:12, Sergei Nik сказал:

Здравствуйте@ktulho ,а не подскажите как правильно прописать,что бы информация о премиум дне отображалась во время боя.Заранее спасибо!

По идее также как и в ангаре. Проверять мне не хочется. На реплее не проверить. А играть и тем более покупать прем у меня нет желания.

  • Upvote 1

Share this post


Link to post

Short link
Share on other sites
20.10.2019 в 12:12, Sergei Nik сказал:

как правильно прописать,что бы информация о премиум дне отображалась во время боя

всё как обычно: в battleLabels.xc добавляешь блок, в battleLabelsTemplates.xc ссылку

----

на аккаунте 8ч према. От болды вставил макросы:

"updateEvent": "PY(ON_INFO_PREMIUM)",
"format": "ТЕСТ дней: {{py:prem.timeLeft|-}}, часов: {{py:prem.timeLeftMinutes|-}}, па: {{py:prem.timeLeftDays|-}}"

бой:

b72cc97a1e853a1f6a539c3913fd0458.jpg

  • Upvote 1

Share this post


Link to post

Short link
Share on other sites

@ktulho , здравствуйте!!!Подскажите пожалуйста, а можно или как сделать фильтр в чате сообщения в данном случае именно ко мне.Чтоб все сообщения нормально отображались, а "именные" нет.Просто в ранговых это как у Летова : понос-апофеоз.Было б хорошо если б функция вкл-откл была.В ЧС на время боя одного-двух напостой как-то не резон уже.Заранее спасибо!!!

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.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...