Search Results for

    Show / Hide Table of Contents

    Class FixedSizeSpriteIcon

    Icon for a minimap composed of a simple sprite of a fixed pixel size.

    Inheritance
    Object
    AbstractSpriteIcon
    FixedSizeSpriteIcon
    Implements
    IMinimapIcon
    Inherited Members
    AbstractSpriteIcon.sprite
    AbstractSpriteIcon.rotateIcon
    AbstractSpriteIcon.GetWorldSpace()
    AbstractSpriteIcon.GetIconRotation()
    AbstractSpriteIcon.RotateWithMap()
    AbstractSpriteIcon.CreateIcon(IMinimap, RectTransform)
    AbstractSpriteIcon.GetWorldSize()
    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
    AbstractSpriteIcon.GetPixelSize(IMinimap)

    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.

    Overrides
    AbstractSpriteIcon.ScaleWithMap()

    Implements

    IMinimapIcon
    In This Article
    Back to top MinimapTools Documentation