Luanti 5.19.0-dev
Loading...
Searching...
No Matches
MainGameCallback Class Reference

#include <mainmenumanager.h>

Inheritance diagram for MainGameCallback:
Collaboration diagram for MainGameCallback:

Public Member Functions

 MainGameCallback ()=default
virtual ~MainGameCallback ()=default
void exitToOS () override
void openSettings () override
void disconnect () override
void changePassword () override
void changeVolume () override
void touchscreenLayout () override
void showOpenURLDialog (const std::string &url) override

Public Attributes

bool disconnect_requested = false
bool settings_requested = false
bool changepassword_requested = false
bool changevolume_requested = false
bool touchscreenlayout_requested = false
bool shutdown_requested = false
std::string show_open_url_dialog = ""

Constructor & Destructor Documentation

◆ MainGameCallback()

MainGameCallback::MainGameCallback ( )
default

Referenced by GameFormSpec::init(), and ClientLauncher::run().

Here is the caller graph for this function:

◆ ~MainGameCallback()

virtual MainGameCallback::~MainGameCallback ( )
virtualdefault

Member Function Documentation

◆ changePassword()

void MainGameCallback::changePassword ( )
inlineoverridevirtual

Implements IGameCallback.

References changepassword_requested.

Referenced by HardcodedPauseFormspecHandler::gotText().

Here is the caller graph for this function:

◆ changeVolume()

void MainGameCallback::changeVolume ( )
inlineoverridevirtual

Implements IGameCallback.

References changevolume_requested.

Referenced by HardcodedPauseFormspecHandler::gotText().

Here is the caller graph for this function:

◆ disconnect()

void MainGameCallback::disconnect ( )
inlineoverridevirtual

Implements IGameCallback.

References disconnect_requested.

Referenced by HardcodedPauseFormspecHandler::gotText(), ModApiClient::l_disconnect(), and MyEventReceiver::OnEvent().

Here is the caller graph for this function:

◆ exitToOS()

void MainGameCallback::exitToOS ( )
inlineoverridevirtual

Implements IGameCallback.

References shutdown_requested.

Referenced by HardcodedPauseFormspecHandler::gotText().

Here is the caller graph for this function:

◆ openSettings()

void MainGameCallback::openSettings ( )
inlineoverridevirtual

Implements IGameCallback.

References settings_requested.

Referenced by HardcodedPauseFormspecHandler::gotText().

Here is the caller graph for this function:

◆ showOpenURLDialog()

void MainGameCallback::showOpenURLDialog ( const std::string & url)
inlineoverridevirtual

Implements IGameCallback.

References show_open_url_dialog.

Referenced by GUIFormSpecMenu::OnEvent(), and GUIHyperText::OnEvent().

Here is the caller graph for this function:

◆ touchscreenLayout()

void MainGameCallback::touchscreenLayout ( )
inlineoverridevirtual

Implements IGameCallback.

References touchscreenlayout_requested.

Referenced by ModApiPauseMenu::l_show_touchscreen_layout().

Here is the caller graph for this function:

Member Data Documentation

◆ changepassword_requested

bool MainGameCallback::changepassword_requested = false

◆ changevolume_requested

bool MainGameCallback::changevolume_requested = false

◆ disconnect_requested

bool MainGameCallback::disconnect_requested = false

◆ settings_requested

bool MainGameCallback::settings_requested = false

◆ show_open_url_dialog

std::string MainGameCallback::show_open_url_dialog = ""

◆ shutdown_requested

bool MainGameCallback::shutdown_requested = false

◆ touchscreenlayout_requested

bool MainGameCallback::touchscreenlayout_requested = false

The documentation for this class was generated from the following file: