#include <game_formspec.h>
◆ ~GameFormSpec()
GameFormSpec::~GameFormSpec |
( |
| ) |
|
◆ deleteFormspec()
void GameFormSpec::deleteFormspec |
( |
| ) |
|
|
private |
◆ disableDebugView()
void GameFormSpec::disableDebugView |
( |
| ) |
|
◆ handleCallbacks()
bool GameFormSpec::handleCallbacks |
( |
| ) |
|
References MainGameCallback::changepassword_requested, MainGameCallback::changevolume_requested, MainGameCallback::disconnect_requested, g_gamecallback, g_menumgr, Client::getTextureSource(), guienv, guiroot, InputHandler::keycache, MainGameCallback::keyconfig_changed, MainGameCallback::keyconfig_requested, m_client, m_input, KeyCache::populate(), MainGameCallback::show_open_url_dialog, and MainGameCallback::touchscreenlayout_requested.
Referenced by Game::run().
◆ init()
◆ showDeathFormspecLegacy()
void GameFormSpec::showDeathFormspecLegacy |
( |
| ) |
|
References GUIFormSpecMenu::create(), RenderingEngine::get_gui_env(), Client::getFormspecPrepend(), Client::getSoundManager(), InputHandler::joystick, m_client, m_formspec, m_input, m_rendering_engine, GUIFormSpecMenu::setFocus(), and SIZE_TAG.
Referenced by Game::handleClientEvent_DeathscreenLegacy().
◆ showFormSpec()
void GameFormSpec::showFormSpec |
( |
const std::string & | formspec, |
|
|
const std::string & | formname ) |
References GUIFormSpecMenu::create(), RenderingEngine::get_gui_env(), Client::getFormspecPrepend(), Client::getSoundManager(), InputHandler::joystick, m_client, m_formname, m_formspec, m_input, m_rendering_engine, and GUIModalMenu::quitMenu().
Referenced by Game::handleClientEvent_ShowFormSpec().
◆ showLocalFormSpec()
void GameFormSpec::showLocalFormSpec |
( |
const std::string & | formspec, |
|
|
const std::string & | formname ) |
◆ showNodeFormspec()
void GameFormSpec::showNodeFormspec |
( |
const std::string & | formspec, |
|
|
const v3s16 & | nodepos ) |
References GUIFormSpecMenu::create(), RenderingEngine::get_gui_env(), ClientEnvironment::getClientMap(), Client::getEnv(), Client::getFormspecPrepend(), Client::getSoundManager(), infostream, InputHandler::joystick, m_client, m_formname, m_formspec, m_input, m_rendering_engine, GUIFormSpecMenu::setFormSpec(), and InventoryLocation::setNodeMeta().
Referenced by Game::nodePlacement().
◆ showPauseMenu()
void GameFormSpec::showPauseMenu |
( |
| ) |
|
References GUIFormSpecMenu::create(), GUIFormSpecMenu::doPause, g_settings, g_touchcontrols, Settings::get(), RenderingEngine::get_gui_env(), Client::getAddressName(), Settings::getBool(), Client::getFormspecPrepend(), Client::getSoundManager(), InputHandler::joystick, m_client, m_formspec, m_input, m_rendering_engine, Client::m_simple_singleplayer_mode, GUIFormSpecMenu::setFocus(), SIZE_TAG, str_formspec_escape(), and strgettext().
Referenced by Game::processKeyInput(), and Game::run().
◆ showPlayerInventory()
void GameFormSpec::showPlayerInventory |
( |
| ) |
|
References GUIFormSpecMenu::create(), RenderingEngine::get_gui_env(), LocalPlayer::getCAO(), Client::getEnv(), PlayerInventoryFormSource::getForm(), Client::getFormspecPrepend(), Client::getInventory(), ClientEnvironment::getLocalPlayer(), Client::getScript(), Client::getSoundManager(), infostream, InputHandler::joystick, m_client, m_formname, m_formspec, m_input, m_rendering_engine, Client::modsLoaded(), ScriptApiClient::on_inventory_open(), InventoryLocation::setCurrentPlayer(), and GUIFormSpecMenu::setFormSpec().
Referenced by Game::processKeyInput().
◆ update()
void GameFormSpec::update |
( |
| ) |
|
References deleteFormspec(), ClientEnvironment::getClientMap(), Client::getEnv(), GUIFormSpecMenu::getFormspecLocation(), Map::getNodeMetadata(), SimpleMetadata::getString(), guiroot, isMenuActive(), m_client, m_formspec, InventoryLocation::NODEMETA, and GUIModalMenu::quitMenu().
Referenced by Game::updateFrame().
◆ m_client
Client* GameFormSpec::m_client |
|
private |
◆ m_formname
std::string GameFormSpec::m_formname |
|
private |
◆ m_formspec
◆ m_input
◆ m_rendering_engine
The documentation for this struct was generated from the following files: