mobile button and... ugh
This commit is contained in:
parent
771cee405f
commit
0c16646b05
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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…
Reference in a new issue