Added ImGuiSetCond_Appearing to test the hidden->visible transition.

This commit is contained in:
ocornut
2015-05-07 18:39:23 +01:00
parent f46557d2d6
commit dd2a578012
2 changed files with 13 additions and 8 deletions

View File

@ -588,7 +588,8 @@ enum ImGuiSetCond_
{
ImGuiSetCond_Always = 1 << 0, // Set the variable
ImGuiSetCond_Once = 1 << 1, // Only set the variable on the first call per runtime session
ImGuiSetCond_FirstUseEver = 1 << 2 // Only set the variable if the window doesn't exist in the .ini file
ImGuiSetCond_FirstUseEver = 1 << 2, // Only set the variable if the window doesn't exist in the .ini file
ImGuiSetCond_Appearing = 1 << 3 // Only set the variable if the window is appearing after being inactive (or the first time)
};
struct ImGuiStyle