merging aftermath

This commit is contained in:
2025-03-22 11:00:31 +01:00
parent d9ccecfdd8
commit 8aaced68d0
3 changed files with 10 additions and 2 deletions

View File

@@ -37,13 +37,17 @@ void Settings::resetSettingsFile() const {
bool Settings::selectNextKeybinds() {
if (this->chosenKeybinds < NUMBER_OF_KEYBINDS) {
this->chosenKeybinds++;
return true;
}
return false;
}
bool Settings::selectPreviousKeybinds() {
if (this->chosenKeybinds > 0) {
this->chosenKeybinds--;
return true;
}
return false;
}
bool Settings::canModifyCurrentKeybinds() const {
@@ -57,13 +61,17 @@ void Settings::setGamemode(Gamemode gamemode) {
bool Settings::widenWindow() {
if (this->windowSizeMode < WINDOW_SIZE_LAST_MODE) {
this->windowSizeMode++;
return true;
}
return false;
}
bool Settings::shortenWindow() {
if (this->windowSizeMode > 0) {
this->windowSizeMode--;
return true;
}
return false;
}
void Settings::selectPieces(PiecesType type, int value) {