Luanti
5.11.0-dev
▼
Luanti
The Minetest engine internal documentation
Deprecated List
►
Namespaces
►
Classes
▼
Files
▼
File List
►
benchmark
►
client
►
content
►
database
doc
▼
gui
guiAnimatedImage.cpp
►
guiAnimatedImage.h
guiBackgroundImage.cpp
►
guiBackgroundImage.h
guiBox.cpp
►
guiBox.h
►
guiButton.cpp
►
guiButton.h
guiButtonImage.cpp
►
guiButtonImage.h
guiButtonItemImage.cpp
►
guiButtonItemImage.h
►
guiChatConsole.cpp
►
guiChatConsole.h
guiEditBox.cpp
►
guiEditBox.h
guiEditBoxWithScrollbar.cpp
►
guiEditBoxWithScrollbar.h
►
guiEngine.cpp
►
guiEngine.h
►
guiFormSpecMenu.cpp
►
guiFormSpecMenu.h
►
guiHyperText.cpp
►
guiHyperText.h
guiInventoryList.cpp
►
guiInventoryList.h
guiItemImage.cpp
►
guiItemImage.h
►
guiKeyChangeMenu.cpp
►
guiKeyChangeMenu.h
►
guiMainMenu.h
►
guiOpenURL.cpp
►
guiOpenURL.h
►
guiPasswordChange.cpp
►
guiPasswordChange.h
guiPathSelectMenu.cpp
►
guiPathSelectMenu.h
guiScene.cpp
►
guiScene.h
►
guiScrollBar.cpp
►
guiScrollBar.h
guiScrollContainer.cpp
►
guiScrollContainer.h
guiTable.cpp
►
guiTable.h
►
guiVolumeChange.cpp
►
guiVolumeChange.h
►
mainmenumanager.h
►
modalMenu.cpp
►
modalMenu.h
profilergraph.cpp
►
profilergraph.h
►
StyleSpec.h
►
touchcontrols.cpp
►
touchcontrols.h
►
touchscreeneditor.cpp
►
touchscreeneditor.h
►
touchscreenlayout.cpp
►
touchscreenlayout.h
►
irrlicht_changes
►
mapgen
►
network
►
script
►
server
►
threading
►
unittest
►
util
►
activeobject.h
►
activeobjectmgr.h
►
catch.cpp
►
catch.h
chat.cpp
►
chat.h
►
chat_interface.h
►
chatmessage.h
►
particles.cpp
►
sound.h
clientdynamicinfo.cpp
►
clientdynamicinfo.h
►
collision.cpp
►
collision.h
►
config.h
►
constants.h
►
content_mapnode.cpp
►
content_mapnode.h
►
content_nodemeta.cpp
►
content_nodemeta.h
►
convert_json.cpp
►
convert_json.h
►
craftdef.cpp
►
craftdef.h
►
daynightratio.h
►
debug.cpp
►
debug.h
►
defaultsettings.cpp
►
defaultsettings.h
►
dummygamedef.h
►
dummymap.h
emerge.cpp
►
emerge.h
►
emerge_internal.h
►
environment.cpp
►
environment.h
►
exceptions.h
face_position_cache.cpp
►
face_position_cache.h
►
filesys.cpp
►
filesys.h
►
gamedef.h
►
gameparams.h
►
gettext.cpp
►
gettext.h
►
gettext_plural_form.cpp
►
gettext_plural_form.h
►
gettime.h
►
httpfetch.cpp
►
httpfetch.h
►
hud.cpp
►
hud.h
►
inventory.cpp
►
inventory.h
►
inventorymanager.cpp
►
inventorymanager.h
►
irr_aabb3d.h
►
irr_gui_ptr.h
►
irr_v2d.h
►
irr_v3d.h
►
irrlichttypes.h
irrlichttypes_bloated.h
irrlichttypes_extrabloated.h
►
itemdef.cpp
►
itemdef.h
►
itemgroup.h
►
itemstackmetadata.cpp
►
itemstackmetadata.h
json-forwards.h
light.cpp
►
light.h
►
lighting.h
►
log.cpp
►
log.h
►
log_internal.h
►
main.cpp
►
map.cpp
►
map.h
map_settings_manager.cpp
►
map_settings_manager.h
►
mapblock.cpp
►
mapblock.h
►
mapnode.cpp
►
mapnode.h
mapsector.cpp
►
mapsector.h
metadata.cpp
►
metadata.h
►
migratesettings.h
►
modchannels.cpp
►
modchannels.h
►
modifiedstate.h
nameidmapping.cpp
►
nameidmapping.h
►
nodedef.cpp
►
nodedef.h
nodemetadata.cpp
►
nodemetadata.h
nodetimer.cpp
►
nodetimer.h
►
noise.cpp
►
noise.h
objdef.cpp
►
objdef.h
►
object_properties.cpp
►
object_properties.h
►
particles.h
►
pathfinder.cpp
►
pathfinder.h
►
player.cpp
►
player.h
►
porting.cpp
►
porting.h
►
porting_android.cpp
►
porting_android.h
►
profiler.cpp
►
profiler.h
►
raycast.cpp
►
raycast.h
reflowscan.cpp
►
reflowscan.h
remoteplayer.cpp
►
remoteplayer.h
rollback_interface.cpp
►
rollback_interface.h
►
serialization.cpp
►
serialization.h
►
server.cpp
►
server.h
►
serverenvironment.cpp
►
serverenvironment.h
►
servermap.cpp
►
servermap.h
►
settings.cpp
►
settings.h
►
settings_translation_file.cpp
►
skyparams.h
staticobject.cpp
►
staticobject.h
terminal_chat_console.cpp
►
terminal_chat_console.h
►
texture_override.cpp
►
texture_override.h
tileanimation.cpp
►
tileanimation.h
►
tool.cpp
►
tool.h
►
translation.cpp
►
translation.h
►
version.cpp
►
version.h
►
voxel.cpp
►
voxel.h
►
voxelalgorithms.cpp
►
voxelalgorithms.h
►
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
Loading...
Searching...
No Matches
guiKeyChangeMenu.h
Go to the documentation of this file.
1
// Luanti
2
// SPDX-License-Identifier: LGPL-2.1-or-later
3
// Copyright (C) 2010-2013 celeron55, Perttu Ahola <celeron55@gmail.com>
4
// Copyright (C) 2013 Ciaran Gultnieks <ciaran@ciarang.com>
5
// Copyright (C) 2013 teddydestodes <derkomtur@schattengang.net>
6
7
#pragma once
8
9
#include "
irrlichttypes_extrabloated.h
"
10
#include "
modalMenu.h
"
11
#include "
gettext.h
"
12
#include "
client/keycode.h
"
13
#include <string>
14
#include <vector>
15
16
class
ISimpleTextureSource
;
17
18
struct
key_setting
19
{
20
int
id
;
21
std::wstring
button_name
;
22
KeyPress
key
;
23
std::string
setting_name
;
24
gui::IGUIButton *
button
;
25
};
18
struct
key_setting
{
…
};
26
27
class
GUIKeyChangeMenu
:
public
GUIModalMenu
28
{
29
public
:
30
GUIKeyChangeMenu
(gui::IGUIEnvironment *env, gui::IGUIElement *parent, s32
id
,
31
IMenuManager
*menumgr,
ISimpleTextureSource
*tsrc);
32
~GUIKeyChangeMenu
();
33
34
/*
35
Remove and re-add (or reposition) stuff
36
*/
37
void
regenerateGui
(
v2u32
screensize);
38
39
void
drawMenu
();
40
41
bool
acceptInput
();
42
43
bool
OnEvent
(
const
SEvent &event);
44
45
bool
pausesGame
() {
return
true
; }
46
47
protected
:
48
std::wstring
getLabelByID
(s32
id
) {
return
L
""
; }
49
std::string
getNameByID
(s32
id
) {
return
""
; }
50
51
private
:
52
void
init_keys
();
53
54
bool
resetMenu
();
55
56
void
add_key
(
int
id
, std::wstring button_name,
const
std::string &setting_name);
57
58
bool
shift_down
=
false
;
59
60
key_setting
*
active_key
=
nullptr
;
61
gui::IGUIStaticText *
key_used_text
=
nullptr
;
62
std::vector<key_setting *>
key_settings
;
63
ISimpleTextureSource
*
m_tsrc
;
64
};
27
class
GUIKeyChangeMenu
:
public
GUIModalMenu
{
…
};
GUIKeyChangeMenu
Definition
guiKeyChangeMenu.h:28
GUIKeyChangeMenu::add_key
void add_key(int id, std::wstring button_name, const std::string &setting_name)
Definition
guiKeyChangeMenu.cpp:355
GUIKeyChangeMenu::getNameByID
std::string getNameByID(s32 id)
Definition
guiKeyChangeMenu.h:49
GUIKeyChangeMenu::resetMenu
bool resetMenu()
Definition
guiKeyChangeMenu.cpp:242
GUIKeyChangeMenu::acceptInput
bool acceptInput()
Definition
guiKeyChangeMenu.cpp:207
GUIKeyChangeMenu::regenerateGui
void regenerateGui(v2u32 screensize)
Definition
guiKeyChangeMenu.cpp:91
GUIKeyChangeMenu::m_tsrc
ISimpleTextureSource * m_tsrc
Definition
guiKeyChangeMenu.h:63
GUIKeyChangeMenu::GUIKeyChangeMenu
GUIKeyChangeMenu(gui::IGUIEnvironment *env, gui::IGUIElement *parent, s32 id, IMenuManager *menumgr, ISimpleTextureSource *tsrc)
Definition
guiKeyChangeMenu.cpp:71
GUIKeyChangeMenu::pausesGame
bool pausesGame()
Definition
guiKeyChangeMenu.h:45
GUIKeyChangeMenu::active_key
key_setting * active_key
Definition
guiKeyChangeMenu.h:60
GUIKeyChangeMenu::~GUIKeyChangeMenu
~GUIKeyChangeMenu()
Definition
guiKeyChangeMenu.cpp:80
GUIKeyChangeMenu::OnEvent
bool OnEvent(const SEvent &event)
Definition
guiKeyChangeMenu.cpp:251
GUIKeyChangeMenu::key_used_text
gui::IGUIStaticText * key_used_text
Definition
guiKeyChangeMenu.h:61
GUIKeyChangeMenu::shift_down
bool shift_down
Definition
guiKeyChangeMenu.h:58
GUIKeyChangeMenu::key_settings
std::vector< key_setting * > key_settings
Definition
guiKeyChangeMenu.h:62
GUIKeyChangeMenu::drawMenu
void drawMenu()
Definition
guiKeyChangeMenu.cpp:194
GUIKeyChangeMenu::getLabelByID
std::wstring getLabelByID(s32 id)
Definition
guiKeyChangeMenu.h:48
GUIKeyChangeMenu::init_keys
void init_keys()
Definition
guiKeyChangeMenu.cpp:367
GUIModalMenu
Definition
modalMenu.h:38
IMenuManager
Definition
modalMenu.h:27
ISimpleTextureSource
Definition
texturesource.h:25
KeyPress
Definition
keycode.h:24
gettext.h
v2u32
core::vector2d< u32 > v2u32
Definition
irr_v2d.h:14
irrlichttypes_extrabloated.h
keycode.h
modalMenu.h
key_setting
Definition
guiKeyChangeMenu.h:19
key_setting::setting_name
std::string setting_name
Definition
guiKeyChangeMenu.h:23
key_setting::button_name
std::wstring button_name
Definition
guiKeyChangeMenu.h:21
key_setting::id
int id
Definition
guiKeyChangeMenu.h:20
key_setting::button
gui::IGUIButton * button
Definition
guiKeyChangeMenu.h:24
key_setting::key
KeyPress key
Definition
guiKeyChangeMenu.h:22
gui
guiKeyChangeMenu.h
Generated on Sat Feb 1 2025 10:20:55 for Luanti by
1.11.0