RigsofRods
Soft-body Physics Simulation
Functions | Variables
GUI_VehicleInfoTPanel.cpp File Reference
#include "GUI_VehicleInfoTPanel.h"
#include "Application.h"
#include "Actor.h"
#include "SimData.h"
#include "Language.h"
#include "EngineSim.h"
#include "GameContext.h"
#include "GfxActor.h"
#include "GUIManager.h"
#include "Utils.h"
#include "GUIUtils.h"
+ Include dependency graph for GUI_VehicleInfoTPanel.cpp:

Go to the source code of this file.

Functions

const ImVec2 MAX_PREVIEW_SIZE (100.f, 100.f)
 
void DrawStatsLineColored (const char *name, const std::string &value, ImVec4 value_color)
 
void DrawStatsLine (const char *name, const std::string &value)
 
void DrawStatsBullet (const char *name, const std::string &value)
 
std::string FormatVelocityBySpeedoPreset (float velocity)
 
const ImVec2 BUTTON_SIZE (18, 18)
 
const ImVec2 BUTTON_OFFSET (0, 3.f)
 
const ImVec2 BUTTONDUMMY_SIZE (18, 1)
 
void DrawSingleBulletRow (const char *name, RoR::events ev)
 
bool DrawSingleButtonRow (bool active, const Ogre::TexturePtr &icon, const char *name, RoR::events ev, bool *btn_active=nullptr)
 

Variables

const float HELP_TEXTURE_WIDTH = 512.f
 
const float HELP_TEXTURE_HEIGHT = 128.f
 
const float MIN_PANEL_WIDTH = 230.f
 
const float BUTTON_Y_OFFSET = 0.f
 

Function Documentation

◆ BUTTON_OFFSET()

const ImVec2 BUTTON_OFFSET ( ,
3.  f 
)
+ Here is the caller graph for this function:

◆ BUTTON_SIZE()

const ImVec2 BUTTON_SIZE ( 18  ,
18   
)
+ Here is the caller graph for this function:

◆ BUTTONDUMMY_SIZE()

const ImVec2 BUTTONDUMMY_SIZE ( 18  ,
 
)
+ Here is the caller graph for this function:

◆ DrawSingleBulletRow()

void DrawSingleBulletRow ( const char *  name,
RoR::events  ev 
)

Definition at line 608 of file GUI_VehicleInfoTPanel.cpp.

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

◆ DrawSingleButtonRow()

bool DrawSingleButtonRow ( bool  active,
const Ogre::TexturePtr &  icon,
const char *  name,
RoR::events  ev,
bool *  btn_active = nullptr 
)

Definition at line 798 of file GUI_VehicleInfoTPanel.cpp.

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

◆ DrawStatsBullet()

void DrawStatsBullet ( const char *  name,
const std::string &  value 
)

Definition at line 356 of file GUI_VehicleInfoTPanel.cpp.

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

◆ DrawStatsLine()

void DrawStatsLine ( const char *  name,
const std::string &  value 
)

Definition at line 351 of file GUI_VehicleInfoTPanel.cpp.

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

◆ DrawStatsLineColored()

void DrawStatsLineColored ( const char *  name,
const std::string &  value,
ImVec4  value_color 
)

Definition at line 335 of file GUI_VehicleInfoTPanel.cpp.

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

◆ FormatVelocityBySpeedoPreset()

std::string FormatVelocityBySpeedoPreset ( float  velocity)

Definition at line 366 of file GUI_VehicleInfoTPanel.cpp.

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

◆ MAX_PREVIEW_SIZE()

const ImVec2 MAX_PREVIEW_SIZE ( 100.  f,
100.  f 
)
+ Here is the caller graph for this function:

Variable Documentation

◆ BUTTON_Y_OFFSET

const float BUTTON_Y_OFFSET = 0.f

Definition at line 605 of file GUI_VehicleInfoTPanel.cpp.

◆ HELP_TEXTURE_HEIGHT

const float HELP_TEXTURE_HEIGHT = 128.f

Definition at line 39 of file GUI_VehicleInfoTPanel.cpp.

◆ HELP_TEXTURE_WIDTH

const float HELP_TEXTURE_WIDTH = 512.f

Definition at line 38 of file GUI_VehicleInfoTPanel.cpp.

◆ MIN_PANEL_WIDTH

const float MIN_PANEL_WIDTH = 230.f

Definition at line 41 of file GUI_VehicleInfoTPanel.cpp.