Сербия 12 Posted May 26, 2016 Привет как отключить черные контуры? Hi how to disable black outlines? "totalHP": { "enabled": true, "colors": { "bad": "FE0E00", "neutral": "FFCC66", "good": "0A93FF" }, "font": "default_medium.font", "x": 0, "y": 36, "hAlign": "center", "vAlign": "top" } Quote Share this post Link to post Short link Share on other sites
SkepticalFox 1,445 #329172 Posted May 26, 2016 @Сербия, нужно править код XVM: fragCorrelationPanel.pyc Quote Share this post Link to post Short link Share on other sites
Сербия 12 #329175 Posted May 26, 2016 , спасибо, но я не знаю как. Quote Share this post Link to post Short link Share on other sites
konrad509 445 #329270 Posted May 27, 2016 You need the original .py file from before the compilation or use some decompiler to decompile the .pyc file. Then after you edit it, you need to compile it to .pyc again. And of course you need to know Python :) Quote Share this post Link to post Short link Share on other sites
Jerryfer 2 #329273 Posted May 27, 2016 In other worlds, wait for update made by developers. 1 Quote Share this post Link to post Short link Share on other sites
Сербия 12 #329287 Posted May 27, 2016 In other worlds, wait for update made by developers. that is the point, I don't know if that is a bug or it can be fixed. you said it is a bug and I need to wait Quote Share this post Link to post Short link Share on other sites
konrad509 445 #329292 Posted May 27, 2016 (edited) It's not a bug. The shadow is intended. Edited May 27, 2016 by konrad509 Quote Share this post Link to post Short link Share on other sites
C.. 14 #329298 Posted May 27, 2016 Can they be configurable, though? ;-) Quote Share this post Link to post Short link Share on other sites
Сербия 12 #329299 Posted May 27, 2016 It's not a bug. The shadows is intended. if I can't change shadow than it is bug for me. Can they be configurable, though? ;-) I tried and nothing has happened. Quote Share this post Link to post Short link Share on other sites
sirmax 5,499 #329502 Posted May 27, 2016 In the latest nightly build totalHP was moved to the battleLabels, so you can format it as you wish. 3 Quote Share this post Link to post Short link Share on other sites
Сербия 12 #329594 Posted May 28, 2016 In the latest nightly build totalHP was moved to the battleLabels, so you can format it as you wish. @sirmax, Спасибо 1 Quote Share this post Link to post Short link Share on other sites
cokebottle 15 #330325 Posted May 30, 2016 (edited) If I want to enable TotalHP now in 6.3.1 when using my own (single file) xvm.xc, how do I do it? Without editing any of the default files. I don't really get the new structure. Something along the lines of: "labels": { "totalHP": { "enabled": true } }, Edited May 30, 2016 by cokebottle Quote Share this post Link to post Short link Share on other sites
konrad509 445 #330392 Posted May 31, 2016 Eh.. single file configs.. ;) Post the config. Quote Share this post Link to post Short link Share on other sites
Kapany3uk 948 #330400 Posted May 31, 2016 (edited) Something along the lines of: it's not enough. you need to enter the section "totalHP" completely. 'try' // Battle interface text fields // Текстовые поля боевого интерфейса "battleLabels": { "formats": [ { // "totalHP" <-- not required, only for info "enabled": true, "updateEvent": "ON_PLAYERS_HP_CHANGED", "x": 0, "y": 30, "width": 200, "height": 40, "autoSize": "center", "align": "center", "shadow": { "distance": 1, "angle": 90, "alpha": 80, "blur": 5, "strength": 1.5 }, "currentFieldDefaultStyle": { "color": "0xF4EFE8", "size": 18 }, "format": "{{py:xvm.total_hp.text()}}" } ] }, Edited May 31, 2016 by Kapany3uk Quote Share this post Link to post Short link Share on other sites
cokebottle 15 #330403 Posted May 31, 2016 (edited) /** * c0keb0ttle XVM * 2016-05-30 * WoT 9.15 * XVM 6.3.1 */ { "definition": { "author": "c0keb0ttle", "date": "25.05.2016" }, "battle": { // "allowHpInPanelsAndMinimap": true, "camera": { "enabled": true, "arcade": { "distRange": [2, 50] }, "sniper": { "zooms": [2, 4, 8, 16] } } }, //"labels": { // "totalHP": { // "enabled": true // } //}, "battleLabels": { "formats": [ // totalHP { "enabled": true, "updateEvent": "ON_PLAYERS_HP_CHANGED", "x": 0, "y": 30, "width": 200, "height": 40, "autoSize": "center", "align": "center", "shadow": { "distance": 1, "angle": 90, "alpha": 80, "blur": 5, "strength": 1.5 }, "currentFieldDefaultStyle": { "color": "0xF4EFE8", "size": 18 }, "format": "{{py:xvm.total_hp.text()}}" } ] }, "battleResults": { "showCrewExperience": true }, "colors": { "totalHP": { "neutral": "0xFFFF00" } }, "hangar": { "enableGoldLocker": true, "enableFreeXpLocker": true, "defaultBoughtForCredits": true, "enableEquipAutoReturn": true, "carousel": { "rows": 2 } }, "hitLog": { "lines": 5 }, "hotkeys": { "minimapZoom": { "enabled": false } }, "login": { "saveLastServer": true, "autologin": true }, "sounds": { "soundMapping": { "time_buzzer_01": "", "time_buzzer_02": "", "xvm_battleEnd_2_min": "battleEnd_2_min" } } } This is my full xvm.xc konrad509. Thanks Kapany3uk, that works! But... I'm using a single config because I find it easier to track what I've changed from the default. And since I'm changing so little it's pretty clean and easy to maintain. Easier to update XVM. Is there any way to slim down the battleLabels part there? Basically, the ONLY thing I want to change from the default is to turn it on. All the positioning and format is fine as it is, so it feels kinda cludgy to have to include all that. Edited May 31, 2016 by cokebottle Quote Share this post Link to post Short link Share on other sites
Kapany3uk 948 #330410 Posted May 31, 2016 (edited) Is there any way to slim down the battleLabels part there? 'at least, that's the minimum' "battleLabels": { "formats": [ // totalHP { "enabled": true, "updateEvent": "ON_PLAYERS_HP_CHANGED", // "x": 0, "y": 30, // "width": 200, // "height": 40, "autoSize": "center", // bad idea: delete this line and "align" (default value "left" for both), "align": "center", // in this case will need use "x" and set the center alignment "by hands" "shadow": { "blur": 5, "strength": 1.5 }, // delete if like default: { "blur": 2, "strength": 1 }, // "currentFieldDefaultStyle": { "color": "0xF4EFE8", "size": 18 }, "format": "<font size='18' color='#xF4EFE8'>{{py:xvm.total_hp.text()}}</font>" } ] }, comment lines can be deleted Edited May 31, 2016 by Kapany3uk Quote Share this post Link to post Short link Share on other sites
cokebottle 15 #330423 Posted May 31, 2016 Thanks Kapany3uk, I got it now! Much appreciated! Is there anywhere I can see the layout of the XVM configuration files? Like, carousel.xc is called from hangar.xc, camera.xc is called from battle.xc - but battleLabels.xc is not, etc. Quote Share this post Link to post Short link Share on other sites
Andyss 16 #330458 Posted May 31, 2016 (edited) Im also trying to get totalhp to show, but cant get it working... can someone tell what files I need to edit?. Already tested lots of different configs,.,, its enabled in battleLabelsTemplates.xc but do I have to put it somewhere else?? used already couple of hours to trying to get it working...Cant figure it out Edited May 31, 2016 by Andyss Quote Share this post Link to post Short link Share on other sites
konrad509 445 #330468 Posted May 31, 2016 Do you have the reference to this section in battleLabels.xc? Quote Share this post Link to post Short link Share on other sites
Andyss 16 #330474 Posted May 31, 2016 (edited) I have like this // Battle interface text fields // Текстовые поля боевого интерфейса "battleLabels": ${"battleLabels.xc":"labels"}, in @xvm.xc -------------------------- and my battleLabels.xc is : /*** List of battle interface labels.* Список текстовых полей боевого интерфейса.*/{ "labels": { // Referenced labels. Note, that every custom field can be separate enabled or disabled by "enabled" switch in their settings // Подключенные текстовые поля. Обратите внимание, что кастомные поля можно отдельно отключать и включать с помощью "enabled" в их настройках "formats": [ ${ "battleLabelsTemplates.xc":"def.winChance" }, ${ "battleLabelsTemplates.xc":"def.totalHP" } //${ "battleLabelsTemplates.xc":"def.test" }, //${ "battleLabelsTemplates.xc":"def.test2" } ] }} I attached my whole config here also: Ma7rix.zip Edited May 31, 2016 by Andyss Quote Share this post Link to post Short link Share on other sites