Пример #1
0
 public virtual void SetEffect(uint handle, EffectTypes type)
 {
     if (vJoyManager.Config.Application.VerboseFFBManager)
     {
         Log("FFB Effect " + handle + " set " + type.ToString() + " Effect");
     }
     if (!this.IsDeviceReady)
     {
         Log("Device not yet ready", LogLevels.INFORMATIVE);
         return;
     }
     SwitchTo(handle, type);
 }
Пример #2
0
        public static void Effect(this Bridge.Html5.Node node, EffectTypes effect, EffectPrameter options = null, int duration = 400, Action complete = null)
        {
            string name = effect.ToString();

            new jQuery2.jQuery(node).ToDynamic().effect(name);
        }
Пример #3
0
 protected virtual void SwitchTo(uint handle, EffectTypes effect)
 {
     if (RunningEffects[handle].Type == effect)
     {
         return;
     }
     RunningEffects[handle].PrevType = RunningEffects[handle].Type;
     RunningEffects[handle].Type     = effect;
     Log("Effect " + handle.ToString() + " [" + RunningEffects[handle].PrevType.ToString() + "] to [" + effect.ToString() + "]");
 }
Пример #4
0
 public override string ToString()
 {
     return(name + "(" + attack_damage.ToString() + ")" + " effect:" + effect.ToString());
 }