mobile button and... ugh

This commit is contained in:
Eknous-P 2024-09-23 23:33:52 +04:00
parent 771cee405f
commit 0c16646b05
2 changed files with 9 additions and 1 deletions

View file

@ -620,6 +620,10 @@ void FurnaceGUI::drawMobileControls() {
mobileMenuPos=0.0f;
aboutOpen=true;
}
ImGui::SameLine();
if (ImGui::Button(_("WelcPopup"))) {
tutorial.protoWelcome=false;
}
if (ImGui::Button(_("Switch to Desktop Mode"))) {
toggleMobileUI(!mobileUI);
}

View file

@ -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,