SKUButtonSpriteStatePropertiesPackage
IntroductionStores all states for a sprite in buttons. The properties collected on this object get passed to the button's states. Methods
changePadding:-(void)changePadding:(CGFloat)padding; DiscussionAllows you to change the padding for all states at once. changeTexture:-(void)changeTexture:(SKTexture*)texture; DiscussionAllows you to change the texture for all states at once. defaultPropertiesSKU:packageWithDefaultPropertiesSKU +(SKUButtonSpriteStatePropertiesPackage*)packageWithDefaultPropertiesSKU NS_SWIFT_NAME(init( defaultPropertiesSKU:)); DiscussionReturns a package based on the included assets. defaultSliderKnobPropertiesSKU:packageWithDefaultSliderKnobPropertiesSKU +(SKUButtonSpriteStatePropertiesPackage*)packageWithDefaultSliderKnobPropertiesSKU NS_SWIFT_NAME(init( defaultSliderKnobPropertiesSKU:)); DiscussionReturns a package based on the included assets. defaultSliderSliderSlidePropertiesSKU:packageWithDefaultSliderSliderSlidePropertiesSKU +(SKUButtonSpriteStatePropertiesPackage*)packageWithDefaultSliderSliderSlidePropertiesSKU NS_SWIFT_NAME(init( defaultSliderSliderSlidePropertiesSKU:)); DiscussionReturns a package based on the included assets. defaultToggleOffPropertiesSKU:packageWithDefaultToggleOffPropertiesSKU +(SKUButtonSpriteStatePropertiesPackage*)packageWithDefaultToggleOffPropertiesSKU NS_SWIFT_NAME(init( defaultToggleOffPropertiesSKU:)); DiscussionReturns a package based on the included assets. defaultToggleOnPropertiesSKU:packageWithDefaultToggleOnPropertiesSKU +(SKUButtonSpriteStatePropertiesPackage*)packageWithDefaultToggleOnPropertiesSKU NS_SWIFT_NAME(init( defaultToggleOnPropertiesSKU:)); DiscussionReturns a package based on the included assets. packageWithPropertiesForDefaultState:+(SKUButtonSpriteStatePropertiesPackage*) packageWithPropertiesForDefaultState:(SKUButtonSpriteStateProperties *)defaultState; DiscussionAllows 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:+(SKUButtonSpriteStatePropertiesPackage*) packageWithPropertiesForDefaultState:(SKUButtonSpriteStateProperties *)defaultState andPressedState:(SKUButtonSpriteStateProperties *)pressedState; DiscussionAllows 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:+(SKUButtonSpriteStatePropertiesPackage*) packageWithPropertiesForDefaultState:(SKUButtonSpriteStateProperties*)defaultState andPressedState:(SKUButtonSpriteStateProperties*)pressedState andDisabledState:(SKUButtonSpriteStateProperties*)disabledState; DiscussionAllows 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:+(SKUButtonSpriteStatePropertiesPackage*) packageWithPropertiesForDefaultState:(SKUButtonSpriteStateProperties*)defaultState andPressedState:(SKUButtonSpriteStateProperties*)pressedState andHoveredState:(SKUButtonSpriteStateProperties*)hoveredState andDisabledState:(SKUButtonSpriteStateProperties*)disabledState; DiscussionAllows you to explicitly set all states. PropertiespropertiesDefaultState@property (nonatomic) SKUButtonSpriteStateProperties* propertiesDefaultState; DiscussionSprite properties for default state. propertiesDisabledState@property (nonatomic) SKUButtonSpriteStateProperties* propertiesDisabledState; DiscussionSprite properties for disabled state. propertiesHoveredState@property (nonatomic) SKUButtonSpriteStateProperties* propertiesHoveredState; DiscussionSprite properties for hovered state. propertiesPressedState@property (nonatomic) SKUButtonSpriteStateProperties* propertiesPressedState; DiscussionSprite properties for pressed state. |