Closed jaymirecki closed 1 year ago
The API of LemonUI is based on a subset of the NativeUI API, which does indeed uses Title for the banner text.
I will probably end up marking Title as deprecated and create a new property called BannerText with the same usage and purpose.
Yeah, that makes sense. I also went back and looked at how the in-game menus work, and it's the same way. I need to think of it more a: Title == Title of the group of menus Subtitle == Title of the specific menu that is visible right now.
Ill keep this open so can remember to update the description of both properties.
Title is now BannerText Subtitle is now Name SubtitleBehavior is now NameBehavior
Update: SubtitleBehavior is now HeaderBehavior
When you add a submenu, the item created in the parent menu uses the submenu's subtitle as the item's title (rather than the submenu's title, which I had assumed was used).
This seems like an intentional choice, but it was confusing to me at first (especially when I'm lazy and don't give a submenu a subtitle). Could we document this be documented more explicitly? Here's the code: https://github.com/LemonUIbyLemon/LemonUI/blob/master/LemonUI/Menus/NativeSubmenuItem.cs#L35