prosperon/docs/gui.md

19 lines
516 B
Markdown
Raw Normal View History

# GUI & Drawing
Register functions with built-in drawing callbacks to have code execute at particular points in time. Some drawing functions take world coordinates, while others take screen coordinates.
2023-12-15 12:45:09 -06:00
gui
2023-12-18 06:45:27 -06:00
Called every frame.
2023-12-15 12:45:09 -06:00
draw
2023-12-18 06:45:27 -06:00
Called every frame.
2023-12-15 12:45:09 -06:00
debug
2023-12-18 06:45:27 -06:00
Called if drawing physics.
2023-12-15 12:45:09 -06:00
gizmo
2023-12-18 06:45:27 -06:00
Called on an object if it is selected in the editor.
2023-12-15 12:45:09 -06:00
# Mum
Mum is the GUI compositing system here. When drawing a mum, the bottom left corner is [0,0]. Change the anchor property of any Mum to change where it is drawn.