Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: layout of strings called in the per track script (Read 3102 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

layout of strings called in the per track script

How do you specify the layout of a string called in a script? I am trying to overlay "now playing" information on the spectrum like this, but the text is below this panel. I understand that panel placement/layout depends on the tree order in Preferences > Display > Columns UI > "Layout" tab, but moving the lines of code in the "per track script" below does not make a difference. Thanks in advance!

Example code is:
Code: [Select]
$font(Segeo UI,14,)
$drawstring(%artist%,1,1,%_width%,%_height%,255-128-64-128,hcenter,)

layout of strings called in the per track script

Reply #1
If I understand correctly what you are trying to do then I do not believe panel stack splitter can overlay text on other panels (other panel is always "on top" of panel stack splitter). A method described in your linked post uses item details on top of the spectrum, which presumably is not suitable for you for some reason. I can think of two other options - neither may be ideal though. Firstly you could underlay the text and use a spectrum that supports pseudo-transparency (disadvantage is that spectrum bars may hide some of the underlayed text, but should be OK with careful positioning). Secondly, you could use OSD (but its a floating panel and so may not reposition correctly when resize windows etc) - e.g. see http://www.hydrogenaudio.org/forums/index....st&p=841955.

layout of strings called in the per track script

Reply #2
If I understand correctly what you are trying to do then I do not believe panel stack splitter can overlay text on other panels (other panel is always "on top" of panel stack splitter). A method described in your linked post uses item details on top of the spectrum, which presumably is not suitable for you for some reason. I can think of two other options - neither may be ideal though. Firstly you could underlay the text and use a spectrum that supports pseudo-transparency (disadvantage is that spectrum bars may hide some of the underlayed text, but should be OK with careful positioning). Secondly, you could use OSD (but its a floating panel and so may not reposition correctly when resize windows etc) - e.g. see http://www.hydrogenaudio.org/forums/index....st&p=841955.

Thank you WilB, using OSD accomplishes what I am trying to do. To clarify, I wanted the same information that's available in the "item details" but without a rectangular background blocking the panel behind it. For the interested reader, here's what the OSD looks like:

Note that you must check the top-most check box titled "Overlay" in Preferences > Display > On-Screen Display to make the OSD visible on the spectrum.