Using a generic "please wait" screen

If you have created a unique MLServeCmd that performs a unique task, please post it here so others can learn from them.
User avatar
mosleyh
Intermediate
Intermediate
Posts: 413
Joined: Tue Jul 12, 2005 11:55 am
Location: Charlotte, NC
Contact:

Using a generic "please wait" screen

Postby mosleyh » Tue Nov 08, 2005 2:14 am

In constructing My ML/DVDL setup, I've run into situations where a scene change occurs, but it takes a while after that for all of the MLServeCmds to finish firing. <<I>> know to wait, but it has traumatized my technophobe wife on occasion. (I should also mention that I keep the scenes as simple as possible for her sake, as well)

I finally came up with a solution that uses the single-thread nature of ML as an advantage. I've posted the intro screen and the please wait screen below.

I have command maps set up to take care of the necessary configuration going into DVDLobby, the SACD scene, etc.

So here's what happens:

When you touch Watch a DVD from the Library for example, it fires this macro:

Code: Select all

MLServeCmd.Macro|SetVariable|NextScene~dvdlobby3d.mls!SetVariable|NextCMAP~DVDLStartup!MLCmd|ChangeScene~ALL~Please wait.mls


which sets the NextScene variable to the scene that should come up after "Please Wait", and The NextCMAP variable that specifies the command map to fire.

Then the scene changes to "Please Wait", which fires this macro:

Code: Select all

MLServeCmd.Macro|RunCmdMap|{{NextCMAP}}!MLCmd|ChangeScene~ALL~{{NextScene}}


Because Mainlobby can only do one thing at a time, the command map named in {{NextCMAP}} has to complete before the scene changes from "Now Playing", and when it does, it changes to the scene specified in {{NextScene}}.

This arrangement has the added benefit of using the same "Please Wait" for any menu choice. (And I finally found a use for the spinning globe! :lol:)

FWIW. . .
You do not have the required permissions to view the files attached to this post.

Return to “MLServeCmd Examples”

Who is online

Users browsing this forum: No registered users and 1 guest