PDA

View Full Version : GFx Movie depth order



Robotique
11-21-2010, 12:19 PM
Hey dudes, I've got a situation where I'm instantiating 2 movies in my HUD class but I want the movie I create first to be rendered on top of the other one.

Basically, is there a way to change the order that scaleform movies are rendered? Right now it just seems to be the order that they are created in.

I need this because I am using my HUD class to create both my cursor and a pause menu, but the pause menu is created it's first time only when I pause, so it renders on top of the cursor which is created right away.

Thanks!

ffejnosliw
11-22-2010, 02:13 AM
I think you want to set the Priority property for the movie players either directly or through the SetPriority() function, which determines focus and render order. Unfortunately, I don't know off hand whether higher or lower values mean on top. You will have to experiment with that.

For more information on Scaleform classes:

http://udn.epicgames.com/Three/ScaleformTechnicalGuide.html

Robotique
11-22-2010, 09:16 AM
Thanks for the help! I'll look into it.

Robotique
11-22-2010, 09:48 AM
Used SetPriority() and it worked great with my PauseMenu movie set to 0 and Cursor to 1, so higher on top. In the GFxMoviePlayer class it sets Priority by default to 1.