本文整理汇总了C++中IUIElement::GetMovieClip方法的典型用法代码示例。如果您正苦于以下问题:C++ IUIElement::GetMovieClip方法的具体用法?C++ IUIElement::GetMovieClip怎么用?C++ IUIElement::GetMovieClip使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IUIElement
的用法示例。
在下文中一共展示了IUIElement::GetMovieClip方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: GotoAndPlay
//------------------------------------------------------------------------
int CScriptBind_UIAction::GotoAndPlay( IFunctionHandler *pH, const char * elementName, int instanceID, const char * mcName, int frameNum )
{
IUIElement* pElement = GetElement( elementName, instanceID );
if ( pElement )
{
IFlashVariableObject* pMC = pElement->GetMovieClip( mcName );
if ( pMC )
{
pMC->GotoAndPlay( frameNum );
return pH->EndFunction( true );
}
UIACTION_WARNING( "LUA: Element %s has no movieclip %s", elementName, mcName );
}
else
{
UIACTION_WARNING( "LUA: UIElement %s does not exist", elementName );
}
return pH->EndFunction( false );
}
示例2: GetScale
//------------------------------------------------------------------------
int CScriptBind_UIAction::GetScale( IFunctionHandler *pH, const char * elementName, int instanceID, const char * mcName )
{
IUIElement* pElement = GetElement( elementName, instanceID );
if ( pElement )
{
IFlashVariableObject* pMC = pElement->GetMovieClip( mcName );
if ( pMC )
{
SFlashDisplayInfo info;
pMC->GetDisplayInfo( info );
return pH->EndFunction( Script::SetCachedVector( Vec3( info.GetXScale(), info.GetYScale(), info.GetZScale() ), pH, 1 ) );
}
UIACTION_WARNING( "LUA: Element %s has no movieclip %s", elementName, mcName );
}
else
{
UIACTION_WARNING( "LUA: UIElement %s does not exist", elementName );
}
return pH->EndFunction( false );
}
示例3: SetVisible
//------------------------------------------------------------------------
int CScriptBind_UIAction::SetVisible( IFunctionHandler *pH, const char * elementName, int instanceID, const char * mcName, bool bVisible )
{
IUIElement* pElement = GetElement( elementName, instanceID );
if ( pElement )
{
IFlashVariableObject* pMC = pElement->GetMovieClip( mcName );
if ( pMC )
{
SFlashDisplayInfo info;
pMC->GetDisplayInfo( info );
info.SetVisible( bVisible );
pMC->SetDisplayInfo( info );
return pH->EndFunction( true );
}
UIACTION_WARNING( "LUA: Element %s has no movieclip %s", elementName, mcName );
}
else
{
UIACTION_WARNING( "LUA: UIElement %s does not exist", elementName );
}
return pH->EndFunction( false );
}