SKUButtonSpriteStateProperties
IntroductionStores 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 +(SKUButtonSpriteStateProperties*)propertiesWithDefaultsSKU NS_SWIFT_NAME(init( defaultsSKU:)); DiscussionReturns a new object with the included default properties. defaultsSliderSlideSKU:propertiesWithDefaultsSliderSlideSKU +(SKUButtonSpriteStateProperties*)propertiesWithDefaultsSliderSlideSKU NS_SWIFT_NAME(init( defaultsSliderSlideSKU:)); DiscussionReturns a new object with the included default slider slide properties. defaultsToggleOffSKU:propertiesWithDefaultsToggleOffSKU +(SKUButtonSpriteStateProperties*)propertiesWithDefaultsToggleOffSKU NS_SWIFT_NAME(init( defaultsToggleOffSKU:)); DiscussionReturns a new object with the included default toggle off properties. defaultsToggleOnSKU:propertiesWithDefaultsToggleOnSKU +(SKUButtonSpriteStateProperties*)propertiesWithDefaultsToggleOnSKU NS_SWIFT_NAME(init( defaultsToggleOnSKU:)); DiscussionReturns a new object with the included default toggle on properties. propertiesWithDefaultsSliderKnobSKU:+(SKUButtonSpriteStateProperties*) propertiesWithDefaultsSliderKnobSKU:(BOOL)pressed; DiscussionReturns a new object with the included default knob properties. propertiesWithTexture:andAlpha:+(SKUButtonSpriteStateProperties*)propertiesWithTexture:(SKTexture*)texture andAlpha:(CGFloat)alpha; DiscussionReturns a new object with the following properties. propertiesWithTexture:andAlpha:andColor:andColorBlendFactor:+(SKUButtonSpriteStateProperties*)propertiesWithTexture:(SKTexture*)texture andAlpha:(CGFloat)alpha andColor:(SKColor*)color andColorBlendFactor:(CGFloat)colorBlendFactor; DiscussionReturns 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; DiscussionReturns 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; DiscussionReturns 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; DiscussionReturns 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; DiscussionReturns a new object with the following properties. setScale:-(void)setScale:(CGFloat)scale; DiscussionSets the x and y scale together. Propertiesalpha@property (nonatomic) CGFloat alpha; DiscussionAlpha value stored for a given state. centerRect@property (nonatomic) CGRect centerRect; DiscussionCenterRect value stored for a given state. color@property (nonatomic, strong) SKColor* color; DiscussionColor value stored for a given state. colorBlendFactor@property (nonatomic) CGFloat colorBlendFactor; DiscussioncolorBlendFactor value stored for a given state. padding@property (nonatomic) CGFloat padding; Discussionpadding value stored for a given state. position@property (nonatomic) CGPoint position; DiscussionPosition value stored for a given state. texture@property (nonatomic, strong) SKTexture* texture; DiscussionSKTexture object stored for a given state. xScale@property (nonatomic) CGFloat xScale; DiscussionxScale value stored for a given state. yScale@property (nonatomic) CGFloat yScale; DiscussionyScale value stored for a given state. |