12#include <unordered_map>
86 using ButtonMap = std::unordered_map<touch_gui_button_id, ButtonMeta>;
127 static std::unordered_map<touch_gui_button_id, irr_ptr<video::ITexture>>
texture_cache;
131 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:16
Definition clientmap.h:36
Definition enum_string.h:11
TouchInteractionStyle
Definition touchscreenlayout.h:25
@ TAP
Definition touchscreenlayout.h:26
@ TAP_CROSSHAIR
Definition touchscreenlayout.h:27
@ BUTTONS_CROSSHAIR
Definition touchscreenlayout.h:28
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
touch_gui_button_id
Definition touchscreenlayout.h:33
@ joystick_center_id
Definition touchscreenlayout.h:62
@ fast_id
Definition touchscreenlayout.h:51
@ chat_id
Definition touchscreenlayout.h:44
@ place_id
Definition touchscreenlayout.h:35
@ inventory_id
Definition touchscreenlayout.h:45
@ debug_id
Definition touchscreenlayout.h:53
@ range_id
Definition touchscreenlayout.h:55
@ zoom_id
Definition touchscreenlayout.h:39
@ exit_id
Definition touchscreenlayout.h:47
@ aux1_id
Definition touchscreenlayout.h:40
@ fly_id
Definition touchscreenlayout.h:50
@ minimap_id
Definition touchscreenlayout.h:56
@ camera_id
Definition touchscreenlayout.h:54
@ touch_gui_button_id_END
Definition touchscreenlayout.h:64
@ drop_id
Definition touchscreenlayout.h:46
@ jump_id
Definition touchscreenlayout.h:37
@ joystick_off_id
Definition touchscreenlayout.h:60
@ toggle_chat_id
Definition touchscreenlayout.h:57
@ joystick_bg_id
Definition touchscreenlayout.h:61
@ dig_id
Definition touchscreenlayout.h:34
@ sneak_id
Definition touchscreenlayout.h:38
@ noclip_id
Definition touchscreenlayout.h:52
@ overflow_id
Definition touchscreenlayout.h:41
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