mirror of
https://github.com/ocornut/imgui.git
synced 2026-02-08 04:40:09 +00:00
parent
0dd756bceb
commit
085ed7bfbe
3 changed files with 16 additions and 4 deletions
|
|
@ -2437,6 +2437,7 @@ static void ShowDemoWindowWidgets()
|
|||
ImGuiDragDropFlags drop_target_flags = ImGuiDragDropFlags_AcceptBeforeDelivery | ImGuiDragDropFlags_AcceptNoPreviewTooltip;
|
||||
if (const ImGuiPayload* payload = ImGui::AcceptDragDropPayload(IMGUI_PAYLOAD_TYPE_COLOR_4F, drop_target_flags))
|
||||
{
|
||||
IM_UNUSED(payload);
|
||||
ImGui::SetMouseCursor(ImGuiMouseCursor_NotAllowed);
|
||||
ImGui::BeginTooltip();
|
||||
ImGui::Text("Cannot drop here!");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue