Allow panel to stay after changing window (1 Viewer)

1stdead

Portal Pro
February 1, 2008
1,089
139
Copenhagen
Home Country
Denmark Denmark
Hello,

I'm trying to allow a panel to stay on screen when changing window ID. The hyperlink is from mymusicnowplaying to mylyrics.
I have animation on window close/start in mymusicnowplaying, but that should not have any effect when going to mylyrics. Currently mylyrics is exactly the same as mymusicnowplaying so that they show similar. So both have same panel, but there's the animation which makes the panel dissapear and turn up again.
I tried to use this in all window close animations in mymusicnowplaying, !window.next(90478). Unfortunately without any effect.


Any way to make the panel stay put when changing the window ID to mylyrics?
 

offbyone

Development Group
  • Team MediaPortal
  • April 26, 2008
    3,989
    3,712
    Stuttgart
    Home Country
    Germany Germany
    From my looks at the skinengine, every window has its own child controls and they cannot be shared between windows. Even if it looks like the controls are the same, because they are imported xmls referenced in your window xml, they are new objects with just the same visual representation - which is recreated each time a window loads.
    So, when a window unloads, no controls will be left over, and when a new window loads all child controls are created on the screen. You could try to disable all animations to make it look like there is no going from one window to another.
    I didn't implement the skinengine so my view might be wrong and stands to be corrected by a teamdev ;)
     

    1stdead

    Portal Pro
    February 1, 2008
    1,089
    139
    Copenhagen
    Home Country
    Denmark Denmark
    offbyone: yes, currently i think the same. But hey that's why i'm asking if somebody knows better than me. But the condition !window.next(90478) should not show animation when changing window ID to 90478. Or maybe i'm using it wrongly.
     

    offbyone

    Development Group
  • Team MediaPortal
  • April 26, 2008
    3,989
    3,712
    Stuttgart
    Home Country
    Germany Germany
    Maybe this conditon is broken for an animation ;) Noone might have used it yet, so noone knows if it works.
     

    1stdead

    Portal Pro
    February 1, 2008
    1,089
    139
    Copenhagen
    Home Country
    Denmark Denmark
    Just some update:
    there is no way for panel to stay visible at all times because current one will be disposed and new created but the animation should not execute if you have that condition what you should see is panel (with no animation), then black screen for a sec and new panel at the same place

    So it is not possible and that not working is a bug (!window.next(90478))
     

    Users who are viewing this thread

    Top Bottom