Lyra UI - barsandcat/HMS-Sunflower GitHub Wiki
How to use common ui! https://www.youtube.com/watch?v=1wvHRJANOto
Lyra uses one layout for entire game. This layout is basically z order of stuff:
- Game layer stack
- Game menu stack
- Menu layer stack
- Popup stack Stack - activate able widgets stack
Then you have methods to push widgets to particular stack.
Anatomy of lyra button:
W_LyraButton
Handles style
Handles\tweaks aligment
Stores progress for hold
ULyraButtonBase
Adds text
ULyraButtonBase << common ui we can use this
And that is probably the simplest one. There is menu button, tab button - they handle animations and sounds, and support styles and hold progress.
Styles and input support are what I am interested in.
Another useful tool - Debug - Widget reflector.
Lyra is shipped with images of all buttons on game pads and mouse button icons.