mobile button and... ugh
This commit is contained in:
parent
771cee405f
commit
0c16646b05
2 changed files with 9 additions and 1 deletions
|
|
@ -31,12 +31,13 @@
|
|||
#include <dirent.h>
|
||||
#endif
|
||||
|
||||
#ifndef IS_MOBILE
|
||||
#define CLICK_TO_OPEN(t) ImGui::TextColored(uiColors[GUI_COLOR_ACCENT_PRIMARY],t);\
|
||||
if (ImGui::IsItemHovered()) {\
|
||||
ImGui::SetTooltip("click to open");\
|
||||
ImGui::SetMouseCursor(ImGuiMouseCursor_Hand);\
|
||||
}\
|
||||
if (ImGui::IsItemClicked()) SDL_OpenURL(t);\
|
||||
if (ImGui::IsItemClicked()) SDL_OpenURL(t); \
|
||||
ImGui::SameLine();\
|
||||
ImGui::Text(ICON_FA_CLIPBOARD);\
|
||||
if (ImGui::IsItemHovered(ImGuiHoveredFlags_DelayShort)) ImGui::SetTooltip("click to copy");\
|
||||
|
|
@ -44,6 +45,9 @@ if (ImGui::IsItemClicked()) {\
|
|||
ImGui::SetClipboardText(t);\
|
||||
tutorial.popupTimer=0;\
|
||||
}
|
||||
#else
|
||||
#define CLICK_TO_OPEN(t) ImGui::TextColored(uiColors[GUI_COLOR_ACCENT_PRIMARY],t); if (ImGui::IsItemClicked()) SDL_OpenURL(t);
|
||||
#endif
|
||||
|
||||
enum FurnaceCVObjectTypes {
|
||||
CV_NULL=0,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue