Class MapSettings
public class MapSettings : ScriptableObject
- Inheritance
-
MapSettings
Fields
OnDragSettingsChanged
public static Action<bool> OnDragSettingsChanged
Field Value
showLabels
public bool showLabels
Field Value
useOnlineMap
public bool useOnlineMap
Field Value
Properties
CanDragMarkers
public bool CanDragMarkers { get; }
Property Value
CanSelectMarkers
public bool CanSelectMarkers { get; }
Property Value
EnableGrid
public bool EnableGrid { get; }
Property Value
EnableGridLabels
public bool EnableGridLabels { get; }
Property Value
GridLabelColor
public Color GridLabelColor { get; }
Property Value
- Color
GridLabelFontSize
public int GridLabelFontSize { get; }
Property Value
GridLabelOffsetIndex
public int GridLabelOffsetIndex { get; }
Property Value
GridLineColor
public Color GridLineColor { get; }
Property Value
- Color
GridLineThickness
public float GridLineThickness { get; }
Property Value
GridSpacing
public float GridSpacing { get; }
Property Value
HorizontalGridLabelOffset
public Vector2 HorizontalGridLabelOffset { get; }
Property Value
- Vector2
Instance
public static MapSettings Instance { get; }
Property Value
MapFile
public MapFile MapFile { get; }
Property Value
PerfectSquareGrid
public bool PerfectSquareGrid { get; }
Property Value
Regions
All saved offline map regions.
public IReadOnlyList<MapFile> Regions { get; }
Property Value
TotalHorizontalGridLines
public int TotalHorizontalGridLines { get; }
Property Value
TotalVerticalGridLines
public int TotalVerticalGridLines { get; }
Property Value
VerticalGridLabelOffset
public Vector2 VerticalGridLabelOffset { get; }
Property Value
- Vector2
ZoomLabelOffset
public bool ZoomLabelOffset { get; }
Property Value
ZoomLabelOffsetMaxIndex
public int ZoomLabelOffsetMaxIndex { get; }
Property Value
ZoomLabelOffsetMinIndex
public int ZoomLabelOffsetMinIndex { get; }
Property Value
Methods
AddRegion(MapFile)
Adds a region to the catalog. Replaces an existing entry with the same name.
public void AddRegion(MapFile region)
Parameters
regionMapFile
HasRegion(string)
Returns true if a region with the given name exists in the catalog.
public bool HasRegion(string name)
Parameters
namestring
Returns
RemoveRegion(string)
Removes the region with the given name from the catalog. Does nothing if not found.
public void RemoveRegion(string name)
Parameters
namestring
SetCanDragMarkers(bool)
public void SetCanDragMarkers(bool canDrag)
Parameters
canDragbool
SetCanSelectMarkers(bool)
public void SetCanSelectMarkers(bool canSelect)
Parameters
canSelectbool
SetCurrentMapFile(MapFile)
public void SetCurrentMapFile(MapFile newMapFile)
Parameters
newMapFileMapFile
SetEnableGrid(bool)
public void SetEnableGrid(bool value)
Parameters
valuebool
SetEnableGridLabels(bool)
public void SetEnableGridLabels(bool value)
Parameters
valuebool
SetGridLabelColor(Color)
public void SetGridLabelColor(Color value)
Parameters
valueColor
SetGridLabelFontSize(int)
public void SetGridLabelFontSize(int value)
Parameters
valueint
SetGridLabelOffsetIndex(int)
public void SetGridLabelOffsetIndex(int value)
Parameters
valueint
SetGridLineColor(Color)
public void SetGridLineColor(Color value)
Parameters
valueColor
SetGridLineThickness(float)
public void SetGridLineThickness(float value)
Parameters
valuefloat
SetGridSpacing(float)
public void SetGridSpacing(float value)
Parameters
valuefloat
SetHorizontalGridLabelOffset(Vector2)
public void SetHorizontalGridLabelOffset(Vector2 value)
Parameters
valueVector2
SetPerfectSquareGrid(bool)
public void SetPerfectSquareGrid(bool value)
Parameters
valuebool
SetRegions(List<MapFile>)
public void SetRegions(List<MapFile> value)
Parameters
SetShowLabels(bool)
public void SetShowLabels(bool value)
Parameters
valuebool
SetTotalHorizontalGridLines(int)
public void SetTotalHorizontalGridLines(int value)
Parameters
valueint
SetTotalVerticalGridLines(int)
public void SetTotalVerticalGridLines(int value)
Parameters
valueint
SetUseOnlineMap(bool)
public void SetUseOnlineMap(bool value)
Parameters
valuebool
SetVerticalGridLabelOffset(Vector2)
public void SetVerticalGridLabelOffset(Vector2 value)
Parameters
valueVector2
SetZoomLabelOffset(bool)
public void SetZoomLabelOffset(bool value)
Parameters
valuebool
SetZoomLabelOffsetMaxIndex(int)
public void SetZoomLabelOffsetMaxIndex(int value)
Parameters
valueint
SetZoomLabelOffsetMinIndex(int)
public void SetZoomLabelOffsetMinIndex(int value)
Parameters
valueint
TryGetRegion(string, out MapFile)
Attempts to find a region by name. Returns false if not found.
public bool TryGetRegion(string name, out MapFile region)