2 Commits

Author SHA1 Message Date
d87ddcdc22 Merge branch 'main' of https://git.ale-pri.com/TetrisNerd/jminos 2025-03-22 11:00:34 +01:00
8aaced68d0 merging aftermath 2025-03-22 11:00:31 +01:00
2 changed files with 9 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
#pragma once
#include "Settings.h"
#include "../Settings.h"
#include <stack>
#include <memory>

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) {