Class WizardSupport
java.lang.Object
VASSAL.build.module.WizardSupport
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 ClassesModifier and TypeClassDescriptionstatic classBranches the wizard by forwarding to the Wizard stored in the wizard settings under a specified keystatic classWizard pages for starting a new game.classWizard pages for the welcome wizard (initial module load).static classWizard pages for loading a saved gamestatic classWizard pages for starting a new game offlinestatic classLoads a saved game in the background.static classWizard page for an unfinishedGameSetupStepstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringprotected Dimensionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringprotected List<PredefinedSetup> protected Tutorialstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd aPredefinedSetupto the wizard page for starting a new game offline.org.netbeans.spi.wizard.WizardPanelProviderprotected WizardSupport.BranchingWizardvoidvoidsetBackgroundImage(Image image) voidsetTutorial(Tutorial tutorial) Specify aTutorialthat the user may load from theWizardSupport.InitialWelcomeStepsvoidShow a wizard that prompts the user to specify information for unfinishedGameSetupStepsvoidShow the "Welcome" wizard, shown when loading a module in play mode
-
Field Details
-
POST_INITIAL_STEPS_WIZARD
- See Also:
-
POST_LOAD_GAME_WIZARD
- See Also:
-
POST_PLAY_OFFLINE_WIZARD
- See Also:
-
WELCOME_WIZARD_KEY
- See Also:
-
SETUP_KEY
- See Also:
-
ACTION_KEY
- See Also:
-
LOAD_TUTORIAL_ACTION
- See Also:
-
PLAY_ONLINE_ACTION
- See Also:
-
PLAY_OFFLINE_ACTION
- See Also:
-
LOAD_GAME_ACTION
- See Also:
-
WELCOME_WIZARD_ENABLED
- See Also:
-
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- Predefined Setup
-
removePredefinedSetup
-
setTutorial
Specify aTutorialthat the user may load from theWizardSupport.InitialWelcomeSteps- Parameters:
tutorial- 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
-