added fading and shifting for displaytracks

This commit is contained in:
louis 2016-05-27 17:51:11 +02:00
parent e3a1577c7c
commit 9611f9b011
4 changed files with 14 additions and 3 deletions

View File

@ -110,11 +110,15 @@ void cViewTracks::SetCurrentTrack(int index) {
void cViewTracks::Flush(bool animFlush) { void cViewTracks::Flush(bool animFlush) {
if (init) { if (init) {
sdOsd.LockFlush(); sdOsd.LockFlush();
if (viewList) {
viewList->Draw();
viewList->StartAnimation();
}
Render((int)eVeDisplayTracks::background); Render((int)eVeDisplayTracks::background);
} }
if (change) { if (change) {
Render((int)eVeDisplayTracks::header); Render((int)eVeDisplayTracks::header);
if (viewList) if (viewList && !init)
viewList->Draw(); viewList->Draw();
change = false; change = false;
} }

View File

@ -937,6 +937,7 @@ void cViewListAudioTracks::PreCache(void) {
void cViewListAudioTracks::SetNumtracks(int numTracks) { void cViewListAudioTracks::SetNumtracks(int numTracks) {
this->numTracks = numTracks; this->numTracks = numTracks;
this->numElements = numTracks;
tokenContainer->Clear(); tokenContainer->Clear();
tokenContainer->AddIntToken(0, numTracks); tokenContainer->AddIntToken(0, numTracks);
} }

View File

@ -40,6 +40,12 @@
width CDATA #REQUIRED width CDATA #REQUIRED
height CDATA #REQUIRED height CDATA #REQUIRED
align (left|top|center|bottom|right) #IMPLIED align (left|top|center|bottom|right) #IMPLIED
fadetime CDATA #IMPLIED
shifttime CDATA #IMPLIED
shifttype CDATA #IMPLIED
shiftmode CDATA #IMPLIED
startx CDATA #IMPLIED
starty CDATA #IMPLIED
menuitemwidth CDATA #IMPLIED menuitemwidth CDATA #IMPLIED
numlistelements CDATA #REQUIRED numlistelements CDATA #REQUIRED
orientation CDATA #REQUIRED orientation CDATA #REQUIRED

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE displayaudiotracks SYSTEM "../../../dtd/displayaudiotracks.dtd"> <!DOCTYPE displayaudiotracks SYSTEM "../../../dtd/displayaudiotracks.dtd">
<displayaudiotracks x="35%" y="0" width="30%" height="100%" fadetime="0"> <displayaudiotracks x="35%" y="0" width="30%" height="100%" fadetime="{fadetime}" shifttime="{shifttime}" shiftmode="slowed" shifttype="bottom">
<background> <background>
<area x="0" y="{areaheight} - {numtracks} * {areaheight} / 15 - {areaheight} / 15" width="100%" height="{areaheight} / 15 + {areaheight} / 15 * {numtracks}" layer="1"> <area x="0" y="{areaheight} - {numtracks} * {areaheight} / 15 - {areaheight} / 15" width="100%" height="{areaheight} / 15 + {areaheight} / 15 * {numtracks}" layer="1">
<fill color="{replayback}" /> <fill color="{replayback}" />
@ -18,7 +18,7 @@
</area> </area>
</header> </header>
<menuitems x="0" y="{areaheight} - {numelements} * {areaheight} / 15" orientation="vertical" width="100%" height="{numelements} * {areaheight} / 15" align="top" numlistelements="{numelements}"> <menuitems x="0" y="{areaheight} - {numelements} * {areaheight} / 15" orientation="vertical" width="100%" height="{numelements} * {areaheight} / 15" align="top" numlistelements="{numelements}" fadetime="{fadetime}" shifttime="{shifttime}" shiftmode="slowed" shifttype="bottom">
<listelement> <listelement>
<!-- Background --> <!-- Background -->
<area x="1%" width="98%" layer="2"> <area x="1%" width="98%" layer="2">