|
|
@ -10424,7 +10424,7 @@ static void ShowExampleAppManipulatingWindowTitle(bool* opened)
|
|
|
|
|
|
|
|
|
|
|
|
// Using "###" to display a changing title but keep a static identifier "AnimatedTitle"
|
|
|
|
// Using "###" to display a changing title but keep a static identifier "AnimatedTitle"
|
|
|
|
char buf[128];
|
|
|
|
char buf[128];
|
|
|
|
ImFormatString(buf, IM_ARRAYSIZE(buf), "Animated title %c %d##AnimatedTitle", "|/-\\"[(int)(ImGui::GetTime()/0.25f)&3], rand());
|
|
|
|
ImFormatString(buf, IM_ARRAYSIZE(buf), "Animated title %c %d###AnimatedTitle", "|/-\\"[(int)(ImGui::GetTime()/0.25f)&3], rand());
|
|
|
|
ImGui::SetNextWindowPos(ImVec2(100,300), ImGuiSetCond_FirstUseEver);
|
|
|
|
ImGui::SetNextWindowPos(ImVec2(100,300), ImGuiSetCond_FirstUseEver);
|
|
|
|
ImGui::Begin(buf);
|
|
|
|
ImGui::Begin(buf);
|
|
|
|
ImGui::Text("This window has a changing title.");
|
|
|
|
ImGui::Text("This window has a changing title.");
|
|
|
|