Skip to content

Commit

Permalink
attentionCallout
Browse files Browse the repository at this point in the history
  • Loading branch information
MegaPiggy committed Aug 15, 2024
1 parent 9db5336 commit 0e2ad0b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Winch/Util/AbilityUtil.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ internal static int GetExtraAbilitiesCount(int existing)

internal static void AddModdedAbilitiesToRadial(GameObject buttonCenter, Transform abiltiesParent, List<AbilityRadialWedge> wedges, Sprite lockedSprite)
{
var attentionCalloutPrefab = wedges.FirstOrDefault().attentionCallout;
foreach (var modAbilityData in ModdedAbilityDataDict.Values)
{
WinchCore.Log.Debug($"Adding ability {modAbilityData.id} to radial");
Expand All @@ -132,6 +133,7 @@ internal static void AddModdedAbilitiesToRadial(GameObject buttonCenter, Transfo
abilityRadialWedge.radius = 200;
abilityRadialWedge.lockedSprite = lockedSprite;
abilityRadialWedge.buttonCenter = buttonCenter;
abilityRadialWedge.attentionCallout = attentionCalloutPrefab.Instantiate(abilityRadialWedgeObj.transform, false);
}
}
}

0 comments on commit 0e2ad0b

Please sign in to comment.