From e3ecb2304a5ed039ec8ae983682c2ae489fbfdf6 Mon Sep 17 00:00:00 2001 From: Iridar Date: Sun, 29 Oct 2023 13:06:00 +0600 Subject: [PATCH] Fix UIChosenInfo controller interactions --- .../Src/XComGame/Classes/UIChosenInfo.uc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/X2WOTCCommunityHighlander/Src/XComGame/Classes/UIChosenInfo.uc b/X2WOTCCommunityHighlander/Src/XComGame/Classes/UIChosenInfo.uc index 36c163d76..6f78c5d88 100644 --- a/X2WOTCCommunityHighlander/Src/XComGame/Classes/UIChosenInfo.uc +++ b/X2WOTCCommunityHighlander/Src/XComGame/Classes/UIChosenInfo.uc @@ -52,6 +52,11 @@ simulated function OnInit() RefreshDisplay(); `HQPRES.m_kAvengerHUD.NavHelp.AddContinueButton(OnContinue); + + /// HL-Docs: ref:Bugfixes; issue:952 + /// Focus the top Chosen button when the screen is opened. + MC.ChildFunctionVoid("button_" $ CurrentChosenIndex, "onReceiveFocus"); + MC.FunctionVoid("AnimateIn"); } @@ -423,7 +428,9 @@ simulated function SelectChosen(int iChosen) SelectedChosen = AllActiveChosen[iChosen]; MC.ChildFunctionVoid("button_" $ CurrentChosenIndex, "onLoseFocus"); CurrentChosenIndex = iChosen; - MC.ChildFunctionVoid("button_" $ CurrentChosenIndex, "onReceieveFocus"); + /// HL-Docs: ref:Bugfixes; issue:952 + /// Fix typo in the MC function call. + MC.ChildFunctionVoid("button_" $ CurrentChosenIndex, "onReceiveFocus"); RefreshDisplay(); } //bsg-crobinson (5.10.17): end