diff options
author | tpart <tpart120@proton.me> | 2024-07-02 00:19:01 +0200 |
---|---|---|
committer | tpart <tpart120@proton.me> | 2024-07-02 00:19:05 +0200 |
commit | ccc8175b1e6fae57adab32ded99add2ceb0aab78 (patch) | |
tree | 41444cf9576475dc792286a5527a6376a5566810 /client/menu | |
parent | 21099252207b5b14f3e5b9ae46ac158e5fb5960f (diff) | |
download | hurrycurry-ccc8175b1e6fae57adab32ded99add2ceb0aab78.tar hurrycurry-ccc8175b1e6fae57adab32ded99add2ceb0aab78.tar.bz2 hurrycurry-ccc8175b1e6fae57adab32ded99add2ceb0aab78.tar.zst |
Add etc2 imports for Android compatibility; Handle back button
Diffstat (limited to 'client/menu')
-rw-r--r-- | client/menu/circle.svg.import | 37 | ||||
-rw-r--r-- | client/menu/game.gd | 8 |
2 files changed, 43 insertions, 2 deletions
diff --git a/client/menu/circle.svg.import b/client/menu/circle.svg.import new file mode 100644 index 00000000..dcc19684 --- /dev/null +++ b/client/menu/circle.svg.import @@ -0,0 +1,37 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://d2xf8qdh01e41" +path="res://.godot/imported/circle.svg-d0b2fb05ade8e48b77faa1fda965eee3.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://menu/circle.svg" +dest_files=["res://.godot/imported/circle.svg-d0b2fb05ade8e48b77faa1fda965eee3.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 +svg/scale=1.0 +editor/scale_with_editor_scale=false +editor/convert_colors_with_editor_theme=false diff --git a/client/menu/game.gd b/client/menu/game.gd index ee8743f4..f2526645 100644 --- a/client/menu/game.gd +++ b/client/menu/game.gd @@ -1,9 +1,13 @@ extends Menu func _ready(): + get_tree().get_root().connect("go_back_requested", open_ingame_menu) super() func _input(_event): if Input.is_action_just_pressed("pause"): - Sound.play_click() - submenu("res://menu/ingame.tscn") + open_ingame_menu() + +func open_ingame_menu(): + Sound.play_click() + submenu("res://menu/ingame.tscn") |