com.threerings.tudey.config
Class PlaceableConfig.ClickableProp
java.lang.Object
com.threerings.util.DeepObject
com.threerings.tudey.config.PlaceableConfig.Implementation
com.threerings.tudey.config.PlaceableConfig.Original
com.threerings.tudey.config.PlaceableConfig.Prop
com.threerings.tudey.config.PlaceableConfig.ClickableProp
- All Implemented Interfaces:
- Exportable, Copyable, Cloneable
- Enclosing class:
- PlaceableConfig
public static class PlaceableConfig.ClickableProp
- extends PlaceableConfig.Prop
Clickable prop implementation.
defaultColor
@Editable(mode="alpha",
hgroup="d")
public Color4f defaultColor
- The color to use when not hovering over the prop.
hoverColor
@Editable(mode="alpha",
hgroup="d")
public Color4f hoverColor
- The color to use when hovering over the prop.
defaultAnimation
@Editable(nullable=true)
public ConfigReference<AnimationConfig> defaultAnimation
- The animation to play when not hovering, if any.
hoverAnimation
@Editable(nullable=true)
public ConfigReference<AnimationConfig> hoverAnimation
- The animation to play when hovering, if any.
action
@Editable
public ClientActionConfig action
- The action to perform when clicked.
PlaceableConfig.ClickableProp
public PlaceableConfig.ClickableProp()
getSpriteImplementation
public PlaceableSprite.Implementation getSpriteImplementation(TudeyContext ctx,
Scope scope,
PlaceableSprite.Implementation impl)
- Description copied from class:
PlaceableConfig.Implementation
- Creates or updates a sprite implementation for this configuration.
- Overrides:
getSpriteImplementation in class PlaceableConfig.Prop
scope - the placeable's expression scope.impl - an existing implementation to reuse, if possible.
- Returns:
- either a reference to the existing implementation (if reused), a new
implementation, or
null if no implementation could be created.
Copyright © 2011. All Rights Reserved.