Started by Heinrich, 29 August 2013, 13:07:31
QuoteI just tested navigation with keyboard and noticed that the hover image does not get used when a widget is focused.
QuoteHow can I manually set a widget as "being hovered on"?
QuoteWhat would happen if there is no next or previous widget?
QuoteThe focus image is drawn on top of the normal and hover ones, so if your focus image isn't transparent then you won't see the hover image.
QuoteOr are u using the Black style?
FocusedImage_L = "Black.png" ( 0, 175, 50, 50)FocusedImage_M = "Black.png" ( 50, 175, 100, 50)FocusedImage_R = "Black.png" (150, 175, 50, 50)
QuoteKeyboard navigation is basically impossible to do directly in a gui library.When in the menu, you might want to use the up and down arrow keys to navigate, but in the game the arrow keys shouldn't influence the buttons you have on your screen. So a gui lib can never respond directly to arrow keys, you have to handle everything yourself because you know exactly when everything should happen.
QuoteBut having focusPreviousWidget and focusNextWidget will make it easier to navigate with arrow keys (or game pad).
QuoteFor extra convenience, you could do a focusTop(), focusDown(), focusLeft(), focusRight() in Grid
QuoteIs focusFirstChildWidget() possible?
QuoteMaybe also a possibility to disable mouse input to the gui?