mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-19 06:29:18 +02:00
energy counter for electric traction vehicles
This commit is contained in:
@@ -819,6 +819,9 @@ debug_panel::update_section_vehicle( std::vector<text_line> &Output ) {
|
||||
vehicle.GetPosition().y,
|
||||
vehicle.GetPosition().z );
|
||||
|
||||
Output.emplace_back( m_buffer.data(), Global.UITextColor );
|
||||
|
||||
std::snprintf(m_buffer.data(), m_buffer.size(), STR_C("Energy consumed from pantographs: %.1f kWh"), mover.EnergyConsumed);
|
||||
Output.emplace_back( m_buffer.data(), Global.UITextColor );
|
||||
|
||||
if (!std::isnan(last_time)) {
|
||||
|
||||
Reference in New Issue
Block a user