Ltava Posted April 22 Share Posted April 22 Ребята, возможно ли изменить виджет в ангаре, что бы было видно только это? WN8 xxxx побед xxx @ Quote Link to comment Short link Share on other sites More sharing options...
Solution Bazooka Posted April 26 Solution Share Posted April 26 To do this, you'll need to edit the widgetsTemplates.xc file. Find the "statistics" section within this file. Inside this section, locate the text block element (it usually contains macros like {{mystat.wn8}}, {{mystat.winrate}}, etc). Change the value of the "format" parameter in this text block, keeping only the macros and text you need. To display only WN8 and the win rate: "format": "WN8: <font color='{{mystat.c_wn8}}'>{{mystat.wn8}}</font>\nПобед: <font color='{{mystat.c_winrate}}'>{{mystat.winrate%.2f~%}}</font>" You can also remove or change the formatting (font size, color, etc.) and background images if you wish. Remember to save the file with UTF-8 + BOM encoding to ensure Cyrillic characters display correctly. @ Quote Link to comment Short link Share on other sites More sharing options...
Ltava Posted April 27 Author Share Posted April 27 12 hours ago, Bazooka said: Для этого вам необходимо отредактировать файл widgetsTemplates.xc. Найдите в этом файле раздел «статистика». Внутри этого раздела найдите элемент текстового блока (он обычно содержит макросы, такие как {{mystat.wn8}}, {{mystat.winrate}} и т. д.). Измените значение параметра «формат» в этом текстовом блоке, оставив только необходимые вам макросы и текст. Чтобы отобразить только WN8 и процент побед: "format": "WN8: <font color='{{mystat.c_wn8}}'>{{mystat.wn8}}</font>\nПобед: <font color='{{mystat.c_winrate}}'>{{mystat.winrate%.2f~%}}</font>" Вы также можете удалить или изменить форматирование (размер шрифта, цвет и т. д.) и фоновые изображения, если хотите. Не забудьте сохранить файл в кодировке UTF-8 + BOM, чтобы обеспечить корректное отображение кириллических символов. Спасибо большое.👍 @ 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.