mirror of
https://github.com/Drezil/imgui.git
synced 2024-11-15 01:17:00 +00:00
BeginChild(): Internal name used by child windows now omits the hash/id if the child window is submitted in root of id stack of parent window.
# Conflicts: # docs/CHANGELOG.txt # imgui.h
This commit is contained in:
parent
4e4042bc33
commit
8ee85137d8
@ -71,6 +71,9 @@ Other changes:
|
|||||||
Previously was inconsistent and only enabled when stepping through a non-input item.
|
Previously was inconsistent and only enabled when stepping through a non-input item.
|
||||||
(#6802, #3092, #5759, #787)
|
(#6802, #3092, #5759, #787)
|
||||||
- Windows:
|
- Windows:
|
||||||
|
- BeginChild(): Internal name used by child windows now omits the hash/id if the child
|
||||||
|
window is submitted in root of id stack of parent window. Makes debugging/metrics easier
|
||||||
|
and shorter to read in many cases.
|
||||||
- Popups: clarified meaning of 'p_open != NULL' in BeginPopupModal() + set back user value
|
- Popups: clarified meaning of 'p_open != NULL' in BeginPopupModal() + set back user value
|
||||||
to false when popup is closed in ways other than clicking the close button. (#6900)
|
to false when popup is closed in ways other than clicking the close button. (#6900)
|
||||||
- Double-clicking lower-left resize grip auto-resize (like lower-rightone).
|
- Double-clicking lower-left resize grip auto-resize (like lower-rightone).
|
||||||
|
@ -5444,7 +5444,9 @@ bool ImGui::BeginChildEx(const char* name, ImGuiID id, const ImVec2& size_arg, b
|
|||||||
|
|
||||||
// Build up name. If you need to append to a same child from multiple location in the ID stack, use BeginChild(ImGuiID id) with a stable value.
|
// Build up name. If you need to append to a same child from multiple location in the ID stack, use BeginChild(ImGuiID id) with a stable value.
|
||||||
const char* temp_window_name;
|
const char* temp_window_name;
|
||||||
if (name)
|
if (name && parent_window->IDStack.back() == parent_window->ID)
|
||||||
|
ImFormatStringToTempBuffer(&temp_window_name, NULL, "%s/%s", parent_window->Name, name); // May omit ID if in root of ID stack
|
||||||
|
else if (name)
|
||||||
ImFormatStringToTempBuffer(&temp_window_name, NULL, "%s/%s_%08X", parent_window->Name, name, id);
|
ImFormatStringToTempBuffer(&temp_window_name, NULL, "%s/%s_%08X", parent_window->Name, name, id);
|
||||||
else
|
else
|
||||||
ImFormatStringToTempBuffer(&temp_window_name, NULL, "%s/%08X", parent_window->Name, id);
|
ImFormatStringToTempBuffer(&temp_window_name, NULL, "%s/%08X", parent_window->Name, id);
|
||||||
|
2
imgui.h
2
imgui.h
@ -24,7 +24,7 @@
|
|||||||
// Library Version
|
// Library Version
|
||||||
// (Integer encoded as XYYZZ for use in #if preprocessor conditionals, e.g. '#if IMGUI_VERSION_NUM >= 12345')
|
// (Integer encoded as XYYZZ for use in #if preprocessor conditionals, e.g. '#if IMGUI_VERSION_NUM >= 12345')
|
||||||
#define IMGUI_VERSION "1.90 WIP"
|
#define IMGUI_VERSION "1.90 WIP"
|
||||||
#define IMGUI_VERSION_NUM 18995
|
#define IMGUI_VERSION_NUM 18996
|
||||||
#define IMGUI_HAS_TABLE
|
#define IMGUI_HAS_TABLE
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user