Skip to content

Commit 40bc233

Browse files
authored
Merge pull request #6 from X2CommunityCore/assign-class-alert
Show new-class popup when necessary (#1)
2 parents a5fa968 + b07f5bd commit 40bc233

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

CommunityPromotionScreen/Src/NewPromotionScreenbyDefault/Classes/NPSBDP_UIArmory_PromotionHero.uc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,13 @@ simulated function PopulateData()
188188
}
189189
}
190190

191+
// Display the "soldier has a new class" popup if required (issue #1)
192+
if (Unit.bNeedsNewClassPopup)
193+
{
194+
`HQPRES.UIClassEarned(Unit.GetReference());
195+
Unit.bNeedsNewClassPopup = false; //Prevent from queueing up more of these popups on toggling soldiers.
196+
}
197+
191198
AS_SetRank(rankIcon);
192199
AS_SetClass(classIcon);
193200
AS_SetFaction(FactionState.GetFactionIcon());

0 commit comments

Comments
 (0)