From f9a70995485bb958bc223260a70194664d9100a2 Mon Sep 17 00:00:00 2001 From: falkTX Date: Wed, 3 Aug 2022 17:48:19 +0100 Subject: [PATCH] more wasm improvements, tweak welcome dialog Signed-off-by: falkTX --- deps/PawPaw | 2 +- dpf | 2 +- src/CardinalUI.cpp | 14 +++++++------- src/Makefile.cardinal.mk | 2 +- src/emscripten/shell.html | 20 ++++++++++++++++++-- 5 files changed, 28 insertions(+), 12 deletions(-) diff --git a/deps/PawPaw b/deps/PawPaw index 2f0e475..1219906 160000 --- a/deps/PawPaw +++ b/deps/PawPaw @@ -1 +1 @@ -Subproject commit 2f0e475cc6880719e056949b4543310cb841bbdd +Subproject commit 12199065c8558e6c3ef47071b09fa456b32ec9e5 diff --git a/dpf b/dpf index c9ce338..f91b886 160000 --- a/dpf +++ b/dpf @@ -1 +1 @@ -Subproject commit c9ce3383797f398bb091d37525fd00ef7047afc7 +Subproject commit f91b8862806c6b5ab18113a547db186be5c158e6 diff --git a/src/CardinalUI.cpp b/src/CardinalUI.cpp index 3b9baef..e72fe1c 100644 --- a/src/CardinalUI.cpp +++ b/src/CardinalUI.cpp @@ -136,15 +136,15 @@ struct WasmWelcomeDialog : rack::widget::OpaqueWidget label->box.size.y = box.size.y - 2*margin - 40; label->fontSize = 20; label->text = "" - "Welcome!\n" + "Welcome to Cardinal on the Web!\n" "\n" - "This is a special web-assembly version of Cardinal, " - "allowing you to enjoy eurorack-style modules directly in your browser.\n" + "If using mobile/touch devices, please note:\n" + " - Single quick press does simple mouse click\n" + " - Press & move does click & drag action\n" + " - Press & hold does right-click (and opens module browser)\n" "\n" - "This is still very much a work in progress, " - "minor issues and occasional crashes are expected.\n" - "\n" - "Proceed with caution and have fun!"; + "Still a bit experimental, so proceed with caution.\n" + "Have fun!"; contentLayout->addChild(label); struct JoinDiscussionButton : Button { diff --git a/src/Makefile.cardinal.mk b/src/Makefile.cardinal.mk index 1d13bd5..14f7549 100644 --- a/src/Makefile.cardinal.mk +++ b/src/Makefile.cardinal.mk @@ -231,9 +231,9 @@ ifeq ($(WASM),true) ifneq ($(STATIC_BUILD),true) LINK_FLAGS += --preload-file=./jsfx LINK_FLAGS += --preload-file=./lv2 +LINK_FLAGS += --use-preload-plugins endif LINK_FLAGS += --preload-file=./resources -LINK_FLAGS += --use-preload-plugins LINK_FLAGS += -sALLOW_MEMORY_GROWTH LINK_FLAGS += -sINITIAL_MEMORY=64Mb LINK_FLAGS += -sLZ4=1 diff --git a/src/emscripten/shell.html b/src/emscripten/shell.html index f63c4f8..d886116 100644 --- a/src/emscripten/shell.html +++ b/src/emscripten/shell.html @@ -34,6 +34,17 @@ height: 100vh; } + #error { + background: rgba(0,0,0,0.75); + display: none; + position: fixed; + padding: 0.5em; + left: 0; + right: 0; + width: 100%; + z-index: 2; + } + .emscripten { display: block; margin-left: auto; @@ -92,14 +103,18 @@