class characterCreationBodyMorphImageThumbnail extends inkButtonAnimatedController
{
	editable var m_selector : inkWidgetRef;
	editable var m_equipped : inkWidgetRef;
	editable var m_bg : inkWidgetRef;
	var m_index : Int32;

	protected event OnInitialize()
	{
		RegisterToCallback( 'OnHoverOver', this, 'OnHoverOver' );
		RegisterToCallback( 'OnHoverOut', this, 'OnHoverOut' );
		inkWidgetRef.SetVisible( m_selector, false );
	}

	public function Refresh( selected : Bool, color : Color, index : Int32 )
	{
		m_index = index;
		inkWidgetRef.SetTintColor( m_bg, color );
		inkWidgetRef.SetVisible( m_equipped, selected );
	}

	public function RefreshSelectionState( selected : Bool )
	{
		inkWidgetRef.SetVisible( m_equipped, selected );
	}

	protected event OnHoverOver( e : inkPointerEvent )
	{
		inkWidgetRef.SetVisible( m_selector, true );
	}

	protected event OnHoverOut( e : inkPointerEvent )
	{
		inkWidgetRef.SetVisible( m_selector, false );
	}

}

