public static bool Prefix(CombatAuraReticle __instance, ref ButtonState __result, ref AbstractActor ___owner, ref CombatHUD ___HUD)
 {
     try {
         AuraBubble aura = __instance.AuraBubble();
         if (aura == null)
         {
             __result = ButtonState.Disabled;  return(false);
         }
         __result = __instance.isAuraVisible(aura, ___owner, ___HUD, false)? ButtonState.Enabled : ButtonState.Disabled;
         return(false);
     }catch (Exception e) {
         Log.LogWrite(e.ToString() + "\n");
     }
     return(true);
     //__instance.GameRep.PlayVFXAt(__instance.GameRep.thisTransform, Vector3.zero, "vfxPrfPrtl_ECM_loop", true, Vector3.zero, false, -1f);
 }
 public static bool Prefix(CombatAuraReticle __instance, ref AbstractActor ___owner, ref float ___currentAuraRange, ref CombatHUD ___HUD, ref Transform ___thisTransform, ref bool __result)
 {
     try {
         //if (CombatHUD_Update_HideReticlesHotKey.hideReticles == AuraShowState.HideAll) { __result = false; return false; };
         AuraBubble aura = __instance.AuraBubble();
         if (aura == null)
         {
             return(true);
         }
         ;
         __result = __instance.isAuraVisible(aura, ___owner, ___HUD, true);
         return(false);
     }catch (Exception e) {
         Log.LogWrite(e.ToString() + "\n");
     }
     return(true);
 }
 public static bool Prefix(CombatAuraReticle __instance, bool isBright, ref AbstractActor ___owner, ref CombatHUD ___HUD, ref bool ___currentAPIsBright)
 {
     try {
         AuraBubble aura = __instance.AuraBubble();
         if (aura == null)
         {
             return(true);
         }
         if (isBright == false)
         {
             return(false);
         }
         isBright = ___HUD.SelectedActor != null && ___HUD.SelectionHandler.ActiveState is SelectionStateMoveBase;
         if (isBright)
         {
             __instance.activeProbeDecal.DecalMaterial = __instance.activeProbeMatBright;
             //this.apSpinAnim.DORestartById("spin");
         }
         else
         {
             __instance.activeProbeDecal.DecalMaterial = __instance.activeProbeMatDim;
             //this.apSpinAnim.DOPause();
         }
         if (___currentAPIsBright != aura.Def.isSpining)
         {
             ___currentAPIsBright = aura.Def.isSpining;
             if (___currentAPIsBright)
             {
                 __instance.apSpinAnim.DORestartById("spin");
             }
             else
             {
                 __instance.apSpinAnim.DOPause();
             }
         }
         return(false);
     } catch (Exception e) {
         Log.LogWrite(e.ToString() + "\n");
     }
     return(true);
 }
 public static bool Prefix(CombatAuraReticle __instance, bool showActiveProbe, ref AbstractActor ___owner, ref float ___currentAPRange)
 {
     try {
         GameObject activeProbeRangeScaledObject = __instance.activeProbeRangeScaledObject();
         if (showActiveProbe == false)
         {
             activeProbeRangeScaledObject.SetActive(false);
             return(false);
         }
         //AuraBubble mainSensorsBubble = __instance.MainSensors();
         //Log.LogWrite("CombatAuraReticle.RefreshAuraRange " + (mainSensorsBubble == null ? "null" : mainSensorsBubble.collider.radius.ToString()) + "\n");
         //if (mainSensorsBubble != null) {
         //auraRangeScaledObject.SetActive(true);
         //float b = mainSensorsBubble.collider.radius;
         //if (!Mathf.Approximately(___currentAuraRange, b)) {
         //auraRangeScaledObject.transform.localScale = new Vector3(b * 2f, 1f, b * 2f);
         //}
         //___currentAuraRange = b;
         //return false;
         //}
         AuraBubble auraBubble = __instance.AuraBubble();
         if (auraBubble != null)
         {
             activeProbeRangeScaledObject.SetActive(true);
             float b = auraBubble.collider.radius;
             if (!Mathf.Approximately(___currentAPRange, b))
             {
                 activeProbeRangeScaledObject.transform.localScale = new Vector3(b * 2f, 1f, b * 2f);
             }
             ___currentAPRange = b;
             return(false);
         }
     } catch (Exception e) {
         Log.LogWrite(e.ToString() + "\n", true);
     }
     return(true);
 }