Jump to content
Korean Random

battleLabels enabled by default?


Recommended Posts

I'm currently using a single file configuration xvm.rc and my battleLabels part looks like this:

"battleLabels": {
		"formats": [
			// hitlog
			{
				// "enabled": true,
				"updateEvent": "ON_DAMAGE_CAUSED",
				"x": 270,
				"y": 0,
				"width": 500,
				"height": 500,
				"textFormat": { "color": "0xF4EFE8", "size": 15 },
				"format": "{{hitlog-header}}\n{{hitlog-body}}"
			},
			// totalHP
			{
				// "enabled": true,
				"updateEvent": "ON_PLAYERS_HP_CHANGED",
				"x": 0,
				"y": 30,
				"width": 200,
				"height": 40,
				"screenHAlign": "center",
				"shadow": { "distance": 1, "angle": 90, "alpha": 80, "blur": 5, "strength": 1.5 },
				"textFormat": { "font": "mono", "size": 18, "align": "center" },
				"format": "{{py:xvm.total_hp.text()}}"
			}
		]
	},

In the file battleLabelsTemplates.xc it states that the default state for "enabled" is "false", so I assumed commenting out those lines would disable things, just like commenting out the "x" or "y" coordinates moved the labels to their stated defaults at "0".

 

However, the code above will show both the hitlog and the totalHP, despite the "enabled" parts being commented out.

 

Am I just showing my lack of coding knowledge here, or is this a bug? Or is it because I use a single file config?

 

I have only tested this with replays and autoReloadConfig, not a live game.

Edited by cokebottle
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...