You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 11, 2020. It is now read-only.
@aschaeffer can you please document what the intended use-cases are?
E.g. is this used as a general means of navigation through the entire main UI? Or is this used as a menu for ingame interactions? E.g.
vote for next map
Load map Yes/No
While I think it is nice to have a basic framework for these kind of interactions, where these menus can be re-used throughout the UI or even created on the fly via the API, I have yet to see how we are implementing this together with the other UIs. Do we open that UI through other UIs?
Tiles Menus (a flat 2D menu)
Arbitrary tiles configuration:
Why tiles?
Web User Interface (inexor-game/ui-client-menu)
Navigation
WASD
and thearrow keys
Enter
,Return
,Space
oderLeft Mouse Button
ESC
,Backspace
orRight Mouse Button
Inexor Tree Data Structure
Again:
everything is in the tree
OpenMenu('MainMenu')
,CloseMenu()
OpenMenu('NewBotGame')
,CloseMenu()
,OpenApplication('TextureBrowser')
,ExecuteCommand('CMD LINE COMMAND')
InexorFlex
Service MenuManager
createMenu(name, description, rows, columns)
removeMenu(name)
setDescription(name, description)
setDimensions(name, rows, columns, startRow, startColumn)
setBackAction(name, action)
setEntryLabel(name, row, column, label)
setEntryStyleNormal(name, row, column, color, backgroundColor, backgroundImage)
setEntryStyleHighlighted(name, row, column, color, backgroundColor, backgroundImage)
setEntryAction(name, row, column, action)
openMenu(instanceId, name)
closeMenu(instanceId)
openApplication(instanceId, applicationName)
executeCommand(instanceId, commandLineApiCommand)
loadMenu(tomlFile)
saveMenu(tomlFile)
REST API
...
CommandLineAPI Commands
menu create <name> <description> <rows> <columns>
menu remove <name>
menu description <name> <description>
menu dimensions <name> <rows> <columns>
menu entry label <name> <row> <column> <label>
menu entry style normal <name> <row> <column> <color> <backgroundColor> <backgroundImage>
menu entry style highlighted <name> <row> <column> <color> <backgroundColor> <backgroundImage>
menu entry action <name> <row> <column> <action>
menu open <instance_id> <name>
menu close <instance_id>
The text was updated successfully, but these errors were encountered: