mobile button and... ugh
This commit is contained in:
parent
771cee405f
commit
0c16646b05
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,12 +31,13 @@
|
||||||
#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");\
|
||||||
ImGui::SetMouseCursor(ImGuiMouseCursor_Hand);\
|
ImGui::SetMouseCursor(ImGuiMouseCursor_Hand);\
|
||||||
}\
|
}\
|
||||||
if (ImGui::IsItemClicked()) 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");\
|
||||||
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue