Jump to content
Korean Random
goodman

Динамические макросы в Python

Recommended Posts

// тест попадания без урона (рикошет, не пробито, без урона) (макрос {{dl.damage}})
    "hit-effects": {
      "intermediate_ricochet": "<font size='16' color='#FFFFFF'><b>0</b></font>",
      "final_ricochet": "<font size='16' color='#FFFFFF'><b>0</b></font>",
      "armor_not_pierced": "<font size='16' color='#FFFFFF'><b>0</b></font>",
      "armor_pierced_no_damage": "<font size='16' color='#FFFFFF'><b>0</b></font>"
    },

у меня так и есть , а по центру как замутить

Share this post


Link to post

Short link
Share on other sites

 

 

у меня так и есть , а по центру как замутить
, по центру тоже нужен только урон? 

Share this post


Link to post

Short link
Share on other sites

это скрины с гамби.... скринами 

чего так не сделать ???

{{dl.damage}}) + {{hit-effects}}

место 0 ваще можна пустое место оставить  или так 

"dl.damage" :

   "0" : "{{hit-effects}}", // без урона.

   "None" : "" // нет данных.
  },

Edited by Shumaherxxx
  • Downvote 2

Share this post


Link to post

Short link
Share on other sites

это скрины с гамби.... скринами 

чего так не сделать ???

{{dl.damage}}) + {{hit-effects}}

место 0 ваще можна пустое место оставить 

{{dl.damage}}

)"0" : "{{hit-effects}}", // без урона.

   "None" : "" // нет данных.

  },

Ты вопросы видишь?

 

 

, по центру тоже нужен только урон? 
 

Share this post


Link to post

Short link
Share on other sites

урон +(рикошет, не пробито, без урона)


ладно по центру пофик сделаи {{shortvehicle}}

Share this post


Link to post

Short link
Share on other sites

урон +(рикошет, не пробито, без урона)

ладно по центру пофик сделаи {{shortvehicle}}

Вам трудно сформулировать ответ на вопрос ЗАЧЕМ ЭТО НАДО?

 

 

ладно по центру пофик сделаи {{shortvehicle}}
, диалога явно не получается. 

Share this post


Link to post

Short link
Share on other sites

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

color='{{dl.c:costShell=gold-shell?#FFCC66|{{dl.c:costShell=silver-shell?#FFFFFF}}}}'
Edited by H_E_K_P_O_M_A_H_T_

Share this post


Link to post

Short link
Share on other sites

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

color='{{dl.c:costShell=gold-shell?#FFCC66|{{dl.c:costShell=silver-shell?#FFFFFF}}}}'

в damageLog не работает форматирование макросов. Вопросы по damageLog.xc теперь лучше задавать в этой теме.

Share this post


Link to post

Short link
Share on other sites

, есть., например так:

в файле battleLabelsTemplates.xc в секции "DamageLog":

"textFormat": { "font": "Ubuntu Mono" },

 

СПС , извиняй за глупый вопрос, не рублю просто в этом от слова совсем. Всё по подобию делаю , но нигде похожих строк не нашёл.чтоб понимать как прописать....  Поэтому спрашивал )))

Edited by ger Gauf

Share this post


Link to post

Short link
Share on other sites

 

      "format": "{{py:xvm.myDamageLog.dLog()}}"
      "format": "{{py:xvm.myDamageLog.timerReload()}}"
      "format": "{{py:xvm.myDamageLog.lastHit()}}"

 

Сделал возможность не писать скобки для макросов без аргументов, так более читабельно:

 

      "format": "{{py:xvm.myDamageLog.dLog}}"
      "format": "{{py:xvm.myDamageLog.timerReload}}"
      "format": "{{py:xvm.myDamageLog.lastHit}}"

 

Edited by sirmax
  • Upvote 4

Share this post


Link to post

Short link
Share on other sites

Извините не в тему, где взять описание символов встроенного  шрифта?

Share this post


Link to post

Short link
Share on other sites

Извините не в тему, где взять описание символов встроенного  шрифта?

Тут

Share this post


Link to post

Short link
Share on other sites

Сделал возможность не писать скобки для макросов без аргументов, так более читабельно:

Супер,теперь везде лишние скобки можно убрать или только в логе?У меня просто есть еще в markersAliveNormal.xc "alpha": "{{hp<{{py:vinfo.shell_damage()}}?80|0}}",ну и отдельный .ру файлик.

Share this post


Link to post

Short link
Share on other sites

@Slava7572, везде. Естественно, если у функции нет входных параметров.

Ок,так и думал.просто уточнить хотел,спасибо.

Share this post


Link to post

Short link
Share on other sites

 

 

Скрип на часы можешь сделать если не сложно. просто часы без дней недель и т д.
, в бою? 

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...