Rockbox Technical Forums

Rockbox Development => Feature Ideas => Topic started by: oid_maps on October 07, 2014, 02:46:52 AM

Title: Add %Pt": Make total track time of next track awailable in WPS.
Post by: oid_maps on October 07, 2014, 02:46:52 AM
I have a "feature request":

The total time of the track to be played next is available, as can be
seen by using the "%pt"-command inside the "%Vp"-panel

(e.g.
  %Vp<0,%pt>
shows times of the current and next song; all the supsequent songs get
time "0:00"
)

Would be nice if it would also be available directly, like a
"%Pt"-command, as also are the track title, file name etc. of the next
song to be playded directly available.

I currently use a viewport just big enough for one line,
Code: [Select]
%Vp(1,%?pt<%pt>), but that's a lot of overkill and breaks with other font sizes.

Bye,
Oid.
Title: Re: Add %Pt": Make total track time of next track awailable in WPS.
Post by: JdGordon on January 15, 2015, 02:49:28 AM
Nice work around! Just had a quick look and it should be doable but not as trivial as I thought - I don't currently have a dev environment setup, but maybe after some reminding.... It is definitly doable if you feel like digging into the code