mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-21 15:34:58 +01:00
Merge remote-tracking branch 'origin/master' into fix/et42-fans-compressor-lamps-et22-louvre
# Conflicts: # McZapkie/MOVER.h
This commit is contained in:
@@ -14,6 +14,7 @@ http://mozilla.org/MPL/2.0/.
|
||||
#include "vehicle/Driver.h"
|
||||
#include "vehicle/Button.h"
|
||||
#include "vehicle/Gauge.h"
|
||||
#include "vehicle/enginestart.h"
|
||||
#include "audio/sound.h"
|
||||
#include "scripting/PyInt.h"
|
||||
#include "input/command.h"
|
||||
@@ -189,6 +190,8 @@ class TTrain {
|
||||
// sets cabin controls based on current state of the vehicle
|
||||
// NOTE: we can get rid of this function once we have per-cab persistent state
|
||||
void set_cab_controls( int const Cab );
|
||||
// sets the cab interior light as the selected light preset says, if it says anything (eu07/maszyna#529)
|
||||
void set_cab_light_from_lights_preset();
|
||||
// initializes a gauge matching provided label. returns: true if the label was found, false otherwise
|
||||
bool initialize_gauge(cParser &Parser, std::string const &Label, int const Cabindex);
|
||||
// initializes a button matching provided label. returns: true if the label was found, false otherwise
|
||||
@@ -214,6 +217,10 @@ class TTrain {
|
||||
void change_pantograph_selection( int const Change );
|
||||
// helper, common part of pantograh valves state update methods
|
||||
void update_pantograph_valves();
|
||||
// the Index-th other vehicle in multiple whose engine the cab starts with its own switches (0: mainb_*, 1: mainc_*)
|
||||
TMoverParameters *remote_engine( std::size_t const Index ) const;
|
||||
// the switches starting the engines of the other vehicles in multiple, for Deltatime seconds
|
||||
void update_remote_linebreakers( double const Deltatime );
|
||||
// update function subroutines
|
||||
void update_sounds( double const Deltatime );
|
||||
void update_sounds_runningnoise( sound_source &Sound );
|
||||
@@ -338,6 +345,9 @@ class TTrain {
|
||||
static void OnCommand_linebreakertoggle( TTrain *Train, command_data const &Command );
|
||||
static void OnCommand_linebreakeropen( TTrain *Train, command_data const &Command );
|
||||
static void OnCommand_linebreakerclose( TTrain *Train, command_data const &Command );
|
||||
static void OnCommand_linebreakertoggleremote( TTrain *Train, command_data const &Command );
|
||||
static void OnCommand_linebreakeropenremote( TTrain *Train, command_data const &Command );
|
||||
static void OnCommand_linebreakercloseremote( TTrain *Train, command_data const &Command );
|
||||
static void OnCommand_fuelpumptoggle( TTrain *Train, command_data const &Command );
|
||||
static void OnCommand_fuelpumpenable( TTrain *Train, command_data const &Command );
|
||||
static void OnCommand_fuelpumpdisable( TTrain *Train, command_data const &Command );
|
||||
@@ -489,6 +499,9 @@ class TTrain {
|
||||
static void OnCommand_radiovolumeincrease(TTrain *Train, command_data const &Command);
|
||||
static void OnCommand_radiovolumedecrease(TTrain *Train, command_data const &Command);
|
||||
static void OnCommand_radiovolumeset(TTrain *Train, command_data const &Command);
|
||||
static void OnCommand_radiofusetoggle(TTrain *Train, command_data const &Command);
|
||||
static void OnCommand_radiofuseenable(TTrain *Train, command_data const &Command);
|
||||
static void OnCommand_radiofusedisable(TTrain *Train, command_data const &Command);
|
||||
static void OnCommand_cabchangeforward( TTrain *Train, command_data const &Command );
|
||||
static void OnCommand_cabchangebackward( TTrain *Train, command_data const &Command );
|
||||
static void OnCommand_generictoggle( TTrain *Train, command_data const &Command );
|
||||
@@ -570,6 +583,15 @@ public: // reszta może by?publiczna
|
||||
TGauge ggMainOffButton;
|
||||
TGauge ggMainOnButton;
|
||||
TGauge ggMainButton; // EZT
|
||||
// the line breaker / engine start switches of the second and the third vehicle in multiple (mainb_*, mainc_*)
|
||||
struct remote_linebreaker {
|
||||
TGauge main_switch; // mainb_sw:
|
||||
TGauge on_button; // mainb_on_bt:
|
||||
TGauge off_button; // mainb_off_bt:
|
||||
bool held_without_switch{ false }; // closed by a command, in a cab without a switch for it
|
||||
engine_start::remote_switch state;
|
||||
};
|
||||
std::array<remote_linebreaker, 2> m_remotelinebreakers;
|
||||
TGauge ggSecurityResetButton;
|
||||
TGauge ggSHPResetButton;
|
||||
TGauge ggReleaserButton;
|
||||
@@ -595,6 +617,10 @@ public: // reszta może by?publiczna
|
||||
TGauge ggRadioVolumeSelector;
|
||||
TGauge ggRadioVolumePrevious;
|
||||
TGauge ggRadioVolumeNext;
|
||||
TGauge ggRadioOnButton;
|
||||
TGauge ggRadioOffButton;
|
||||
TGauge ggRadioFuseOnButton;
|
||||
TGauge ggRadioFuseOffButton;
|
||||
TGauge ggUpperLightButton;
|
||||
TGauge ggLeftLightButton;
|
||||
TGauge ggRightLightButton;
|
||||
@@ -761,6 +787,7 @@ public: // reszta może by?publiczna
|
||||
TButton btLampkaSprezarkaOff;
|
||||
TButton btLampkaSprezarkaBOff;
|
||||
TButton btLampkaFuelPumpOff;
|
||||
TButton btLampkaOilPump;
|
||||
TButton btLampkaBocznik1;
|
||||
TButton btLampkaBocznik2;
|
||||
TButton btLampkaBocznik3;
|
||||
|
||||
Reference in New Issue
Block a user