Class FixedSizeSpriteIcon
Icon for a minimap composed of a simple sprite of a fixed pixel size.
Implements
Inherited Members
Namespace: nickmaltbie.MinimapTools.Icon
Assembly: cs.temp.dll.dll
Syntax
public class FixedSizeSpriteIcon : AbstractSpriteIcon, IMinimapIcon
Methods
GetPixelSize(IMinimap)
Size of the icon in pixels.
Declaration
public override Vector2Int GetPixelSize(IMinimap minimap)
Parameters
Type | Name | Description |
---|---|---|
IMinimap | minimap | Minimap the icon will be drawn on. May affect the size of the icon. |
Returns
Type | Description |
---|---|
Vector2Int | Size of the icon in pixels. |
Overrides
ScaleWithMap()
Should the icon scale with the map scale.
Declaration
public override bool ScaleWithMap()
Returns
Type | Description |
---|---|
Boolean | If true, will scale with the map, if false will not scale with the map. |