Skip to content

Commit bb2991f

Browse files
committed
Update version to 5.10.1 and allow 2d gui to be totally hidden using 'F' key
1 parent e09ecf2 commit bb2991f

6 files changed

Lines changed: 22 additions & 8 deletions

File tree

bin/installNoSource.nsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
;setup names
22
!define PROGRAMNAME "Bridge Command 5.10"
33
!ifndef OUTPUTFILE
4-
!define OUTPUTFILE "..\BridgeCommand5.10.0.exe"
4+
!define OUTPUTFILE "..\BridgeCommand5.10.1.exe"
55
!endif
66
!define INSTALLLOCATION "Bridge Command 5.10"
77
!define SMFOLDER "Bridge Command 5.10"

bin/language-en.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ udpListenPortHelp="In general leave this as the default. It can be changed if mo
1616
loadingmsg="Loading scenario..."
1717

1818
pausedbutton="PAUSED: CLICK HERE TO START\n\n"
19-
normalpausedbutton="Mouse:\nThe rudder, engine and the control dials are all clickable.\nRight click on the engine controls to set both at once.\nScroll wheel/2 finger scroll also controls the rudder.\n\nKeyboard:\nArrow keys - look around\n Ctrl + Arrow keys: Look ahead/port/stbd/astern\n Shift + L/R Arrow keys: Look around in steps\nSpace: Change view\n Shift + space: Lock view in secondary mode\n Ctrl + Shift + space: Toggle if camera moves with ship\n0-7: Time compression\n'H': Horn\n'M': Release man overboard dummy\nCtrl + 'M': Retrieve man overboard dummy\n'A'/'Z': Control port engine\n'S'/'X': Control stbd engine\n'D'/'C': Control both engines\n'V'/'B':Control rudder\nEsc: Quit\n\n if Azimuth drives are being used then \n 'D/A' Port Schottel clockwise / anticlockwise \n 'L/J' Starboard Schottel clockwise / anticlockwise \n 'W/S' - Port Thrust lever increase / decrease \n 'I/K' - Starboard Thrust lever increase / decrease"
19+
normalpausedbutton="Mouse:\nThe rudder, engine and the control dials are all clickable.\nRight click on the engine controls to set both at once.\nScroll wheel/2 finger scroll also controls the rudder.\n\nKeyboard:\nArrow keys - look around\n Ctrl + Arrow keys: Look ahead/port/stbd/astern\n Shift + L/R Arrow keys: Look around in steps\nSpace: Change view\n Shift + space: Lock view in secondary mode\n Ctrl + Shift + space: Toggle if camera moves with ship\nF: Toggle controls visibility\n0-7: Time compression\n'H': Horn\n'M': Release man overboard dummy\nCtrl + 'M': Retrieve man overboard dummy\n'A'/'Z': Control port engine\n'S'/'X': Control stbd engine\n'D'/'C': Control both engines\n'V'/'B':Control rudder\nEsc: Quit\n\n if Azimuth drives are being used then \n 'D/A' Port Schottel clockwise / anticlockwise \n 'L/J' Starboard Schottel clockwise / anticlockwise \n 'W/S' - Port Thrust lever increase / decrease \n 'I/K' - Starboard Thrust lever increase / decrease"
2020
vrpausedbutton="Show/hide this VR 2d display with VR controller menu button.\n\nWhile VR 2d display is shown, interface can be used by\npointing controller and using 'select'\n\nWhile VR 2d display is hidden:\n==============================\nControl engines by moving left VR controller with 'select' pressed.\nChoose which engine is controlled by tilting controller to\nleft/right, or keeping central for both.\n\nControl the wheel by moving the right VR controller with 'select' pressed.\n\nIf Azimuth drives are being used then control with the left\nand right VR controllers with 'select' pressed."
2121
startupHelpEngine="Click here to control the engine\n\n Right click to control both together"
2222
startupHelpRudder="Click here to control the rudder"

bin/language-fr.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ udpListenPortHelp="En général, laissez ce paramètre par défaut. Il peut êtr
1616
loadingmsg="Chargement du scénario..."
1717

1818
pausedbutton="EN PAUSE: CLIQUEZ ICI POUR DEMARRER\n\n"
19-
normalpausedbutton="Souris :\nLe gouvernail, la machine et les contrôles sont cliquables.\nFaites un clic-droit sur les contrôles de la machine pour paramétrer les deux moteurs en même temps.\nLa molette/le défilement à deux doigts contrôle également le gouvernail.\n\nClavier :\nFlèches : voir autour\n Ctrl + Flèches : voir devant/bâbord/tribord/vers la poupe\n Shift + Flèche G/D : regarder autour par étapes\nEspace : changer la vue\n Shift + espace: Pour bloquer la vue en mode secondaire\n Ctrl + Shift + espace: Changer si la caméra se déplace avec le navire\n0-7 : compression temporelle\n'H' : sirène\n'M' : relâcher un homme à la mer\nCtrl + 'M': récupérer un homme à la mer\n'A'/'Z' : contrôler le moteur bâbord\n'S'/'X' : contrôler le moteur tribord\n'D'/'C' : contrôler les deux moteurs\n'V'/'B': contrôler le gouvernail\nEsc : quitter\n\n Si les propulseurs d'étrave sont utilisés alors \n 'D/A' Propulseur bâbord horaire / antihoraire \n 'L/J' Propulseur tribord horaire/antihoraire \n 'W/S' - Puissance bâbord augmenter / diminuer \n 'I/K' - Puissance tribord augmenter / diminuer"
19+
normalpausedbutton="Souris :\nLe gouvernail, la machine et les contrôles sont cliquables.\nFaites un clic-droit sur les contrôles de la machine pour paramétrer les deux moteurs en même temps.\nLa molette/le défilement à deux doigts contrôle également le gouvernail.\n\nClavier :\nFlèches : voir autour\n Ctrl + Flèches : voir devant/bâbord/tribord/vers la poupe\n Shift + Flèche G/D : regarder autour par étapes\nEspace : changer la vue\n Shift + espace: Pour bloquer la vue en mode secondaire\n Ctrl + Shift + espace: Changer si la caméra se déplace avec le navire\nF: Changer si l'interface graphique est visible\n0-7 : compression temporelle\n'H' : sirène\n'M' : relâcher un homme à la mer\nCtrl + 'M': récupérer un homme à la mer\n'A'/'Z' : contrôler le moteur bâbord\n'S'/'X' : contrôler le moteur tribord\n'D'/'C' : contrôler les deux moteurs\n'V'/'B': contrôler le gouvernail\nEsc : quitter\n\n Si les propulseurs d'étrave sont utilisés alors \n 'D/A' Propulseur bâbord horaire / antihoraire \n 'L/J' Propulseur tribord horaire/antihoraire \n 'W/S' - Puissance bâbord augmenter / diminuer \n 'I/K' - Puissance tribord augmenter / diminuer"
2020
vrpausedbutton="Afficher/masquer cet affichage VR 2d avec le bouton de menu\ndu contrôleur VR.\n\nPendant que l'affichage VR 2D est affiché, l'interface peut\nêtre utilisée en pointant le contrôleur et en utilisant\n« sélectionner »\n\nLorsque l'affichage VR 2D est masqué :\n======================================\nContrôlez les moteurs en déplaçant le contrôleur VR vers la\ngauche avec « sélectionner » enfoncé.\nChoisissez quel moteur est contrôlé en inclinant le\ncontrôleur vers la gauche/droite, ou en le gardant au centre\npour les deux.\n\nContrôlez la roue en déplaçant le contrôleur VR droit avec\n« sélectionner » enfoncé.\n\nSi les pods sont utilisés, contrôlez avec les contrôleurs VR\ngauche et droit en appuyant sur « sélectionner »."
2121
startupHelpEngine="Cliquez ici pour contrôler la machine\n\n Clic droit pour contrôler les deux"
2222
startupHelpRudder="Cliquez ici pour contrôler le gouvernail"

src/Constants.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const irr::f32 DEG_IN_RAD = 180.0 / PI;
4444
const irr::f32 RAD_PER_S_IN_DEG_PER_MINUTE = 180.0/PI * 60 ;
4545

4646
//general definitions
47-
const std::string LONGNAME = "Bridge Command 5.10.0";
47+
const std::string LONGNAME = "Bridge Command 5.10.1";
4848
const std::string VERSION = "5.10";
49-
const std::string LONGVERSION = "5.10.0";
49+
const std::string LONGVERSION = "5.10.1";
5050
#endif

src/GUIMain.cpp

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -771,10 +771,23 @@ void GUIMain::load(irr::IrrlichtDevice* device, Lang* language, std::vector<std:
771771
return showInterface;
772772
}
773773

774+
// Roll round between normal view, full view with limited gui, and full view with no GUI
774775
void GUIMain::toggleShow2dInterface()
775776
{
776-
showInterface = !showInterface;
777-
updateVisibility();
777+
if (!getLargeRadar()) {
778+
if (!showInterface) {
779+
if (guienv->getRootGUIElement()->isVisible()) {
780+
guienv->getRootGUIElement()->setVisible(false);
781+
} else {
782+
showInterface = true;
783+
guienv->getRootGUIElement()->setVisible(true);
784+
}
785+
786+
} else {
787+
showInterface = false;
788+
}
789+
updateVisibility();
790+
}
778791
}
779792

780793
void GUIMain::show2dInterface()
@@ -896,7 +909,7 @@ void GUIMain::load(irr::IrrlichtDevice* device, Lang* language, std::vector<std:
896909
}
897910

898911
void GUIMain::updateVisibility()
899-
{
912+
{
900913
//Items to show if we're showing interface
901914
radarTabControl->setVisible(showInterface);
902915
radarText->setVisible(showInterface);

src/MyEventReceiver.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2004,6 +2004,7 @@ void MyEventReceiver::startShutdown()
20042004
device->sleep(500);
20052005
if (!shutdownDialogActive)
20062006
{
2007+
device->getGUIEnvironment()->getRootGUIElement()->setVisible(true);
20072008
device->getGUIEnvironment()->addMessageBox(L"Quit?", L"Quit?", true, irr::gui::EMBF_OK | irr::gui::EMBF_CANCEL, 0, GUIMain::GUI_ID_CLOSE_BOX); // I18n
20082009
shutdownDialogActive = true;
20092010
}

0 commit comments

Comments
 (0)