You may use the Issue Tracker to ask for help and submit bug reports, feature requests or suggestions.
PLEASE CAREFULLY READ THIS DOCUMENT before doing so:
CONTRIBUTING.md.
SELECT "PREVIEW CHANGES" TO TURN THE URL ABOVE INTO A CLICKABLE LINK.
(Delete everything above this section before submitting your issue. Please read the CONTRIBUTING.md file!)
Version/Branch of Dear ImGui:
XXX
Back-end file/Renderer/OS: _(if the question is related to inputs/rendering/build, otherwise delete this section)_
XXX
My Issue/Question: _(please provide context)_
Standalone, minimal, complete and verifiable example: _(see CONTRIBUTING.md)_
ImGui::Begin("Example Bug");
MoreCodeToExplainMyIssue();
ImGui::End();
Screenshots/Video _(you can drag files here)_
See #211 (mostly the lower posts).
There is a function ImGui::PushItemFlag(ImGuiItemFlags_Disabled, true); in the imgui_internal.h (non-public) API which you may use. It's however not finished and doesn't affect visuals at all, so the widgets won't become grey.
Currently you may do something like that:
static bool disabled = false;
ImGui::Checkbox("Disable", &disabled);
if (disabled)
{
ImGui::PushItemFlag(ImGuiItemFlags_Disabled, true);
ImGui::PushStyleVar(ImGuiStyleVar_Alpha, ImGui::GetStyle().Alpha * 0.5f);
}
[...]
if (disabled)
{
ImGui::PopItemFlag();
ImGui::PopStyleVar();
}
PS: Next time you post something please fill in the issue as requested by the issue template.
Most helpful comment
See #211 (mostly the lower posts).
There is a function
ImGui::PushItemFlag(ImGuiItemFlags_Disabled, true);in the imgui_internal.h (non-public) API which you may use. It's however not finished and doesn't affect visuals at all, so the widgets won't become grey.Currently you may do something like that:
PS: Next time you post something please fill in the issue as requested by the issue template.