Jump to content
Korean Random

Team HP (Total HP)


Recommended Posts

Привет

 

как отключить черные контуры?

 

post-5619-0-45434700-1464300379.jpg

 

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"
  }
Link to comment
Short link
Share on other sites

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 by cokebottle
Link to comment
Short link
Share on other sites

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 by Kapany3uk
Link to comment
Short link
Share on other sites

/**
 * 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 by cokebottle
Link to comment
Short link
Share on other sites

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 by Kapany3uk
Link to comment
Short link
Share on other sites

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.

Link to comment
Short link
Share on other sites

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 by Andyss
Link to comment
Short link
Share on other sites

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