SKUButtonSpriteStateProperties

Conforms to:
NSCopying
Superclass:
NSObject
Declared In:

Introduction

Stores a single state for sprites in buttons. The properties set on this object gets passed to the button's sprite for the appropriate state.



Methods

+defaultsSKU:

propertiesWithDefaultsSKU

+defaultsSliderSlideSKU:

propertiesWithDefaultsSliderSlideSKU

+defaultsToggleOffSKU:

propertiesWithDefaultsToggleOffSKU

+defaultsToggleOnSKU:

propertiesWithDefaultsToggleOnSKU

+propertiesWithDefaultsSliderKnobSKU:
+propertiesWithTexture:andAlpha:
+propertiesWithTexture:andAlpha:andColor:andColorBlendFactor:
+propertiesWithTexture:andAlpha:andColor:andColorBlendFactor:andPositionOffset:
+propertiesWithTexture:andAlpha:andColor:andColorBlendFactor:andPositionOffset:andXScale:andYScale:
+propertiesWithTexture:andAlpha:andColor:andColorBlendFactor:andPositionOffset:andXScale:andYScale:andCenterRect:
+propertiesWithTexture:andAlpha:andColor:andColorBlendFactor:andPositionOffset:andXScale:andYScale:andCenterRect:andPadding:
-setScale:

defaultsSKU:


propertiesWithDefaultsSKU

+(SKUButtonSpriteStateProperties*)propertiesWithDefaultsSKU NS_SWIFT_NAME(init(
                defaultsSKU:)); 
Discussion

Returns a new object with the included default properties.


defaultsSliderSlideSKU:


propertiesWithDefaultsSliderSlideSKU

+(SKUButtonSpriteStateProperties*)propertiesWithDefaultsSliderSlideSKU NS_SWIFT_NAME(init(
                defaultsSliderSlideSKU:)); 
Discussion

Returns a new object with the included default slider slide properties.


defaultsToggleOffSKU:


propertiesWithDefaultsToggleOffSKU

+(SKUButtonSpriteStateProperties*)propertiesWithDefaultsToggleOffSKU NS_SWIFT_NAME(init(
                defaultsToggleOffSKU:)); 
Discussion

Returns a new object with the included default toggle off properties.


defaultsToggleOnSKU:


propertiesWithDefaultsToggleOnSKU

+(SKUButtonSpriteStateProperties*)propertiesWithDefaultsToggleOnSKU NS_SWIFT_NAME(init(
                defaultsToggleOnSKU:)); 
Discussion

Returns a new object with the included default toggle on properties.


propertiesWithDefaultsSliderKnobSKU:


Discussion

Returns a new object with the included default knob properties.


propertiesWithTexture:andAlpha:


+(SKUButtonSpriteStateProperties*)propertiesWithTexture:(SKTexture*)texture 
        andAlpha:(CGFloat)alpha; 
Discussion

Returns a new object with the following properties.


propertiesWithTexture:andAlpha:andColor:andColorBlendFactor:


+(SKUButtonSpriteStateProperties*)propertiesWithTexture:(SKTexture*)texture 
        andAlpha:(CGFloat)alpha andColor:(SKColor*)color 
        andColorBlendFactor:(CGFloat)colorBlendFactor; 
Discussion

Returns a new object with the following properties.


propertiesWithTexture:andAlpha:andColor:andColorBlendFactor:andPositionOffset:


+(SKUButtonSpriteStateProperties*)propertiesWithTexture:(SKTexture*)texture 
        andAlpha:(CGFloat)alpha andColor:(SKColor*)color 
        andColorBlendFactor:(CGFloat)colorBlendFactor 
        andPositionOffset:(CGPoint)position; 
Discussion

Returns a new object with the following properties.


propertiesWithTexture:andAlpha:andColor:andColorBlendFactor:andPositionOffset:andXScale:andYScale:


+(SKUButtonSpriteStateProperties*)propertiesWithTexture:(SKTexture*)texture 
        andAlpha:(CGFloat)alpha andColor:(SKColor*)color 
        andColorBlendFactor:(CGFloat)colorBlendFactor 
        andPositionOffset:(CGPoint)position andXScale:(CGFloat)xScale 
        andYScale:(CGFloat)yScale; 
Discussion

Returns a new object with the following properties.


propertiesWithTexture:andAlpha:andColor:andColorBlendFactor:andPositionOffset:andXScale:andYScale:andCenterRect:


+(SKUButtonSpriteStateProperties*)propertiesWithTexture:(SKTexture*)texture 
        andAlpha:(CGFloat)alpha andColor:(SKColor *)color 
        andColorBlendFactor:(CGFloat)colorBlendFactor 
        andPositionOffset:(CGPoint)position andXScale:(CGFloat)xScale 
        andYScale:(CGFloat)yScale andCenterRect:(CGRect)centerRect; 
Discussion

Returns a new object with the following properties.


propertiesWithTexture:andAlpha:andColor:andColorBlendFactor:andPositionOffset:andXScale:andYScale:andCenterRect:andPadding:


+(SKUButtonSpriteStateProperties*)propertiesWithTexture:(SKTexture*)texture 
        andAlpha:(CGFloat)alpha andColor:(SKColor *)color 
        andColorBlendFactor:(CGFloat)colorBlendFactor 
        andPositionOffset:(CGPoint)position andXScale:(CGFloat)xScale 
        andYScale:(CGFloat)yScale andCenterRect:(CGRect)centerRect 
        andPadding:(CGFloat)padding; 
Discussion

Returns a new object with the following properties.


setScale:


-(void)setScale:(CGFloat)scale; 
Discussion

Sets the x and y scale together.


Properties

alpha
centerRect
color
colorBlendFactor
padding
position
texture
xScale
yScale

alpha


@property (nonatomic) CGFloat alpha; 
Discussion

Alpha value stored for a given state.


centerRect


@property (nonatomic) CGRect centerRect; 
Discussion

CenterRect value stored for a given state.


color


@property (nonatomic,
    strong) SKColor* color; 
Discussion

Color value stored for a given state.


colorBlendFactor


@property (nonatomic) CGFloat colorBlendFactor; 
Discussion

colorBlendFactor value stored for a given state.


padding


@property (nonatomic) CGFloat padding; 
Discussion

padding value stored for a given state.


position


@property (nonatomic) CGPoint position; 
Discussion

Position value stored for a given state.


texture


@property (nonatomic,
    strong) SKTexture* texture; 
Discussion

SKTexture object stored for a given state.


xScale


@property (nonatomic) CGFloat xScale; 
Discussion

xScale value stored for a given state.


yScale


@property (nonatomic) CGFloat yScale; 
Discussion

yScale value stored for a given state.