8#include <unordered_map>
87 using ButtonMap = std::unordered_map<touch_gui_button_id, ButtonMeta>;
128 static std::unordered_map<touch_gui_button_id, irr_ptr<video::ITexture>>
texture_cache;
132 const std::vector<touch_gui_button_id> &buttons,
Definition texturesource.h:34
core::vector2d< s32 > v2s32
Definition irr_v2d.h:13
core::vector2d< f32 > v2f
Definition irr_v2d.h:11
core::vector2d< u32 > v2u32
Definition irr_v2d.h:14
Definition fontengine.h:15
Definition clientmap.h:36
Definition enum_string.h:11
const char * button_titles[]
Definition touchscreenlayout.cpp:55
const char * button_image_names[]
Definition touchscreenlayout.cpp:84
const char * button_names[]
Definition touchscreenlayout.cpp:25
const struct EnumString es_TouchInteractionStyle[]
Definition touchscreenlayout.cpp:17
TouchInteractionStyle
Definition touchscreenlayout.h:26
@ TAP
Definition touchscreenlayout.h:27
@ TAP_CROSSHAIR
Definition touchscreenlayout.h:28
@ BUTTONS_CROSSHAIR
Definition touchscreenlayout.h:29
touch_gui_button_id
Definition touchscreenlayout.h:34
@ joystick_center_id
Definition touchscreenlayout.h:63
@ fast_id
Definition touchscreenlayout.h:52
@ chat_id
Definition touchscreenlayout.h:45
@ place_id
Definition touchscreenlayout.h:36
@ inventory_id
Definition touchscreenlayout.h:46
@ debug_id
Definition touchscreenlayout.h:54
@ range_id
Definition touchscreenlayout.h:56
@ zoom_id
Definition touchscreenlayout.h:40
@ exit_id
Definition touchscreenlayout.h:48
@ aux1_id
Definition touchscreenlayout.h:41
@ fly_id
Definition touchscreenlayout.h:51
@ minimap_id
Definition touchscreenlayout.h:57
@ camera_id
Definition touchscreenlayout.h:55
@ touch_gui_button_id_END
Definition touchscreenlayout.h:65
@ drop_id
Definition touchscreenlayout.h:47
@ jump_id
Definition touchscreenlayout.h:38
@ joystick_off_id
Definition touchscreenlayout.h:61
@ toggle_chat_id
Definition touchscreenlayout.h:58
@ joystick_bg_id
Definition touchscreenlayout.h:62
@ dig_id
Definition touchscreenlayout.h:35
@ sneak_id
Definition touchscreenlayout.h:39
@ noclip_id
Definition touchscreenlayout.h:53
@ overflow_id
Definition touchscreenlayout.h:42
void layout_button_grid(v2u32 screensize, ISimpleTextureSource *tsrc, const std::vector< touch_gui_button_id > &buttons, const std::function< void(touch_gui_button_id btn, v2s32 pos, core::recti rect)> &callback)
Definition touchscreenlayout.cpp:367
void make_button_grid_title(gui::IGUIStaticText *text, touch_gui_button_id btn, v2s32 pos, core::recti rect)
Definition touchscreenlayout.cpp:405