Package VASSAL.build.module
Class WizardSupport
java.lang.Object
VASSAL.build.module.WizardSupport
public class WizardSupport extends Object
Provides support for two different wizards. The WelcomeWizard is the initial screen shown to the user when loading a
module in play mode. The GameSetupWizard is shown whenever the user starts a new game on- or off-line.
- Author:
- rkinney
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWizardSupport.BranchingWizardBranches the wizard by forwarding to the Wizard stored in the wizard settings under a specified keystatic classWizardSupport.GameSetupPanelsWizard pages for starting a new game.classWizardSupport.InitialWelcomeStepsWizard pages for the welcome wizard (initial module load).static classWizardSupport.LoadSavedGamePanelsWizard pages for loading a saved gamestatic classWizardSupport.PlayOfflinePanelsWizard pages for starting a new game offlinestatic classWizardSupport.SavedGameLoaderLoads a saved game in the background.static classWizardSupport.SetupStepPageWizard page for an unfinishedGameSetupStepstatic classWizardSupport.TutorialLoader -
Field Summary
Fields Modifier and Type Field Description static StringACTION_KEYstatic StringLOAD_GAME_ACTIONstatic StringLOAD_TUTORIAL_ACTIONprotected DimensionlogoSizestatic StringPLAY_OFFLINE_ACTIONstatic StringPLAY_ONLINE_ACTIONstatic StringPOST_INITIAL_STEPS_WIZARDstatic StringPOST_LOAD_GAME_WIZARDstatic StringPOST_PLAY_OFFLINE_WIZARDstatic StringSETUP_KEYprotected List<PredefinedSetup>setupsprotected Tutorialtutorialstatic StringWELCOME_WIZARD_ENABLEDstatic StringWELCOME_WIZARD_KEY -
Constructor Summary
Constructors Constructor Description WizardSupport() -
Method Summary
Modifier and Type Method Description voidaddPredefinedSetup(PredefinedSetup setup)Add aPredefinedSetupto the wizard page for starting a new game offline.WizardSupport.InitialWelcomeStepscreateInitialWelcomeSteps()org.netbeans.spi.wizard.WizardPanelProvidercreatePlayOfflinePanels()protected WizardSupport.BranchingWizardcreateWelcomeWizard()voidremovePredefinedSetup(PredefinedSetup setup)voidsetBackgroundImage(Image image)voidsetTutorial(Tutorial tutorial)Specify aTutorialthat the user may load from theWizardSupport.InitialWelcomeStepsvoidshowGameSetupWizard()Show a wizard that prompts the user to specify information for unfinishedGameSetupStepsvoidshowWelcomeWizard()Show the "Welcome" wizard, shown when loading a module in play mode
-
Field Details
-
POST_INITIAL_STEPS_WIZARD
- See Also:
- Constant Field Values
-
POST_LOAD_GAME_WIZARD
- See Also:
- Constant Field Values
-
POST_PLAY_OFFLINE_WIZARD
- See Also:
- Constant Field Values
-
WELCOME_WIZARD_KEY
- See Also:
- Constant Field Values
-
SETUP_KEY
- See Also:
- Constant Field Values
-
ACTION_KEY
- See Also:
- Constant Field Values
-
LOAD_TUTORIAL_ACTION
- See Also:
- Constant Field Values
-
PLAY_ONLINE_ACTION
- See Also:
- Constant Field Values
-
PLAY_OFFLINE_ACTION
- See Also:
- Constant Field Values
-
LOAD_GAME_ACTION
- See Also:
- Constant Field Values
-
WELCOME_WIZARD_ENABLED
- See Also:
- Constant Field Values
-
logoSize
-
setups
-
tutorial
-
-
Constructor Details
-
WizardSupport
public WizardSupport()
-
-
Method Details
-
addPredefinedSetup
Add aPredefinedSetupto the wizard page for starting a new game offline. Only adds setups that are not menus.- Parameters:
setup-
-
removePredefinedSetup
-
setTutorial
Specify aTutorialthat the user may load from theWizardSupport.InitialWelcomeSteps- Parameters:
tutorial-
-
showWelcomeWizard
public void showWelcomeWizard()Show the "Welcome" wizard, shown when loading a module in play mode -
createWelcomeWizard
-
createPlayOfflinePanels
public org.netbeans.spi.wizard.WizardPanelProvider createPlayOfflinePanels() -
showGameSetupWizard
public void showGameSetupWizard()Show a wizard that prompts the user to specify information for unfinishedGameSetupSteps -
createInitialWelcomeSteps
-
setBackgroundImage
-