Demo: correct demo markers wordings (#9586)

This commit is contained in:
Pascal Thomet 2026-10-15 14:28:13 +02:00 committed by GitHub
parent 6d32174508
commit f996126249
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1651,10 +1651,10 @@ static void DemoWindowWidgetsDragAndDrop()
{ {
if (ImGui::TreeNode("Drag and Drop")) if (ImGui::TreeNode("Drag and Drop"))
{ {
IMGUI_DEMO_MARKER("Widgets/Drag and drop"); IMGUI_DEMO_MARKER("Widgets/Drag and Drop");
if (ImGui::TreeNode("Drag and drop in standard widgets")) if (ImGui::TreeNode("Drag and drop in standard widgets"))
{ {
IMGUI_DEMO_MARKER("Widgets/Drag and drop/Standard widgets"); IMGUI_DEMO_MARKER("Widgets/Drag and Drop/Standard widgets");
// ColorEdit widgets automatically act as drag source and drag target. // ColorEdit widgets automatically act as drag source and drag target.
// They are using standardized payload strings IMGUI_PAYLOAD_TYPE_COLOR_3F and IMGUI_PAYLOAD_TYPE_COLOR_4F // They are using standardized payload strings IMGUI_PAYLOAD_TYPE_COLOR_3F and IMGUI_PAYLOAD_TYPE_COLOR_4F
// to allow your own widgets to use colors in their drag and drop interaction. // to allow your own widgets to use colors in their drag and drop interaction.
@ -1669,7 +1669,7 @@ static void DemoWindowWidgetsDragAndDrop()
if (ImGui::TreeNode("Drag and drop to copy/swap items")) if (ImGui::TreeNode("Drag and drop to copy/swap items"))
{ {
IMGUI_DEMO_MARKER("Widgets/Drag and drop/Copy-swap items"); IMGUI_DEMO_MARKER("Widgets/Drag and Drop/Copy-swap items");
enum Mode enum Mode
{ {
Mode_Copy, Mode_Copy,