2022-09-30 20:36:51 +00:00
|
|
|
#ifndef OPENMW_COMPONENTS_SETTINGS_CATEGORIES_GENERAL_H
|
|
|
|
#define OPENMW_COMPONENTS_SETTINGS_CATEGORIES_GENERAL_H
|
|
|
|
|
2023-11-01 22:34:54 +00:00
|
|
|
#include <components/settings/sanitizerimpl.hpp>
|
|
|
|
#include <components/settings/settingvalue.hpp>
|
2022-09-30 20:36:51 +00:00
|
|
|
|
|
|
|
#include <osg/Math>
|
|
|
|
#include <osg/Vec2f>
|
|
|
|
#include <osg/Vec3f>
|
|
|
|
|
|
|
|
#include <cstdint>
|
|
|
|
#include <string>
|
|
|
|
#include <string_view>
|
|
|
|
|
|
|
|
namespace Settings
|
|
|
|
{
|
2023-04-10 15:24:57 +00:00
|
|
|
struct GeneralCategory : WithIndex
|
2022-09-30 20:36:51 +00:00
|
|
|
{
|
2023-04-10 15:24:57 +00:00
|
|
|
using WithIndex::WithIndex;
|
|
|
|
|
|
|
|
SettingValue<int> mAnisotropy{ mIndex, "General", "anisotropy", makeClampSanitizerInt(0, 16) };
|
|
|
|
SettingValue<std::string> mScreenshotFormat{ mIndex, "General", "screenshot format",
|
2022-09-30 20:36:51 +00:00
|
|
|
makeEnumSanitizerString({ "jpg", "png", "tga" }) };
|
2023-04-10 15:24:57 +00:00
|
|
|
SettingValue<std::string> mTextureMagFilter{ mIndex, "General", "texture mag filter",
|
2022-09-30 20:36:51 +00:00
|
|
|
makeEnumSanitizerString({ "nearest", "linear" }) };
|
2023-04-10 15:24:57 +00:00
|
|
|
SettingValue<std::string> mTextureMinFilter{ mIndex, "General", "texture min filter",
|
2022-09-30 20:36:51 +00:00
|
|
|
makeEnumSanitizerString({ "nearest", "linear" }) };
|
2023-04-10 15:24:57 +00:00
|
|
|
SettingValue<std::string> mTextureMipmap{ mIndex, "General", "texture mipmap",
|
2022-09-30 20:36:51 +00:00
|
|
|
makeEnumSanitizerString({ "none", "nearest", "linear" }) };
|
2023-04-10 15:24:57 +00:00
|
|
|
SettingValue<bool> mNotifyOnSavedScreenshot{ mIndex, "General", "notify on saved screenshot" };
|
2023-07-03 21:47:53 +00:00
|
|
|
SettingValue<std::vector<std::string>> mPreferredLocales{ mIndex, "General", "preferred locales" };
|
2023-06-13 07:48:40 +00:00
|
|
|
SettingValue<bool> mGmstOverridesL10n{ mIndex, "General", "gmst overrides l10n" };
|
2023-04-10 15:24:57 +00:00
|
|
|
SettingValue<std::size_t> mLogBufferSize{ mIndex, "General", "log buffer size" };
|
|
|
|
SettingValue<std::size_t> mConsoleHistoryBufferSize{ mIndex, "General", "console history buffer size" };
|
2022-09-30 20:36:51 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|