18#ifndef HEADER_RACE_GUI_MULTITOUCH_HPP
19#define HEADER_RACE_GUI_MULTITOUCH_HPP
45 bool m_is_spectator_mode;
46 unsigned int m_height;
48 video::ITexture* m_steering_wheel_tex;
49 video::ITexture* m_steering_wheel_tex_mask_up;
50 video::ITexture* m_steering_wheel_tex_mask_down;
51 video::ITexture* m_accelerator_tex;
52 video::ITexture* m_accelerator_handle_tex;
53 video::ITexture* m_pause_tex;
54 video::ITexture* m_nitro_tex;
55 video::ITexture* m_nitro_empty_tex;
56 video::ITexture* m_wing_mirror_tex;
57 video::ITexture* m_thunderbird_reset_tex;
58 video::ITexture* m_drift_tex;
59 video::ITexture* m_bg_button_tex;
60 video::ITexture* m_bg_button_focus_tex;
61 video::ITexture* m_gui_action_tex;
62 video::ITexture* m_up_tex;
63 video::ITexture* m_down_tex;
64 video::ITexture* m_screen_tex;
77 const core::vector2df &scaling);
79 unsigned int getHeight() {
return m_height;}
80 bool isSpectatorMode() {
return m_is_spectator_mode;}
81 void setGuiAction(
bool enabled =
true) {m_gui_action = enabled;}
An abstract interface for the actual karts.
Definition: abstract_kart.hpp:62
Definition: multitouch_device.hpp:76
An abstract base class for the two race guis (race_gui and race_result gui)
Definition: race_gui_base.hpp:50
Definition: race_gui_multitouch.hpp:39
static void onCustomButtonPress(unsigned int button_id, bool pressed)
Callback function when custom button is pressed.
Definition: race_gui_multitouch.cpp:319
void reset()
Sets the multitouch race gui to its initial state.
Definition: race_gui_multitouch.cpp:84
void createRaceGUI()
Determines the look of multitouch race GUI interface.
Definition: race_gui_multitouch.cpp:182
void recreate()
Recreate multitouch race gui when config was changed.
Definition: race_gui_multitouch.cpp:95
void init()
Initializes multitouch race gui.
Definition: race_gui_multitouch.cpp:127
void draw(const AbstractKart *kart, const core::recti &viewport, const core::vector2df &scaling)
Draws the buttons for multitouch race GUI.
Definition: race_gui_multitouch.cpp:357
~RaceGUIMultitouch()
The multitouch GUI destructor.
Definition: race_gui_multitouch.cpp:76
void createSpectatorGUI()
Determines the look of spectator GUI interface.
Definition: race_gui_multitouch.cpp:277
void close()
Clears all previously created buttons in the multitouch device.
Definition: race_gui_multitouch.cpp:106