Class ButtonSpriteMapData
Definition
Namespace: StardewUI.Data
Assembly: StardewUI.dll
JSON configuration data for a ButtonSpriteMap.
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()
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
Dictionary
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.
Property Value
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.
Property Value
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.
Property Value
MouseMiddle
Name of the sprite asset to use for MouseMiddle.
Property Value
MouseRight
Name of the sprite asset to use for MouseRight.