com.threerings.tudey.config
Class PlaceableConfig.ClickableProp

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.tudey.config.PlaceableConfig.Implementation
          extended by com.threerings.tudey.config.PlaceableConfig.Original
              extended by com.threerings.tudey.config.PlaceableConfig.Prop
                  extended by 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.


Field Summary
 ClientActionConfig action
          The action to perform when clicked.
 ConfigReference<AnimationConfig> defaultAnimation
          The animation to play when not hovering, if any.
 Color4f defaultColor
          The color to use when not hovering over the prop.
 ConfigReference<AnimationConfig> hoverAnimation
          The animation to play when hovering, if any.
 Color4f hoverColor
          The color to use when hovering over the prop.
 
Fields inherited from class com.threerings.tudey.config.PlaceableConfig.Prop
collisionFlags, floorFlags
 
Fields inherited from class com.threerings.tudey.config.PlaceableConfig.Original
defaultEntrance, handlers, model, rotationOffset, shape, tags
 
Constructor Summary
PlaceableConfig.ClickableProp()
           
 
Method Summary
 PlaceableSprite.Implementation getSpriteImplementation(TudeyContext ctx, Scope scope, PlaceableSprite.Implementation impl)
          Creates or updates a sprite implementation for this configuration.
 
Methods inherited from class com.threerings.tudey.config.PlaceableConfig.Prop
getCollisionFlags, getPreloads
 
Methods inherited from class com.threerings.tudey.config.PlaceableConfig.Original
getCursorImplementation, getLogicClassName, getOriginal, invalidate
 
Methods inherited from class com.threerings.tudey.config.PlaceableConfig.Implementation
getUpdateReferences
 
Methods inherited from class com.threerings.util.DeepObject
clone, copy, copy, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

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.

Constructor Detail

PlaceableConfig.ClickableProp

public PlaceableConfig.ClickableProp()
Method Detail

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.