class InteractionMappinController extends BaseInteractionMappinController
{
	private var m_mappin : weak< InteractionMappin >;
	private var m_root : weak< inkWidget >;
	private var m_isConnected : Bool;

	protected event OnInitialize()
	{
		m_isConnected = false;
	}

	protected event OnUninitialize() {}

	protected event OnIntro()
	{
		m_mappin = ( ( InteractionMappin )( GetMappin() ) );
		m_root = GetRootWidget();
		OnUpdate();
	}

	protected event OnUpdate()
	{
		UpdateVisibility();
	}

	protected event OnChoiceVisualizer( connected : Bool )
	{
		m_isConnected = connected;
		UpdateVisibility();
	}

	protected function UpdateVisibility()
	{
		SetRootVisible( m_mappin.IsVisible() && !( m_isConnected ) );
	}

}

