SuperTuxKart
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
RaceGUIMultitouch Class Reference

Public Member Functions

 RaceGUIMultitouch (RaceGUIBase *race_gui)
 The multitouch GUI constructor.
 
 ~RaceGUIMultitouch ()
 The multitouch GUI destructor.
 
void draw (const AbstractKart *kart, const core::recti &viewport, const core::vector2df &scaling)
 Draws the buttons for multitouch race GUI.
 
unsigned int getHeight ()
 
bool isSpectatorMode ()
 
void setGuiAction (bool enabled=true)
 
void reset ()
 Sets the multitouch race gui to its initial state.
 
void recreate ()
 Recreate multitouch race gui when config was changed.
 

Private Member Functions

void init ()
 Initializes multitouch race gui.
 
void createRaceGUI ()
 Determines the look of multitouch race GUI interface.
 
void createSpectatorGUI ()
 Determines the look of spectator GUI interface.
 
void close ()
 Clears all previously created buttons in the multitouch device.
 

Static Private Member Functions

static void onCustomButtonPress (unsigned int button_id, bool pressed)
 Callback function when custom button is pressed.
 

Private Attributes

RaceGUIBasem_race_gui
 
MultitouchDevicem_device
 
bool m_gui_action
 
bool m_is_spectator_mode
 
unsigned int m_height
 
video::ITexture * m_steering_wheel_tex
 
video::ITexture * m_steering_wheel_tex_mask_up
 
video::ITexture * m_steering_wheel_tex_mask_down
 
video::ITexture * m_accelerator_tex
 
video::ITexture * m_accelerator_handle_tex
 
video::ITexture * m_pause_tex
 
video::ITexture * m_nitro_tex
 
video::ITexture * m_nitro_empty_tex
 
video::ITexture * m_wing_mirror_tex
 
video::ITexture * m_thunderbird_reset_tex
 
video::ITexture * m_drift_tex
 
video::ITexture * m_bg_button_tex
 
video::ITexture * m_bg_button_focus_tex
 
video::ITexture * m_gui_action_tex
 
video::ITexture * m_up_tex
 
video::ITexture * m_down_tex
 
video::ITexture * m_screen_tex
 

Member Function Documentation

◆ draw()

void RaceGUIMultitouch::draw ( const AbstractKart kart,
const core::recti &  viewport,
const core::vector2df &  scaling 
)

Draws the buttons for multitouch race GUI.

Parameters
kartThe kart for which to show the data.
viewportThe viewport to use.
scalingWhich scaling to apply to the buttons.

The documentation for this class was generated from the following files: