138 void Step(
bool bForward,
int nButton,
int nIndex);
147 std::vector<std::vector<UIComponent *> > mHorizontal;
148 std::vector<std::vector<UIComponent *> > mVertical;
149 std::vector<UIComponent *> *mRow;
Reference-counted array of script data nodes.
Definition dataarray.h:20
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:40
Receiver of engine messages.
Definition msgsink.h:21
Message a panel sends before it moves its focus to another component.
Definition uicomponentfocuschangemsg.h:26
Message a component sends when the player chooses it.
Definition uicomponentselectmsg.h:28
Message a component sends when the player presses the button that chooses it.
Definition uicomponentselectstartmsg.h:27
One control of a front-end panel, such as a label, a button, or a list.
Definition uicomponent.h:21
bool DispatchPriv(Message *pMsg) override
Move the focus for a directional button, and follow the focus and the choices of the panel.
bool HandleSelect(UIComponentSelectMsg *pMsg)
Move the focus again once a component has been chosen.
UINavigator(DataArray *pData, UIPanel *pPanel)
Construct a navigator from its script description.
bool HandleSelectStart(UIComponentSelectStartMsg *pMsg)
Stop moving the focus while a component is being chosen.
~UINavigator() override
Destroy the navigator.
int FindFocus(int nAxis)
Find the focused component in the lists of a direction.
Axis
The direction of a list, the values FindFocus() takes.
Definition uinavigator.h:30
@ kAxisVertical
Definition uinavigator.h:32
@ kAxisHorizontal
Definition uinavigator.h:31
bool HandleFocusChange(UIComponentFocusChangeMsg *pMsg)
Show the newly focused component of each list in the selected state.
void Step(bool bForward, int nButton, int nIndex)
Move the focus along mRow to the next component that is enabled and showing.
void Highlight(UIComponent *pFocus, std::vector< UIComponent * > &row)
Show the focused component of a list in the selected state and the others in the normal state.
bool HandleJoypad(JoypadInputMsg *pMsg)
Move the focus for a pressed directional button.
void SetEnabled(int nEnabled)
Definition uinavigator.h:141
Group of components drawn from one .rnd file, which a screen shows.
Definition uipanel.h:35