GHud.DisplayModule.Deactivate C# (CSharp) Method

Deactivate() public method

public Deactivate ( ) : void
return void
        public virtual void Deactivate()
        {
            active = false;
        }

Usage Example

Beispiel #1
0
 private bool ActivateModule(DisplayModule new_active_mod, ref DisplayModule change_active_mod, ref DisplayModule other_active_mod)
 {
     /*
      * if (((other_active_mod == change_active_mod.companion_mod && new_active_mod.companion_mod.GetType() == other_active_mod.GetType()) ||
      *  new_active_mod.companion_mod.GetType() == other_active_mod.GetType()) &&
      *  new_active_mod.companion_mod != null
      *  )
      * {
      *  other_active_mod.Deactivate();
      *  other_active_mod = new_active_mod.companion_mod;
      * }
      */
     change_active_mod.Deactivate();
     change_active_mod = new_active_mod;
     change_active_mod.Activate();
     other_active_mod.Activate();
     return(true);
 }
All Usage Examples Of GHud.DisplayModule::Deactivate