Rigs of Rods 2026.01
Soft-body Physics Simulation
Loading...
Searching...
No Matches
Functions | Variables
GUI_VehicleInfoTPanel.cpp File Reference
#include "GUI_VehicleInfoTPanel.h"
#include "Application.h"
#include "Actor.h"
#include "SimData.h"
#include "Language.h"
#include "Engine.h"
#include "GameContext.h"
#include "GfxActor.h"
#include "GUIManager.h"
#include "Utils.h"
#include "GUIUtils.h"

Go to the source code of this file.

Functions

const ImVec2 MAX_PREVIEW_SIZE (6.25f, 6.25f)
 
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)
 
const ImVec2 BUTTON_SIZE (1.125f, 1.125f)
 
const ImVec2 BUTTON_OFFSET (0, 0.1875f)
 
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 = 32.f
 
const float HELP_TEXTURE_HEIGHT = 5.f
 
const float HELP_TEXTURE_HEIGHT_FULL = 8.f
 
const float MIN_PANEL_WIDTH = 14.375f
 
const float MIN_HOVERBOX_WIDTH = 15.f
 
const float BUTTON_Y_OFFSET = 0.f
 

Function Documentation

◆ BUTTON_OFFSET()

const ImVec2 BUTTON_OFFSET ( 0  ,
0.  1875f 
)

◆ BUTTON_SIZE()

const ImVec2 BUTTON_SIZE ( 1.  125f,
1.  125f 
)

◆ DrawSingleBulletRow()

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

Definition at line 716 of file GUI_VehicleInfoTPanel.cpp.

◆ DrawSingleButtonRow()

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

Definition at line 942 of file GUI_VehicleInfoTPanel.cpp.

◆ DrawStatsBullet()

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

Definition at line 414 of file GUI_VehicleInfoTPanel.cpp.

◆ DrawStatsLine()

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

Definition at line 409 of file GUI_VehicleInfoTPanel.cpp.

◆ DrawStatsLineColored()

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

Definition at line 393 of file GUI_VehicleInfoTPanel.cpp.

◆ MAX_PREVIEW_SIZE()

const ImVec2 MAX_PREVIEW_SIZE ( 6.  25f,
6.  25f 
)

Variable Documentation

◆ BUTTON_Y_OFFSET

const float BUTTON_Y_OFFSET = 0.f

Definition at line 714 of file GUI_VehicleInfoTPanel.cpp.

◆ HELP_TEXTURE_HEIGHT

const float HELP_TEXTURE_HEIGHT = 5.f

Definition at line 40 of file GUI_VehicleInfoTPanel.cpp.

◆ HELP_TEXTURE_HEIGHT_FULL

const float HELP_TEXTURE_HEIGHT_FULL = 8.f

Definition at line 41 of file GUI_VehicleInfoTPanel.cpp.

◆ HELP_TEXTURE_WIDTH

const float HELP_TEXTURE_WIDTH = 32.f

Definition at line 39 of file GUI_VehicleInfoTPanel.cpp.

◆ MIN_HOVERBOX_WIDTH

const float MIN_HOVERBOX_WIDTH = 15.f

Definition at line 44 of file GUI_VehicleInfoTPanel.cpp.

◆ MIN_PANEL_WIDTH

const float MIN_PANEL_WIDTH = 14.375f

Definition at line 43 of file GUI_VehicleInfoTPanel.cpp.