public virtual void DrawMenuView(T tObj, out bool onEvent) { bool menuClicked = false; ImGuiEx.PopupContextItemView(() => { menuClicked = DrawMenu(tObj); }); onEvent = menuClicked; }