RigsofRods
Soft-body Physics Simulation
GUI_VehicleInfoTPanel.cpp
Go to the documentation of this file.
1 /*
2  This source file is part of Rigs of Rods
3  Copyright 2005-2012 Pierre-Michel Ricordel
4  Copyright 2007-2012 Thomas Fischer
5  Copyright 2013-2024 Petr Ohlidal
6 
7  For more information, see http://www.rigsofrods.org/
8 
9  Rigs of Rods is free software: you can redistribute it and/or modify
10  it under the terms of the GNU General Public License version 3, as
11  published by the Free Software Foundation.
12 
13  Rigs of Rods is distributed in the hope that it will be useful,
14  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  GNU General Public License for more details.
17 
18  You should have received a copy of the GNU General Public License
19  along with Rigs of Rods. If not, see <http://www.gnu.org/licenses/>.
20 */
21 
22 #include "GUI_VehicleInfoTPanel.h"
23 
24 #include "Application.h"
25 #include "Actor.h"
26 #include "SimData.h"
27 #include "Language.h"
28 #include "EngineSim.h"
29 #include "GameContext.h"
30 #include "GfxActor.h"
31 #include "GUIManager.h"
32 #include "Utils.h"
33 #include "GUIUtils.h"
34 
35 using namespace RoR;
36 using namespace GUI;
37 
38 const float HELP_TEXTURE_WIDTH = 512.f;
39 const float HELP_TEXTURE_HEIGHT = 128.f;
40 const ImVec2 MAX_PREVIEW_SIZE(100.f, 100.f);
41 const float MIN_PANEL_WIDTH = 230.f;
42 
44 {
45  // === DETERMINE VISIBILITY ===
46 
47  // Show only once for 5 sec, with a notice
48  bool show_translucent = false;
49  if (App::ui_show_vehicle_buttons->getBool() && actorx && !m_startupdemo_init)
50  {
51  m_startupdemo_timer.reset();
53  fmt::format(_LC("VehicleButtons", "Hover the mouse on the left to see controls")), "lightbulb.png");
54  m_startupdemo_init = true;
55  }
56  if (App::ui_show_vehicle_buttons->getBool() && m_startupdemo_timer.getMilliseconds() < 5000)
57  {
58  show_translucent = true;
59  }
60 
61  // Show when mouse is on the left of screen
63  && App::ui_show_vehicle_buttons->getBool()
64  && App::GetGuiManager()->AreStaticMenusAllowed()
65  && (ImGui::GetIO().MousePos.x <= MIN_PANEL_WIDTH + ImGui::GetStyle().WindowPadding.x*2))
66  {
67  show_translucent = true;
68  }
69 
70  if (show_translucent && m_visibility_mode != TPANELMODE_OPAQUE)
71  {
73  }
74  else if (!show_translucent && m_visibility_mode != TPANELMODE_OPAQUE)
75  {
77  }
78 
80  {
81  return;
82  }
83 
84  // === OPEN IMGUI WINDOW ===
85 
87 
88  ImGuiWindowFlags flags = ImGuiWindowFlags_NoCollapse |
89  ImGuiWindowFlags_NoMove | ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoTitleBar;
90 
91  ImGui::SetNextWindowPos(ImVec2(theme.screen_edge_padding.x, (theme.screen_edge_padding.y + 110)));
92  ImGui::SetNextWindowContentWidth(MIN_PANEL_WIDTH);
93  switch (m_visibility_mode)
94  {
95  case TPANELMODE_OPAQUE:
96  ImGui::PushStyleColor(ImGuiCol_WindowBg, theme.semitransparent_window_bg);
97  ImGui::PushStyleColor(ImGuiCol_TextDisabled, ImGui::GetStyle().Colors[ImGuiCol_TextDisabled]);
98  break;
99 
101  ImGui::PushStyleColor(ImGuiCol_WindowBg, m_panel_translucent_color);
102  ImGui::PushStyleColor(ImGuiCol_TextDisabled, m_transluc_textdis_color);
103  break;
104 
105  default:
106  break;
107  }
108  ImGui::Begin("VehicleInfoTPanel", nullptr, flags);
109 
110  // === DECIDE WHAT THE WINDOW WILL DISPLAY ===
111 
112  int tabflags_basics = ImGuiTabItemFlags_None;
113  int tabflags_stats = ImGuiTabItemFlags_None;
114  int tabflags_commands = ImGuiTabItemFlags_None;
115  int tabflags_diag = ImGuiTabItemFlags_None;
117  {
118  switch (m_requested_focus)
119  {
120  case TPANELFOCUS_BASICS: tabflags_basics = ImGuiTabItemFlags_SetSelected; break;
121  case TPANELFOCUS_STATS: tabflags_stats = ImGuiTabItemFlags_SetSelected; break;
122  case TPANELFOCUS_DIAG: tabflags_diag = ImGuiTabItemFlags_SetSelected; break;
123  case TPANELFOCUS_COMMANDS: tabflags_commands = ImGuiTabItemFlags_SetSelected; break;
124  default:;
125  }
126 
127  // Reset the request
129  }
130 
131  // === DRAW THE WINDOW HEADER - MINI IMAGE (if available) AND VEHICLE NAME ===
132 
133  ImVec2 name_pos = ImGui::GetCursorPos();
134  ImVec2 tabs_pos;
135  if (actorx->GetActor()->getUsedActorEntry()->filecachename != "")
136  {
137  Ogre::TexturePtr preview_tex = Ogre::TextureManager::getSingleton().load(
139  // Scale the image
140  ImVec2 MAX_PREVIEW_SIZE(100.f, 100.f);
141  ImVec2 size(preview_tex->getWidth(), preview_tex->getHeight());
142  size *= MAX_PREVIEW_SIZE.x / size.x; // Fit size along X
143  if (size.y > MAX_PREVIEW_SIZE.y) // Reduce size along Y if needed
144  {
145  size *= MAX_PREVIEW_SIZE.y / size.y;
146  }
147  // Draw the image
148  ImGui::Image(reinterpret_cast<ImTextureID>(preview_tex->getHandle()), size);
149  tabs_pos = ImGui::GetCursorPos();
150  // Move name to the right
151  name_pos.x += size.x + ImGui::GetStyle().ItemSpacing.x;
152  ImGui::SetCursorPos(name_pos);
153  }
154 
156 
157  // === DRAW TAB BAR ===
158 
159  if (actorx->GetActor()->getUsedActorEntry()->filecachename != "")
160  {
161  ImGui::SetCursorPos(tabs_pos);
162  }
163  ImGui::BeginTabBar("VehicleInfoTPanelTabs", ImGuiTabBarFlags_None);
164  if (ImGui::BeginTabItem(_LC("TPanel", "Basics"), nullptr, tabflags_basics))
165  {
167  this->DrawVehicleBasicsUI(actorx);
168 
169  ImGui::EndTabItem();
170  }
171  if (ImGui::BeginTabItem(_LC("TPanel", "Stats"), nullptr, tabflags_stats))
172  {
174  this->DrawVehicleStatsUI(actorx);
175 
176  ImGui::EndTabItem();
177  }
178  if (ImGui::BeginTabItem(_LC("TPanel", "Commands"), nullptr, tabflags_commands))
179  {
181  this->DrawVehicleCommandsUI(actorx);
182 
183  ImGui::EndTabItem();
184  }
185  if (ImGui::BeginTabItem(_LC("TPanel", "Diag"), nullptr, tabflags_diag))
186  {
188  this->DrawVehicleDiagUI(actorx);
189 
190  ImGui::EndTabItem();
191  }
192 
193  ImGui::EndTabBar();
194 
195  ImGui::End();
196  ImGui::PopStyleColor(2); // WindowBg, TextDisabled
197 
198  this->DrawVehicleCommandHighlights(actorx);
199 }
200 
202 {
203  // === DRAW DESCRIPTION (if available) ===
204 
205  if (!actorx->GetActor()->getDescription().empty())
206  {
207  ImGui::TextDisabled("%s", _LC("VehicleDescription", "Description text:"));
208  for (auto line : actorx->GetActor()->getDescription())
209  {
210  ImGui::TextWrapped("%s", line.c_str());
211  }
212  }
213 
214  // === DRAW HELP TEXTURE (if available) ===
215 
216  if (actorx->GetHelpTex())
217  {
218  ImGui::TextDisabled("%s", _LC("VehicleDescription", "Help image:"));
219  ImGui::SameLine();
220  ImGui::SetCursorPosX(MIN_PANEL_WIDTH - (ImGui::CalcTextSize(_LC("VehicleDescription", "Full size")).x + 25.f));
221  ImGui::Checkbox(_LC("VehicleDescription", "Full size"), &m_helptext_fullsize);
222 
224  {
225  m_helptext_fullsize_screenpos = ImGui::GetCursorScreenPos();
226  ImGui::Dummy(ImVec2(MIN_PANEL_WIDTH, HELP_TEXTURE_HEIGHT));
227  this->DrawVehicleHelpTextureFullsize(actorx);
228  }
229  else
230  {
231  ImTextureID im_tex = reinterpret_cast<ImTextureID>(actorx->GetHelpTex()->getHandle());
232  ImGui::Image(im_tex, ImVec2(MIN_PANEL_WIDTH, HELP_TEXTURE_HEIGHT));
233  }
234  }
235 
236  // === DRAW COMMAND KEYS, WITH HIGHLIGHT ===
237 
240 
241  if (actorx->GetActor()->ar_unique_commandkey_pairs.size() > 0)
242  {
243  ImGui::TextDisabled("%s", _LC("VehicleDescription", "Command controls:"));
244  ImGui::PushStyleColor(ImGuiCol_Text, m_cmdbeam_highlight_color);
245  ImGui::Text("%s", _LC("VehicleDescription", "Hover controls for on-vehicle highlight"));
246  ImGui::PopStyleColor(1); // Text
247 
248  for (const UniqueCommandKeyPair& qpair: actorx->GetActor()->ar_unique_commandkey_pairs)
249  {
250  // Calc key-button sizes for right alignment (also to check if they fit on the description line)
251  ImVec2 initial_cursor = ImGui::GetCursorScreenPos();
252  const RoR::events event1 = (RoR::events)RoR::InputEngine::resolveEventName(fmt::format("COMMANDS_{:02d}", qpair.uckp_key1));
253  const RoR::events event2 = (RoR::events)RoR::InputEngine::resolveEventName(fmt::format("COMMANDS_{:02d}", qpair.uckp_key2));
254  std::string desc = qpair.uckp_description;
255  if (qpair.uckp_description == "")
256  {
257  desc = _LC("VehicleDescription", "~unlabeled~");
258  }
259  ImVec2 key1_size = ImCalcEventHighlightedSize(event1);
260  ImVec2 key2_size = ImCalcEventHighlightedSize(event2);
261  ImVec2 desc_size = ImGui::CalcTextSize(desc.c_str());
262  const bool single_line = ImGui::GetWindowContentRegionMax().x > desc_size.x + key1_size.x + key2_size.x;
263  static const float BUMP_HEIGHT = 3.f;
264  static const float MOUSEHIGHLIGHT_MAGICPADRIGHT = 4.f;
265 
266  // The line-highlighting: Done manually because `ImGui::Selectable()` blocks buttons under it (or gets blocked by buttons with the `_AllowItemOverlap` flag).
267  ImVec2 highlight_mouse_min = initial_cursor - ImGui::GetStyle().ItemSpacing/2;
268  ImVec2 highlight_mouse_max = highlight_mouse_min + ImVec2(ImGui::GetWindowContentRegionWidth()+MOUSEHIGHLIGHT_MAGICPADRIGHT, ImGui::GetTextLineHeightWithSpacing());
269  if (!single_line)
270  {
271  highlight_mouse_max.y += ImGui::GetTextLineHeightWithSpacing() - BUMP_HEIGHT;
272  }
273 
274  if ((ImGui::GetMousePos().x > highlight_mouse_min.x && ImGui::GetMousePos().y > highlight_mouse_min.y)
275  && (ImGui::GetMousePos().x < highlight_mouse_max.x && ImGui::GetMousePos().y < highlight_mouse_max.y))
276  {
277  // This is only for the command-highlight HUD; key1/key2 both point to the same command beams.
278  m_hovered_commandkey = qpair.uckp_key1;
279 
280  // Draw the highlight
281  ImVec4 col = m_cmdbeam_highlight_color;
282  col.w = 0.55f;
283  ImDrawList* draw_list = ImGui::GetWindowDrawList();
284  draw_list->AddRectFilled(highlight_mouse_min, highlight_mouse_max, ImColor(col));
285 
286  // Description comes first - colored for contrast
287  ImGui::TextColored(m_command_hovered_text_color, "%s", desc.c_str());
288  }
289  else
290  {
291  // Description comes first
292  ImGui::Text("%s", desc.c_str());
293  }
294 
295 
296  if (single_line)
297  {
298  ImGui::SameLine(); // They fit!
299  }
300  else
301  {
302  ImGui::SetCursorPos(ImGui::GetCursorPos() + ImVec2(0.f, -BUMP_HEIGHT)); // They must go below, but bump them up a bit
303  }
304 
305  // Key 1
306  bool key1_hovered = false;
307  bool key1_active = false;
308  ImGui::SetCursorPosX((ImGui::GetWindowContentRegionMax().x) - key1_size.x - key2_size.x - ImGui::GetStyle().ItemSpacing.x);
309  ImDrawEventHighlightedButton(event1, &key1_hovered, &key1_active);
310  if (key1_active)
311  {
312  m_active_commandkey = qpair.uckp_key1;
313  }
314  if (key1_hovered)
315  {
316  m_hovered_commandkey = qpair.uckp_key1;
317  }
318  ImGui::SameLine();
319 
320  // Key 2
321  ImGui::SetCursorPosX((ImGui::GetWindowContentRegionMax().x) - key2_size.x);
322  bool key2_hovered = false;
323  bool key2_active = false;
324  ImDrawEventHighlightedButton(event2, &key2_hovered, &key2_active);
325  if (key2_active)
326  {
327  m_active_commandkey = qpair.uckp_key2;
328  }
329  if (key2_hovered)
330  {
331  m_hovered_commandkey = qpair.uckp_key2;
332  }
333  }
334  }
335 }
336 
337 void DrawStatsLineColored(const char* name, const std::string& value, ImVec4 value_color)
338 {
340  ImGui::TextColored(theme.value_blue_text_color, "%s", name);
341  // If the value is too long, move it to next line
342  ImVec2 label_size = ImGui::CalcTextSize(name);
343  ImVec2 value_size = ImGui::CalcTextSize(value.c_str());
344  float cursor_x_desired = - ImGui::CalcTextSize(value.c_str()).x;
345  if (label_size.x + value_size.x + ImGui::GetStyle().ItemSpacing.x < ImGui::GetWindowContentRegionWidth())
346  {
347  ImGui::SameLine();
348  }
349  ImGui::SetCursorPosX(ImGui::GetWindowContentRegionMax().x - value_size.x);
350  ImGui::TextColored(value_color, "%s", value.c_str());
351 }
352 
353 void DrawStatsLine(const char* name, const std::string& value)
354 {
355  DrawStatsLineColored(name, value, ImGui::GetStyle().Colors[ImGuiCol_Text]);
356 }
357 
358 void DrawStatsBullet(const char* name, const std::string& value)
359 {
361  ImGui::PushStyleColor(ImGuiCol_Text, theme.value_blue_text_color);
362  ImGui::Bullet();
363  ImGui::PopStyleColor(); // Text
364  ImGui::SameLine();
365  DrawStatsLineColored(name, value, ImGui::GetStyle().Colors[ImGuiCol_Text]);
366 }
367 
368 std::string FormatVelocityBySpeedoPreset(float velocity)
369 {
370  if (App::gfx_speedo_imperial->getBool())
371  {
372  return fmt::format("{:.0f} mph", Round(velocity * 2.23693629f));
373  }
374  else
375  {
376  return fmt::format("{:.0f} km/h", Round(velocity * 3.6f));
377  }
378 }
379 
381 {
383  ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(ImGui::GetStyle().ItemSpacing.x, 0));
384 
385  if (m_stat_health < 1.0f)
386  {
387  const float value = static_cast<float>( Round((1.0f - m_stat_health) * 100.0f, 2) );
388  DrawStatsLine(_LC("SimActorStats", "Vehicle health: "), fmt::format("{:.2f}%", value));
389  }
390  else if (m_stat_health >= 1.0f) //When this condition is true, it means that health is at 0% which means 100% of destruction.
391  {
392  DrawStatsLine(_LC("SimActorStats", "Vehicle destruction: "), "100%");
393  }
394 
395  const int num_beams = actorx->GetActor()->ar_num_beams;
396  DrawStatsLine(_LC("SimActorStats", "Beam count: "), fmt::format("{}", num_beams));
397 
398  const float broken_pct = static_cast<float>( Round((float)m_stat_broken_beams / (float)num_beams, 2) * 100.0f );
399  DrawStatsLine(_LC("SimActorStats", "Broken beams count: "), fmt::format("{} ({:.0f}%)", m_stat_broken_beams, broken_pct));
400 
401  const float deform_pct = static_cast<float>( Round((float)m_stat_deformed_beams / (float)num_beams * 100.0f) );
402  DrawStatsLine(_LC("SimActorStats", "Deformed beams count: "), fmt::format("{} ({:.0f}%)", m_stat_deformed_beams, deform_pct));
403 
404  const float avg_deform = static_cast<float>( Round((float)m_stat_avg_deform / (float)num_beams, 4) * 100.0f );
405  DrawStatsLine(_LC("SimActorStats", "Average deformation: "), fmt::format("{:.2f}", avg_deform));
406 
407  const float avg_stress = 1.f - (float)m_stat_beam_stress / (float)num_beams;
408  DrawStatsLine(_LC("SimActorStats", "Average stress: "), fmt::format("{:+08.0f}", avg_stress));
409 
410  ImGui::NewLine();
411 
412  const int num_nodes = actorx->GetActor()->ar_num_nodes;
413  const int num_wheelnodes = actorx->GetActor()->getWheelNodeCount();
414  DrawStatsLine(_LC("SimActorStats", "Node count: "), fmt::format("{} (wheels: {})", num_nodes, num_wheelnodes));
415 
416  DrawStatsLine(_LC("SimActorStats", "Total mass: "), fmt::format("{:8.2f} Kg {:.2f} tons)", m_stat_mass_Kg, m_stat_mass_Kg / 1000.0f));
417 
418  ImGui::NewLine();
419 
420  const float n0_velo_len = actorx->GetSimDataBuffer().simbuf_node0_velo.length();
422  {
423  const double PI = 3.14159265358979323846;
424 
425  const float max_rpm = actorx->GetSimDataBuffer().simbuf_engine_max_rpm;
426  const float torque = actorx->GetSimDataBuffer().simbuf_engine_torque;
427  const float turbo_psi = actorx->GetSimDataBuffer().simbuf_engine_turbo_psi;
428  const float cur_rpm = actorx->GetSimDataBuffer().simbuf_engine_rpm;
429  const float wheel_speed = actorx->GetSimDataBuffer().simbuf_wheel_speed;
430 
431  const ImVec4 rpm_color = (cur_rpm > max_rpm) ? theme.value_red_text_color : ImGui::GetStyle().Colors[ImGuiCol_Text];
432  DrawStatsLineColored(_LC("SimActorStats", "Engine RPM: "), fmt::format("{:.2f} / {:.2f}", cur_rpm, max_rpm), rpm_color);
433 
434  const float inputshaft_rpm = Round(std::max(0.0f, actorx->GetSimDataBuffer().simbuf_inputshaft_rpm));
435  DrawStatsLineColored(_LC("SimActorStats", "Input shaft RPM: "), fmt::format("{:.0f}", inputshaft_rpm), rpm_color);
436 
437  DrawStatsLine(_LC("SimActorStats", "Current torque: "), fmt::format("{:.0f} Nm", Round(torque)));
438 
439  const float currentKw = (((cur_rpm * (torque + ((turbo_psi * 6.8) * torque) / 100) * ( PI / 30)) / 1000));
440  DrawStatsLine(_LC("SimActorStats", "Current power: "), fmt::format("{:.0f}hp ({:.0f}Kw)", Round(currentKw *1.34102209), Round(currentKw)));
441 
442  DrawStatsLine(_LC("SimActorStats", "Current gear: "), fmt::format("{}", actorx->GetSimDataBuffer().simbuf_gear));
443 
444  DrawStatsLine(_LC("SimActorStats", "Drive ratio: "), fmt::format("{:.2f}:1", actorx->GetSimDataBuffer().simbuf_drive_ratio));
445 
446  DrawStatsLine(_LC("SimActorStats", "Wheel speed: "), FormatVelocityBySpeedoPreset(wheel_speed));
447 
448  DrawStatsLine(_LC("SimActorStats", "Vehicle speed: "), FormatVelocityBySpeedoPreset(n0_velo_len));
449  }
450  else // Aircraft or boat
451  {
452  float speedKN = n0_velo_len * 1.94384449f;
453  DrawStatsLine(_LC("SimActorStats", "Current speed: "), fmt::format("{:.0f} kn ({})", Round(speedKN), FormatVelocityBySpeedoPreset(n0_velo_len)));
454 
455  if (actorx->GetSimDataBuffer().simbuf_driveable == AIRPLANE)
456  {
457  const float altitude = actorx->GetSimNodeBuffer()[0].AbsPosition.y / 30.48 * 100;
458  DrawStatsLine(_LC("SimActorStats", "Altitude: "), fmt::format("{:.0f} feet ({:.0f} meters)", Round(altitude), Round(altitude * 0.30480)));
459 
460  int engine_num = 1; // UI; count from 1
462  {
463  std::string label = fmt::format("{} #{}:", _LC("SimActorStats", "Engine "), engine_num);
464  if (ae.simbuf_ae_type == AeroEngineType::AE_XPROP) // Turboprop/pistonprop
465  {
466  DrawStatsLine(label.c_str(), fmt::format("{:.2f} RPM", ae.simbuf_ae_rpm));
467  }
468  else // Turbojet
469  {
470  DrawStatsLine(label.c_str(), fmt::format("{:.2f}", ae.simbuf_ae_rpm));
471  }
472  ++engine_num;
473  }
474  }
475  else if (actorx->GetSimDataBuffer().simbuf_driveable == BOAT)
476  {
477  int engine_num = 1; // UI; count from 1
478  for (ScrewpropSB& screw: actorx->GetSimDataBuffer().simbuf_screwprops)
479  {
480  std::string label = fmt::format("{} #{}:", _LC("SimActorStats", "Engine "), engine_num);
481  DrawStatsLine(label.c_str(), fmt::format("{:.2f}", screw.simbuf_sp_throttle));
482  ++engine_num;
483  }
484  }
485  }
486 
487  ImGui::NewLine();
488 
489  DrawStatsLine(_LC("SimActorStats", "Top speed: "), FormatVelocityBySpeedoPreset(actorx->GetSimDataBuffer().simbuf_top_speed));
490 
491  ImGui::NewLine();
492 
493  DrawStatsLine(_LC("SimActorStats", "G-Forces:"), "");
494  DrawStatsBullet("Vertical:", fmt::format("{: 6.2f}g ({:1.2f}g)", m_stat_gcur_x, m_stat_gmax_x));
495  DrawStatsBullet("Sagittal:", fmt::format("{: 6.2f}g ({:1.2f}g)", m_stat_gcur_y, m_stat_gmax_y));
496  DrawStatsBullet("Lateral:", fmt::format("{: 6.2f}g ({:1.2f}g)", m_stat_gcur_z, m_stat_gmax_z));
497 
498  ImGui::PopStyleVar(); // ItemSpacing
499 }
500 
502 {
503  ImGui::TextDisabled("%s", _LC("TopMenubar", "Live diagnostic views:"));
504  ImGui::TextDisabled("%s", fmt::format(_LC("TopMenubar", "(Toggle with {})"), App::GetInputEngine()->getEventCommandTrimmed(EV_COMMON_TOGGLE_DEBUG_VIEW)).c_str());
505  ImGui::TextDisabled("%s", fmt::format(_LC("TopMenubar", "(Cycle with {})"), App::GetInputEngine()->getEventCommandTrimmed(EV_COMMON_CYCLE_DEBUG_VIEWS)).c_str());
506 
507  int debug_view_type = static_cast<int>(actorx->GetDebugView());
508  ImGui::RadioButton(_LC("TopMenubar", "Normal view"), &debug_view_type, static_cast<int>(DebugViewType::DEBUGVIEW_NONE));
509  ImGui::RadioButton(_LC("TopMenubar", "Skeleton view"), &debug_view_type, static_cast<int>(DebugViewType::DEBUGVIEW_SKELETON));
510  ImGui::RadioButton(_LC("TopMenubar", "Node details"), &debug_view_type, static_cast<int>(DebugViewType::DEBUGVIEW_NODES));
511  ImGui::RadioButton(_LC("TopMenubar", "Beam details"), &debug_view_type, static_cast<int>(DebugViewType::DEBUGVIEW_BEAMS));
512  ActorPtr current_actor = actorx->GetActor();
513  if (current_actor->ar_num_wheels > 0)
514  {
515  ImGui::RadioButton(_LC("TopMenubar", "Wheel details"), &debug_view_type, static_cast<int>(DebugViewType::DEBUGVIEW_WHEELS));
516  }
517  if (current_actor->ar_num_shocks > 0)
518  {
519  ImGui::RadioButton(_LC("TopMenubar", "Shock details"), &debug_view_type, static_cast<int>(DebugViewType::DEBUGVIEW_SHOCKS));
520  }
521  if (current_actor->ar_num_rotators > 0)
522  {
523  ImGui::RadioButton(_LC("TopMenubar", "Rotator details"), &debug_view_type, static_cast<int>(DebugViewType::DEBUGVIEW_ROTATORS));
524  }
525  if (current_actor->hasSlidenodes())
526  {
527  ImGui::RadioButton(_LC("TopMenubar", "Slidenode details"), &debug_view_type, static_cast<int>(DebugViewType::DEBUGVIEW_SLIDENODES));
528  }
529  if (current_actor->ar_num_cabs > 0)
530  {
531  ImGui::RadioButton(_LC("TopMenubar", "Submesh details"), &debug_view_type, static_cast<int>(DebugViewType::DEBUGVIEW_SUBMESH));
532  }
533 
534  if ((current_actor != nullptr) && (debug_view_type != static_cast<int>(current_actor->GetGfxActor()->GetDebugView())))
535  {
536  current_actor->GetGfxActor()->SetDebugView(static_cast<DebugViewType>(debug_view_type));
537  }
538 
539  if (debug_view_type >= 1 && debug_view_type <= static_cast<int>(DebugViewType::DEBUGVIEW_BEAMS))
540  {
541  ImGui::Separator();
542  ImGui::TextDisabled("%s", _LC("TopMenubar", "Settings:"));
543  DrawGCheckbox(App::diag_hide_broken_beams, _LC("TopMenubar", "Hide broken beams"));
544  DrawGCheckbox(App::diag_hide_beam_stress, _LC("TopMenubar", "Hide beam stress"));
545  DrawGCheckbox(App::diag_hide_wheels, _LC("TopMenubar", "Hide wheels"));
546  DrawGCheckbox(App::diag_hide_nodes, _LC("TopMenubar", "Hide nodes"));
547  if (debug_view_type >= 2)
548  {
549  DrawGCheckbox(App::diag_hide_wheel_info, _LC("TopMenubar", "Hide wheel info"));
550  }
551  }
552 
553 }
554 
556 {
557  m_visibility_mode = mode;
558  m_requested_focus = focus; // Cannot be handled here, must be handled in Draw() while window is open.
559 }
560 
562 {
563  //taken from TruckHUD.cpp (now removed)
564  beam_t* beam = actor->ar_beams;
565  float average_deformation = 0.0f;
566  float beamstress = 0.0f;
567  float mass = actor->getTotalMass();
568  int beambroken = 0;
569  int beamdeformed = 0;
570  Ogre::Vector3 gcur = actor->getGForces();
571  Ogre::Vector3 gmax = actor->getMaxGForces();
572 
573  for (int i = 0; i < actor->ar_num_beams; i++ , beam++)
574  {
575  if (beam->bm_broken != 0)
576  {
577  beambroken++;
578  }
579  beamstress += std::abs(beam->stress);
580  float current_deformation = fabs(beam->L - beam->refL);
581  if (fabs(current_deformation) > 0.0001f && beam->bm_type != BEAM_HYDRO)
582  {
583  beamdeformed++;
584  }
585  average_deformation += current_deformation;
586  }
587 
588  m_stat_health = ((float)beambroken / (float)actor->ar_num_beams) * 10.0f + ((float)beamdeformed / (float)actor->ar_num_beams);
589  m_stat_broken_beams = beambroken;
590  m_stat_deformed_beams = beamdeformed;
591  m_stat_beam_stress = beamstress;
592  m_stat_mass_Kg = mass;
593  m_stat_avg_deform = average_deformation;
594  m_stat_gcur_x = gcur.x;
595  m_stat_gcur_y = gcur.y;
596  m_stat_gcur_z = gcur.z;
597  m_stat_gmax_x = gmax.x;
598  m_stat_gmax_y = gmax.y;
599  m_stat_gmax_z = gmax.z;
600 }
601 
602 const ImVec2 BUTTON_SIZE(18, 18);
603 const ImVec2 BUTTON_OFFSET(0, 3.f);
604 const float BUTTON_Y_OFFSET = 0.f;
605 const ImVec2 BUTTONDUMMY_SIZE(18, 1);
606 
607 void DrawSingleBulletRow(const char* name, RoR::events ev)
608 {
609  ImGui::Dummy(BUTTONDUMMY_SIZE); ImGui::SameLine(); ImGui::Bullet(); ImGui::Text("%s", name);
610  ImGui::SameLine();
611  const ImVec2 btn_size = ImCalcEventHighlightedSize(ev);
612  ImGui::SetCursorPosX(ImGui::GetWindowContentRegionWidth() - btn_size.x);
614 }
615 
617 {
619 
620  if (!m_icons_cached)
621  {
622  this->CacheIcons();
623  }
624 
625  ImGui::TextDisabled("Simulation:");
626  this->DrawRepairButton(actorx);
627  this->DrawActorPhysicsButton(actorx);
628 
629  int num_headlights = actorx->GetActor()->countFlaresByType(FlareType::HEADLIGHT);
630  int num_taillights = actorx->GetActor()->countFlaresByType(FlareType::TAIL_LIGHT);
631  int num_blinkleft = actorx->GetActor()->countFlaresByType(FlareType::BLINKER_LEFT);
632  int num_blinkright = actorx->GetActor()->countFlaresByType(FlareType::BLINKER_RIGHT);
633  int num_beacons = actorx->countBeaconProps();
634  bool has_horn = actorx->GetActor()->getTruckType() == TRUCK;
635  if (num_headlights || num_taillights || num_blinkleft || num_blinkright || num_beacons || has_horn)
636  {
637  ImGui::TextDisabled("Lights and signals:");
638  if (num_headlights || num_taillights)
639  {
640  this->DrawHeadLightButton(actorx);
641  }
642  if (num_blinkleft)
643  {
644  this->DrawLeftBlinkerButton(actorx);
645  }
646  if (num_blinkright)
647  {
648  this->DrawRightBlinkerButton(actorx);
649  }
650  if (num_blinkright || num_blinkleft)
651  {
652  this->DrawWarnBlinkerButton(actorx);
653  }
654  if (num_beacons)
655  {
656  this->DrawBeaconButton(actorx);
657  }
658  if (has_horn)
659  {
660  this->DrawHornButton(actorx);
661  }
662  }
663 
664  int total_customlights = 0;
665  for (int i = 0; i < MAX_CLIGHTS; i++)
666  {
667  total_customlights += actorx->GetActor()->countCustomLights(i);
668  }
669  if (total_customlights > 0)
670  {
671  this->DrawCustomLightButtons(actorx);
672  }
673 
674  const bool has_engine = actorx->GetActor()->ar_engine != nullptr;
675  const bool engine_running = has_engine && actorx->GetActor()->ar_engine->isRunning();
676  const bool has_transfercase = actorx->GetActor()->getTransferCaseMode() != nullptr;
677  const bool has_4wd = has_transfercase && actorx->GetActor()->getTransferCaseMode()->tr_ax_2 != -1;
678  const bool has_2wd = has_transfercase && actorx->GetActor()->getTransferCaseMode()->tr_2wd;
679  const size_t num_tc_gears = (has_transfercase) ? actorx->GetActor()->getTransferCaseMode()->tr_gear_ratios.size() : 0u;
680  if (has_engine)
681  {
682  ImGui::TextDisabled("Engine:");
683  this->DrawEngineButton(actorx);
684  if (!engine_running)
685  {
687  }
688  if (has_transfercase && has_4wd && has_2wd)
689  {
690  this->DrawTransferCaseModeButton(actorx);
691  }
692  if (has_transfercase && num_tc_gears > 1)
693  {
694  this->DrawTransferCaseGearRatioButton(actorx);
695  }
696 
697  this->DrawShiftModeButton(actorx);
698 
699  switch (actorx->GetActor()->ar_engine->GetAutoShiftMode())
700  {
704  break;
709  break;
715  break;
717  break;
719  break;
720  }
721 
722  }
723 
724  const int num_axlediffs = actorx->GetActor()->getAxleDiffMode();
725  const int num_wheeldiffs = actorx->GetActor()->getWheelDiffMode();
726  const bool tc_visible = !actorx->GetActor()->tc_nodash;
727  const bool alb_visible = !actorx->GetActor()->alb_nodash;
728  const bool has_parkingbrake = actorx->GetActor()->getTruckType() != NOT_DRIVEABLE && actorx->GetActor()->getTruckType() != BOAT;
729  if (num_axlediffs || num_wheeldiffs || tc_visible || alb_visible || has_parkingbrake || has_engine)
730  {
731  ImGui::TextDisabled("Traction:");
732  if (num_axlediffs)
733  {
734  this->DrawAxleDiffButton(actorx);
735  }
736  if (num_wheeldiffs)
737  {
738  this->DrawWheelDiffButton(actorx);
739  }
740  if (tc_visible)
741  {
742  this->DrawTractionControlButton(actorx);
743  }
744  if (alb_visible)
745  {
746  this->DrawAntiLockBrakeButton(actorx);
747  }
748  if (has_parkingbrake)
749  {
750  this->DrawParkingBrakeButton(actorx);
751  }
752  if (has_engine)
753  {
754  this->DrawCruiseControlButton(actorx);
755  }
756  }
757 
758  const size_t num_locks = actorx->GetActor()->ar_hooks.size();
759  const size_t num_ties = actorx->GetActor()->ar_ties.size();
760  if (num_locks || num_ties)
761  {
762  ImGui::TextDisabled("Connections:");
763  if (num_locks)
764  {
765  this->DrawLockButton(actorx);
766  }
767  if (num_ties)
768  {
769  this->DrawSecureButton(actorx);
770  }
771  }
772 
773  const int num_cparticles = actorx->GetActor()->ar_num_custom_particles;
774  const size_t num_videocams = actorx->getNumVideoCameras();
775  ImGui::TextDisabled("View:");
776  if (num_cparticles)
777  {
778  this->DrawParticlesButton(actorx);
779  }
780  if (num_videocams)
781  {
782  this->DrawMirrorButton(actorx);
783  }
784 
785  this->DrawCameraButton();
786 }
787 
789 {
791  {
792  return;
793  }
794 
795  ImDrawList* draw_list = GetImDummyFullscreenWindow("RoR_VehicleCommandHighlights");
796  for (const commandbeam_t& cmdbeam: actorx->GetActor()->ar_command_key[m_hovered_commandkey].beams)
797  {
798  const beam_t& beam = actorx->GetActor()->ar_beams[cmdbeam.cmb_beam_index];
799  ImVec2 p1_pos, p2_pos;
800  if (GetScreenPosFromWorldPos(beam.p1->AbsPosition, p1_pos) && GetScreenPosFromWorldPos(beam.p2->AbsPosition, p2_pos))
801  {
802  draw_list->AddLine(p1_pos, p2_pos, ImColor(m_cmdbeam_highlight_color), m_cmdbeam_highlight_thickness);
803  }
804  }
805 }
806 
808 {
809  // In order to draw the image on top of the T-panel, the window must be focusable,
810  // so we can't simply use `GetImDummyFullscreenWindow()`
811  // ===============================================================================
812 
813  int window_flags = ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoScrollbar
814  | ImGuiWindowFlags_NoSavedSettings ;
815  ImGui::SetNextWindowPos(m_helptext_fullsize_screenpos - ImGui::GetStyle().WindowPadding);
816  ImGui::SetNextWindowSize(ImVec2(HELP_TEXTURE_WIDTH, HELP_TEXTURE_HEIGHT) + ImGui::GetStyle().WindowPadding);
817  ImGui::PushStyleColor(ImGuiCol_WindowBg, ImVec4(0, 0, 0, 0)); // Fully transparent background!
818  ImGui::Begin("T-Panel help tex fullsize", NULL, window_flags);
819  ImDrawList* drawlist = ImGui::GetWindowDrawList();
820  ImTextureID im_tex = reinterpret_cast<ImTextureID>(actorx->GetHelpTex()->getHandle());
821  drawlist->AddImage(im_tex, m_helptext_fullsize_screenpos,
823  ImGui::End();
824  ImGui::PopStyleColor(1); // WindowBg
825 }
826 
827 bool DrawSingleButtonRow(bool active, const Ogre::TexturePtr& icon, const char* name, RoR::events ev, bool* btn_active = nullptr)
828 {
829  if (active)
830  {
831  ImGui::PushStyleColor(ImGuiCol_Button, ImGui::GetStyle().Colors[ImGuiCol_ButtonActive]);
832  }
833  else
834  {
835  ImGui::PushStyleColor(ImGuiCol_Button, ImGui::GetStyle().Colors[ImGuiCol_Button]);
836  }
837 
838  ImGui::GetWindowDrawList()->AddRectFilled(
839  ImGui::GetCursorScreenPos() - BUTTON_OFFSET, ImGui::GetCursorScreenPos() + BUTTON_SIZE,
840  ImColor(ImGui::GetStyle().Colors[ImGuiCol_Button]), ImGui::GetStyle().FrameRounding);
841  ImGui::GetWindowDrawList()->AddImage(reinterpret_cast<ImTextureID>(icon->getHandle()),
842  ImGui::GetCursorScreenPos() - BUTTON_OFFSET, ImGui::GetCursorScreenPos() + BUTTON_SIZE);
843  ImGui::SetCursorPosX(ImGui::GetCursorPosX() + BUTTON_SIZE.x + 2*ImGui::GetStyle().ItemSpacing.x);
844  ImGui::PopStyleColor();
845 
846  ImGui::Text("%s", name);
847  ImGui::SameLine();
848  const ImVec2 btn_size = ImCalcEventHighlightedSize(ev);
849  ImGui::SetCursorPosX(ImGui::GetWindowContentRegionMax().x - btn_size.x);
850  return ImDrawEventHighlightedButton(ev, nullptr, btn_active);
851 }
852 
854 {
856  {
857  actorx->GetActor()->toggleHeadlights();
858  }
859 }
860 
862 {
864  {
865  actorx->GetActor()->toggleBlinkType(BLINK_LEFT);
866  }
867 }
868 
870 {
872  {
874  }
875 }
876 
878 {
880  {
881  actorx->GetActor()->toggleBlinkType(BLINK_WARN);
882  }
883 }
884 
886 {
887  if (actorx->GetActor()->ar_is_police) // Police siren
888  {
890  {
891  SOUND_TOGGLE(actorx->GetActor(), SS_TRIG_HORN);
892  }
893  }
894  else
895  {
896  // Triggering continuous command every frame is sloppy
897  // Set state and read it in GameContext via GetHornButtonState()
899  }
900 }
901 
903 {
905  {
907  {
909  }
910  else
911  {
913  }
914  }
915 }
916 
918 {
920  {
922  rq->amr_actor = actorx->GetActor()->ar_instance_id;
925  }
926 }
927 
929 {
931  {
932  actorx->GetActor()->parkingbrakeToggle();
933  }
934 }
935 
937 {
939  {
940  actorx->GetActor()->tractioncontrolToggle();
941  }
942 }
943 
945 {
947  {
948  actorx->GetActor()->antilockbrakeToggle();
949  }
950 }
951 
953 {
955  {
956  actorx->GetActor()->ar_physics_paused = !actorx->GetActor()->ar_physics_paused;
957  }
958 }
959 
961 {
963  {
964  actorx->GetActor()->toggleAxleDiffMode();
965  actorx->GetActor()->displayAxleDiffMode();
966  }
967 }
968 
970 {
972  {
973  actorx->GetActor()->toggleWheelDiffMode();
974  actorx->GetActor()->displayWheelDiffMode();
975  }
976 }
977 
979 {
981  {
982  actorx->GetActor()->toggleTransferCaseMode();
983  actorx->GetActor()->displayTransferCaseMode();
984  }
985 }
986 
988 {
990  {
992  actorx->GetActor()->displayTransferCaseMode();
993  }
994 }
995 
997 {
999  {
1000  actorx->GetActor()->toggleCustomParticles();
1001  }
1002 }
1003 
1005 {
1007  {
1008  actorx->GetActor()->beaconsToggle();
1009  }
1010 }
1011 
1013 {
1015  {
1016  actorx->GetActor()->ar_engine->ToggleAutoShiftMode();
1017  // force gui update
1018  actorx->GetActor()->RequestUpdateHudFeatures();
1019 
1020  // Inform player via chatbox
1021  const char* msg = nullptr;
1022  switch (actorx->GetActor()->ar_engine->GetAutoShiftMode())
1023  {
1024  case SimGearboxMode::AUTO: msg = "Automatic shift";
1025  break;
1026  case SimGearboxMode::SEMI_AUTO: msg = "Manual shift - Auto clutch";
1027  break;
1028  case SimGearboxMode::MANUAL: msg = "Fully Manual: sequential shift";
1029  break;
1030  case SimGearboxMode::MANUAL_STICK: msg = "Fully manual: stick shift";
1031  break;
1032  case SimGearboxMode::MANUAL_RANGES: msg = "Fully Manual: stick shift with ranges";
1033  break;
1034  }
1036  }
1037 }
1038 
1040 {
1042  {
1043  if (actorx->GetActor()->ar_engine && actorx->GetActor()->ar_engine->isRunning())
1044  {
1045  actorx->GetActor()->ar_engine->toggleContact();
1046  }
1047  else if (actorx->GetActor()->ar_engine)
1048  {
1049  actorx->GetActor()->ar_engine->StartEngine();
1050  }
1051  }
1052 }
1053 
1055 {
1056  int num_custom_flares = 0;
1057 
1058  for (int i = 0; i < MAX_CLIGHTS; i++)
1059  {
1060  if (actorx->GetActor()->countCustomLights(i) > 0)
1061  {
1062  ImGui::PushID(i);
1063  num_custom_flares++;
1064 
1065  if (i == 5 || i == 9) // Add new line every 4 buttons
1066  {
1067  ImGui::NewLine();
1068  }
1069 
1070  std::string label = "L" + std::to_string(i + 1);
1071 
1072  if (actorx->GetActor()->getCustomLightVisible(i))
1073  {
1074  ImGui::PushStyleColor(ImGuiCol_Button, ImGui::GetStyle().Colors[ImGuiCol_ButtonActive]);
1075  }
1076  else
1077  {
1078  ImGui::PushStyleColor(ImGuiCol_Button, ImGui::GetStyle().Colors[ImGuiCol_Button]);
1079  }
1080 
1081  if (ImGui::Button(label.c_str(), ImVec2(32, 0)))
1082  {
1083  actorx->GetActor()->setCustomLightVisible(i, !actorx->GetActor()->getCustomLightVisible(i));
1084  }
1085  if (ImGui::IsItemHovered())
1086  {
1087  ImGui::BeginTooltip();
1088  ImGui::TextDisabled("%s %d (%s)", "Custom Light", i + 1, App::GetInputEngine()->getEventCommandTrimmed(EV_TRUCK_LIGHTTOGGLE01 + i).c_str());
1089  ImGui::EndTooltip();
1090  }
1091  ImGui::SameLine();
1092 
1093  ImGui::PopStyleColor();
1094  ImGui::PopID();
1095  }
1096  }
1097  if (num_custom_flares > 0)
1098  {
1099  ImGui::NewLine();
1100  }
1101 }
1102 
1103 
1104 
1106 {
1107  if (DrawSingleButtonRow(false, m_camera_icon, "Switch Camera", EV_CAMERA_CHANGE))
1108  {
1109  if (App::GetCameraManager()->EvaluateSwitchBehavior())
1110  {
1112  }
1113  }
1114 }
1115 
1117 {
1118  if (DrawSingleButtonRow(actorx->GetActor()->isLocked(), m_lock_icon, "Lock", EV_COMMON_LOCK))
1119  {
1120  //actorx->GetActor()->hookToggle(-1, HOOK_TOGGLE, -1);
1121  ActorLinkingRequest* hook_rq = new ActorLinkingRequest();
1123  hook_rq->alr_actor_instance_id = actorx->GetActor()->ar_instance_id;
1125 
1126  //actorx->GetActor()->toggleSlideNodeLock();
1127  ActorLinkingRequest* slidenode_rq = new ActorLinkingRequest();
1129  slidenode_rq->alr_actor_instance_id = actorx->GetActor()->ar_instance_id;
1131  }
1132 }
1133 
1135 {
1137  {
1138  //actorx->GetActor()->tieToggle(-1, TIE_TOGGLE, -1);
1139  ActorLinkingRequest* tie_rq = new ActorLinkingRequest();
1141  tie_rq->alr_actor_instance_id = actorx->GetActor()->ar_instance_id;
1143  }
1144 }
1145 
1147 {
1149  {
1150  actorx->GetActor()->cruisecontrolToggle();
1151  }
1152 }
1153 
1155 {
1156  // Special element - a hint-only (non-button/highlight) hotkey + 10 inline buttons
1157  // ===============================================================================
1158 
1159  ImGui::GetWindowDrawList()->AddImage(reinterpret_cast<ImTextureID>(m_beacons_icon->getHandle()),
1160  ImGui::GetCursorScreenPos() - BUTTON_OFFSET, ImGui::GetCursorScreenPos() + BUTTON_SIZE);
1161  ImGui::SetCursorPosX(ImGui::GetCursorPosX() + BUTTON_SIZE.x + 2 * ImGui::GetStyle().ItemSpacing.x);
1162 
1163  ImGui::Text("Custom lights");
1164  ImGui::SameLine();
1165  const char* hotkey = "CTRL+[1...]";
1166  ImVec2 keysize = ImGui::CalcTextSize(hotkey);
1167  ImGui::SetCursorPosX((ImGui::GetWindowContentRegionMax().x) - keysize.x - ImGui::GetStyle().ItemSpacing.x);
1168  ImGui::Text(hotkey);
1169 
1170  const ImVec2 BTN_PADDING = ImVec2(1, 1);
1171  const ImVec2 btn_size = ImGui::CalcTextSize("10") + (BTN_PADDING * 2);
1172  ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, BTN_PADDING);
1173  for (int i = 0; i < MAX_CLIGHTS; i++)
1174  {
1175  if (actorx->GetActor()->countCustomLights(i) > 0)
1176  {
1177  ImGui::PushID(i);
1178 
1179  std::string label = std::to_string(i + 1);
1180 
1181  if (actorx->GetActor()->getCustomLightVisible(i))
1182  {
1183  ImGui::PushStyleColor(ImGuiCol_Button, ImGui::GetStyle().Colors[ImGuiCol_ButtonActive]);
1184  }
1185  else
1186  {
1187  ImGui::PushStyleColor(ImGuiCol_Button, ImGui::GetStyle().Colors[ImGuiCol_Button]);
1188  }
1189 
1190  if (ImGui::Button(label.c_str(), btn_size))
1191  {
1192  actorx->GetActor()->setCustomLightVisible(i, !actorx->GetActor()->getCustomLightVisible(i));
1193  }
1194  if (ImGui::IsItemHovered())
1195  {
1196  ImGui::BeginTooltip();
1197  ImGui::TextDisabled("%s", App::GetInputEngine()->getEventCommandTrimmed(EV_TRUCK_LIGHTTOGGLE01 + i).c_str());
1198  ImGui::EndTooltip();
1199  }
1200  ImGui::PopStyleColor(); // Button
1201  ImGui::SameLine();
1202  ImGui::PopID();
1203  }
1204  }
1205  ImGui::PopStyleVar(); // FramePadding
1206 
1207  ImGui::NewLine();
1208 }
1209 
1211 {
1212  // Icons used https://materialdesignicons.com/
1213  // Licence https://github.com/Templarian/MaterialDesign/blob/master/LICENSE
1214 
1215  m_headlight_icon = FetchIcon("car-light-high.png");
1216  m_left_blinker_icon = FetchIcon("arrow-left-bold.png");
1217  m_right_blinker_icon = FetchIcon("arrow-right-bold.png");
1218  m_warning_light_icon = FetchIcon("hazard-lights.png");
1219  m_horn_icon = FetchIcon("bugle.png");
1220  m_mirror_icon = FetchIcon("mirror-rectangle.png");
1221  m_repair_icon = FetchIcon("car-wrench.png");
1222  m_parking_brake_icon = FetchIcon("car-brake-alert.png");
1223  m_traction_control_icon = FetchIcon("car-traction-control.png");
1224  m_abs_icon = FetchIcon("car-brake-abs.png");
1225  m_physics_icon = FetchIcon("pause.png");
1226  m_actor_physics_icon = FetchIcon("pause-circle-outline.png");
1227  m_a_icon = FetchIcon("alpha-a-circle.png");
1228  m_w_icon = FetchIcon("alpha-w-circle.png");
1229  m_m_icon = FetchIcon("alpha-m-circle.png");
1230  m_g_icon = FetchIcon("alpha-g-circle.png");
1231  m_particle_icon = FetchIcon("water.png");
1232  m_shift_icon = FetchIcon("car-shift-pattern.png");
1233  m_engine_icon = FetchIcon("engine.png");
1234  m_beacons_icon = FetchIcon("alarm-light-outline.png");
1235  m_camera_icon = FetchIcon("camera-switch-outline.png");
1236  m_lock_icon = FetchIcon("alpha-l-circle.png");
1237  m_secure_icon = FetchIcon("lock-outline.png");
1238  m_cruise_control_icon = FetchIcon("car-cruise-control.png");
1239 
1240  m_icons_cached = true;
1241 }
RoR::Actor::getAxleDiffMode
int getAxleDiffMode()
Writes info to console/notify box.
Definition: Actor.h:154
GameContext.h
Game state manager and message-queue provider.
RoR::GUI::VehicleInfoTPanel::m_m_icon
Ogre::TexturePtr m_m_icon
Definition: GUI_VehicleInfoTPanel.h:144
RoR::TransferCase::tr_ax_2
int tr_ax_2
This axle is only driven in 4WD mode.
Definition: Differentials.h:50
RoR::GUI::VehicleInfoTPanel::DrawEngineButton
void DrawEngineButton(RoR::GfxActor *actorx)
Definition: GUI_VehicleInfoTPanel.cpp:1039
RoR::GUI::VehicleInfoTPanel::m_stat_deformed_beams
int m_stat_deformed_beams
Definition: GUI_VehicleInfoTPanel.h:82
RoR::GfxActor::SetDebugView
void SetDebugView(DebugViewType dv)
Definition: GfxActor.cpp:1528
RoR::GUI::VehicleInfoTPanel::DrawRepairButton
void DrawRepairButton(RoR::GfxActor *actorx)
Definition: GUI_VehicleInfoTPanel.cpp:917
RoR::Actor::cc_mode
bool cc_mode
Cruise Control.
Definition: Actor.h:364
RoR::GUI::VehicleInfoTPanel::TPANELFOCUS_NONE
@ TPANELFOCUS_NONE
Definition: GUI_VehicleInfoTPanel.h:38
RoR::GUI::VehicleInfoTPanel::TPanelFocus
TPanelFocus
Definition: GUI_VehicleInfoTPanel.h:38
RoR::GUI::VehicleInfoTPanel::m_stat_health
float m_stat_health
Definition: GUI_VehicleInfoTPanel.h:80
RoR::GUI::VehicleInfoTPanel::DrawLockButton
void DrawLockButton(RoR::GfxActor *actorx)
Definition: GUI_VehicleInfoTPanel.cpp:1116
RoR::Actor::getWheelDiffMode
int getWheelDiffMode()
Writes info to console/notify box.
Definition: Actor.h:157
RoR::GUI::VehicleInfoTPanel::TPanelMode
TPanelMode
Definition: GUI_VehicleInfoTPanel.h:37
RoR::App::gfx_speedo_imperial
CVar * gfx_speedo_imperial
Definition: Application.cpp:246
RGN_CACHE
#define RGN_CACHE
Definition: Application.h:46
RoR::Actor::getBeaconMode
bool getBeaconMode() const
Definition: Actor.h:175
RoR::ImTextWrappedColorMarked
void ImTextWrappedColorMarked(std::string const &text)
Prints multiline text with '#rrggbb' color markers. Behaves like ImGui::Text* functions.
Definition: GUIUtils.cpp:246
RoR::GUI::VehicleInfoTPanel::m_a_icon
Ogre::TexturePtr m_a_icon
Definition: GUI_VehicleInfoTPanel.h:142
RoR::EngineSim::isRunning
bool isRunning() const
Definition: EngineSim.h:93
RoR::ActorSB::simbuf_driveable
int simbuf_driveable
Definition: SimBuffers.h:120
RoR::ImCalcEventHighlightedSize
ImVec2 ImCalcEventHighlightedSize(events input_event)
Definition: GUIUtils.cpp:467
RoR::GUI::VehicleInfoTPanel::TPANELFOCUS_BASICS
@ TPANELFOCUS_BASICS
Definition: GUI_VehicleInfoTPanel.h:38
RoR::GUI::VehicleInfoTPanel::DrawBeaconButton
void DrawBeaconButton(RoR::GfxActor *actorx)
Definition: GUI_VehicleInfoTPanel.cpp:1004
RoR::GUIManager::GuiTheme::value_red_text_color
ImVec4 value_red_text_color
Definition: GUIManager.h:74
RoR::EV_TRUCK_SHIFT_UP
@ EV_TRUCK_SHIFT_UP
shift one gear up in manual transmission mode
Definition: InputEngine.h:355
RoR::Actor::hasSlidenodes
bool hasSlidenodes()
Definition: Actor.h:115
RoR::MSG_SIM_MODIFY_ACTOR_REQUESTED
@ MSG_SIM_MODIFY_ACTOR_REQUESTED
Payload = RoR::ActorModifyRequest* (owner)
Definition: Application.h:120
RoR::DebugViewType::DEBUGVIEW_BEAMS
@ DEBUGVIEW_BEAMS
DrawStatsLineColored
void DrawStatsLineColored(const char *name, const std::string &value, ImVec4 value_color)
Definition: GUI_VehicleInfoTPanel.cpp:337
RoR::FetchIcon
Ogre::TexturePtr FetchIcon(const char *name)
Definition: GUIUtils.cpp:344
RoR::GUI::VehicleInfoTPanel::m_physics_icon
Ogre::TexturePtr m_physics_icon
Definition: GUI_VehicleInfoTPanel.h:140
RoR::EV_COMMON_REPAIR_TRUCK
@ EV_COMMON_REPAIR_TRUCK
repair truck to original condition
Definition: InputEngine.h:250
RoR::GfxActor::getNumVideoCameras
size_t getNumVideoCameras() const
Definition: GfxActor.h:146
RoR::EV_TRUCK_TOGGLE_CONTACT
@ EV_TRUCK_TOGGLE_CONTACT
toggle ignition
Definition: InputEngine.h:360
RoR::Actor::ar_physics_paused
bool ar_physics_paused
Sim state.
Definition: Actor.h:484
RoR::Actor::isLocked
bool isLocked()
Are hooks locked?
Definition: Actor.cpp:3883
RoR::FlareType::BLINKER_LEFT
@ BLINKER_LEFT
RoR::TRUCK
@ TRUCK
its a truck (or other land vehicle)
Definition: SimData.h:93
RoR::GUI::VehicleInfoTPanel::m_icons_cached
bool m_icons_cached
Definition: GUI_VehicleInfoTPanel.h:129
RoR::EV_COMMON_TOGGLE_TRUCK_BEACONS
@ EV_COMMON_TOGGLE_TRUCK_BEACONS
toggle truck beacons
Definition: InputEngine.h:273
RoR::EV_TRUCK_BLINK_RIGHT
@ EV_TRUCK_BLINK_RIGHT
toggle right direction indicator (blinker)
Definition: InputEngine.h:304
RoR::GUI::VehicleInfoTPanel::DrawWarnBlinkerButton
void DrawWarnBlinkerButton(RoR::GfxActor *actorx)
Definition: GUI_VehicleInfoTPanel.cpp:877
RoR::Actor::toggleAxleDiffMode
void toggleAxleDiffMode()
Definition: Actor.cpp:1355
MAX_CLIGHTS
static const int MAX_CLIGHTS
See RoRnet::Lightmask and enum events in InputEngine.h.
Definition: SimConstants.h:35
RoR::GUI::VehicleInfoTPanel::m_visibility_mode
TPanelMode m_visibility_mode
Definition: GUI_VehicleInfoTPanel.h:51
RoR::GUIManager::GuiTheme
Definition: GUIManager.h:68
RoR::App::GetCameraManager
CameraManager * GetCameraManager()
Definition: Application.cpp:275
RoR::node_t::AbsPosition
Ogre::Vector3 AbsPosition
absolute position in the world (shaky)
Definition: SimData.h:294
GUI_VehicleInfoTPanel.h
RoR::App::GetGuiManager
GUIManager * GetGuiManager()
Definition: Application.cpp:269
RoR::App::diag_hide_broken_beams
CVar * diag_hide_broken_beams
Definition: Application.cpp:152
RoR::GUIManager::GuiTheme::value_blue_text_color
ImVec4 value_blue_text_color
Definition: GUIManager.h:75
RoR::GUI::VehicleInfoTPanel::TPANELMODE_OPAQUE
@ TPANELMODE_OPAQUE
Definition: GUI_VehicleInfoTPanel.h:37
RoR::GUI::VehicleInfoTPanel::m_stat_gcur_z
float m_stat_gcur_z
Definition: GUI_VehicleInfoTPanel.h:88
RoR::ActorLinkingRequest
Estabilishing a physics linkage between 2 actors modifies a global linkage table and triggers immedia...
Definition: SimData.h:917
RoR::beam_t::p1
node_t * p1
Definition: SimData.h:335
RoR::GfxActor::GetSimNodeBuffer
NodeSB * GetSimNodeBuffer()
Definition: GfxActor.h:120
RoR::GUI::VehicleInfoTPanel::TPANELMODE_HIDDEN
@ TPANELMODE_HIDDEN
Definition: GUI_VehicleInfoTPanel.h:37
RoR::EngineSim::ToggleAutoShiftMode
void ToggleAutoShiftMode()
Definition: EngineSim.cpp:818
RoR::Actor::getCustomParticleMode
bool getCustomParticleMode()
Definition: Actor.cpp:4556
RoR::DebugViewType::DEBUGVIEW_NONE
@ DEBUGVIEW_NONE
RoR::Actor::ar_instance_id
ActorInstanceID_t ar_instance_id
Static attr; session-unique ID.
Definition: Actor.h:376
RoR::GUI::VehicleInfoTPanel::CacheIcons
void CacheIcons()
Definition: GUI_VehicleInfoTPanel.cpp:1210
RoR::Actor::ar_num_nodes
int ar_num_nodes
Definition: Actor.h:283
RoR::GetScreenPosFromWorldPos
bool GetScreenPosFromWorldPos(Ogre::Vector3 const &world_pos, ImVec2 &out_screen)
Definition: GUIUtils.cpp:518
MIN_PANEL_WIDTH
const float MIN_PANEL_WIDTH
Definition: GUI_VehicleInfoTPanel.cpp:41
RoR::GUI::VehicleInfoTPanel::m_helptext_fullsize
bool m_helptext_fullsize
Definition: GUI_VehicleInfoTPanel.h:73
RoR::Actor::ar_unique_commandkey_pairs
std::vector< UniqueCommandKeyPair > ar_unique_commandkey_pairs
UI helper for displaying command control keys to user (must be built at spawn).
Definition: Actor.h:319
RoR::GUI::VehicleInfoTPanel::m_particle_icon
Ogre::TexturePtr m_particle_icon
Definition: GUI_VehicleInfoTPanel.h:146
RoR::GUI::VehicleInfoTPanel::DrawAntiLockBrakeButton
void DrawAntiLockBrakeButton(RoR::GfxActor *actorx)
Definition: GUI_VehicleInfoTPanel.cpp:944
BUTTONDUMMY_SIZE
const ImVec2 BUTTONDUMMY_SIZE(18, 1)
RoR::Actor::toggleWheelDiffMode
void toggleWheelDiffMode()
Definition: Actor.cpp:1347
format
Truck file format(technical spec)
RoR::ActorSB::simbuf_screwprops
std::vector< ScrewpropSB > simbuf_screwprops
Definition: SimBuffers.h:135
RoR::GUI::VehicleInfoTPanel::m_w_icon
Ogre::TexturePtr m_w_icon
Definition: GUI_VehicleInfoTPanel.h:143
GUIUtils.h
RoR::TransferCase::tr_2wd
bool tr_2wd
Does it support 2WD mode?
Definition: Differentials.h:51
RoR::Actor::getWheelNodeCount
int getWheelNodeCount() const
Definition: Actor.cpp:866
RoR::GfxActor::GetActor
ActorPtr GetActor()
Definition: GfxActor.cpp:288
RoR::DebugViewType::DEBUGVIEW_ROTATORS
@ DEBUGVIEW_ROTATORS
RoR::EV_TRUCK_BLINK_WARN
@ EV_TRUCK_BLINK_WARN
toggle all direction indicators
Definition: InputEngine.h:305
RoR::GUI::VehicleInfoTPanel::m_warning_light_icon
Ogre::TexturePtr m_warning_light_icon
Definition: GUI_VehicleInfoTPanel.h:133
RoR::GfxActor::countBeaconProps
int countBeaconProps() const
Definition: GfxActor.cpp:3337
RoR::GUI::VehicleInfoTPanel::DrawActorPhysicsButton
void DrawActorPhysicsButton(RoR::GfxActor *actorx)
Definition: GUI_VehicleInfoTPanel.cpp:952
RoR::ScrewpropSB
Definition: SimBuffers.h:74
RoR::DebugViewType
DebugViewType
Definition: GfxData.h:101
RoR::GUI::VehicleInfoTPanel::DrawSecureButton
void DrawSecureButton(RoR::GfxActor *actorx)
Definition: GUI_VehicleInfoTPanel.cpp:1134
RoR::GUI::VehicleInfoTPanel::UpdateStats
void UpdateStats(float dt, ActorPtr actor)
Caution: touches live data, must be synced with sim. thread.
Definition: GUI_VehicleInfoTPanel.cpp:561
RoR::ActorLinkingRequest::alr_type
ActorLinkingRequestType alr_type
Definition: SimData.h:920
RoR::Actor::ar_engine
EngineSim * ar_engine
Definition: Actor.h:379
RoR::AeroEngineSB
Definition: SimBuffers.h:90
RoR::GUI::VehicleInfoTPanel::m_stat_broken_beams
int m_stat_broken_beams
Definition: GUI_VehicleInfoTPanel.h:81
RoR::ActorSB::simbuf_node0_velo
Ogre::Vector3 simbuf_node0_velo
Definition: SimBuffers.h:124
RoR::Round
Ogre::Real Round(Ogre::Real value, unsigned short ndigits=0)
Definition: Utils.cpp:98
RoR::EV_TRUCK_CRUISE_CONTROL
@ EV_TRUCK_CRUISE_CONTROL
toggle cruise control
Definition: InputEngine.h:309
RoR::Actor::RequestUpdateHudFeatures
void RequestUpdateHudFeatures()
Definition: Actor.h:270
RoR::ActorLinkingRequestType::HOOK_TOGGLE
@ HOOK_TOGGLE
RoR::Actor::getDescription
std::vector< std::string > getDescription()
Definition: Actor.cpp:4468
RoR::Actor::toggleCustomParticles
void toggleCustomParticles()
Definition: Actor.cpp:3179
RoR::GUI::VehicleInfoTPanel::m_stat_gmax_x
float m_stat_gmax_x
Definition: GUI_VehicleInfoTPanel.h:89
RoR::GUI::VehicleInfoTPanel::DrawMirrorButton
void DrawMirrorButton(RoR::GfxActor *actorx)
Definition: GUI_VehicleInfoTPanel.cpp:902
RoR::Actor::ar_num_rotators
int ar_num_rotators
Definition: Actor.h:294
RoR::GUI::VehicleInfoTPanel::m_horn_btn_active
bool m_horn_btn_active
Definition: GUI_VehicleInfoTPanel.h:128
RoR::FlareType::HEADLIGHT
@ HEADLIGHT
RoR::Console::putMessage
void putMessage(MessageArea area, MessageType type, std::string const &msg, std::string icon="")
Definition: Console.cpp:97
RoR::Actor::ar_hooks
std::vector< hook_t > ar_hooks
Definition: Actor.h:302
RoR::FlareType::BLINKER_RIGHT
@ BLINKER_RIGHT
RoR::ActorSB::simbuf_aeroengines
std::vector< AeroEngineSB > simbuf_aeroengines
Definition: SimBuffers.h:138
RoR::EV_TRUCK_TRACTION_CONTROL
@ EV_TRUCK_TRACTION_CONTROL
toggle antilockbrake system
Definition: InputEngine.h:369
RoR::GUI::VehicleInfoTPanel::m_beacons_icon
Ogre::TexturePtr m_beacons_icon
Definition: GUI_VehicleInfoTPanel.h:149
RoR::Actor::ar_ties
std::vector< tie_t > ar_ties
Definition: Actor.h:301
RoR::DebugViewType::DEBUGVIEW_SUBMESH
@ DEBUGVIEW_SUBMESH
RoR::EV_TRUCK_SHIFT_DOWN
@ EV_TRUCK_SHIFT_DOWN
shift one gear down in manual transmission mode
Definition: InputEngine.h:331
RoR::GUI::VehicleInfoTPanel::m_abs_icon
Ogre::TexturePtr m_abs_icon
Definition: GUI_VehicleInfoTPanel.h:139
RoR::GUI::VehicleInfoTPanel::DrawHornButton
void DrawHornButton(RoR::GfxActor *actorx)
Definition: GUI_VehicleInfoTPanel.cpp:885
RoR::Actor::GetGfxActor
GfxActor * GetGfxActor()
Definition: Actor.h:269
RoR::Actor::ar_num_cabs
int ar_num_cabs
Definition: Actor.h:334
RoR::GUI::VehicleInfoTPanel::m_active_commandkey
CommandkeyID_t m_active_commandkey
Definition: GUI_VehicleInfoTPanel.h:66
RoR::TransferCase::tr_gear_ratios
std::vector< float > tr_gear_ratios
Gear reduction ratios.
Definition: Differentials.h:54
RoR::GUI::VehicleInfoTPanel::DrawRightBlinkerButton
void DrawRightBlinkerButton(RoR::GfxActor *actorx)
Definition: GUI_VehicleInfoTPanel.cpp:869
RoR::App::diag_hide_beam_stress
CVar * diag_hide_beam_stress
Definition: Application.cpp:153
RoR::GUI::VehicleInfoTPanel::m_requested_focus
TPanelFocus m_requested_focus
Requested by SetVisible()
Definition: GUI_VehicleInfoTPanel.h:52
Utils.h
RoR::NOT_DRIVEABLE
@ NOT_DRIVEABLE
not drivable at all
Definition: SimData.h:92
RoR::FlareType::TAIL_LIGHT
@ TAIL_LIGHT
Language.h
RoR::Actor::displayAxleDiffMode
void displayAxleDiffMode()
Cycles through the available inter axle diff modes.
Definition: Actor.cpp:1363
RoR::GUIManager::GuiTheme::semitransparent_window_bg
ImVec4 semitransparent_window_bg
Definition: GUIManager.h:81
RoR::Actor::tractioncontrolToggle
void tractioncontrolToggle()
Definition: Actor.cpp:3791
RoR::GUI::VehicleInfoTPanel::m_command_hovered_text_color
ImVec4 m_command_hovered_text_color
Definition: GUI_VehicleInfoTPanel.h:72
RoR::GUI::VehicleInfoTPanel::DrawVehicleCommandsUI
void DrawVehicleCommandsUI(RoR::GfxActor *actorx)
Definition: GUI_VehicleInfoTPanel.cpp:201
DrawStatsLine
void DrawStatsLine(const char *name, const std::string &value)
Definition: GUI_VehicleInfoTPanel.cpp:353
RefCountingObjectPtr< Actor >
RoR::GUI::VehicleInfoTPanel::m_stat_beam_stress
float m_stat_beam_stress
Definition: GUI_VehicleInfoTPanel.h:83
RoR::Actor::beaconsToggle
void beaconsToggle()
Definition: Actor.cpp:3800
GUIManager.h
RoR::GfxActor::SetVideoCamState
void SetVideoCamState(VideoCamState state)
Definition: GfxActor.cpp:394
Actor.h
RoR::GUI::VehicleInfoTPanel::DrawTransferCaseModeButton
void DrawTransferCaseModeButton(RoR::GfxActor *actorx)
Definition: GUI_VehicleInfoTPanel.cpp:978
RoR::beam_t::stress
float stress
Definition: SimData.h:344
RoR::App::diag_hide_wheel_info
CVar * diag_hide_wheel_info
Definition: Application.cpp:154
RoR::GUI::VehicleInfoTPanel::TPANELFOCUS_DIAG
@ TPANELFOCUS_DIAG
Definition: GUI_VehicleInfoTPanel.h:38
RoR::Actor::tc_nodash
bool tc_nodash
Traction control attribute; Hide the dashboard indicator?
Definition: Actor.h:360
RoR::Console::CONSOLE_SYSTEM_NOTICE
@ CONSOLE_SYSTEM_NOTICE
Definition: Console.h:51
EngineSim.h
RoR::GUI::VehicleInfoTPanel::m_startupdemo_init
bool m_startupdemo_init
Definition: GUI_VehicleInfoTPanel.h:55
RoR::SimGearboxMode::AUTO
@ AUTO
Automatic shift.
RoR::beam_t::refL
float refL
reference length
Definition: SimData.h:356
RoR::GUI::VehicleInfoTPanel::DrawWheelDiffButton
void DrawWheelDiffButton(RoR::GfxActor *actorx)
Definition: GUI_VehicleInfoTPanel.cpp:969
DrawStatsBullet
void DrawStatsBullet(const char *name, const std::string &value)
Definition: GUI_VehicleInfoTPanel.cpp:358
RoR::Actor::getMaxGForces
Ogre::Vector3 getMaxGForces()
Definition: Actor.h:114
RoR::GUI::VehicleInfoTPanel::m_stat_gmax_y
float m_stat_gmax_y
Definition: GUI_VehicleInfoTPanel.h:90
RoR::GetImDummyFullscreenWindow
ImDrawList * GetImDummyFullscreenWindow(const std::string &name="RoR_TransparentFullscreenWindow")
Definition: GUIUtils.cpp:356
RoR::ActorModifyRequest::amr_actor
ActorInstanceID_t amr_actor
Definition: SimData.h:886
RoR::SimGearboxMode::MANUAL_STICK
@ MANUAL_STICK
Fully manual: stick shift.
RoR::GUI::VehicleInfoTPanel::m_stat_gmax_z
float m_stat_gmax_z
Definition: GUI_VehicleInfoTPanel.h:91
RoR::GUI::VehicleInfoTPanel::m_headlight_icon
Ogre::TexturePtr m_headlight_icon
Definition: GUI_VehicleInfoTPanel.h:130
RoR::GfxActor::GetVideoCamState
VideoCamState GetVideoCamState() const
Definition: GfxActor.h:137
RoR::GUIManager::GetTheme
GuiTheme & GetTheme()
Definition: GUIManager.h:154
RoR::DebugViewType::DEBUGVIEW_SLIDENODES
@ DEBUGVIEW_SLIDENODES
RoR::beam_t
Simulation: An edge in the softbody structure.
Definition: SimData.h:330
RoR::GUI::VehicleInfoTPanel::m_left_blinker_icon
Ogre::TexturePtr m_left_blinker_icon
Definition: GUI_VehicleInfoTPanel.h:131
RoR::GUI::VehicleInfoTPanel::m_horn_icon
Ogre::TexturePtr m_horn_icon
Definition: GUI_VehicleInfoTPanel.h:134
RoR::Actor::ar_beams
beam_t * ar_beams
Definition: Actor.h:287
RoR::GUI::VehicleInfoTPanel::m_actor_physics_icon
Ogre::TexturePtr m_actor_physics_icon
Definition: GUI_VehicleInfoTPanel.h:141
RoR::GUI::VehicleInfoTPanel::m_cmdbeam_highlight_color
ImVec4 m_cmdbeam_highlight_color
Definition: GUI_VehicleInfoTPanel.h:69
SimData.h
Core data structures for simulation; Everything affected by by either physics, network or user intera...
RoR::ActorModifyRequest
Definition: SimData.h:870
RoR::CacheEntry::filecachename
Ogre::String filecachename
preview image filename
Definition: CacheSystem.h:87
RoR::EV_TRUCK_STARTER
@ EV_TRUCK_STARTER
hold to start the engine
Definition: InputEngine.h:356
RoR::EV_TRUCK_LIGHTTOGGLE01
@ EV_TRUCK_LIGHTTOGGLE01
toggle custom light 1
Definition: InputEngine.h:316
RoR::Actor::toggleHeadlights
void toggleHeadlights()
Definition: Actor.cpp:2994
RoR::GfxActor::GetHelpTex
Ogre::TexturePtr GetHelpTex()
Definition: GfxActor.h:141
RoR::Actor::getTransferCaseMode
TransferCase * getTransferCaseMode()
Toggles between 2WD and 4WD mode.
Definition: Actor.h:159
RoR::ActorSB::simbuf_drive_ratio
float simbuf_drive_ratio
Definition: SimBuffers.h:153
RoR::Actor::ar_num_custom_particles
int ar_num_custom_particles
Definition: Actor.h:326
RoR::App::diag_hide_wheels
CVar * diag_hide_wheels
Definition: Application.cpp:155
RoR::GUI::VehicleInfoTPanel::m_cmdbeam_highlight_thickness
float m_cmdbeam_highlight_thickness
Definition: GUI_VehicleInfoTPanel.h:71
RoR::GameContext::PushMessage
void PushMessage(Message m)
Doesn't guarantee order! Use ChainMessage() if order matters.
Definition: GameContext.cpp:65
DrawSingleBulletRow
void DrawSingleBulletRow(const char *name, RoR::events ev)
Definition: GUI_VehicleInfoTPanel.cpp:607
RoR::ActorSB::simbuf_inputshaft_rpm
float simbuf_inputshaft_rpm
Definition: SimBuffers.h:152
RoR::GUI::VehicleInfoTPanel::DrawVehicleDiagUI
void DrawVehicleDiagUI(RoR::GfxActor *actorx)
Definition: GUI_VehicleInfoTPanel.cpp:501
HELP_TEXTURE_WIDTH
const float HELP_TEXTURE_WIDTH
Definition: GUI_VehicleInfoTPanel.cpp:38
RoR::GUI::VehicleInfoTPanel::m_parking_brake_icon
Ogre::TexturePtr m_parking_brake_icon
Definition: GUI_VehicleInfoTPanel.h:137
RoR::GUI::VehicleInfoTPanel::DrawVehicleCommandHighlights
void DrawVehicleCommandHighlights(RoR::GfxActor *actorx)
Definition: GUI_VehicleInfoTPanel.cpp:788
RoR::GUI::VehicleInfoTPanel::m_stat_gcur_x
float m_stat_gcur_x
Definition: GUI_VehicleInfoTPanel.h:86
RoR::Actor::antilockbrakeToggle
void antilockbrakeToggle()
Definition: Actor.cpp:3782
RoR::Actor::getHeadlightsVisible
bool getHeadlightsVisible() const
Definition: Actor.h:187
RoR::EngineSim::GetAutoShiftMode
RoR::SimGearboxMode GetAutoShiftMode()
Definition: EngineSim.cpp:842
RoR::Actor::ar_command_key
CmdKeyArray ar_command_key
BEWARE: commandkeys are indexed 1-MAX_COMMANDS!
Definition: Actor.h:305
RoR::EV_TRUCK_TOGGLE_TCASE_4WD_MODE
@ EV_TRUCK_TOGGLE_TCASE_4WD_MODE
toggle the transfer case 4wd mode
Definition: InputEngine.h:366
RoR::GUI::VehicleInfoTPanel::DrawParticlesButton
void DrawParticlesButton(RoR::GfxActor *actorx)
Definition: GUI_VehicleInfoTPanel.cpp:996
RoR::EV_TRUCK_TOGGLE_VIDEOCAMERA
@ EV_TRUCK_TOGGLE_VIDEOCAMERA
toggle videocamera update
Definition: InputEngine.h:368
RoR::BLINK_RIGHT
@ BLINK_RIGHT
Definition: SimData.h:125
RoR::BLINK_WARN
@ BLINK_WARN
Definition: SimData.h:126
RoR::GUI::VehicleInfoTPanel::TPANELFOCUS_STATS
@ TPANELFOCUS_STATS
Definition: GUI_VehicleInfoTPanel.h:38
RoR::GUI::VehicleInfoTPanel::DrawCameraButton
void DrawCameraButton()
Definition: GUI_VehicleInfoTPanel.cpp:1105
BUTTON_SIZE
const ImVec2 BUTTON_SIZE(18, 18)
RoR::GUI::VehicleInfoTPanel::m_transluc_textdis_color
ImVec4 m_transluc_textdis_color
Definition: GUI_VehicleInfoTPanel.h:57
RoR::ActorSB::simbuf_wheel_speed
float simbuf_wheel_speed
Definition: SimBuffers.h:127
RoR::GUI::VehicleInfoTPanel::m_stat_avg_deform
float m_stat_avg_deform
Definition: GUI_VehicleInfoTPanel.h:85
Application.h
Central state/object manager and communications hub.
RoR::App::GetConsole
Console * GetConsole()
Definition: Application.cpp:270
RoR::EV_COMMON_LOCK
@ EV_COMMON_LOCK
connect hook node to a node in close proximity
Definition: InputEngine.h:240
RoR::SimGearboxMode::SEMI_AUTO
@ SEMI_AUTO
Manual shift with auto clutch.
RoR::GUI::VehicleInfoTPanel::m_current_focus
TPanelFocus m_current_focus
Updated based on currently open tab.
Definition: GUI_VehicleInfoTPanel.h:53
BUTTON_OFFSET
const ImVec2 BUTTON_OFFSET(0, 3.f)
RoR::Actor::isTied
bool isTied()
Definition: Actor.cpp:3875
RoR::ImDrawEventHighlightedButton
bool ImDrawEventHighlightedButton(events input_event, bool *btn_hovered=nullptr, bool *btn_active=nullptr)
Definition: GUIUtils.cpp:424
RoR::EV_TRUCK_TOGGLE_INTER_WHEEL_DIFF
@ EV_TRUCK_TOGGLE_INTER_WHEEL_DIFF
toggle the inter wheel differential mode
Definition: InputEngine.h:364
RoR::App::GetGameContext
GameContext * GetGameContext()
Definition: Application.cpp:280
RoR::GUI::VehicleInfoTPanel::m_engine_icon
Ogre::TexturePtr m_engine_icon
Definition: GUI_VehicleInfoTPanel.h:148
HELP_TEXTURE_HEIGHT
const float HELP_TEXTURE_HEIGHT
Definition: GUI_VehicleInfoTPanel.cpp:39
RoR::InputEngine::resolveEventName
static int resolveEventName(Ogre::String eventName)
Definition: InputEngine.cpp:2043
RoR::AIRPLANE
@ AIRPLANE
its an airplane
Definition: SimData.h:94
RoR::GUI::VehicleInfoTPanel::m_camera_icon
Ogre::TexturePtr m_camera_icon
Definition: GUI_VehicleInfoTPanel.h:150
RoR::GUI::VehicleInfoTPanel::DrawVehicleHelpTextureFullsize
void DrawVehicleHelpTextureFullsize(RoR::GfxActor *actorx)
Definition: GUI_VehicleInfoTPanel.cpp:807
RoR::EV_TRUCK_HORN
@ EV_TRUCK_HORN
truck horn
Definition: InputEngine.h:313
RoR::EV_COMMON_SECURE_LOAD
@ EV_COMMON_SECURE_LOAD
tie a load to the truck
Definition: InputEngine.h:263
RoR::ActorSB::simbuf_engine_rpm
float simbuf_engine_rpm
Definition: SimBuffers.h:147
FormatVelocityBySpeedoPreset
std::string FormatVelocityBySpeedoPreset(float velocity)
Definition: GUI_VehicleInfoTPanel.cpp:368
RoR::BLINK_LEFT
@ BLINK_LEFT
Definition: SimData.h:124
RoR::GUI::VehicleInfoTPanel::m_cruise_control_icon
Ogre::TexturePtr m_cruise_control_icon
Definition: GUI_VehicleInfoTPanel.h:153
RoR::beam_t::bm_type
BeamType bm_type
Definition: SimData.h:348
RoR::EV_COMMON_TOGGLE_TRUCK_LOW_BEAMS
@ EV_COMMON_TOGGLE_TRUCK_LOW_BEAMS
toggle truck low beams (on/off); also toggles running lights.
Definition: InputEngine.h:275
RoR::VideoCamState::VCSTATE_DISABLED
@ VCSTATE_DISABLED
RoR::GUI::VehicleInfoTPanel::DrawParkingBrakeButton
void DrawParkingBrakeButton(RoR::GfxActor *actorx)
Definition: GUI_VehicleInfoTPanel.cpp:928
RoR::Actor::ar_num_beams
int ar_num_beams
Definition: Actor.h:288
RoR::GUI::VehicleInfoTPanel::DrawCustomLightButton
void DrawCustomLightButton(RoR::GfxActor *actorx)
Definition: GUI_VehicleInfoTPanel.cpp:1054
RoR::DebugViewType::DEBUGVIEW_SHOCKS
@ DEBUGVIEW_SHOCKS
RoR::Actor::getTotalMass
float getTotalMass(bool withLocked=true)
Definition: Actor.cpp:807
RoR::GUI::VehicleInfoTPanel::m_shift_icon
Ogre::TexturePtr m_shift_icon
Definition: GUI_VehicleInfoTPanel.h:147
RoR::Actor::getUsedActorEntry
CacheEntryPtr & getUsedActorEntry()
The actor entry itself.
Definition: Actor.cpp:4714
_LC
#define _LC(ctx, str)
Definition: Language.h:42
RoR::Actor::tc_mode
bool tc_mode
Traction control state; Enabled? {1/0}.
Definition: Actor.h:357
RoR::GUI::VehicleInfoTPanel::DrawTransferCaseGearRatioButton
void DrawTransferCaseGearRatioButton(RoR::GfxActor *actorx)
Definition: GUI_VehicleInfoTPanel.cpp:987
RoR::SS_TRIG_HORN
@ SS_TRIG_HORN
Definition: SoundScriptManager.h:59
RoR::EV_TRUCK_SWITCH_SHIFT_MODES
@ EV_TRUCK_SWITCH_SHIFT_MODES
toggle between transmission modes
Definition: InputEngine.h:359
RoR::SimGearboxMode::MANUAL
@ MANUAL
Fully manual: sequential shift.
RoR::NodeSB::AbsPosition
Ogre::Vector3 AbsPosition
Definition: SimBuffers.h:69
RoR::Actor::toggleTransferCaseMode
void toggleTransferCaseMode()
Definition: Actor.cpp:1431
RoR::Actor::parkingbrakeToggle
void parkingbrakeToggle()
Definition: Actor.cpp:3767
RoR::GUIManager::GuiTheme::screen_edge_padding
ImVec2 screen_edge_padding
Definition: GUIManager.h:85
RoR::ActorSB::simbuf_top_speed
float simbuf_top_speed
Definition: SimBuffers.h:128
RoR::Actor::getParkingBrake
bool getParkingBrake()
Definition: Actor.h:150
RoR::Actor::ar_is_police
bool ar_is_police
Gfx/sfx attr.
Definition: Actor.h:478
RoR::GUI::VehicleInfoTPanel::m_startupdemo_timer
Ogre::Timer m_startupdemo_timer
Definition: GUI_VehicleInfoTPanel.h:54
RoR::Actor::alb_mode
bool alb_mode
Anti-lock brake state; Enabled? {1/0}.
Definition: Actor.h:350
RoR::EngineSim::toggleContact
void toggleContact()
Definition: EngineSim.cpp:985
RoR::EV_TRUCK_TOGGLE_TCASE_GEAR_RATIO
@ EV_TRUCK_TOGGLE_TCASE_GEAR_RATIO
toggle the transfer case gear ratio
Definition: InputEngine.h:367
RoR::App::ui_show_vehicle_buttons
CVar * ui_show_vehicle_buttons
Definition: Application.cpp:263
RoR::DebugViewType::DEBUGVIEW_NODES
@ DEBUGVIEW_NODES
RoR::EV_TRUCK_MANUAL_CLUTCH
@ EV_TRUCK_MANUAL_CLUTCH
manual clutch (for manual transmission)
Definition: InputEngine.h:326
RoR::UniqueCommandKeyPair
UI helper for displaying command control keys to user.
Definition: SimData.h:695
RoR::ActorSB::simbuf_engine_max_rpm
float simbuf_engine_max_rpm
Definition: SimBuffers.h:157
RoR::GUI::VehicleInfoTPanel::TPANELMODE_TRANSLUCENT
@ TPANELMODE_TRANSLUCENT
Definition: GUI_VehicleInfoTPanel.h:37
RoR::GUI::VehicleInfoTPanel::m_g_icon
Ogre::TexturePtr m_g_icon
Definition: GUI_VehicleInfoTPanel.h:145
RoR::EV_CAMERA_CHANGE
@ EV_CAMERA_CHANGE
change camera mode
Definition: InputEngine.h:114
RoR::VideoCamState::VCSTATE_ENABLED_ONLINE
@ VCSTATE_ENABLED_ONLINE
RoR::Actor::toggleBlinkType
void toggleBlinkType(BlinkType blink)
Definition: Actor.cpp:3085
RoR::BEAM_HYDRO
@ BEAM_HYDRO
Definition: SimData.h:72
RoR::GUI::VehicleInfoTPanel::DrawTractionControlButton
void DrawTractionControlButton(RoR::GfxActor *actorx)
Definition: GUI_VehicleInfoTPanel.cpp:936
RoR::DebugViewType::DEBUGVIEW_SKELETON
@ DEBUGVIEW_SKELETON
RoR::MSG_SIM_ACTOR_LINKING_REQUESTED
@ MSG_SIM_ACTOR_LINKING_REQUESTED
Payload = RoR::ActorLinkingRequest* (owner)
Definition: Application.h:128
RoR::ActorSB::simbuf_gear
int simbuf_gear
Definition: SimBuffers.h:145
RoR::Message
Unified game event system - all requests and state changes are reported using a message.
Definition: GameContext.h:51
_L
#define _L
Definition: ErrorUtils.cpp:34
RoR::GUI::VehicleInfoTPanel::DrawShiftModeButton
void DrawShiftModeButton(RoR::GfxActor *actorx)
Definition: GUI_VehicleInfoTPanel.cpp:1012
RoR::DebugViewType::DEBUGVIEW_WHEELS
@ DEBUGVIEW_WHEELS
RoR::Actor::alb_nodash
bool alb_nodash
Anti-lock brake attribute: Hide the dashboard indicator?
Definition: Actor.h:353
RoR::GUI::VehicleInfoTPanel::DrawVehicleBasicsUI
void DrawVehicleBasicsUI(RoR::GfxActor *actorx)
Definition: GUI_VehicleInfoTPanel.cpp:616
RoR::GUI::VehicleInfoTPanel::DrawAxleDiffButton
void DrawAxleDiffButton(RoR::GfxActor *actorx)
Definition: GUI_VehicleInfoTPanel.cpp:960
RoR::commandbeam_t
Definition: SimData.h:554
RoR::EngineSim::StartEngine
void StartEngine()
Quick engine start. Plays sounds.
Definition: EngineSim.cpp:998
RoR::EV_TRUCK_TOGGLE_PHYSICS
@ EV_TRUCK_TOGGLE_PHYSICS
toggle physics simulation
Definition: InputEngine.h:365
RoR::EV_TRUCK_TOGGLE_INTER_AXLE_DIFF
@ EV_TRUCK_TOGGLE_INTER_AXLE_DIFF
toggle the inter axle differential mode
Definition: InputEngine.h:363
RoR::Actor::toggleTransferCaseGearRatio
void toggleTransferCaseGearRatio()
Definition: Actor.cpp:1462
RoR::GUI::VehicleInfoTPanel::m_stat_gcur_y
float m_stat_gcur_y
Definition: GUI_VehicleInfoTPanel.h:87
RoR::Actor::ar_num_wheels
int ar_num_wheels
Definition: Actor.h:324
RoR::App::GetInputEngine
InputEngine * GetInputEngine()
Definition: Application.cpp:271
RoR::Actor::getTruckType
int getTruckType()
Definition: Actor.h:229
RoR::ActorLinkingRequest::alr_actor_instance_id
ActorInstanceID_t alr_actor_instance_id
Definition: SimData.h:919
RoR::ActorSB::simbuf_engine_turbo_psi
float simbuf_engine_turbo_psi
Definition: SimBuffers.h:149
RoR::GUI::VehicleInfoTPanel::m_mirror_icon
Ogre::TexturePtr m_mirror_icon
Definition: GUI_VehicleInfoTPanel.h:135
RoR::Actor::setCustomLightVisible
void setCustomLightVisible(int number, bool visible)
Definition: Actor.cpp:4500
RoR::beam_t::p2
node_t * p2
Definition: SimData.h:336
RoR::AeroEngineType::AE_XPROP
@ AE_XPROP
RoR::App::diag_hide_nodes
CVar * diag_hide_nodes
Definition: Application.cpp:156
RoR::EV_COMMON_TOGGLE_CUSTOM_PARTICLES
@ EV_COMMON_TOGGLE_CUSTOM_PARTICLES
toggle particle cannon
Definition: InputEngine.h:268
MAX_PREVIEW_SIZE
const ImVec2 MAX_PREVIEW_SIZE(100.f, 100.f)
RoR::EV_TRUCK_BLINK_LEFT
@ EV_TRUCK_BLINK_LEFT
toggle left direction indicator (blinker)
Definition: InputEngine.h:303
RoR::GfxActor
Definition: GfxActor.h:52
RoR::GUI::VehicleInfoTPanel::Draw
void Draw(RoR::GfxActor *actorx)
Definition: GUI_VehicleInfoTPanel.cpp:43
RoR::GUI::VehicleInfoTPanel::m_panel_translucent_color
ImVec4 m_panel_translucent_color
Definition: GUI_VehicleInfoTPanel.h:56
RoR::EV_TRUCK_AUTOSHIFT_UP
@ EV_TRUCK_AUTOSHIFT_UP
shift automatic transmission one gear up
Definition: InputEngine.h:302
RoR::SimGearboxMode::MANUAL_RANGES
@ MANUAL_RANGES
Fully manual: stick shift with ranges.
GfxActor.h
Manager for all visuals belonging to a single actor.
RoR::GUI::VehicleInfoTPanel::m_lock_icon
Ogre::TexturePtr m_lock_icon
Definition: GUI_VehicleInfoTPanel.h:151
RoR::Actor::countFlaresByType
int countFlaresByType(FlareType type)
Definition: Actor.cpp:4537
RoR::GUI::VehicleInfoTPanel::m_repair_icon
Ogre::TexturePtr m_repair_icon
Definition: GUI_VehicleInfoTPanel.h:136
RoR::Actor::countCustomLights
int countCustomLights(int control_number)
Definition: Actor.cpp:4520
RoR::ActorLinkingRequestType::SLIDENODE_TOGGLE
@ SLIDENODE_TOGGLE
RoR::DrawGCheckbox
bool DrawGCheckbox(CVar *cvar, const char *label)
Definition: GUIUtils.cpp:261
RoR::GUI::VehicleInfoTPanel::m_secure_icon
Ogre::TexturePtr m_secure_icon
Definition: GUI_VehicleInfoTPanel.h:152
RoR::GUI::VehicleInfoTPanel::m_helptext_fullsize_screenpos
ImVec2 m_helptext_fullsize_screenpos
The image is drawn into separate window.
Definition: GUI_VehicleInfoTPanel.h:74
RoR::GfxActor::GetDebugView
DebugViewType GetDebugView() const
Definition: GfxActor.h:138
RoR::ImDrawEventHighlighted
void ImDrawEventHighlighted(events input_event)
Definition: GUIUtils.cpp:408
RoR::Console::CONSOLE_MSGTYPE_INFO
@ CONSOLE_MSGTYPE_INFO
Generic message.
Definition: Console.h:60
RoR::EV_TRUCK_AUTOSHIFT_DOWN
@ EV_TRUCK_AUTOSHIFT_DOWN
shift automatic transmission one gear down
Definition: InputEngine.h:301
RoR::Actor::getBlinkType
BlinkType getBlinkType()
Definition: Actor.cpp:4548
RoR::Actor::getTruckName
std::string getTruckName()
Definition: Actor.h:226
RoR::GUI::VehicleInfoTPanel::SetVisible
void SetVisible(TPanelMode mode, TPanelFocus focus=TPANELFOCUS_NONE)
Definition: GUI_VehicleInfoTPanel.cpp:555
RoR::GUI::VehicleInfoTPanel::DrawLeftBlinkerButton
void DrawLeftBlinkerButton(RoR::GfxActor *actorx)
Definition: GUI_VehicleInfoTPanel.cpp:861
RoR::events
events
Definition: InputEngine.h:74
RoR::BOAT
@ BOAT
its a boat
Definition: SimData.h:95
RoR::EV_COMMON_CYCLE_DEBUG_VIEWS
@ EV_COMMON_CYCLE_DEBUG_VIEWS
cycle debug view mode
Definition: InputEngine.h:266
RoR::Actor::getGForces
Ogre::Vector3 getGForces()
Definition: Actor.h:86
RoR::Actor::displayWheelDiffMode
void displayWheelDiffMode()
Cycles through the available inter wheel diff modes.
Definition: Actor.cpp:1391
RoR::GUI::VehicleInfoTPanel::DrawCruiseControlButton
void DrawCruiseControlButton(RoR::GfxActor *actorx)
Definition: GUI_VehicleInfoTPanel.cpp:1146
RoR::GUI::VehicleInfoTPanel::m_right_blinker_icon
Ogre::TexturePtr m_right_blinker_icon
Definition: GUI_VehicleInfoTPanel.h:132
RoR::ActorLinkingRequestType::TIE_TOGGLE
@ TIE_TOGGLE
RoR::GUI::VehicleInfoTPanel::m_stat_mass_Kg
float m_stat_mass_Kg
Definition: GUI_VehicleInfoTPanel.h:84
SOUND_GET_STATE
#define SOUND_GET_STATE(_ACTOR_, _TRIG_)
Definition: SoundScriptManager.h:39
RoR::GUI::VehicleInfoTPanel::TPANELFOCUS_COMMANDS
@ TPANELFOCUS_COMMANDS
Definition: GUI_VehicleInfoTPanel.h:38
RoR::GUI::VehicleInfoTPanel::DrawVehicleStatsUI
void DrawVehicleStatsUI(RoR::GfxActor *actorx)
Definition: GUI_VehicleInfoTPanel.cpp:380
RoR::GUI::VehicleInfoTPanel::m_hovered_commandkey
CommandkeyID_t m_hovered_commandkey
Definition: GUI_VehicleInfoTPanel.h:67
RoR::GUI::VehicleInfoTPanel::m_traction_control_icon
Ogre::TexturePtr m_traction_control_icon
Definition: GUI_VehicleInfoTPanel.h:138
RoR::Actor::cruisecontrolToggle
void cruisecontrolToggle()
Defined in 'gameplay/CruiseControl.cpp'.
Definition: CruiseControl.cpp:31
RoR::ActorModifyRequest::amr_type
Type amr_type
Definition: SimData.h:887
RoR::EV_TRUCK_SHIFT_NEUTRAL
@ EV_TRUCK_SHIFT_NEUTRAL
shift to neutral gear in manual transmission mode
Definition: InputEngine.h:354
RoR::GfxActor::GetSimDataBuffer
ActorSB & GetSimDataBuffer()
Definition: GfxActor.h:119
RoR::Actor::ar_num_shocks
int ar_num_shocks
Number of shock absorbers.
Definition: Actor.h:291
RoR
Definition: AppContext.h:36
x
float x
Definition: (ValueTypes) quaternion.h:5
RoR::ActorSB::simbuf_has_engine
bool simbuf_has_engine
Definition: SimBuffers.h:144
RoR::ActorSB::simbuf_engine_torque
float simbuf_engine_torque
Definition: SimBuffers.h:151
DrawSingleButtonRow
bool DrawSingleButtonRow(bool active, const Ogre::TexturePtr &icon, const char *name, RoR::events ev, bool *btn_active=nullptr)
Definition: GUI_VehicleInfoTPanel.cpp:827
RoR::EV_TRUCK_PARKING_BRAKE
@ EV_TRUCK_PARKING_BRAKE
toggle parking brake
Definition: InputEngine.h:327
RoR::COMMANDKEYID_INVALID
static const CommandkeyID_t COMMANDKEYID_INVALID
Definition: ForwardDeclarations.h:75
SOUND_TOGGLE
#define SOUND_TOGGLE(_ACTOR_, _TRIG_)
Definition: SoundScriptManager.h:37
RoR::EV_COMMON_TOGGLE_DEBUG_VIEW
@ EV_COMMON_TOGGLE_DEBUG_VIEW
toggle debug view mode
Definition: InputEngine.h:265
RoR::GUI::VehicleInfoTPanel::DrawHeadLightButton
void DrawHeadLightButton(RoR::GfxActor *actorx)
Definition: GUI_VehicleInfoTPanel.cpp:853
RoR::EV_TRUCK_ANTILOCK_BRAKE
@ EV_TRUCK_ANTILOCK_BRAKE
toggle antilockbrake system
Definition: InputEngine.h:300
RoR::CameraManager::switchToNextBehavior
void switchToNextBehavior()
Definition: CameraManager.cpp:320
RoR::Actor::getCustomLightVisible
bool getCustomLightVisible(int number)
Definition: Actor.cpp:4478
RoR::beam_t::L
float L
length
Definition: SimData.h:339
RoR::ActorModifyRequest::Type::RESET_ON_SPOT
@ RESET_ON_SPOT
RoR::Actor::displayTransferCaseMode
void displayTransferCaseMode()
Gets the current transfer case mode name (4WD Hi, ...)
Definition: Actor.cpp:1417
RoR::beam_t::bm_broken
bool bm_broken
Definition: SimData.h:352
BUTTON_Y_OFFSET
const float BUTTON_Y_OFFSET
Definition: GUI_VehicleInfoTPanel.cpp:604
RoR::GUI::VehicleInfoTPanel::DrawCustomLightButtons
void DrawCustomLightButtons(RoR::GfxActor *actorx)
Definition: GUI_VehicleInfoTPanel.cpp:1154