GUI: release to open
This commit is contained in:
parent
39e049145a
commit
6f585bfce6
|
@ -36,8 +36,10 @@
|
||||||
if (ImGui::IsItemHovered()) { \
|
if (ImGui::IsItemHovered()) { \
|
||||||
ImGui::SetTooltip("click to open"); \
|
ImGui::SetTooltip("click to open"); \
|
||||||
ImGui::SetMouseCursor(ImGuiMouseCursor_Hand); \
|
ImGui::SetMouseCursor(ImGuiMouseCursor_Hand); \
|
||||||
|
if (ImGui::IsMouseReleased(ImGuiMouseButton_Left)) { \
|
||||||
|
SDL_OpenURL(t); \
|
||||||
|
} \
|
||||||
} \
|
} \
|
||||||
if (ImGui::IsItemClicked()) SDL_OpenURL(t); \
|
|
||||||
ImGui::SameLine(); \
|
ImGui::SameLine(); \
|
||||||
ImGui::Text(ICON_FA_CLIPBOARD); \
|
ImGui::Text(ICON_FA_CLIPBOARD); \
|
||||||
if (ImGui::IsItemHovered(ImGuiHoveredFlags_DelayShort)) ImGui::SetTooltip("click to copy"); \
|
if (ImGui::IsItemHovered(ImGuiHoveredFlags_DelayShort)) ImGui::SetTooltip("click to copy"); \
|
||||||
|
|
Loading…
Reference in a new issue