mirror of
https://github.com/Drezil/imgui.git
synced 2024-11-15 01:17:00 +00:00
Changed the internal name formatting of child windows to use slashes as separator, more readable.
This commit is contained in:
parent
cbc9730798
commit
7f58bb03c1
@ -3720,9 +3720,9 @@ static bool BeginChildEx(const char* name, ImGuiID id, const ImVec2& size_arg, b
|
|||||||
|
|
||||||
char title[256];
|
char title[256];
|
||||||
if (name)
|
if (name)
|
||||||
ImFormatString(title, IM_ARRAYSIZE(title), "%s.%s.%08X", parent_window->Name, name, id);
|
ImFormatString(title, IM_ARRAYSIZE(title), "%s/%s_%08X", parent_window->Name, name, id);
|
||||||
else
|
else
|
||||||
ImFormatString(title, IM_ARRAYSIZE(title), "%s.%08X", parent_window->Name, id);
|
ImFormatString(title, IM_ARRAYSIZE(title), "%s/%08X", parent_window->Name, id);
|
||||||
|
|
||||||
bool ret = ImGui::Begin(title, NULL, size, -1.0f, flags);
|
bool ret = ImGui::Begin(title, NULL, size, -1.0f, flags);
|
||||||
ImGuiWindow* child_window = ImGui::GetCurrentWindow();
|
ImGuiWindow* child_window = ImGui::GetCurrentWindow();
|
||||||
|
Loading…
Reference in New Issue
Block a user