public static void Postfix(CombatHUDFloatie __instance) { CombatHUDFloatieAnchor anchor = __instance.GetComponentInParent <CombatHUDFloatieAnchor>(); if (anchor.DisplayedActor == null) { __instance.floatieText.color = Color.blue * Color.white; } }
public static void Prefix(CombatHUDFloatieAnchor __instance, ref float fontSize, CombatGameState ___Combat) { try { fontSize = ___Combat.Constants.CombatUIConstants.floatieSizeSmall; } catch (Exception e) { Logger.Error(e); } }
public static void Postfix(CombatHUDFloatieAnchor __instance, ref Color __result, FloatieMessage.MessageNature nature, UIManager ___uiManager) { try { // Streak locked-on if (nature == FloatieMessage.MessageNature.Suppression) { //__result = Fields.TargetingLaserColor; __result = ___uiManager.UIColorRefs.white; //__result = ___uiManager.UIColorRefs.green; } // Streak failed to connect else if (nature == FloatieMessage.MessageNature.Dodge) { __result = ___uiManager.UIColorRefs.structureDamaged; //__result = ___uiManager.UIColorRefs.orange; } } catch (Exception e) { Logger.Error(e); } }