-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WotC issue with Chosen Info screen and controllers + Solution #952
Comments
Tested this with mouse and keyboard, I wasn't able to do anything with the keyboard on this screen with or without the fix. Selecting the first chosen on the list (fix number 2) highlighted the first chosen in the list until I would mouseover it, and then remove the mouse, then the selection fades. So it largely makes no difference, but I suppose it can be convenient to highlight which Chosen you're initially viewing info for, though it would be better if the highlight was persistent. |
I'm not sure keyboard controls are actually set up correctly for the screen either. It only has inputs for the d-pad and left stick. |
When viewing the Chosen information screen, controller users can use the DPad to navigate between different Chosen; unfortunately, the main buttons on the left side of the screen do not highlight properly. There are 2 issues within
UIChosenInfo.uc
.Problem 1 : Using the DPad doesn't result in buttons gaining focus.
Solution : This issue results from a 'speling misteak' ! Within the function
SelectChosen
, there is the following call :MC.ChildFunctionVoid("button_" $ CurrentChosenIndex, "onReceieveFocus");
Unsurprisingly, there is no
onReceieveFocus
function within Flash; there is, however, anonReceiveFocus
function. Consequently, the call above should become :MC.ChildFunctionVoid("button_" $ CurrentChosenIndex, "onReceiveFocus");
Problem 2 : The top chosen button doesn't focus when the screen is initialized/opened.
Solution :
OnInit.InitData
sets the variablesSelectedChosen
andCurrentChosenIndex
; however, it never deals with giving focus to the button associated withCurrentChosenIndex
. Now, we don't want to callSelectChosen
since the chosen hasn't 'changed' andSelectedChosen
would be equal toAllActiveChosen[iChosen]
.What we do want to do is simply call
MC.ChildFunctionVoid("button_" $ CurrentChosenIndex, "onReceiveFocus")
afterCurrentChosenIndex
has been set to 0. The best place to do this is likely withinOnInit
and just beforeMC.FunctionVoid("AnimateIn")
. Therefore, we would end up with :I am not sure if mouse and keyboard users care about initial button selection; if they do not it can be written :
The text was updated successfully, but these errors were encountered: