示例#1
0
std::string FePresent::script_get_base_path()
{
    std::string path;

    FePresent *fep = script_get_fep();
    if ( fep )
    {
        FeSettings *fes = fep->get_fes();
        if ( fes )
        {
            int script_id = fep->get_script_id();
            if ( script_id < 0 )
                fes->get_path( FeSettings::Current, path );
            else
                fes->get_plugin_full_path(
                    script_id, path );
        }
    }

    return path;
}
示例#2
0
void FeTextureContainer::set_video_flags( FeVideoFlags f )
{
	m_video_flags = f;

#ifndef NO_MOVIE
	if ( m_movie )
	{
		m_movie->setLoop( !(m_video_flags & VF_NoLoop) );

		if (m_video_flags & VF_NoAudio)
			m_movie->setVolume( 0.f );
		else
		{
			float volume( 100.f );
			FePresent *fep = FePresent::script_get_fep();
			if ( fep )
				volume = fep->get_fes()->get_play_volume( FeSoundInfo::Movie );

			m_movie->setVolume( volume );
		}
	}
#endif
}