Added extra comments and assertions to avoid user combining ImGuiCond flags. (#1694)

This commit is contained in:
omar
2018-04-04 15:01:01 +02:00
parent cd1e6e384f
commit 4649967112
3 changed files with 13 additions and 3 deletions

View File

@ -937,7 +937,7 @@ enum ImGuiMouseCursor_
};
// Condition for ImGui::SetWindow***(), SetNextWindow***(), SetNextTreeNode***() functions
// All those functions treat 0 as a shortcut to ImGuiCond_Always. From the point of view of the user use this as an enum (don't combine multiple values into flags).
// Important: Treat as a regular enum! Do NOT combine multiple values using binary operators! All the functions above treat 0 as a shortcut to ImGuiCond_Always.
enum ImGuiCond_
{
ImGuiCond_Always = 1 << 0, // Set the variable