Skip to content

Class ButtonSpriteMapData

Definition

Namespace: StardewUI.Data
Assembly: StardewUI.dll

JSON configuration data for a ButtonSpriteMap.

public class ButtonSpriteMapData

Inheritance
Object ⇦ ButtonSpriteMapData

Remarks

The data is based on having the sprites themselves registered as assets, e.g. via StardewUI.Data.SpriteSheetData.

Members

Constructors

Name Description
ButtonSpriteMapData()

Properties

Name Description
Buttons Map of buttons to the asset name used for that button's sprite.
ControllerBlank Name of the sprite asset to use for ControllerBlank.
KeyboardBlank Name of the sprite asset to use for KeyboardBlank.
MouseLeft Name of the sprite asset to use for MouseLeft.
MouseMiddle Name of the sprite asset to use for MouseMiddle.
MouseRight Name of the sprite asset to use for MouseRight.

Details

Constructors

ButtonSpriteMapData()

public ButtonSpriteMapData();

Properties

Buttons

Map of buttons to the asset name used for that button's sprite.

public System.Collections.Generic.Dictionary<StardewModdingAPI.SButton, string> Buttons { get; set; }
Property Value

Dictionarystring>

Remarks

Specific button sprites replace the ControllerBlank or KeyboardBlank and therefore must include both the border and inner icon/text.


ControllerBlank

Name of the sprite asset to use for ControllerBlank.

public string ControllerBlank { get; set; }
Property Value

string

Remarks

Used as the background for any controller button lacking its own unique sprite; the button name is rendered inside as regular text.


KeyboardBlank

Name of the sprite asset to use for KeyboardBlank.

public string KeyboardBlank { get; set; }
Property Value

string

Remarks

Used as the background for any key lacking its own unique sprite; the key name is rendered inside as regular text.


MouseLeft

Name of the sprite asset to use for MouseLeft.

public string MouseLeft { get; set; }
Property Value

string


MouseMiddle

Name of the sprite asset to use for MouseMiddle.

public string MouseMiddle { get; set; }
Property Value

string


MouseRight

Name of the sprite asset to use for MouseRight.

public string MouseRight { get; set; }
Property Value

string