SKUButtonSpriteStatePropertiesPackage

Conforms to:
NSCopying
Superclass:
NSObject
Declared In:

Introduction

Stores all states for a sprite in buttons. The properties collected on this object get passed to the button's states.



Methods

-changePadding:
-changeTexture:
+defaultPropertiesSKU:

packageWithDefaultPropertiesSKU

+defaultSliderKnobPropertiesSKU:

packageWithDefaultSliderKnobPropertiesSKU

+defaultSliderSliderSlidePropertiesSKU:

packageWithDefaultSliderSliderSlidePropertiesSKU

+defaultToggleOffPropertiesSKU:

packageWithDefaultToggleOffPropertiesSKU

+defaultToggleOnPropertiesSKU:

packageWithDefaultToggleOnPropertiesSKU

+packageWithPropertiesForDefaultState:
+packageWithPropertiesForDefaultState:andPressedState:
+packageWithPropertiesForDefaultState:andPressedState:andDisabledState:
+packageWithPropertiesForDefaultState:andPressedState:andHoveredState:andDisabledState:

changePadding:


-(void)changePadding:(CGFloat)padding; 
Discussion

Allows you to change the padding for all states at once.


changeTexture:


-(void)changeTexture:(SKTexture*)texture; 
Discussion

Allows you to change the texture for all states at once.


defaultPropertiesSKU:


packageWithDefaultPropertiesSKU

+(SKUButtonSpriteStatePropertiesPackage*)packageWithDefaultPropertiesSKU NS_SWIFT_NAME(init(
                defaultPropertiesSKU:)); 
Discussion

Returns a package based on the included assets.


defaultSliderKnobPropertiesSKU:


packageWithDefaultSliderKnobPropertiesSKU

+(SKUButtonSpriteStatePropertiesPackage*)packageWithDefaultSliderKnobPropertiesSKU NS_SWIFT_NAME(init(
                defaultSliderKnobPropertiesSKU:)); 
Discussion

Returns a package based on the included assets.


defaultSliderSliderSlidePropertiesSKU:


packageWithDefaultSliderSliderSlidePropertiesSKU

+(SKUButtonSpriteStatePropertiesPackage*)packageWithDefaultSliderSliderSlidePropertiesSKU NS_SWIFT_NAME(init(
                defaultSliderSliderSlidePropertiesSKU:)); 
Discussion

Returns a package based on the included assets.


defaultToggleOffPropertiesSKU:


packageWithDefaultToggleOffPropertiesSKU

+(SKUButtonSpriteStatePropertiesPackage*)packageWithDefaultToggleOffPropertiesSKU NS_SWIFT_NAME(init(
                defaultToggleOffPropertiesSKU:)); 
Discussion

Returns a package based on the included assets.


defaultToggleOnPropertiesSKU:


packageWithDefaultToggleOnPropertiesSKU

+(SKUButtonSpriteStatePropertiesPackage*)packageWithDefaultToggleOnPropertiesSKU NS_SWIFT_NAME(init(
                defaultToggleOnPropertiesSKU:)); 
Discussion

Returns a package based on the included assets.


packageWithPropertiesForDefaultState:


Discussion

Allows you to explicitly set default state and derives the pressed state from the default with 0.5 blend factor of a gray color overlay, and the disabled state from default, but with half opacity, and the hovered state from the default with skuHoverScale scale.


packageWithPropertiesForDefaultState:andPressedState:


Discussion

Allows you to explicitly set default and pressed states and derives the disabled state from default, but with half opacity, and the hovered state from the default with skuHoverScale scale.


packageWithPropertiesForDefaultState:andPressedState:andDisabledState:


Discussion

Allows you to explicitly set default and pressed states and derives the disabled state from default, but with half opacity, and the hovered state from the default with skuHoverScale scale.


packageWithPropertiesForDefaultState:andPressedState:andHoveredState:andDisabledState:


Discussion

Allows you to explicitly set all states.


Properties

propertiesDefaultState
propertiesDisabledState
propertiesHoveredState
propertiesPressedState

propertiesDefaultState


@property (nonatomic) SKUButtonSpriteStateProperties* propertiesDefaultState; 
Discussion

Sprite properties for default state.


propertiesDisabledState


@property (nonatomic) SKUButtonSpriteStateProperties* propertiesDisabledState; 
Discussion

Sprite properties for disabled state.


propertiesHoveredState


@property (nonatomic) SKUButtonSpriteStateProperties* propertiesHoveredState; 
Discussion

Sprite properties for hovered state.


propertiesPressedState


@property (nonatomic) SKUButtonSpriteStateProperties* propertiesPressedState; 
Discussion

Sprite properties for pressed state.