RigsofRods
Soft-body Physics Simulation
DashBoardManager.h
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-2020 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 
25 
26 #pragma once
27 
28 
29 #include "Application.h"
30 
31 #include <MyGUI.h>
32 
33 #include <string>
34 #include <vector>
35 
36 namespace RoR {
37 
38 #define DD_MAXCHAR 255
39 #define DD_MAX_SCREWPROP 6
40 #define DD_MAX_AEROENGINE 6
41 #define DD_MAX_WING 6
42 
43 #define MAX_CONTROLS 1024
44 
45 typedef union dataContainer_t
46 {
47  bool value_bool;
48  int value_int;
49  float value_float;
52 
53 enum
54 {
60 };
61 
62 typedef struct dashData_t
63 {
64  char type; // DC_*
66  bool enabled;
67  const char* name; // char string of name
68 
70  {
71  memset(&data, 0, sizeof(data));
72  enabled = false;
73  }
74 
75  dashData_t(char type, const char* name) : type(type), name(name)
76  {
77  memset(&data, 0, sizeof(data));
78  enabled = true;
79  }
80 } dashData_t;
81 
82 // DashData enum definition
83 // important: if you add things here, also change the initialization in the constructor
85 {
93 
99 
100  DD_ENGINE_CLUTCH, // the engines clutch
101 
102  DD_BRAKE, // the brake application in % 0-1
103  DD_ACCELERATOR, // accelerator pedal in %, 0-1
104 
105  DD_ROLL, // roll of the chassis
106  DD_ROLL_CORR, // correction roll of the chassis
107  DD_ROLL_CORR_ACTIVE, // correction rolling active
108 
110 
113 
115 
119 
120  // water things
121  DD_SCREW_THROTTLE_0, // throttle for screwprop 0
126  DD_SCREW_THROTTLE_5, // if you add some, change DD_MAX_SCREWPROP and DD_SCREW_STEER_*
127 
128  DD_SCREW_STEER_0, // steering direction of screw 0
129  DD_SCREW_STEER_1, // steering direction of screw 1
130  DD_SCREW_STEER_2, // steering direction of screw 2
131  DD_SCREW_STEER_3, // steering direction of screw 3
132  DD_SCREW_STEER_4, // steering direction of screw 4
133  DD_SCREW_STEER_5, // steering direction of screw 4, if you add some, change DD_MAX_SCREWPROP and DD_SCREW_THROTTLE_*
134 
135  DD_WATER_DEPTH, // how much water is under the boat
136  DD_WATER_SPEED, // speed in knots
137 
138  // airplane things
145 
152 
159 
160  DD_AIRSPEED, // speed in air
161 
168 
171 
174 
175  // Lights (mirrors RoRnet::Lightmask)
176 
187 
196 
200 
202 };
203 
204 // this class is NOT intended to be thread safe - performance is required
206 {
207 public:
208  DashBoardManager(void);
209  ~DashBoardManager(void);
210 
211  // Getter / Setter
212  bool _getBool(size_t key) { return data[key].data.value_bool; };
213  int _getInt(size_t key) { return data[key].data.value_int; };
214  float _getFloat(size_t key) { return data[key].data.value_float; };
215  float getNumeric(size_t key);
216  char* getChar(size_t key) { return data[key].data.value_char; };
217  bool getEnabled(size_t key) { return data[key].enabled; };
218 
219  void setBool(size_t key, bool val) { data[key].data.value_bool = val; };
220  void setInt(size_t key, int val) { data[key].data.value_int = val; };
221  void setFloat(size_t key, float val) { data[key].data.value_float = val; };
222  void setChar(size_t key, const char* val) { strncpy(data[key].data.value_char, val, DD_MAXCHAR); };
223 
224  void setEnabled(size_t key, bool val) { data[key].enabled = val; };
225 
226  int getDataType(size_t key) { return data[key].type; };
227 
228  int getLinkIDForName(Ogre::String& str);
229  std::string getLinkNameForID(DashData id);
230 
231  int loadDashBoard(Ogre::String filename, bool textureLayer);
232 
233  void update(float dt);
234  void updateFeatures();
235 
236  bool WasDashboardLoaded() const { return (m_dashboards.size() > 0); };
237 
238  void setVisible(bool visibility);
239  void setVisible3d(bool visibility);
240  bool getVisible() { return visible; };
241  void windowResized();
242 protected:
243  bool visible = false;
245  std::vector<DashBoard*> m_dashboards;
246 };
247 
249 {
250 public:
252  ~DashBoard();
253 
254  void setVisible(bool visible, bool smooth = true);
255  bool getVisible() { return visible; };
256 
257  bool getIsTextureLayer() { return textureLayer; }
258 
259  void update(float dt);
260  void updateFeatures();
261 
262  void windowResized();
263 
264 protected:
266  Ogre::String filename;
267  MyGUI::VectorWidgetPtr widgets;
268  MyGUI::WindowPtr mainWidget;
270  std::string prefix;
271 
272  enum
273  {
283  };
284 
285  enum
286  {
292  };
293 
294  enum
295  {
299  };
300 
301  // linking attributes
302  typedef struct layoutLink_t
303  {
304  int linkID; // DD_*
305  char animationType; // ANIM_*
306 
307  float wmin; // rotation/offset whatever (widget min/max)
308  float wmax;
309  float vmin; // value min/max
310  float vmax;
311  int condition; // CONDITION_*
313  char direction; // DIRECTION_*
314  char format[255]; // string format
315  char texture[255]; // texture filename
316  char name[255]; // widget name
317  char format_neg_zero[255];
318 
319  MyGUI::Widget* widget;
320  MyGUI::RotatingSkin* rotImg;
321  MyGUI::ImageBox* img;
322  MyGUI::TextBox* txt;
323  MyGUI::IntSize initialSize;
324  MyGUI::IntPoint initialPosition;
325 
326  float last;
327  bool lastState;
328  } layoutLink_t;
329 
330  void loadLayoutInternal();
331  void loadLayoutRecursive(MyGUI::WidgetPtr ptr);
334 };
335 
336 } // namespace RoR
RoR::DashBoard::windowResized
void windowResized()
Definition: DashBoardManager.cpp:440
RoR::DashBoard::ANIM_TEXTFORMAT
@ ANIM_TEXTFORMAT
Definition: DashBoardManager.h:277
RoR::DashBoard::DIRECTION_UP
@ DIRECTION_UP
Definition: DashBoardManager.h:288
RoR::DashBoardManager::windowResized
void windowResized()
Definition: DashBoardManager.cpp:237
RoR::dashData_t::dashData_t
dashData_t(char type, const char *name)
Definition: DashBoardManager.h:75
RoR::DashBoard::widgets
MyGUI::VectorWidgetPtr widgets
Definition: DashBoardManager.h:267
RoR::DashBoardManager::setEnabled
void setEnabled(size_t key, bool val)
Definition: DashBoardManager.h:224
RoR::DashBoardManager::getChar
char * getChar(size_t key)
Definition: DashBoardManager.h:216
RoR::DD_AEROENGINE_THROTTLE_5
@ DD_AEROENGINE_THROTTLE_5
Definition: DashBoardManager.h:144
RoR::DD_ENGINE_SPEEDO_MPH
@ DD_ENGINE_SPEEDO_MPH
speedo in kilometer per hour
Definition: DashBoardManager.h:88
RoR::DC_FLOAT
@ DC_FLOAT
Definition: DashBoardManager.h:57
RoR::DD_HIGHBEAMS
@ DD_HIGHBEAMS
Definition: DashBoardManager.h:189
RoR::DashBoardManager::getNumeric
float getNumeric(size_t key)
Definition: DashBoardManager.cpp:200
RoR::DD_SCREW_THROTTLE_5
@ DD_SCREW_THROTTLE_5
Definition: DashBoardManager.h:126
RoR::DD_CUSTOM_LIGHT8
@ DD_CUSTOM_LIGHT8
custom light 8 on
Definition: DashBoardManager.h:184
RoR::DD_ENGINE_SPEEDO_KPH
@ DD_ENGINE_SPEEDO_KPH
Definition: DashBoardManager.h:87
RoR::DashBoard::CONDITION_LESSER
@ CONDITION_LESSER
Definition: DashBoardManager.h:298
RoR::DD_ACCELERATOR
@ DD_ACCELERATOR
Definition: DashBoardManager.h:103
RoR::DashBoard::ANIM_SCALE
@ ANIM_SCALE
Definition: DashBoardManager.h:276
RoR::DD_SCREW_THROTTLE_1
@ DD_SCREW_THROTTLE_1
Definition: DashBoardManager.h:122
RoR::DD_SCREW_THROTTLE_0
@ DD_SCREW_THROTTLE_0
ties locked
Definition: DashBoardManager.h:121
RoR::DD_AEROENGINE_RPM_1
@ DD_AEROENGINE_RPM_1
Definition: DashBoardManager.h:154
RoR::DD_AEROENGINE_THROTTLE_0
@ DD_AEROENGINE_THROTTLE_0
Definition: DashBoardManager.h:139
RoR::DashBoardManager::~DashBoardManager
~DashBoardManager(void)
Definition: DashBoardManager.cpp:140
RoR::DD_ENGINE_TURBO
@ DD_ENGINE_TURBO
speedo in miles per hour
Definition: DashBoardManager.h:89
RoR::DC_BOOL
@ DC_BOOL
Definition: DashBoardManager.h:55
RoR::dashData_t
Definition: DashBoardManager.h:62
MAX_CONTROLS
#define MAX_CONTROLS
Definition: DashBoardManager.h:43
RoR::DD_AEROENGINE_FAILED_2
@ DD_AEROENGINE_FAILED_2
Definition: DashBoardManager.h:148
RoR::DashBoard::DIRECTION_NONE
@ DIRECTION_NONE
Definition: DashBoardManager.h:287
RoR::DashBoard::ANIM_TEXTSTRING
@ ANIM_TEXTSTRING
Definition: DashBoardManager.h:278
RoR::DashBoardManager::loadDashBoard
int loadDashBoard(Ogre::String filename, bool textureLayer)
Definition: DashBoardManager.cpp:173
RoR::DashData
DashData
Definition: DashBoardManager.h:84
RoR::DD_REVERSE_LIGHT
@ DD_REVERSE_LIGHT
Definition: DashBoardManager.h:193
RoR::DD_WATER_SPEED
@ DD_WATER_SPEED
Definition: DashBoardManager.h:136
RoR::dataContainer_t
Definition: DashBoardManager.h:45
RoR::DD_CUSTOM_LIGHT2
@ DD_CUSTOM_LIGHT2
custom light 2 on
Definition: DashBoardManager.h:178
DD_MAXCHAR
#define DD_MAXCHAR
Definition: DashBoardManager.h:38
RoR::DD_CUSTOM_LIGHT5
@ DD_CUSTOM_LIGHT5
custom light 5 on
Definition: DashBoardManager.h:181
RoR::DashBoard::CONDITION_NONE
@ CONDITION_NONE
Definition: DashBoardManager.h:296
RoR::DD_ROLL_CORR
@ DD_ROLL_CORR
Definition: DashBoardManager.h:106
RoR::DD_SCREW_THROTTLE_4
@ DD_SCREW_THROTTLE_4
Definition: DashBoardManager.h:125
RoR::DashBoard::ANIM_TRANSLATE
@ ANIM_TRANSLATE
Definition: DashBoardManager.h:281
RoR::dashData_t::type
char type
Definition: DashBoardManager.h:64
RoR::DD_TIES_MODE
@ DD_TIES_MODE
Definition: DashBoardManager.h:118
RoR::DashBoard::controls
layoutLink_t controls[MAX_CONTROLS]
Definition: DashBoardManager.h:332
RoR::DD_WING_AOA_3
@ DD_WING_AOA_3
Definition: DashBoardManager.h:165
RoR::DD_ENGINE_CLUTCH
@ DD_ENGINE_CLUTCH
automatic gear
Definition: DashBoardManager.h:100
RoR::DashBoardManager::WasDashboardLoaded
bool WasDashboardLoaded() const
Definition: DashBoardManager.h:236
RoR::DC_INVALID
@ DC_INVALID
Definition: DashBoardManager.h:59
RoR::DD_AEROENGINE_FAILED_0
@ DD_AEROENGINE_FAILED_0
Definition: DashBoardManager.h:146
RoR::DD_AEROENGINE_THROTTLE_4
@ DD_AEROENGINE_THROTTLE_4
Definition: DashBoardManager.h:143
RoR::DashBoard::updateFeatures
void updateFeatures()
Definition: DashBoardManager.cpp:272
RoR::DashBoardManager::setFloat
void setFloat(size_t key, float val)
Definition: DashBoardManager.h:221
RoR::DD_SCREW_THROTTLE_2
@ DD_SCREW_THROTTLE_2
Definition: DashBoardManager.h:123
RoR::DC_CHAR
@ DC_CHAR
Definition: DashBoardManager.h:58
RoR::DD_SCREW_STEER_3
@ DD_SCREW_STEER_3
Definition: DashBoardManager.h:131
RoR::DashBoard::getVisible
bool getVisible()
Definition: DashBoardManager.h:255
RoR::DashBoardManager::getLinkNameForID
std::string getLinkNameForID(DashData id)
Definition: DashBoardManager.cpp:161
RoR::DD_WING_AOA_1
@ DD_WING_AOA_1
Definition: DashBoardManager.h:163
RoR::DD_SCREW_STEER_1
@ DD_SCREW_STEER_1
Definition: DashBoardManager.h:129
RoR::DashBoard::loadLayoutInternal
void loadLayoutInternal()
Definition: DashBoardManager.cpp:749
RoR::DD_AEROENGINE_RPM_2
@ DD_AEROENGINE_RPM_2
Definition: DashBoardManager.h:155
RoR::DashBoard::setVisible
void setVisible(bool visible, bool smooth=true)
Definition: DashBoardManager.cpp:763
RoR::DashBoard::visible
bool visible
Definition: DashBoardManager.h:269
RoR::DD_ODOMETER_USER
@ DD_ODOMETER_USER
Definition: DashBoardManager.h:173
RoR::DD_FOGLIGHTS
@ DD_FOGLIGHTS
Definition: DashBoardManager.h:190
RoR::DashBoard::filename
Ogre::String filename
Definition: DashBoardManager.h:266
RoR::DD_ENGINE_GEAR
@ DD_ENGINE_GEAR
clutch warning lamp
Definition: DashBoardManager.h:94
RoR::DashBoardManager::setChar
void setChar(size_t key, const char *val)
Definition: DashBoardManager.h:222
RoR::DD_CUSTOM_LIGHT3
@ DD_CUSTOM_LIGHT3
custom light 3 on
Definition: DashBoardManager.h:179
RoR::DD_PARKINGBRAKE
@ DD_PARKINGBRAKE
chassis pitch
Definition: DashBoardManager.h:111
RoR::DD_AEROENGINE_RPM_4
@ DD_AEROENGINE_RPM_4
Definition: DashBoardManager.h:157
RoR::DD_ROLL
@ DD_ROLL
Definition: DashBoardManager.h:105
RoR::DashBoard::prefix
std::string prefix
Definition: DashBoardManager.h:270
RoR::DD_SIDELIGHTS
@ DD_SIDELIGHTS
Definition: DashBoardManager.h:191
RoR::DD_MAX
@ DD_MAX
Definition: DashBoardManager.h:201
RoR::DashBoardManager::setVisible3d
void setVisible3d(bool visibility)
Definition: DashBoardManager.cpp:226
RoR::DashBoardManager::_getBool
bool _getBool(size_t key)
Definition: DashBoardManager.h:212
RoR::dashData_t::name
const char * name
Definition: DashBoardManager.h:67
RoR::DashBoardManager::updateFeatures
void updateFeatures()
Definition: DashBoardManager.cpp:192
RoR::DashBoardManager::data
dashData_t data[DD_MAX]
Definition: DashBoardManager.h:244
RoR::DashBoardManager::getDataType
int getDataType(size_t key)
Definition: DashBoardManager.h:226
RoR::DashBoard::DIRECTION_LEFT
@ DIRECTION_LEFT
Definition: DashBoardManager.h:291
RoR::DD_CUSTOM_LIGHT4
@ DD_CUSTOM_LIGHT4
custom light 4 on
Definition: DashBoardManager.h:180
RoR::DD_ROLL_CORR_ACTIVE
@ DD_ROLL_CORR_ACTIVE
Definition: DashBoardManager.h:107
RoR::DD_SIGNAL_TURNRIGHT
@ DD_SIGNAL_TURNRIGHT
Right blinker is lit.
Definition: DashBoardManager.h:198
Application.h
Central state/object manager and communications hub.
RoR::DD_AEROENGINE_FAILED_3
@ DD_AEROENGINE_FAILED_3
Definition: DashBoardManager.h:149
RoR::DashBoardManager::getLinkIDForName
int getLinkIDForName(Ogre::String &str)
Definition: DashBoardManager.cpp:150
RoR::DD_SCREW_STEER_5
@ DD_SCREW_STEER_5
Definition: DashBoardManager.h:133
RoR::dataContainer_t::value_bool
bool value_bool
Definition: DashBoardManager.h:47
RoR::DashBoardManager::setBool
void setBool(size_t key, bool val)
Definition: DashBoardManager.h:219
RoR::DD_WING_AOA_4
@ DD_WING_AOA_4
Definition: DashBoardManager.h:166
RoR::DD_CUSTOM_LIGHT7
@ DD_CUSTOM_LIGHT7
custom light 7 on
Definition: DashBoardManager.h:183
RoR::DD_CUSTOM_LIGHT10
@ DD_CUSTOM_LIGHT10
custom light 10 on
Definition: DashBoardManager.h:186
RoR::DD_BEACONS
@ DD_BEACONS
Definition: DashBoardManager.h:194
RoR::DD_AEROENGINE_FAILED_4
@ DD_AEROENGINE_FAILED_4
Definition: DashBoardManager.h:150
RoR::DashBoard::~DashBoard
~DashBoard()
Definition: DashBoardManager.cpp:264
RoR::DD_ENGINE_BATTERY
@ DD_ENGINE_BATTERY
Definition: DashBoardManager.h:91
RoR::dashData_t::data
dataContainer_t data
Definition: DashBoardManager.h:65
RoR::DashBoardManager::getEnabled
bool getEnabled(size_t key)
Definition: DashBoardManager.h:217
RoR::DD_SCREW_THROTTLE_3
@ DD_SCREW_THROTTLE_3
Definition: DashBoardManager.h:124
RoR::DashBoardManager::setInt
void setInt(size_t key, int val)
Definition: DashBoardManager.h:220
RoR::DD_BRAKE
@ DD_BRAKE
Definition: DashBoardManager.h:102
RoR::DD_AIRSPEED
@ DD_AIRSPEED
Definition: DashBoardManager.h:160
RoR::DD_PITCH
@ DD_PITCH
Definition: DashBoardManager.h:109
RoR::DD_ENGINE_RPM
@ DD_ENGINE_RPM
Definition: DashBoardManager.h:86
RoR::DD_SIGNAL_WARNING
@ DD_SIGNAL_WARNING
The warning-blink indicator is lit.
Definition: DashBoardManager.h:199
RoR::DashBoard::DIRECTION_RIGHT
@ DIRECTION_RIGHT
Definition: DashBoardManager.h:289
RoR::DashBoardManager::m_dashboards
std::vector< DashBoard * > m_dashboards
Definition: DashBoardManager.h:245
RoR::DashBoard::free_controls
int free_controls
Definition: DashBoardManager.h:333
RoR::DD_WING_AOA_0
@ DD_WING_AOA_0
Definition: DashBoardManager.h:162
RoR::DD_SIGNAL_TURNLEFT
@ DD_SIGNAL_TURNLEFT
Left blinker is lit.
Definition: DashBoardManager.h:197
RoR::DashBoardManager
Definition: DashBoardManager.h:205
RoR::dataContainer_t::value_float
float value_float
Definition: DashBoardManager.h:49
RoR::dashData_t
struct RoR::dashData_t dashData_t
RoR::DashBoardManager::getVisible
bool getVisible()
Definition: DashBoardManager.h:240
RoR::DashBoard::manager
DashBoardManager * manager
Definition: DashBoardManager.h:265
RoR::DD_SCREW_STEER_4
@ DD_SCREW_STEER_4
Definition: DashBoardManager.h:132
RoR::DD_ENGINE_IGNITION
@ DD_ENGINE_IGNITION
turbo gauge
Definition: DashBoardManager.h:90
RoR::DD_SCREW_STEER_2
@ DD_SCREW_STEER_2
Definition: DashBoardManager.h:130
RoR::DashBoard::ANIM_NONE
@ ANIM_NONE
Definition: DashBoardManager.h:274
RoR::DD_AEROENGINE_RPM_5
@ DD_AEROENGINE_RPM_5
Definition: DashBoardManager.h:158
RoR::dataContainer_t::value_char
char value_char[DD_MAXCHAR]
Definition: DashBoardManager.h:50
RoR::DD_AEROENGINE_THROTTLE_2
@ DD_AEROENGINE_THROTTLE_2
Definition: DashBoardManager.h:141
RoR::DashBoard::loadLayoutRecursive
void loadLayoutRecursive(MyGUI::WidgetPtr ptr)
Definition: DashBoardManager.cpp:459
RoR::DD_AEROENGINE_RPM_3
@ DD_AEROENGINE_RPM_3
Definition: DashBoardManager.h:156
RoR::DashBoard::ANIM_TEXTCOLOR
@ ANIM_TEXTCOLOR
Definition: DashBoardManager.h:282
RoR::DD_AEROENGINE_FAILED_5
@ DD_AEROENGINE_FAILED_5
Definition: DashBoardManager.h:151
RoR::DashBoard::ANIM_LAMP
@ ANIM_LAMP
Definition: DashBoardManager.h:279
RoR::DashBoard
Definition: DashBoardManager.h:248
RoR::DD_ALTITUDE_STRING
@ DD_ALTITUDE_STRING
Definition: DashBoardManager.h:170
RoR::DD_SCREW_STEER_0
@ DD_SCREW_STEER_0
Definition: DashBoardManager.h:128
RoR::DD_CUSTOM_LIGHT6
@ DD_CUSTOM_LIGHT6
custom light 6 on
Definition: DashBoardManager.h:182
RoR::DD_TRACTIONCONTROL_MODE
@ DD_TRACTIONCONTROL_MODE
low pressure
Definition: DashBoardManager.h:116
RoR::DashBoardManager::update
void update(float dt)
Definition: DashBoardManager.cpp:184
RoR::DD_WING_AOA_5
@ DD_WING_AOA_5
Definition: DashBoardManager.h:167
RoR::DashBoard::layoutLink_t
struct RoR::DashBoard::layoutLink_t layoutLink_t
RoR::DD_WING_AOA_2
@ DD_WING_AOA_2
Definition: DashBoardManager.h:164
RoR::dashData_t::dashData_t
dashData_t()
Definition: DashBoardManager.h:69
RoR::DashBoard::DIRECTION_DOWN
@ DIRECTION_DOWN
Definition: DashBoardManager.h:290
RoR::DashBoard::textureLayer
bool textureLayer
Definition: DashBoardManager.h:269
RoR::DashBoardManager::_getInt
int _getInt(size_t key)
Definition: DashBoardManager.h:213
RoR::DashBoardManager::_getFloat
float _getFloat(size_t key)
Definition: DashBoardManager.h:214
RoR::DashBoard::CONDITION_GREATER
@ CONDITION_GREATER
Definition: DashBoardManager.h:297
RoR::DashBoardManager::setVisible
void setVisible(bool visibility)
Definition: DashBoardManager.cpp:214
RoR::DashBoard::DashBoard
DashBoard(DashBoardManager *manager, Ogre::String filename, bool textureLayer)
Definition: DashBoardManager.cpp:247
RoR::DD_ANTILOCKBRAKE_MODE
@ DD_ANTILOCKBRAKE_MODE
Definition: DashBoardManager.h:117
RoR::DashBoard::getIsTextureLayer
bool getIsTextureLayer()
Definition: DashBoardManager.h:257
RoR::DashBoardManager::DashBoardManager
DashBoardManager(void)
Definition: DashBoardManager.cpp:36
RoR::DD_CUSTOM_LIGHT1
@ DD_CUSTOM_LIGHT1
custom light 1 on
Definition: DashBoardManager.h:177
RoR::DD_LOCKED
@ DD_LOCKED
parking brake status
Definition: DashBoardManager.h:112
RoR::DashBoard::ANIM_SERIES
@ ANIM_SERIES
Definition: DashBoardManager.h:280
RoR::DD_AEROENGINE_THROTTLE_1
@ DD_AEROENGINE_THROTTLE_1
Definition: DashBoardManager.h:140
RoR::DD_AEROENGINE_THROTTLE_3
@ DD_AEROENGINE_THROTTLE_3
Definition: DashBoardManager.h:142
RoR::DD_BRAKE_LIGHTS
@ DD_BRAKE_LIGHTS
Definition: DashBoardManager.h:192
RoR::DC_INT
@ DC_INT
Definition: DashBoardManager.h:56
RoR::DD_LOW_PRESSURE
@ DD_LOW_PRESSURE
locked lamp
Definition: DashBoardManager.h:114
RoR::DashBoard::update
void update(float dt)
Definition: DashBoardManager.cpp:283
RoR::DD_ENGINE_NUM_GEAR
@ DD_ENGINE_NUM_GEAR
current gear
Definition: DashBoardManager.h:95
RoR::DD_ENGINE_AUTO_GEAR
@ DD_ENGINE_AUTO_GEAR
string like "P R N G"
Definition: DashBoardManager.h:98
RoR::DD_ENGINE_AUTOGEAR_STRING
@ DD_ENGINE_AUTOGEAR_STRING
string like "<current gear>/<max gear>"
Definition: DashBoardManager.h:97
RoR::DD_ENGINE_CLUTCH_WARNING
@ DD_ENGINE_CLUTCH_WARNING
battery lamp
Definition: DashBoardManager.h:92
RoR
Definition: AppContext.h:36
RoR::DD_WATER_DEPTH
@ DD_WATER_DEPTH
Definition: DashBoardManager.h:135
RoR::dataContainer_t::value_int
int value_int
Definition: DashBoardManager.h:48
RoR::dashData_t::enabled
bool enabled
Definition: DashBoardManager.h:66
RoR::DD_HEADLIGHTS
@ DD_HEADLIGHTS
Definition: DashBoardManager.h:188
RoR::DD_ALTITUDE
@ DD_ALTITUDE
Definition: DashBoardManager.h:169
RoR::DashBoard::mainWidget
MyGUI::WindowPtr mainWidget
Definition: DashBoardManager.h:268
RoR::dataContainer_t
union RoR::dataContainer_t dataContainer_t
RoR::DD_ENGINE_GEAR_STRING
@ DD_ENGINE_GEAR_STRING
Definition: DashBoardManager.h:96
RoR::DD_AEROENGINE_FAILED_1
@ DD_AEROENGINE_FAILED_1
Definition: DashBoardManager.h:147
RoR::DashBoardManager::visible
bool visible
Definition: DashBoardManager.h:243
RoR::DD_LIGHTS_LEGACY
@ DD_LIGHTS_LEGACY
Alias of 'sidelights'.
Definition: DashBoardManager.h:195
RoR::DD_ODOMETER_TOTAL
@ DD_ODOMETER_TOTAL
Definition: DashBoardManager.h:172
RoR::DashBoard::ANIM_ROTATE
@ ANIM_ROTATE
Definition: DashBoardManager.h:275
RoR::DD_AEROENGINE_RPM_0
@ DD_AEROENGINE_RPM_0
Definition: DashBoardManager.h:153
RoR::DD_CUSTOM_LIGHT9
@ DD_CUSTOM_LIGHT9
custom light 9 on
Definition: DashBoardManager.h:185