Jump to content
Korean Random
Ragnarocek

battleLabelsTemplates bgColor

Recommended Posts

Hey all,

 

I need some help with bgColor for damagelog.

 

If I set:

"bgColor": "#000000", - I got solid black suqre in panel position, so I need to set alpha

 

If I set:

"bgColor": { "color": #000000", "alpha": 60 }, background disappears

 

What am I doing wrong ?

 

Thx for help

Share this post


Link to post

Short link
Share on other sites

I can't tell right now whether it should work or not in general, but in the code you posted there's a quote missing before #000000".

 

EDIT:

I think it's just incorrect, so it doesn't work. bgColor is the parameter just for the color (as the name suggests), so you can't use anything except the color value or anything that returns such value.

 

I guess it should work simply this way:

"bgColor": "#000000",
"alpha": 60
Edited by konrad509

Share this post


Link to post

Short link
Share on other sites

I can't tell right now whether it should work or not in general, but in the code you posted there's a quote missing before #000000".

I figured it out:

 

I've added to battleLabels.xc:

${ "battleLabelsTemplates.xc":"def.damageLogBg"},

battleLabelsTemplates:

"damageLog": {
      "enabled": true,
      "updateEvent": "PY(ON_HIT)",
      "x": 240,
      "y": 0,
      "width": 300,
      "height": 233,
	  "screenVAlign": "bottom",
	  "shadow": { "distance": 1, "angle": 90, "alpha": 80, "blur": 5, "strength": 3 },
      "textFormat": { "color": "0xF4EFE8", "size": 16 },
      "format": "{{py:xvm.damageLog.dLog}}"
	},
	
	"damageLogBg": {
	  "enabled": "true",
	  "x": 240,
	  "y": 0,
	  "width": 300,
      "height": 233,
	  "alpha": 20,
	  "bgColor": "0x000000",
	  "screenVAlign": "bottom",
	  "format": ""
	},

result:

post-23106-0-59024200-1480249119_thumb.png

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