Address review findings

This commit is contained in:
Lukas Brübach 2026-11-08 14:43:20 +01:00
parent 178d392361
commit 7c90211247
13 changed files with 229 additions and 67 deletions

View file

@ -5,8 +5,6 @@
#include "libcockatrice/utility/playmat_params.h"
#include <QChar>
#include <QDir>
#include <QFileInfo>
#include <QList>
#include <QVariant>
#include <QtGlobal>
@ -253,6 +251,21 @@ bool InterfaceSettings::getTutorialCompleted() const
return getValue("tutorialCompleted", QString(), QString(), false).toBool();
}
bool InterfaceSettings::getHomeTutorialCompleted() const
{
return getValue("tutorialHomeCompleted", QString(), QString(), false).toBool();
}
bool InterfaceSettings::getDeckEditorTutorialCompleted() const
{
return getValue("tutorialDeckEditorCompleted", QString(), QString(), false).toBool();
}
bool InterfaceSettings::getGameTutorialCompleted() const
{
return getValue("tutorialGameCompleted", QString(), QString(), false).toBool();
}
void InterfaceSettings::setUseTearOffMenus(bool _useTearOffMenus)
{
setValue(_useTearOffMenus, "useTearOffMenus");
@ -481,3 +494,18 @@ void InterfaceSettings::setTutorialCompleted(bool value)
{
setValue(value, "tutorialCompleted");
}
void InterfaceSettings::setHomeTutorialCompleted(bool value)
{
setValue(value, "tutorialHomeCompleted");
}
void InterfaceSettings::setDeckEditorTutorialCompleted(bool value)
{
setValue(value, "tutorialDeckEditorCompleted");
}
void InterfaceSettings::setGameTutorialCompleted(bool value)
{
setValue(value, "tutorialGameCompleted");
}