|
VR-Engage
2.2
|
Handles the UI for selecting and starting sessions, both hosted and unhosted. Manages the session menu and responds to user interactions for session creation, including scenario selection for hosted sessions and terrain selection for unhosted sessions.
#include <sessionMenuState.h>
Public Member Functions | |
| DtSessionMenuState (DtPlayerStationApp &app) | |
| virtual | ~DtSessionMenuState () override |
| virtual void | onEnter (const DtPlayerStationStateArgs *args) override |
| virtual void | onExit () override |
| virtual void | onExposed () override |
| virtual void | onStacked () override |
| virtual void | tick (double dt) override |
Public Member Functions inherited from makVre::DtPlayerStationState | |
| DtPlayerStationState (DtPlayerStationApp &app, std::string stateType) | |
| virtual | ~DtPlayerStationState () |
| DtPlayerStationState (const DtPlayerStationState &)=delete | |
| DtPlayerStationState & | operator= (const DtPlayerStationState &)=delete |
| virtual void | onEnter () |
| virtual void | onExposed (const DtPlayerStationStateArgs *args) |
| bool | active () const |
| bool | exposed () const |
| bool | exiting () const |
| bool | stacking () const |
| const std::string & | stateType () const |
| DtPlayerStationApp & | app () const |
Protected Member Functions | |
| virtual DtVreMessageResult | handleVrfSessionStatus (DtVreMessage *msg) |
| virtual DtVreMessageResult | handleChooseSessionButtonClicked (DtVreMessage *msg) |
| virtual DtVreMessageResult | handleEscKey (DtVreMessage *msg) |
| virtual DtVreMessageResult | handleBackButtonClicked (DtVreMessage *msg) |
| virtual DtVreMessageResult | handleStartHostedSessionClicked (DtVreMessage *msg) |
| virtual DtVreMessageResult | handleStartUnhostedSessionClicked (DtVreMessage *msg) |
Protected Member Functions inherited from makVre::DtPlayerStationState | |
| bool | pushState (const std::string &newState, DtPlayerStationStateArgs *args=NULL) |
| bool | popSelf () |
| bool | popUntilSelf () |
| bool | popUntilState (const std::string &parentState, DtPlayerStationStateArgs *args=NULL) |
| bool | switchToState (const std::string &newState, DtPlayerStationStateArgs *args=NULL) |
| bool | pushSelf () |
Protected Attributes | |
| std::shared_ptr< DtVreStartPage > | myStartPage |
Protected Attributes inherited from makVre::DtPlayerStationState | |
| DtPlayerStationApp & | myApp |
| makVre::DtSessionMenuState::DtSessionMenuState | ( | DtPlayerStationApp & | app | ) |
Constructor for the session menu state.
| app | Reference to the player station application |
References makVre::DtPlayerStationState::app().
|
overridevirtual |
Virtual destructor for proper cleanup.
|
overridevirtual |
Called when entering this state.
| args | Optional arguments passed when transitioning to this state |
Initializes the session menu UI, registers message handlers, and checks startup configuration for special options. May automatically transition to another state based on startup configuration (join, start, or host modes).
Reimplemented from makVre::DtPlayerStationState.
|
overridevirtual |
Called when exiting this state.
Removes all registered message handlers, closes the start menu UI, and performs cleanup of the connection page if it's visible.
Reimplemented from makVre::DtPlayerStationState.
|
overridevirtual |
Called when this state becomes the top-most visible state.
Re-registers UI message handlers and makes the menu visible. This occurs when a state on top of this one is removed.
Reimplemented from makVre::DtPlayerStationState.
|
overridevirtual |
Called when another state is pushed on top of this state.
Removes UI message handlers and hides the menu UI but keeps the state alive in the background.
Reimplemented from makVre::DtPlayerStationState.
|
overridevirtual |
Called every frame to update the state.
| dt | Time elapsed since the last frame in seconds |
Handles periodic updates for this state. Currently minimal implementation.
Reimplemented from makVre::DtPlayerStationState.
|
protectedvirtual |
Handles session status messages from VRF.
| msg | The session status message |
Processes session status info and updates the UI accordingly
|
protectedvirtual |
Handles button click to choose a session.
| msg | The button click message |
Transitions to the state for choosing a session
|
protectedvirtual |
Handles ESC key press.
| msg | The escape key message |
Transitions back to the previous state
|
protectedvirtual |
Handles back button clicks in the UI.
| msg | The back button click message |
Transitions back to the previous state
|
protectedvirtual |
Handles requests to start a hosted session.
| msg | The host session message containing scenario info |
Creates a SessionLoadDataMessage and transitions to JOINED_SESSION_STATE
|
protectedvirtual |
Handles requests to start an unhosted session.
| msg | The unhosted session message containing terrain info |
Creates a SessionLoadDataMessage and transitions to JOINED_SESSION_STATE
|
protected |
Reference to the start page UI component.
Provides access to the start menu UI for displaying and managing session options and controls