Jump to content
Korean Random
Straszny_Cienias

Players panel problem with background and others

Recommended Posts

You have 2 options:

1. decrease width of fields to make panels less then 340 px (original background width)

2. set "playersPanel"/"alpha"=0 and make extrafields with background with "layer":"substrate".

Share this post


Link to post

Short link
Share on other sites

You have 2 options:

1. decrease width of fields to make panels less then 340 px (original background width)

2. set "playersPanel"/"alpha"=0 and make extrafields with background with "layer":"substrate".

 

Is it possible to get an example of this working?  I looked at provided example configs, but I didn't see "layer": "substrate" in there at all.

 

I tried making one of my own, but it didn't do anything.

 

This is what I did:

 

This was placed under "xvmUserMarker" (so outside of "playersPanel")

"substrateLayer": {

    "enabled": true,

    "x": 0, "y": 0, 

    "src": "",

    "layer": "substrate"

  },

note: I tried a variety of things, including adding "bindToIcon": false, removing "src", setting a "format" with text, etc. (never saw the text).

 

For "playersPanel":

"playersPanel"/"alpha"=0

"playersPanel"/"extraFieldsLeft" and "playersPanel"/"extraFieldsRight": Added ${"substrateLayer"}

 

All this did (when I didn't have a typo :P) was remove the background (from "alpha": 0) and nothing else.

Share this post


Link to post

Short link
Share on other sites

If it's under xvmUserMarker so it's in def section, then the reference should be ${"def.substrateLayer"}.

That assuming you're using the default config.

 

format won't work with src present.

Edited by konrad509

Share this post


Link to post

Short link
Share on other sites

There is no "def" section in this file -- I'm using the config file from the initial release for 9.15.1 (early Aug), so it's in the global area (didn't notice until I just checked the most recent defaults)...

 

If possible, I'd really just like to see a configuration snippet for an extra field with "layer": "substrate" that actually works.  I'm clearly doing something wrong as it doesn't do anything.


For anyone interested, I'm beginning to figure it out.  This is (obviously) not perfect, but I got something working:

 

"backgroundLayer": {
    "enabled": true,
    "x": 0,
"y": 0,
"width": 500,
"height": 25,
"layer": "substrate",
"format": "",
"alpha": 40,
    "bgColor": "0x0000000"
  },

Edited by Morbii2

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