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; mobileMenuPos=0.0f;
aboutOpen=true; aboutOpen=true;
} }
ImGui::SameLine();
if (ImGui::Button(_("WelcPopup"))) {
tutorial.protoWelcome=false;
}
if (ImGui::Button(_("Switch to Desktop Mode"))) { if (ImGui::Button(_("Switch to Desktop Mode"))) {
toggleMobileUI(!mobileUI); toggleMobileUI(!mobileUI);
} }

View file

@ -31,6 +31,7 @@
#include <dirent.h> #include <dirent.h>
#endif #endif
#ifndef IS_MOBILE
#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");\ ImGui::SetTooltip("click to open");\
@ -44,6 +45,9 @@ if (ImGui::IsItemClicked()) {\
ImGui::SetClipboardText(t);\ ImGui::SetClipboardText(t);\
tutorial.popupTimer=0;\ 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 { enum FurnaceCVObjectTypes {
CV_NULL=0, CV_NULL=0,