PDA

View Full Version : Problem/Question about animation



kwaugh
September 12th, 2009, 01:09 PM
I've got a menu bar that I'm sliding up from off screen when a button is pushed. The bar contains buttons that jump to other screens. The menu bar is contained in the device template

The problem I'm having is that when I jump to a new screen (page group), the menu bar returns to it's position off screen. I can understand the logic for this, since the 'default' position for the menu bar is off screen; however, I'm looking for a way to make the menu bar 'persistent'

Any thoughts on how to accomplish this would be appreciated!

Thanks,

K

Rob H
September 13th, 2009, 06:31 AM
This is a tricky one with the code as it stands at present - you'd have to modify ElementAnimation.lua (or better still a copy).

The relevant parts of the code are the function CloseAnims() and the calls to RegisterLeavePanelWatch and RegisterPanelWatch below that.

kwaugh
September 14th, 2009, 07:50 AM
As much as I like the 'cool' factor of having a way to pin the menu to the screen, given my lua skills, I think I'll just redesign the menu!

Thanks for the reply!

K

Rob H
September 14th, 2009, 10:11 AM
I'll have a think to see if I can find a way to implement this though