mirror of
https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
synced 2023-10-19 17:58:31 +02:00
added fading and shifting for displaytracks
This commit is contained in:
parent
e3a1577c7c
commit
9611f9b011
@ -110,11 +110,15 @@ void cViewTracks::SetCurrentTrack(int index) {
|
||||
void cViewTracks::Flush(bool animFlush) {
|
||||
if (init) {
|
||||
sdOsd.LockFlush();
|
||||
if (viewList) {
|
||||
viewList->Draw();
|
||||
viewList->StartAnimation();
|
||||
}
|
||||
Render((int)eVeDisplayTracks::background);
|
||||
}
|
||||
if (change) {
|
||||
Render((int)eVeDisplayTracks::header);
|
||||
if (viewList)
|
||||
if (viewList && !init)
|
||||
viewList->Draw();
|
||||
change = false;
|
||||
}
|
||||
|
@ -937,6 +937,7 @@ void cViewListAudioTracks::PreCache(void) {
|
||||
|
||||
void cViewListAudioTracks::SetNumtracks(int numTracks) {
|
||||
this->numTracks = numTracks;
|
||||
this->numElements = numTracks;
|
||||
tokenContainer->Clear();
|
||||
tokenContainer->AddIntToken(0, numTracks);
|
||||
}
|
||||
|
@ -40,6 +40,12 @@
|
||||
width CDATA #REQUIRED
|
||||
height CDATA #REQUIRED
|
||||
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
|
||||
numlistelements CDATA #REQUIRED
|
||||
orientation CDATA #REQUIRED
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!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>
|
||||
<area x="0" y="{areaheight} - {numtracks} * {areaheight} / 15 - {areaheight} / 15" width="100%" height="{areaheight} / 15 + {areaheight} / 15 * {numtracks}" layer="1">
|
||||
<fill color="{replayback}" />
|
||||
@ -18,7 +18,7 @@
|
||||
</area>
|
||||
</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>
|
||||
<!-- Background -->
|
||||
<area x="1%" width="98%" layer="2">
|
||||
|
Loading…
Reference in New Issue
Block a user