public coGuiControl sfxGetActiveStateInGroup(coSimSet group)
            {
            for (uint i = 0; i < group.getCount(); i++)
                {
                coGuiControl obj = group.getObject(i);
                if (obj.isMemberOfClass("SFXState"))
                    continue;

                if (obj.isActive())
                    return obj;
                }
            return "";
            }
Esempio n. 2
0
 public void sfxResume(coSimSet pauseSet)
     {
     if (!console.isObject(pauseSet))
         pauseSet = sGlobal["SFXPausedSet"];
     for (uint i = 0; i < pauseSet.getCount(); i++)
         ((coSFXSource)pauseSet.getObject(i)).play(-1);
     pauseSet.clear();
     }
Esempio n. 3
0
        public void sfxStopAll(coSimSet channel)
            {
            channel = sfxOldChannelToGroup(channel);

            if (!channel.isObject())
                return;

            for (uint i = 0; i < channel.getCount(); i++)
                ((coSFXSource)channel.getObject(i)).stop(-1);
            //SFXSource.stop(channel.getObject(i), -1);
            }