ServerSelectSection class
Server selection menu section.
Browses the discovered public and LAN servers and lets the player join one or connect directly by entering an address.
Base classes
- class MenuSection
- Base class of a menu section.
- class Jazz2::Multiplayer::IServerObserver
- Interface to observe publicly-listed running servers.
Constructors, destructors, conversion operators
- ServerSelectSection()
- Creates a new instance.
- ~ServerSelectSection()
Public functions
- auto GetClipRectangle(const Recti& contentBounds) -> Recti override
- Allows to override clip rectangle of the middle layer.
- void OnShow(IMenuContainer* root) override
- Called when the section is shown.
- void OnUpdate(float timeMult) override
- Called when the section should be updated.
- void OnDraw(Canvas* canvas) override
- Called when the section should be drawn — the bottom background layer.
- void OnDrawClipped(Canvas* canvas) override
- Called when the section should be drawn — the middle clipped layer.
- void OnDrawOverlay(Canvas* canvas) override
- Called when the section should be drawn — the top overlay layer.
-
void OnKeyPressed(const nCine::
KeyboardEvent& event) override - Called when a key is pressed.
-
void OnTextInput(const nCine::
TextInputEvent& event) override - Called when a text input is detected.
- void OnTouchEvent(const TouchEvent& event, Vector2i viewSize) override
- Called when a touch event is triggered.
- auto GetNavigationFlags() const -> NavigationFlags override
- Allows to override navigation behavior.
-
void OnServerFound(Jazz2::
Multiplayer:: ServerDescription&& desc) override - Called when a server is discovered.