Esempio n. 1
0
void CFlashUIActionNode::OnEnd( IUIAction* pAction, const SUIArguments& args  )
{
	if ( m_pAction != NULL && pAction == m_pAction )
	{
		UI_STACK_PUSH( m_endStack, std::make_pair( pAction, args ), "OnEnd UIAction %s (%s)", pAction->GetName(), args.GetAsString() );
		if ( m_bWasStarted )
		{
			m_bWasStarted = false;
			UI_STACK_PUSH( m_selfEndStack, std::make_pair( pAction, args ), "OnEnd (self) UIAction %s (%s)", pAction->GetName(), args.GetAsString() );
		}
	}
}
Esempio n. 2
0
void CFlashUIEventNode::OnUIEvent( IUIElement* pSender, const SUIEventDesc &event, const SUIArguments &args )
{
	if (m_eventDesc == event)
	{
		UI_STACK_PUSH(m_events, std::make_pair(args, pSender->GetInstanceID()), "OnFlashEvent %s@%i %s (%s)", pSender->GetName(), pSender->GetInstanceID(), event.sDisplayName, args.GetAsString());
	}
}
Esempio n. 3
0
void CFlashUIActionNode::OnStart( IUIAction* pAction, const SUIArguments& args  )
{
	if ( m_pAction != NULL && pAction == m_pAction )
	{
		UI_STACK_PUSH(m_startStack, std::make_pair( pAction, args ), "OnStart UIAction %s (%s)", pAction->GetName(), args.GetAsString() );
	}
}
Esempio n. 4
0
void CFlashUIElementInstanceNode::OnInstanceDestroyed( IUIElement* pSender, IUIElement* pDeletedInstance )
{
	UI_STACK_PUSH(m_events, std::make_pair(eO_OnInstanceDestroyed, pDeletedInstance->GetInstanceID()), "OnInstanceDestroyed %s@%i", pSender->GetName(), pDeletedInstance->GetInstanceID());
}
Esempio n. 5
0
void CFlashUIElementInstanceNode::OnInstanceCreated( IUIElement* pSender, IUIElement* pNewInstance )
{
	pNewInstance->AddEventListener(this, "CFlashUIElementInstanceNode");
	UI_STACK_PUSH(m_events, std::make_pair(eO_OnNewInstance, pNewInstance->GetInstanceID()), "OnInstanceCreated %s@%i", pSender->GetName(), pNewInstance->GetInstanceID());
}
Esempio n. 6
0
void CFlashUIElementListenerNode::OnSetVisible( IUIElement* pSender, bool bVisible )
{
	EOutputs port = bVisible ? eO_OnShow : eO_OnHide;
	UI_STACK_PUSH(m_events, std::make_pair(port, pSender->GetInstanceID()), "OnSetVisible %s@%i %s", pSender->GetName(), pSender->GetInstanceID(), bVisible ? "visible" : "hide");
}
Esempio n. 7
0
void CFlashUIElementListenerNode::OnUnload( IUIElement* pSender )
{
	UI_STACK_PUSH(m_events, std::make_pair(eO_OnUnload, pSender->GetInstanceID()), "OnUnload %s@%i", pSender->GetName(), pSender->GetInstanceID());
}
Esempio n. 8
0
void CFlashUIElementListenerNode::OnInit( IUIElement* pSender, IFlashPlayer* pFlashPlayer )
{
	UI_STACK_PUSH(m_events, std::make_pair(eO_OnInit, pSender->GetInstanceID()), "OnInit %s@%i", pSender->GetName(), pSender->GetInstanceID());
}