diff options
Diffstat (limited to 'client/menu/controller_buttons')
-rw-r--r-- | client/menu/controller_buttons/controller_button.gd | 41 | ||||
-rw-r--r-- | client/menu/controller_buttons/controller_button.gd.uid | 1 | ||||
-rw-r--r-- | client/menu/controller_buttons/x.svg | 6 | ||||
-rw-r--r-- | client/menu/controller_buttons/x.svg.import | 37 | ||||
-rw-r--r-- | client/menu/controller_buttons/y.svg | 6 | ||||
-rw-r--r-- | client/menu/controller_buttons/y.svg.import | 37 |
6 files changed, 0 insertions, 128 deletions
diff --git a/client/menu/controller_buttons/controller_button.gd b/client/menu/controller_buttons/controller_button.gd deleted file mode 100644 index 71f1332f..00000000 --- a/client/menu/controller_buttons/controller_button.gd +++ /dev/null @@ -1,41 +0,0 @@ -# Hurry Curry! - a game about cooking -# Copyright (C) 2025 Hurry Curry! contributors -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as published by -# the Free Software Foundation, version 3 of the License only. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see <https://www.gnu.org/licenses/>. -# - -extends Button -class_name ControllerButton - -@export var controller_texture: Texture2D -@export var press_action: String - -func _ready(): - set_texture_enabled(Global.using_joypad) - Global.using_joypad_change.connect(set_texture_enabled) - -func _input(_event): - if press_action == null: - return - if not is_visible_in_tree(): - return - if disabled: - return - if Input.is_action_just_pressed(press_action): - pressed.emit() - -func set_texture_enabled(b: bool): - if b: - icon = controller_texture - else: - icon = null diff --git a/client/menu/controller_buttons/controller_button.gd.uid b/client/menu/controller_buttons/controller_button.gd.uid deleted file mode 100644 index c8f5a86c..00000000 --- a/client/menu/controller_buttons/controller_button.gd.uid +++ /dev/null @@ -1 +0,0 @@ -uid://b1eomxildrq30 diff --git a/client/menu/controller_buttons/x.svg b/client/menu/controller_buttons/x.svg deleted file mode 100644 index 9a5df2ea..00000000 --- a/client/menu/controller_buttons/x.svg +++ /dev/null @@ -1,6 +0,0 @@ -<svg width="64" height="64" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> - <defs/> - <g> - <path stroke="none" fill="#009FEB" d="M56 32 Q56 42 48.95 48.95 42 56 32 56 22.05 56 15 48.95 8 42 8 32 8 22.05 15 15 22.05 8 32 8 42 8 48.95 15 56 22.05 56 32 M23 25 L29 32 23 39 23 40 25.25 42 26.4 42 32 35.5 37.65 42 38.75 42 41 40 41 39 35 32 41 25 41 24 38.75 22 37.65 22 32 28.55 26.4 22 25.25 22 23 24 23 25"/> - </g> -</svg>
\ No newline at end of file diff --git a/client/menu/controller_buttons/x.svg.import b/client/menu/controller_buttons/x.svg.import deleted file mode 100644 index f9acb5ec..00000000 --- a/client/menu/controller_buttons/x.svg.import +++ /dev/null @@ -1,37 +0,0 @@ -[remap] - -importer="texture" -type="CompressedTexture2D" -uid="uid://bsx6fo7mv2u6a" -path="res://.godot/imported/x.svg-94cb27dd83c134d85e2e1ce8d9481359.ctex" -metadata={ -"vram_texture": false -} - -[deps] - -source_file="res://menu/controller_buttons/x.svg" -dest_files=["res://.godot/imported/x.svg-94cb27dd83c134d85e2e1ce8d9481359.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/controller_buttons/y.svg b/client/menu/controller_buttons/y.svg deleted file mode 100644 index a378078b..00000000 --- a/client/menu/controller_buttons/y.svg +++ /dev/null @@ -1,6 +0,0 @@ -<svg width="64" height="64" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> - <defs/> - <g> - <path stroke="none" fill="#FEB504" d="M56 32 Q56 42 48.95 48.95 42 56 32 56 22.05 56 15 48.95 8 42 8 32 8 22.05 15 15 22.05 8 32 8 42 8 48.95 15 56 22.05 56 32 M23 25 L30 32.9 30 42 34 42 34 32.9 41 25 41 24 38.75 22 37.65 22 32 28.55 26.4 22 25.25 22 23 24 23 25"/> - </g> -</svg>
\ No newline at end of file diff --git a/client/menu/controller_buttons/y.svg.import b/client/menu/controller_buttons/y.svg.import deleted file mode 100644 index 5fec3cf1..00000000 --- a/client/menu/controller_buttons/y.svg.import +++ /dev/null @@ -1,37 +0,0 @@ -[remap] - -importer="texture" -type="CompressedTexture2D" -uid="uid://cr2a6ide6vnnv" -path="res://.godot/imported/y.svg-41b9f391c7719d6f019c38a3e4816a9f.ctex" -metadata={ -"vram_texture": false -} - -[deps] - -source_file="res://menu/controller_buttons/y.svg" -dest_files=["res://.godot/imported/y.svg-41b9f391c7719d6f019c38a3e4816a9f.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 |