[0.9.149-PUBLIC#6623] Minigame UI Issue

Theron

Well-Known Member
Nov 8, 2018
4,238
1,558
45
In the Lights Out minigame, if you click on a space with a mouse, then switch to keyboard controls, the space you clicked will remain active. Pressing Spacebar will activate the space you activated, regardless of where the indicator is and pressing Enter will activate both the space selected by clicking and where the indicator is.

Circuit puzzles have a similar issue.
 

Attachments

  • MinigameTest.json
    791.8 KB · Views: 1
Last edited:

Jacques00

Administrator
Moderator
Aug 26, 2015
5,376
1,415
Hopefully fixed for the next release.

Note that the switch and circuit tiles are all treated as "buttons", so the browser will treat them as such when using the Space and Enter keys, so short of hijacking the browser controls, that's a normal functionality. This won't hijack anything, but for each tile, it should detect if the button press was from a mouse and "un-focus" the button if it was. That way, switching between mouse and keybind controls won't seem so jarring.

However, if you use the browser-specific Tab key to highlight buttons, then that will replicate the bug again, but by that point, you are just overlapping keybinds with browser controls. Leaving the Tab-navigation was intentional, but if it becomes an issue in the future, I may have to override it with the keybind for Tab, normally used in-game as multi-column browsing for the codex and inventories and such, but for all minigames.