mirror of
https://github.com/tildearrow/furnace.git
synced 2024-12-04 02:07:27 +00:00
separate copy "button"
This commit is contained in:
parent
07b41e03c8
commit
771cee405f
1 changed files with 5 additions and 2 deletions
|
@ -33,11 +33,14 @@
|
||||||
|
|
||||||
#define CLICK_TO_OPEN(t) ImGui::TextColored(uiColors[GUI_COLOR_ACCENT_PRIMARY],t);\
|
#define CLICK_TO_OPEN(t) ImGui::TextColored(uiColors[GUI_COLOR_ACCENT_PRIMARY],t);\
|
||||||
if (ImGui::IsItemHovered()) {\
|
if (ImGui::IsItemHovered()) {\
|
||||||
ImGui::SetTooltip("click to open, right click to copy");\
|
ImGui::SetTooltip("click to open");\
|
||||||
ImGui::SetMouseCursor(ImGuiMouseCursor_Hand);\
|
ImGui::SetMouseCursor(ImGuiMouseCursor_Hand);\
|
||||||
}\
|
}\
|
||||||
if (ImGui::IsItemClicked()) SDL_OpenURL(t);\
|
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);\
|
ImGui::SetClipboardText(t);\
|
||||||
tutorial.popupTimer=0;\
|
tutorial.popupTimer=0;\
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue