separate copy "button"

This commit is contained in:
Eknous-P 2024-09-23 19:55:57 +04:00
parent 07b41e03c8
commit 771cee405f

View file

@ -33,11 +33,14 @@
#define CLICK_TO_OPEN(t) ImGui::TextColored(uiColors[GUI_COLOR_ACCENT_PRIMARY],t);\
if (ImGui::IsItemHovered()) {\
ImGui::SetTooltip("click to open, right click to copy");\
ImGui::SetTooltip("click to open");\
ImGui::SetMouseCursor(ImGuiMouseCursor_Hand);\
}\
if (ImGui::IsItemClicked()) SDL_OpenURL(t);\
if (ImGui::IsItemClicked(ImGuiMouseButton_Right)) {\
ImGui::SameLine();\
ImGui::Text(ICON_FA_CLIPBOARD);\
if (ImGui::IsItemHovered(ImGuiHoveredFlags_DelayShort)) ImGui::SetTooltip("click to copy");\
if (ImGui::IsItemClicked()) {\
ImGui::SetClipboardText(t);\
tutorial.popupTimer=0;\
}