#include <guiKeyChangeMenu.h>
◆ GUIKeyChangeMenu()
◆ ~GUIKeyChangeMenu()
GUIKeyChangeMenu::~GUIKeyChangeMenu |
( |
| ) |
|
◆ acceptInput()
bool GUIKeyChangeMenu::acceptInput |
( |
| ) |
|
References clearKeyCache(), g_gamecallback, g_settings, Settings::getLayer(), GUI_ID_CB_AUTOJUMP, GUI_ID_CB_AUX1_DESCENDS, GUI_ID_CB_DOUBLETAP_JUMP, key_settings, Settings::remove(), Settings::set(), Settings::setBool(), MainGameCallback::signalKeyConfigChange(), and SL_DEFAULTS.
Referenced by OnEvent().
◆ add_key()
void GUIKeyChangeMenu::add_key |
( |
int | id, |
|
|
std::wstring | button_name, |
|
|
const std::string & | setting_name ) |
|
private |
◆ drawMenu()
void GUIKeyChangeMenu::drawMenu |
( |
| ) |
|
|
virtual |
◆ getLabelByID()
std::wstring GUIKeyChangeMenu::getLabelByID |
( |
s32 | id | ) |
|
|
inlineprotectedvirtual |
◆ getNameByID()
std::string GUIKeyChangeMenu::getNameByID |
( |
s32 | id | ) |
|
|
inlineprotectedvirtual |
◆ init_keys()
void GUIKeyChangeMenu::init_keys |
( |
| ) |
|
|
private |
References add_key(), GUI_ID_KEY_AUTOFWD_BUTTON, GUI_ID_KEY_AUX1_BUTTON, GUI_ID_KEY_BACKWARD_BUTTON, GUI_ID_KEY_BLOCK_BOUNDS_BUTTON, GUI_ID_KEY_CAMERA_BUTTON, GUI_ID_KEY_CHAT_BUTTON, GUI_ID_KEY_CHATLOG_BUTTON, GUI_ID_KEY_CMD_BUTTON, GUI_ID_KEY_CMD_LOCAL_BUTTON, GUI_ID_KEY_CONSOLE_BUTTON, GUI_ID_KEY_DEC_RANGE_BUTTON, GUI_ID_KEY_DEC_VOLUME_BUTTON, GUI_ID_KEY_DROP_BUTTON, GUI_ID_KEY_FAST_BUTTON, GUI_ID_KEY_FLY_BUTTON, GUI_ID_KEY_FOG_BUTTON, GUI_ID_KEY_FORWARD_BUTTON, GUI_ID_KEY_HOTBAR_NEXT_BUTTON, GUI_ID_KEY_HOTBAR_PREV_BUTTON, GUI_ID_KEY_HUD_BUTTON, GUI_ID_KEY_INC_RANGE_BUTTON, GUI_ID_KEY_INC_VOLUME_BUTTON, GUI_ID_KEY_INVENTORY_BUTTON, GUI_ID_KEY_JUMP_BUTTON, GUI_ID_KEY_LEFT_BUTTON, GUI_ID_KEY_MINIMAP_BUTTON, GUI_ID_KEY_MUTE_BUTTON, GUI_ID_KEY_NOCLIP_BUTTON, GUI_ID_KEY_PITCH_MOVE, GUI_ID_KEY_RANGE_BUTTON, GUI_ID_KEY_RIGHT_BUTTON, GUI_ID_KEY_SCREENSHOT_BUTTON, GUI_ID_KEY_SNEAK_BUTTON, GUI_ID_KEY_ZOOM_BUTTON, and wstrgettext().
Referenced by GUIKeyChangeMenu().
◆ OnEvent()
bool GUIKeyChangeMenu::OnEvent |
( |
const SEvent & | event | ) |
|
|
virtual |
Reimplemented from GUIModalMenu.
References acceptInput(), active_key, irr::gui::StaticText::add(), key_setting::button, GUIModalMenu::canTakeFocus(), FATAL_ERROR_IF, GUI_ID_ABORT_BUTTON, GUI_ID_BACK_BUTTON, infostream, key_setting::key, key_settings, key_used_text, KeyPress::name(), GUIModalMenu::quitMenu(), resetMenu(), shift_down, KeyPress::sym(), and wstrgettext().
◆ pausesGame()
bool GUIKeyChangeMenu::pausesGame |
( |
| ) |
|
|
inlinevirtual |
◆ regenerateGui()
void GUIKeyChangeMenu::regenerateGui |
( |
v2u32 | screensize | ) |
|
|
virtual |
Implements GUIModalMenu.
References irr::gui::StaticText::add(), GUIButton::addButton(), key_setting::button, key_setting::button_name, g_settings, Settings::getBool(), GUIModalMenu::getScalingInfo(), GUI_ID_ABORT_BUTTON, GUI_ID_BACK_BUTTON, GUI_ID_CB_AUTOJUMP, GUI_ID_CB_AUX1_DESCENDS, GUI_ID_CB_DOUBLETAP_JUMP, key_setting::id, key_setting::key, key_settings, key_used_text, KMaxButtonPerColumns, m_tsrc, KeyPress::name(), GUIModalMenu::ScalingInfo::rect, GUIModalMenu::ScalingInfo::scale, and wstrgettext().
◆ resetMenu()
bool GUIKeyChangeMenu::resetMenu |
( |
| ) |
|
|
private |
◆ active_key
◆ key_settings
std::vector<key_setting *> GUIKeyChangeMenu::key_settings |
|
private |
◆ key_used_text
gui::IGUIStaticText* GUIKeyChangeMenu::key_used_text = nullptr |
|
private |
◆ m_tsrc
◆ shift_down
bool GUIKeyChangeMenu::shift_down = false |
|
private |
The documentation for this class was generated from the following files: