11#include <unordered_map>
82 std::unordered_map<touch_gui_button_id, ButtonMeta>
layout;
95 static std::unordered_map<touch_gui_button_id, irr_ptr<video::ITexture>>
texture_cache;
99 const std::vector<touch_gui_button_id> &buttons,
Definition texturesource.h:25
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:14
Definition clientmap.h:35
const char * button_titles[]
Definition touchscreenlayout.cpp:43
const char * button_image_names[]
Definition touchscreenlayout.cpp:69
const char * button_names[]
Definition touchscreenlayout.cpp:16
touch_gui_button_id
Definition touchscreenlayout.h:24
@ joystick_center_id
Definition touchscreenlayout.h:50
@ fast_id
Definition touchscreenlayout.h:39
@ chat_id
Definition touchscreenlayout.h:32
@ inventory_id
Definition touchscreenlayout.h:33
@ debug_id
Definition touchscreenlayout.h:41
@ range_id
Definition touchscreenlayout.h:43
@ zoom_id
Definition touchscreenlayout.h:27
@ exit_id
Definition touchscreenlayout.h:35
@ aux1_id
Definition touchscreenlayout.h:28
@ fly_id
Definition touchscreenlayout.h:38
@ minimap_id
Definition touchscreenlayout.h:44
@ camera_id
Definition touchscreenlayout.h:42
@ touch_gui_button_id_END
Definition touchscreenlayout.h:52
@ drop_id
Definition touchscreenlayout.h:34
@ jump_id
Definition touchscreenlayout.h:25
@ joystick_off_id
Definition touchscreenlayout.h:48
@ toggle_chat_id
Definition touchscreenlayout.h:45
@ joystick_bg_id
Definition touchscreenlayout.h:49
@ sneak_id
Definition touchscreenlayout.h:26
@ noclip_id
Definition touchscreenlayout.h:40
@ overflow_id
Definition touchscreenlayout.h:29
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:297
void make_button_grid_title(gui::IGUIStaticText *text, touch_gui_button_id btn, v2s32 pos, core::recti rect)
Definition touchscreenlayout.cpp:335