Anmelden:     


Forum: Wishes and new features

Topic: PlayHead custom color option - Page: 1

Dieser Teil des Themas ist veraltet und kann veraltete oder falsche Informationen enthalten

Make the hard-coded white line color customizable to fit with custom skin color themes, please...
 

geposted Mon 28 Nov 16 @ 9:59 am
Draw your own play head on top of the white one.
 

Is that possible?
..or is this just an ironic remark?
 

No sarcasm there, It's possible.
 

Okay... I'm interested!
How do I do such a thing?
 

There's an example in my skin, when showing cues on songpos with some background overlay.

~ line 11700 (can't tell accurately now) in a panel class="songpos_cue_name".

  <define class="song_position" action="get position">
<pos x="+1" y="+89"/>
<size width="513" height="38"/>
<on x="" y=""/>
<fader visibility="90%">
<pos x="952" y="1154"/>
<size width="4" height="38"/>
</fader>
<mouserect width="0" height="0"/>
</define>
 

Ah, I see. I think that's above my head :( I have never worked with classes before and to tell you the truth: I do not understand what your code says. As I said: above my head. I'm stuck in the VDJ7 era as far as VDJscripting is concerned... So, unless somebody spells the script out for me, I will have to insist in requesting the playhead color to be selectable... Thank you VERY MUCH for both your interest, though! Appreciate it!
 

Basically it is a simple slider, with a white fader (or other color of your choice, drawn in image resource file), and no body (the slider is transparent).

Same size as songpos widget, just drawn on top. I believe that can be achieved in V7 with no classes, not too sure though.
 

What my first message meant is :

If you can't find an option for something, try to find a workaround to bring the option by yourself, it often works. Be tricky :)
 

Genius!
But I still think that it would be only logical for the playhead color to be adjustable (to match custom skins), especially in a software as flexible (and skinnable) as VDJ!!!
 

OFC.
 

@DEVS: Will the PlayHead color ever be selectable?
 

You can have any "Play-Head" graphics, if you overlay/add a <slider action="song_pos"><fader/></slider> i guess.
Have transparent graphics for the slider (in order to still see the graphics of the <songpos> and any graphics u want for the fader. And probably set SkinPlayHeadShadow setting to No.
 

Thank you for the tip and the code! I've got my PlayHeads color-matched with my skin, now. Many, many thanks, Babis!
:)
 

Nope, not quite. It seems that the fader is at the beginning of the song a bit in front of the playhead, and at the end of the song the opposite: a bit behind the playhead. You can therefore still see the white line at the beginning and the end of a song.

So, I still would like to see a color option for the playhead...
 

.....and your slider overlay is the same length as the waveform underneath it?

Have you tried adjusting the slider size (maybe a few pixels narrower than the waveform)?
 

Yes to both.

:) Thanks, Groovin'!
 

Actually your slider needs a different length than waveform.
Let's say you have a 4 pixels wide fader for the playhead and that the waveform is 200 pixels wide.
Your slider must be 204 pixels wide and placed 2 pixels before the waveform starts.
Finally you can use some dumb graphics to "erase" the 2 pixels that are outside the waveform when playhead is at 0% or 100% position.
Generally remember that you want the center of your fader to follow the playhead.
 

I didn't quite understand the "dumb graphics" bit, but that did it, Phantom! Thanks!!!

Slider: 4 pixels bigger than the waveform and starting 2 pixels earlier
Fader: 3-5 pixels wide

That should do it for anyone interested, unless I'm forgetting something :)
 

Herm... lol... well you finally made what's advised in post 2...
 

95%