ImTricks is a collection of useful functions for expanding / improving the functionality of the ImGui.
At the moment it has in itself:
- Functions to speed up the creation of animations.
- Functions for creating and displaying notifications.
- Widgets that are missing in the standard ImGui.
void RenderMyGUI() {
...
if (ImGui::Button("Create Notify", { 120, 25 }))
ImTricks::NotifyManager::AddNotify("The notification was displayed successfully.", ImTrickNotify_Success);
...
ImTricks::NotifyManager::HandleNotifies(ImGui::GetOverlayDrawList());
}
void RenderMyGUI() {
...
ImGui::Checkbox("Enable Animation", &enable_animation);
float trickFloat = ImTricks::Animations::FastLerpInt("trickFloat", enable_animation, 0.f, 1.f, 0.05f);
ImColor colorLerped = ImTricks::Animations::FastColorLerp(ImColor(255, 0, 0), ImColor(0, 255, 0), trickFloat);
ImGui::GetWindowDrawList()->AddRectFilled(p, p + ImVec2(500, 30), colorLerped);
...
}
void RenderMyGUI() {
...
static ImColor col = ImColor(23, 23, 23);
ImTricks::Widgets::ColorEdit4("test", col, NULL);
...
}