RigsofRods
Soft-body Physics Simulation
Public Member Functions | Private Attributes
RoR::GUI::DirectionArrow Class Reference

#include <GUI_DirectionArrow.h>

Public Member Functions

void LoadOverlay ()
 Must be called after meshes+overlays were loaded. More...
 
void CreateArrow ()
 Must be called again after OGRE scenemanager is cleared. More...
 
void Update (RoR::GfxActor *player)
 
bool IsVisible ()
 
void SetVisible (bool value)
 Only effective in main menu, simulation visibility is set in Update() More...
 

Private Attributes

Ogre::SceneNode * m_node = nullptr
 
Ogre::Overlay * m_overlay = nullptr
 
Ogre::TextAreaOverlayElement * m_text = nullptr
 
Ogre::TextAreaOverlayElement * m_distance_text = nullptr
 

Detailed Description

Definition at line 36 of file GUI_DirectionArrow.h.

Member Function Documentation

◆ CreateArrow()

void GUI::DirectionArrow::CreateArrow ( )

Must be called again after OGRE scenemanager is cleared.

Definition at line 50 of file GUI_DirectionArrow.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsVisible()

bool RoR::GUI::DirectionArrow::IsVisible ( )
inline

Definition at line 42 of file GUI_DirectionArrow.h.

◆ LoadOverlay()

void GUI::DirectionArrow::LoadOverlay ( )

Must be called after meshes+overlays were loaded.

Definition at line 38 of file GUI_DirectionArrow.cpp.

+ Here is the caller graph for this function:

◆ SetVisible()

void GUI::DirectionArrow::SetVisible ( bool  value)

Only effective in main menu, simulation visibility is set in Update()

Definition at line 87 of file GUI_DirectionArrow.cpp.

+ Here is the caller graph for this function:

◆ Update()

void GUI::DirectionArrow::Update ( RoR::GfxActor player)

Definition at line 66 of file GUI_DirectionArrow.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ m_distance_text

Ogre::TextAreaOverlayElement* RoR::GUI::DirectionArrow::m_distance_text = nullptr
private

Definition at line 49 of file GUI_DirectionArrow.h.

◆ m_node

Ogre::SceneNode* RoR::GUI::DirectionArrow::m_node = nullptr
private

Definition at line 46 of file GUI_DirectionArrow.h.

◆ m_overlay

Ogre::Overlay* RoR::GUI::DirectionArrow::m_overlay = nullptr
private

Definition at line 47 of file GUI_DirectionArrow.h.

◆ m_text

Ogre::TextAreaOverlayElement* RoR::GUI::DirectionArrow::m_text = nullptr
private

Definition at line 48 of file GUI_DirectionArrow.h.


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