You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<< wordWrap("\n\nNote: You can get colour numbers by executing the \"ColourNumbers\" command.") << "\n\n";
179
183
@@ -1010,5 +1014,26 @@ void BunnyHelp() {
1010
1014
"\n --quote\t\tMake the bunny say a random quote from Nikola Tesla, Albert Einstein or Thomas Edison.\n -c\t\t\tOutput the bunny in a randomised colour.\n\n"
1011
1015
"Example: bunny --saytext \"Hello, I am a bunny\"\n\nNOTE: Please make sure that when using spaces in the <text> argument with --saytext, use quotes (\"\").\n\n");
1012
1016
1017
+
return;
1018
+
}
1019
+
1020
+
// GameHelp
1021
+
voidGameHelp() {
1022
+
CentreColouredText(" ___GAME___ ", 1);
1023
+
std::cout << "\n";
1024
+
CentreColouredText("This command allows you to access the games within ZeeTerminal.", 2);
1025
+
std::cout << "\n\n";
1026
+
1027
+
colourSubheading();
1028
+
std::cout << "What this command does:" << NOULINE_STR;
std::cout << wordWrap("\n- This command allows you to access the games within ZeeTerminal.\n- These games may have settings that you can adjust. These can be found in the Settings command.\n\n");
1031
+
1032
+
colourSubheading();
1033
+
std::cout << "Possible arguments for this command:" << NOULINE_STR;
std::cout << wordWrap("\n -h\t\tDisplays this help message.\n --cardodge\tStarts the CarDodge game, a game where you dodge enemy cars to gain points.\n\n"
Copy file name to clipboardExpand all lines: CommandFiles/Settings.cpp
+142-6Lines changed: 142 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -825,7 +825,7 @@ void LogFileSystemSettings(short int nChoice = 0, short int nChoiceLogging = 0,
825
825
826
826
// Error
827
827
else {
828
-
VerbosityDisplay("In OtherSettings() - ERROR: Unknown return value from OptionSelectEngine::OptionSelect().\n");
828
+
VerbosityDisplay("In LogFileSystemSettings() - ERROR: Unknown return value from OptionSelectEngine::OptionSelect().\n");
829
829
UserErrorDisplay("ERROR - Unknown error occured. Please try again later.\n");
830
830
831
831
return;
@@ -879,7 +879,7 @@ void LogFileSystemSettings(short int nChoice = 0, short int nChoiceLogging = 0,
879
879
880
880
// Error
881
881
else {
882
-
VerbosityDisplay("In OtherSettings() - ERROR: Unknown return value from OptionSelectEngine::OptionSelect().\n");
882
+
VerbosityDisplay("In LogFileSystemSettings() - ERROR: Unknown return value from OptionSelectEngine::OptionSelect().\n");
883
883
UserErrorDisplay("ERROR - Unknown error occured. Please try again later.\n");
884
884
885
885
return;
@@ -933,7 +933,7 @@ void LogFileSystemSettings(short int nChoice = 0, short int nChoiceLogging = 0,
933
933
934
934
// Error
935
935
else {
936
-
VerbosityDisplay("In OtherSettings() - ERROR: Unknown return value from OptionSelectEngine::OptionSelect().\n");
936
+
VerbosityDisplay("In LogFileSystemSettings() - ERROR: Unknown return value from OptionSelectEngine::OptionSelect().\n");
937
937
UserErrorDisplay("ERROR - Unknown error occured. Please try again later.\n");
938
938
939
939
return;
@@ -987,7 +987,7 @@ void LogFileSystemSettings(short int nChoice = 0, short int nChoiceLogging = 0,
987
987
988
988
// Error
989
989
else {
990
-
VerbosityDisplay("In OtherSettings() - ERROR: Unknown return value from OptionSelectEngine::OptionSelect().\n");
990
+
VerbosityDisplay("In LogFileSystemSettings() - ERROR: Unknown return value from OptionSelectEngine::OptionSelect().\n");
991
991
UserErrorDisplay("ERROR - Unknown error occured. Please try again later.\n");
992
992
993
993
return;
@@ -1041,7 +1041,7 @@ void LogFileSystemSettings(short int nChoice = 0, short int nChoiceLogging = 0,
1041
1041
1042
1042
// Error
1043
1043
else {
1044
-
VerbosityDisplay("In OtherSettings() - ERROR: Unknown return value from OptionSelectEngine::OptionSelect().\n");
1044
+
VerbosityDisplay("In LogFileSystemSettings() - ERROR: Unknown return value from OptionSelectEngine::OptionSelect().\n");
1045
1045
UserErrorDisplay("ERROR - Unknown error occured. Please try again later.\n");
1046
1046
1047
1047
return;
@@ -1054,7 +1054,143 @@ void LogFileSystemSettings(short int nChoice = 0, short int nChoiceLogging = 0,
1054
1054
}
1055
1055
else
1056
1056
{
1057
-
VerbosityDisplay("In OtherSettings() - ERROR: Unknown return value from OptionSelectEngine::OptionSelect().\n");
1057
+
VerbosityDisplay("In LogFileSystemSettings() - ERROR: Unknown return value from OptionSelectEngine::OptionSelect().\n");
1058
+
UserErrorDisplay("ERROR - Unknown error occured. Please try again later.\n");
1059
+
1060
+
return;
1061
+
}
1062
+
}
1063
+
1064
+
voidCarDodgeGameSettings(shortint nChoiceMain = 0, int nChoiceCarTurnSpeed = 0, int nChoiceStartupCar = 0, int nChoiceForeground = 0, int nChoiceBackground = 0) {
1065
+
OptionSelectEngine oseCarDodgeSettings;
1066
+
1067
+
if (nChoiceMain == 0) {
1068
+
oseCarDodgeSettings.nSizeOfOptions = 4;
1069
+
std::string sOptions[] = {
1070
+
"Car Turning Speed",
1071
+
"Game Startup Car",
1072
+
"Game Foreground Colour",
1073
+
"Game Background Colour"
1074
+
};
1075
+
oseCarDodgeSettings.sOptions = sOptions;
1076
+
nChoiceMain = oseCarDodgeSettings.OptionSelect("Please select which setting you want to change relating to the Car Dodge game:", " ___CAR DODGE GAME SETTINGS___ ");
std::cout << wordWrap("CarDodge Car Turning Speed has successfully been set to " + std::to_string(ConfigObjMain.nCarDodgeCarTurningSpeed) + " in character speed.\n");
nChoiceForeground = oseCarDodgeSettings.OptionSelect("Please select what foreground colour you want CarDodge to use (note that this only affects the car colours on-screen):"
1160
+
"\n(Currently set to: " + colconv::ColourToLogicalDisplayName(ConfigObjMain.sCarDodgeGameplayColourFore) + ")", " ___GAME FOREGROUND COLOUR SETTINGS___ ");
nChoiceBackground = oseCarDodgeSettings.OptionSelect("Please select what background colour you want CarDodge to use (note that this does NOT affect game borders, only the gameplay background):"
1177
+
"\n(Currently set to: " + colconv::ColourToLogicalDisplayName(ConfigObjMain.sCarDodgeGameplayColourBack) + ")", " ___GAME BACKGROUND COLOUR SETTINGS___ ");
0 commit comments