prosperon/docs/engine_tour/gui.md

10 lines
583 B
Markdown
Raw Normal View History

2024-07-03 16:38:29 -05:00
# GUI
2024-07-11 14:25:45 -05:00
Game GUIs are written by registering an entity's `gui` property to a function, or its `hud` property.
2024-07-03 16:38:29 -05:00
2024-07-11 14:25:45 -05:00
`gui` draws in window space, where the bottom left corner is `[0,0]`. `hud` draws in screen space. In either of these, you can call "render" functions directly.
2024-07-03 16:38:29 -05:00
2024-07-11 14:25:45 -05:00
`draw` draws in world space, and mum functions can equally be used there.
## MUM
The GUI system which ships with Prosperon is called *MUM*. MUM is a declarative, immediate mode HUD system. While Imgui is designed to make it easy to make editor-like controls, mum is designed to be easy to make video game huds.