mirror of
https://github.com/ocornut/imgui.git
synced 2025-02-02 12:37:20 +01:00
This commit is contained in:
parent
00f12b9a09
commit
32cea85331
@ -56,6 +56,7 @@ Other changes:
|
|||||||
a child window, and from nested child windows. (#1651)
|
a child window, and from nested child windows. (#1651)
|
||||||
- Error Handling: Turned common EndTable() and other TableXXX functions
|
- Error Handling: Turned common EndTable() and other TableXXX functions
|
||||||
fail cases into a recoverable error. (#1651, #8314)
|
fail cases into a recoverable error. (#1651, #8314)
|
||||||
|
- Error Handling: Exposed some options in Demo->Tools->Debug Options. (#1651)
|
||||||
- InputText: Fixed a bug where character replacements performed from a callback
|
- InputText: Fixed a bug where character replacements performed from a callback
|
||||||
were not applied when pasting from clipbard. (#8229)
|
were not applied when pasting from clipbard. (#8229)
|
||||||
- InputText: Fixed issue when activating a ReadOnly field when the underlying
|
- InputText: Fixed issue when activating a ReadOnly field when the underlying
|
||||||
@ -76,6 +77,8 @@ Other changes:
|
|||||||
windows with the ImGuiWindowFlags_NoNavInputs flag. (#8231)
|
windows with the ImGuiWindowFlags_NoNavInputs flag. (#8231)
|
||||||
- Debug Tools: Debug Log: hovering 0xXXXXXXXX values in log is allowed even
|
- Debug Tools: Debug Log: hovering 0xXXXXXXXX values in log is allowed even
|
||||||
if a popup is blocking mouse access to the debug log window. (#5855)
|
if a popup is blocking mouse access to the debug log window. (#5855)
|
||||||
|
- Debug Tools: Item Picker: Always available regardless of value of
|
||||||
|
io.ConfigDebugIsDebuggerPresent. (#2673)
|
||||||
- Fonts: Fixed miscalculation of Ellipsis ("...") character width when automatically
|
- Fonts: Fixed miscalculation of Ellipsis ("...") character width when automatically
|
||||||
created from a single comma character, affecting some fonts/settings (not all).
|
created from a single comma character, affecting some fonts/settings (not all).
|
||||||
- Demo: Added label edition to Property Editor demo + fix an ID issue. (#8266) [@moritz-h]
|
- Demo: Added label edition to Property Editor demo + fix an ID issue. (#8266) [@moritz-h]
|
||||||
|
@ -743,19 +743,27 @@ static void ShowDemoWindowMenuBar(ImGuiDemoWindowData* demo_data)
|
|||||||
#else
|
#else
|
||||||
const bool has_debug_tools = false;
|
const bool has_debug_tools = false;
|
||||||
#endif
|
#endif
|
||||||
|
if (ImGui::BeginMenu("Debug Options"))
|
||||||
|
{
|
||||||
|
ImGui::BeginDisabled(!has_debug_tools);
|
||||||
|
ImGui::Checkbox("Highlight ID Conflicts", &io.ConfigDebugHighlightIdConflicts);
|
||||||
|
ImGui::EndDisabled();
|
||||||
|
ImGui::Checkbox("Assert on error recovery", &io.ConfigErrorRecoveryEnableAssert);
|
||||||
|
ImGui::TextDisabled("(see Demo->Configuration for details & more)");
|
||||||
|
ImGui::EndMenu();
|
||||||
|
}
|
||||||
|
|
||||||
ImGui::MenuItem("Metrics/Debugger", NULL, &demo_data->ShowMetrics, has_debug_tools);
|
ImGui::MenuItem("Metrics/Debugger", NULL, &demo_data->ShowMetrics, has_debug_tools);
|
||||||
ImGui::MenuItem("Debug Log", NULL, &demo_data->ShowDebugLog, has_debug_tools);
|
ImGui::MenuItem("Debug Log", NULL, &demo_data->ShowDebugLog, has_debug_tools);
|
||||||
ImGui::MenuItem("ID Stack Tool", NULL, &demo_data->ShowIDStackTool, has_debug_tools);
|
ImGui::MenuItem("ID Stack Tool", NULL, &demo_data->ShowIDStackTool, has_debug_tools);
|
||||||
bool is_debugger_present = io.ConfigDebugIsDebuggerPresent;
|
bool is_debugger_present = io.ConfigDebugIsDebuggerPresent;
|
||||||
if (ImGui::MenuItem("Item Picker", NULL, false, has_debug_tools && is_debugger_present))
|
if (ImGui::MenuItem("Item Picker", NULL, false, has_debug_tools))// && is_debugger_present))
|
||||||
ImGui::DebugStartItemPicker();
|
ImGui::DebugStartItemPicker();
|
||||||
if (!is_debugger_present)
|
if (!is_debugger_present)
|
||||||
ImGui::SetItemTooltip("Requires io.ConfigDebugIsDebuggerPresent=true to be set.\n\nWe otherwise disable the menu option to avoid casual users crashing the application.\n\nYou can however always access the Item Picker in Metrics->Tools.");
|
ImGui::SetItemTooltip("Requires io.ConfigDebugIsDebuggerPresent=true to be set.\n\nWe otherwise disable some extra features to avoid casual users crashing the application.");
|
||||||
ImGui::MenuItem("Style Editor", NULL, &demo_data->ShowStyleEditor);
|
ImGui::MenuItem("Style Editor", NULL, &demo_data->ShowStyleEditor);
|
||||||
ImGui::MenuItem("About Dear ImGui", NULL, &demo_data->ShowAbout);
|
ImGui::MenuItem("About Dear ImGui", NULL, &demo_data->ShowAbout);
|
||||||
|
|
||||||
ImGui::SeparatorText("Debug Options");
|
|
||||||
ImGui::MenuItem("Highlight ID Conflicts", NULL, &io.ConfigDebugHighlightIdConflicts, has_debug_tools);
|
|
||||||
ImGui::EndMenu();
|
ImGui::EndMenu();
|
||||||
}
|
}
|
||||||
ImGui::EndMenuBar();
|
ImGui::EndMenuBar();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user