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
endNames 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 😁 |
|
Is there a way how I can remove this for myself? It's a nice feature but I don't like it's kinda forced on me. I need CET but I don't wanna see anything from it when I don't actually need to used it. |
Adds notifications to CET's ImGui with sol bindings (
ShowToastonly) and shows keybind notifications on game startup 🎉 .All
ImGuiToastmethods are exposed (e.g.SetTitle,SetContent, etc.)This must be performed within an ImGui context!