| 986 | } |
| 987 | |
| 988 | lua::ImguiHandle Menu::AddItem(char const* label, std::optional<char const*> shortcut) |
| 989 | { |
| 990 | auto menu = AddChild<MenuItem>(); |
| 991 | menu->Label = label; |
| 992 | if (shortcut) menu->Shortcut = shortcut; |
| 993 | return menu; |
| 994 | } |
| 995 | |
| 996 | void MenuItem::StyledRender(DrawingContext& context) |
| 997 | { |
nothing calls this directly
no outgoing calls
no test coverage detected