diff options
| -rw-r--r-- | docs/index.html | 2 | ||||
| -rw-r--r-- | docs/index.pck | bin | 2037744 -> 2037968 bytes | |||
| -rw-r--r-- | docs/index.service.worker.js | 2 | ||||
| -rw-r--r-- | touch_screen_ui.tscn | 15 |
4 files changed, 16 insertions, 3 deletions
diff --git a/docs/index.html b/docs/index.html index 6ec32c9..5ae4071 100644 --- a/docs/index.html +++ b/docs/index.html @@ -112,7 +112,7 @@ body { <script src="index.js"></script> <script> -const GODOT_CONFIG = {"args":[],"canvasResizePolicy":2,"emscriptenPoolSize":8,"ensureCrossOriginIsolationHeaders":true,"executable":"index","experimentalVK":false,"fileSizes":{"index.pck":2037744,"index.wasm":38034280},"focusCanvas":true,"gdextensionLibs":[],"godotPoolSize":4,"serviceWorker":"index.service.worker.js"}; +const GODOT_CONFIG = {"args":[],"canvasResizePolicy":2,"emscriptenPoolSize":8,"ensureCrossOriginIsolationHeaders":true,"executable":"index","experimentalVK":false,"fileSizes":{"index.pck":2037968,"index.wasm":38034280},"focusCanvas":true,"gdextensionLibs":[],"godotPoolSize":4,"serviceWorker":"index.service.worker.js"}; const GODOT_THREADS_ENABLED = false; const engine = new Engine(GODOT_CONFIG); diff --git a/docs/index.pck b/docs/index.pck Binary files differindex ea6ccf7..121fb29 100644 --- a/docs/index.pck +++ b/docs/index.pck diff --git a/docs/index.service.worker.js b/docs/index.service.worker.js index bd7e6e9..3d28dbf 100644 --- a/docs/index.service.worker.js +++ b/docs/index.service.worker.js @@ -4,7 +4,7 @@ // Incrementing CACHE_VERSION will kick off the install event and force // previously cached resources to be updated from the network. /** @type {string} */ -const CACHE_VERSION = '1763798201|23815754536'; +const CACHE_VERSION = '1763895444|1793279117'; /** @type {string} */ const CACHE_PREFIX = 'MobileMetroidvan-sw-cache-'; const CACHE_NAME = CACHE_PREFIX + CACHE_VERSION; diff --git a/touch_screen_ui.tscn b/touch_screen_ui.tscn index 52e4e37..b89dbca 100644 --- a/touch_screen_ui.tscn +++ b/touch_screen_ui.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=7 format=3 uid="uid://cciwccvljuuyq"] +[gd_scene load_steps=8 format=3 uid="uid://cciwccvljuuyq"] [ext_resource type="PackedScene" uid="uid://dwl0fylftkrn7" path="res://touch_screen_button.tscn" id="1_e48dh"] [ext_resource type="Texture2D" uid="uid://80qwkqluar71" path="res://assets/kenney_1-bit-input-prompts-pixel-16/Tiles (White)/tile_0758.png" id="2_e48dh"] @@ -6,10 +6,23 @@ [ext_resource type="Texture2D" uid="uid://dubf0an7e4r8q" path="res://assets/kenney_1-bit-input-prompts-pixel-16/Tiles (White)/tile_0757.png" id="4_e48dh"] [ext_resource type="Texture2D" uid="uid://jc43kdg6konu" path="res://assets/kenney_1-bit-input-prompts-pixel-16/Tiles (White)/tile_0769.png" id="5_e48dh"] +[sub_resource type="GDScript" id="GDScript_e48dh"] +script/source = "extends CanvasLayer + +@export var visible_on_desktop: bool + +# Called when the node enters the scene tree for the first time. +func _ready() -> void: + if not DisplayServer.is_touchscreen_available(): + visible = visible_on_desktop +" + [sub_resource type="RectangleShape2D" id="RectangleShape2D_k6i1l"] size = Vector2(40, 26) [node name="TouchScreenUI" type="CanvasLayer"] +script = SubResource("GDScript_e48dh") +visible_on_desktop = true [node name="TouchScreenButtonRight" parent="." groups=["ui_movement"] instance=ExtResource("1_e48dh")] position = Vector2(60, 88) |
