2022-09-30 20:36:51 +00:00
|
|
|
#ifndef OPENMW_COMPONENTS_SETTINGS_CATEGORIES_MAP_H
|
|
|
|
#define OPENMW_COMPONENTS_SETTINGS_CATEGORIES_MAP_H
|
|
|
|
|
2023-11-01 22:34:54 +00:00
|
|
|
#include <components/misc/constants.hpp>
|
|
|
|
#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 MapCategory : WithIndex
|
2022-09-30 20:36:51 +00:00
|
|
|
{
|
2023-04-10 15:24:57 +00:00
|
|
|
using WithIndex::WithIndex;
|
|
|
|
|
2023-07-13 11:06:49 +00:00
|
|
|
SettingValue<int> mGlobalMapCellSize{ mIndex, "Map", "global map cell size", makeClampSanitizerInt(1, 50) };
|
2023-04-10 15:24:57 +00:00
|
|
|
SettingValue<bool> mLocalMapHudFogOfWar{ mIndex, "Map", "local map hud fog of war" };
|
|
|
|
SettingValue<int> mLocalMapResolution{ mIndex, "Map", "local map resolution", makeMaxSanitizerInt(1) };
|
|
|
|
SettingValue<int> mLocalMapWidgetSize{ mIndex, "Map", "local map widget size", makeMaxSanitizerInt(1) };
|
|
|
|
SettingValue<bool> mGlobal{ mIndex, "Map", "global" };
|
|
|
|
SettingValue<bool> mAllowZooming{ mIndex, "Map", "allow zooming" };
|
|
|
|
SettingValue<int> mMaxLocalViewingDistance{ mIndex, "Map", "max local viewing distance",
|
2023-07-27 20:52:51 +00:00
|
|
|
makeMaxSanitizerInt(Constants::CellGridRadius) };
|
2022-09-30 20:36:51 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|