LaunchEvent

Events of this class are fired to track the progress of a game session when the user launches a table. This event has the following subtypes:

The event target for this event type is the mainWindow object.

Launch event sequence

The process of launching a game has many steps, which is why the launch event has such a large number of subtypes. Here's how all of these events get fired in the course of a game launch.

The runbeforepre, runbefore, runafter, and runafterpost events run in that order, and correspond to the similarly named external commands that can be set up for each system in the options. The separate "pre" and "post" events are provided for finer control over the display appearance during each step. During the runbeforepre and runafterpost commands, the main PinballY window is blank, showing just a uniform black background. This makes it a good time to perform any changes to the physical monitor layout, such as rotating the monitors or changing the screen resolutions, since the blank window won't show any obvious visual effect and thus will help achieve a visually seamless transition to the new layout.

For a successful launch, the full order of the events, including the external commands, is as follows:

Error handling: The sequence above is for successful launches. Launches involve a lot of external moving parts, obviously, so there are many places where something can fail. If an error occurs, the event sequence will change accordingly:

Properties

Launch events include all of the standard event properties and methods (see the Event class), plus the following: