Skip to content

Commit

Permalink
Fix UIChosenInfo controller interactions
Browse files Browse the repository at this point in the history
  • Loading branch information
Iridar committed Oct 29, 2023
1 parent 2a54dbe commit e3ecb23
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e3ecb23

Please sign in to comment.