-
-
Notifications
You must be signed in to change notification settings - Fork 290
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement ImGui Notifications #995
Implement ImGui Notifications #995
Conversation
Addressed all the comments, but made some different name changes. Keeping it under if ImGui.Begin('Environment Editor') then
if ImGui.Button("Show Toast", 120, 0) then
toast = ImGui.ToastNotification.new(ImGui.ToastNotificationType.Info, "Hello world!")
ImGui.ShowToast(toast)
end
end Names seem a bit long, so willing to take final suggestions before the merge. |
Yeah that should be fine, I believe I also said to you to not bind everything before. |
May just call it Toast I suppose. |
What do you mean by this? I'm only binding the types and the show function |
Oh I accidentaly replied here instead of thread... Makes sense when you connect it to the thread I hope 😁 |
Adds notifications to CET's ImGui with sol bindings (
ShowToast
only) and shows keybind notifications on game startup 🎉 .All
ImGuiToast
methods are exposed (e.g.SetTitle
,SetContent
, etc.)This must be performed within an ImGui context!