From 3940b0d9bf67ba92daa2a22a67891acecd492504 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sun, 4 Oct 2026 17:29:34 +0200 Subject: [PATCH] Remove demo folder --- demo/IconRemapper.gd | 102 ------- demo/IconRemapper.gd.uid | 1 - demo/IconRemapper.tscn | 587 --------------------------------------- demo/Showcase.tscn | 224 --------------- demo/icon_respect.tres | 11 - 5 files changed, 925 deletions(-) delete mode 100644 demo/IconRemapper.gd delete mode 100644 demo/IconRemapper.gd.uid delete mode 100644 demo/IconRemapper.tscn delete mode 100644 demo/Showcase.tscn delete mode 100644 demo/icon_respect.tres diff --git a/demo/IconRemapper.gd b/demo/IconRemapper.gd deleted file mode 100644 index 3a9796d..0000000 --- a/demo/IconRemapper.gd +++ /dev/null @@ -1,102 +0,0 @@ -extends Control - -@onready var nodes := [ - %A, %B, %X, %Y, - %LB, %RB, %LT, %RT, - %L_Stick_Click, %R_Stick_Click, - %Select, %Start, %DPAD, - %DPAD_Up, %DPAD_Down, - %DPAD_Left, %DPAD_Right, - %Home, %Share, - %LStick, %RStick, -] - -var base_names := [] - -# Called when the node enters the scene tree for the first time. -func _ready(): - for child in nodes: - base_names.push_back(child.get_child(0).texture.path) - - -func _on_Auto_pressed(): - for i in range(nodes.size()): - nodes[i].get_child(0).texture.path = base_names[i] - - -func _on_Luna_pressed(): - for i in range(nodes.size()): - var control_text = ControllerIcons.Mapper._convert_joypad_to_luna(base_names[i]) - nodes[i].get_child(0).texture.path = control_text - - -func _on_PS3_pressed(): - for i in range(nodes.size()): - var control_text = ControllerIcons.Mapper._convert_joypad_to_ps3(base_names[i]) - nodes[i].get_child(0).texture.path = control_text - - -func _on_PS4_pressed(): - for i in range(nodes.size()): - var control_text = ControllerIcons.Mapper._convert_joypad_to_ps4(base_names[i]) - nodes[i].get_child(0).texture.path = control_text - - -func _on_PS5_pressed(): - for i in range(nodes.size()): - var control_text = ControllerIcons.Mapper._convert_joypad_to_ps5(base_names[i]) - nodes[i].get_child(0).texture.path = control_text - - -func _on_Stadia_pressed(): - for i in range(nodes.size()): - var control_text = ControllerIcons.Mapper._convert_joypad_to_stadia(base_names[i]) - nodes[i].get_child(0).texture.path = control_text - - -func _on_Steam_pressed(): - for i in range(nodes.size()): - var control_text = ControllerIcons.Mapper._convert_joypad_to_steam(base_names[i]) - nodes[i].get_child(0).texture.path = control_text - - -func _on_Switch_pressed(): - for i in range(nodes.size()): - var control_text = ControllerIcons.Mapper._convert_joypad_to_switch(base_names[i]) - nodes[i].get_child(0).texture.path = control_text - - -func _on_Joycon_pressed(): - for i in range(nodes.size()): - var control_text = ControllerIcons.Mapper._convert_joypad_to_joycon(base_names[i]) - nodes[i].get_child(0).texture.path = control_text - - -func _on_Xbox360_pressed(): - for i in range(nodes.size()): - var control_text = ControllerIcons.Mapper._convert_joypad_to_xbox360(base_names[i]) - nodes[i].get_child(0).texture.path = control_text - - -func _on_XboxOne_pressed(): - for i in range(nodes.size()): - var control_text = ControllerIcons.Mapper._convert_joypad_to_xboxone(base_names[i]) - nodes[i].get_child(0).texture.path = control_text - - -func _on_XboxSeries_pressed(): - for i in range(nodes.size()): - var control_text = ControllerIcons.Mapper._convert_joypad_to_xboxseries(base_names[i]) - nodes[i].get_child(0).texture.path = control_text - - -func _on_SteamDeck_pressed(): - for i in range(nodes.size()): - var control_text = ControllerIcons.Mapper._convert_joypad_to_steamdeck(base_names[i]) - nodes[i].get_child(0).texture.path = control_text - - -func _on_ouya_pressed(): - for i in range(nodes.size()): - var control_text = ControllerIcons.Mapper._convert_joypad_to_ouya(base_names[i]) - nodes[i].get_child(0).texture.path = control_text diff --git a/demo/IconRemapper.gd.uid b/demo/IconRemapper.gd.uid deleted file mode 100644 index cf741cc..0000000 --- a/demo/IconRemapper.gd.uid +++ /dev/null @@ -1 +0,0 @@ -uid://c048itedcqksc diff --git a/demo/IconRemapper.tscn b/demo/IconRemapper.tscn deleted file mode 100644 index 6114cc6..0000000 --- a/demo/IconRemapper.tscn +++ /dev/null @@ -1,587 +0,0 @@ -[gd_scene load_steps=24 format=3 uid="uid://cmopiwmgjwjb8"] - -[ext_resource type="Script" path="res://demo/IconRemapper.gd" id="2"] -[ext_resource type="Script" path="res://addons/controller_icons/objects/ControllerIconTexture.gd" id="2_ww1q8"] - -[sub_resource type="Texture2D" id="Texture2D_oaqcv"] -resource_local_to_scene = false -resource_name = "" -script = ExtResource("2_ww1q8") -path = "joypad/a" -show_mode = 0 -force_type = 0 - -[sub_resource type="Texture2D" id="Texture2D_julos"] -resource_local_to_scene = false -resource_name = "" -script = ExtResource("2_ww1q8") -path = "joypad/b" -show_mode = 0 -force_type = 0 - -[sub_resource type="Texture2D" id="Texture2D_p7fj8"] -resource_local_to_scene = false -resource_name = "" -script = ExtResource("2_ww1q8") -path = "joypad/x" -show_mode = 0 -force_type = 0 - -[sub_resource type="Texture2D" id="Texture2D_e65pp"] -resource_local_to_scene = false -resource_name = "" -script = ExtResource("2_ww1q8") -path = "joypad/y" -show_mode = 0 -force_type = 0 - -[sub_resource type="Texture2D" id="Texture2D_drwxf"] -resource_local_to_scene = false -resource_name = "" -script = ExtResource("2_ww1q8") -path = "joypad/lb" -show_mode = 0 -force_type = 0 - -[sub_resource type="Texture2D" id="Texture2D_lpg8q"] -resource_local_to_scene = false -resource_name = "" -script = ExtResource("2_ww1q8") -path = "joypad/rb" -show_mode = 0 -force_type = 0 - -[sub_resource type="Texture2D" id="Texture2D_tqj64"] -resource_local_to_scene = false -resource_name = "" -script = ExtResource("2_ww1q8") -path = "joypad/lt" -show_mode = 0 -force_type = 0 - -[sub_resource type="Texture2D" id="Texture2D_g8v8u"] -resource_local_to_scene = false -resource_name = "" -script = ExtResource("2_ww1q8") -path = "joypad/rt" -show_mode = 0 -force_type = 0 - -[sub_resource type="Texture2D" id="Texture2D_uqh53"] -resource_local_to_scene = false -resource_name = "" -script = ExtResource("2_ww1q8") -path = "joypad/l_stick_click" -show_mode = 0 -force_type = 0 - -[sub_resource type="Texture2D" id="Texture2D_jt7n0"] -resource_local_to_scene = false -resource_name = "" -script = ExtResource("2_ww1q8") -path = "joypad/r_stick_click" -show_mode = 0 -force_type = 0 - -[sub_resource type="Texture2D" id="Texture2D_jmm2v"] -resource_local_to_scene = false -resource_name = "" -script = ExtResource("2_ww1q8") -path = "joypad/select" -show_mode = 0 -force_type = 0 - -[sub_resource type="Texture2D" id="Texture2D_2w7la"] -resource_local_to_scene = false -resource_name = "" -script = ExtResource("2_ww1q8") -path = "joypad/start" -show_mode = 0 -force_type = 0 - -[sub_resource type="Texture2D" id="Texture2D_rhnqu"] -resource_local_to_scene = false -resource_name = "" -script = ExtResource("2_ww1q8") -path = "joypad/dpad" -show_mode = 0 -force_type = 0 - -[sub_resource type="Texture2D" id="Texture2D_vr4j2"] -resource_local_to_scene = false -resource_name = "" -script = ExtResource("2_ww1q8") -path = "joypad/dpad_up" -show_mode = 0 -force_type = 0 - -[sub_resource type="Texture2D" id="Texture2D_hp6k2"] -resource_local_to_scene = false -resource_name = "" -script = ExtResource("2_ww1q8") -path = "joypad/dpad_down" -show_mode = 0 -force_type = 0 - -[sub_resource type="Texture2D" id="Texture2D_4trym"] -resource_local_to_scene = false -resource_name = "" -script = ExtResource("2_ww1q8") -path = "joypad/dpad_left" -show_mode = 0 -force_type = 0 - -[sub_resource type="Texture2D" id="Texture2D_61h51"] -resource_local_to_scene = false -resource_name = "" -script = ExtResource("2_ww1q8") -path = "joypad/dpad_right" -show_mode = 0 -force_type = 0 - -[sub_resource type="Texture2D" id="Texture2D_adhf2"] -resource_local_to_scene = false -resource_name = "" -script = ExtResource("2_ww1q8") -path = "joypad/home" -show_mode = 0 -force_type = 0 - -[sub_resource type="Texture2D" id="Texture2D_dl7nm"] -resource_local_to_scene = false -resource_name = "" -script = ExtResource("2_ww1q8") -path = "joypad/share" -show_mode = 0 -force_type = 0 - -[sub_resource type="Texture2D" id="Texture2D_3ry3e"] -resource_local_to_scene = false -resource_name = "" -script = ExtResource("2_ww1q8") -path = "joypad/l_stick" -show_mode = 0 -force_type = 0 - -[sub_resource type="Texture2D" id="Texture2D_t68xw"] -resource_local_to_scene = false -resource_name = "" -script = ExtResource("2_ww1q8") -path = "joypad/r_stick" -show_mode = 0 -force_type = 0 - -[node name="Control" type="MarginContainer"] -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -size_flags_horizontal = 3 -size_flags_vertical = 3 -theme_override_constants/margin_left = 50 -theme_override_constants/margin_top = 50 -theme_override_constants/margin_right = 50 -theme_override_constants/margin_bottom = 50 -script = ExtResource("2") - -[node name="HBoxContainer" type="HBoxContainer" parent="."] -layout_mode = 2 -size_flags_vertical = 4 - -[node name="Icons" type="HBoxContainer" parent="HBoxContainer"] -layout_mode = 2 -size_flags_horizontal = 3 - -[node name="VBoxContainer" type="VBoxContainer" parent="HBoxContainer/Icons"] -layout_mode = 2 -size_flags_horizontal = 3 -size_flags_vertical = 3 - -[node name="A" type="HBoxContainer" parent="HBoxContainer/Icons/VBoxContainer"] -unique_name_in_owner = true -layout_mode = 2 - -[node name="ControllerTextureRect" type="TextureRect" parent="HBoxContainer/Icons/VBoxContainer/A"] -custom_minimum_size = Vector2(40, 40) -layout_mode = 2 -texture = SubResource("Texture2D_oaqcv") -expand_mode = 1 - -[node name="Label" type="Label" parent="HBoxContainer/Icons/VBoxContainer/A"] -layout_mode = 2 -text = " A" - -[node name="B" type="HBoxContainer" parent="HBoxContainer/Icons/VBoxContainer"] -unique_name_in_owner = true -layout_mode = 2 - -[node name="ControllerTextureRect" type="TextureRect" parent="HBoxContainer/Icons/VBoxContainer/B"] -custom_minimum_size = Vector2(40, 40) -layout_mode = 2 -texture = SubResource("Texture2D_julos") -expand_mode = 1 - -[node name="Label" type="Label" parent="HBoxContainer/Icons/VBoxContainer/B"] -layout_mode = 2 -text = " B" - -[node name="X" type="HBoxContainer" parent="HBoxContainer/Icons/VBoxContainer"] -unique_name_in_owner = true -layout_mode = 2 - -[node name="ControllerTextureRect" type="TextureRect" parent="HBoxContainer/Icons/VBoxContainer/X"] -custom_minimum_size = Vector2(40, 40) -layout_mode = 2 -texture = SubResource("Texture2D_p7fj8") -expand_mode = 1 - -[node name="Label" type="Label" parent="HBoxContainer/Icons/VBoxContainer/X"] -layout_mode = 2 -text = " X" - -[node name="Y" type="HBoxContainer" parent="HBoxContainer/Icons/VBoxContainer"] -unique_name_in_owner = true -layout_mode = 2 - -[node name="ControllerTextureRect" type="TextureRect" parent="HBoxContainer/Icons/VBoxContainer/Y"] -custom_minimum_size = Vector2(40, 40) -layout_mode = 2 -texture = SubResource("Texture2D_e65pp") -expand_mode = 1 - -[node name="Label" type="Label" parent="HBoxContainer/Icons/VBoxContainer/Y"] -layout_mode = 2 -text = " Y" - -[node name="LB" type="HBoxContainer" parent="HBoxContainer/Icons/VBoxContainer"] -unique_name_in_owner = true -layout_mode = 2 - -[node name="ControllerTextureRect" type="TextureRect" parent="HBoxContainer/Icons/VBoxContainer/LB"] -custom_minimum_size = Vector2(40, 40) -layout_mode = 2 -texture = SubResource("Texture2D_drwxf") -expand_mode = 1 - -[node name="Label" type="Label" parent="HBoxContainer/Icons/VBoxContainer/LB"] -layout_mode = 2 -text = " Left Button" - -[node name="RB" type="HBoxContainer" parent="HBoxContainer/Icons/VBoxContainer"] -unique_name_in_owner = true -layout_mode = 2 - -[node name="ControllerTextureRect" type="TextureRect" parent="HBoxContainer/Icons/VBoxContainer/RB"] -custom_minimum_size = Vector2(40, 40) -layout_mode = 2 -texture = SubResource("Texture2D_lpg8q") -expand_mode = 1 - -[node name="Label" type="Label" parent="HBoxContainer/Icons/VBoxContainer/RB"] -layout_mode = 2 -text = " Right Button" - -[node name="LT" type="HBoxContainer" parent="HBoxContainer/Icons/VBoxContainer"] -unique_name_in_owner = true -layout_mode = 2 - -[node name="ControllerTextureRect" type="TextureRect" parent="HBoxContainer/Icons/VBoxContainer/LT"] -custom_minimum_size = Vector2(40, 40) -layout_mode = 2 -texture = SubResource("Texture2D_tqj64") -expand_mode = 1 - -[node name="Label" type="Label" parent="HBoxContainer/Icons/VBoxContainer/LT"] -layout_mode = 2 -text = " Left Trigger" - -[node name="RT" type="HBoxContainer" parent="HBoxContainer/Icons/VBoxContainer"] -unique_name_in_owner = true -layout_mode = 2 - -[node name="ControllerTextureRect" type="TextureRect" parent="HBoxContainer/Icons/VBoxContainer/RT"] -custom_minimum_size = Vector2(40, 40) -layout_mode = 2 -texture = SubResource("Texture2D_g8v8u") -expand_mode = 1 - -[node name="Label" type="Label" parent="HBoxContainer/Icons/VBoxContainer/RT"] -layout_mode = 2 -text = " Right Trigger" - -[node name="L_Stick_Click" type="HBoxContainer" parent="HBoxContainer/Icons/VBoxContainer"] -unique_name_in_owner = true -layout_mode = 2 - -[node name="ControllerTextureRect" type="TextureRect" parent="HBoxContainer/Icons/VBoxContainer/L_Stick_Click"] -custom_minimum_size = Vector2(40, 40) -layout_mode = 2 -texture = SubResource("Texture2D_uqh53") -expand_mode = 1 - -[node name="Label" type="Label" parent="HBoxContainer/Icons/VBoxContainer/L_Stick_Click"] -layout_mode = 2 -text = " Left Stick Click" - -[node name="R_Stick_Click" type="HBoxContainer" parent="HBoxContainer/Icons/VBoxContainer"] -unique_name_in_owner = true -layout_mode = 2 - -[node name="ControllerTextureRect" type="TextureRect" parent="HBoxContainer/Icons/VBoxContainer/R_Stick_Click"] -custom_minimum_size = Vector2(40, 40) -layout_mode = 2 -texture = SubResource("Texture2D_jt7n0") -expand_mode = 1 - -[node name="Label" type="Label" parent="HBoxContainer/Icons/VBoxContainer/R_Stick_Click"] -layout_mode = 2 -text = " Right Stick Click" - -[node name="Select" type="HBoxContainer" parent="HBoxContainer/Icons/VBoxContainer"] -unique_name_in_owner = true -layout_mode = 2 - -[node name="ControllerTextureRect" type="TextureRect" parent="HBoxContainer/Icons/VBoxContainer/Select"] -custom_minimum_size = Vector2(40, 40) -layout_mode = 2 -texture = SubResource("Texture2D_jmm2v") -expand_mode = 1 - -[node name="Label" type="Label" parent="HBoxContainer/Icons/VBoxContainer/Select"] -layout_mode = 2 -text = " Select" - -[node name="VBoxContainer2" type="VBoxContainer" parent="HBoxContainer/Icons"] -layout_mode = 2 -size_flags_horizontal = 3 -size_flags_vertical = 3 - -[node name="Start" type="HBoxContainer" parent="HBoxContainer/Icons/VBoxContainer2"] -unique_name_in_owner = true -layout_mode = 2 - -[node name="ControllerTextureRect" type="TextureRect" parent="HBoxContainer/Icons/VBoxContainer2/Start"] -custom_minimum_size = Vector2(40, 40) -layout_mode = 2 -texture = SubResource("Texture2D_2w7la") -expand_mode = 1 - -[node name="Label" type="Label" parent="HBoxContainer/Icons/VBoxContainer2/Start"] -layout_mode = 2 -text = " Start" - -[node name="DPAD" type="HBoxContainer" parent="HBoxContainer/Icons/VBoxContainer2"] -unique_name_in_owner = true -layout_mode = 2 - -[node name="ControllerTextureRect" type="TextureRect" parent="HBoxContainer/Icons/VBoxContainer2/DPAD"] -custom_minimum_size = Vector2(40, 40) -layout_mode = 2 -texture = SubResource("Texture2D_rhnqu") -expand_mode = 1 - -[node name="Label" type="Label" parent="HBoxContainer/Icons/VBoxContainer2/DPAD"] -layout_mode = 2 -text = " DPAD" - -[node name="DPAD_Up" type="HBoxContainer" parent="HBoxContainer/Icons/VBoxContainer2"] -unique_name_in_owner = true -layout_mode = 2 - -[node name="ControllerTextureRect" type="TextureRect" parent="HBoxContainer/Icons/VBoxContainer2/DPAD_Up"] -custom_minimum_size = Vector2(40, 40) -layout_mode = 2 -texture = SubResource("Texture2D_vr4j2") -expand_mode = 1 - -[node name="Label" type="Label" parent="HBoxContainer/Icons/VBoxContainer2/DPAD_Up"] -layout_mode = 2 -text = " DPAD Up" - -[node name="DPAD_Down" type="HBoxContainer" parent="HBoxContainer/Icons/VBoxContainer2"] -unique_name_in_owner = true -layout_mode = 2 - -[node name="ControllerTextureRect" type="TextureRect" parent="HBoxContainer/Icons/VBoxContainer2/DPAD_Down"] -custom_minimum_size = Vector2(40, 40) -layout_mode = 2 -texture = SubResource("Texture2D_hp6k2") -expand_mode = 1 - -[node name="Label" type="Label" parent="HBoxContainer/Icons/VBoxContainer2/DPAD_Down"] -layout_mode = 2 -text = " DPAD Down" - -[node name="DPAD_Left" type="HBoxContainer" parent="HBoxContainer/Icons/VBoxContainer2"] -unique_name_in_owner = true -layout_mode = 2 - -[node name="ControllerTextureRect" type="TextureRect" parent="HBoxContainer/Icons/VBoxContainer2/DPAD_Left"] -custom_minimum_size = Vector2(40, 40) -layout_mode = 2 -texture = SubResource("Texture2D_4trym") -expand_mode = 1 - -[node name="Label" type="Label" parent="HBoxContainer/Icons/VBoxContainer2/DPAD_Left"] -layout_mode = 2 -text = " DPAD Left" - -[node name="DPAD_Right" type="HBoxContainer" parent="HBoxContainer/Icons/VBoxContainer2"] -unique_name_in_owner = true -layout_mode = 2 - -[node name="ControllerTextureRect" type="TextureRect" parent="HBoxContainer/Icons/VBoxContainer2/DPAD_Right"] -custom_minimum_size = Vector2(40, 40) -layout_mode = 2 -texture = SubResource("Texture2D_61h51") -expand_mode = 1 - -[node name="Label" type="Label" parent="HBoxContainer/Icons/VBoxContainer2/DPAD_Right"] -layout_mode = 2 -text = " DPAD Right" - -[node name="Home" type="HBoxContainer" parent="HBoxContainer/Icons/VBoxContainer2"] -unique_name_in_owner = true -layout_mode = 2 - -[node name="ControllerTextureRect" type="TextureRect" parent="HBoxContainer/Icons/VBoxContainer2/Home"] -custom_minimum_size = Vector2(40, 40) -layout_mode = 2 -texture = SubResource("Texture2D_adhf2") -expand_mode = 1 - -[node name="Label" type="Label" parent="HBoxContainer/Icons/VBoxContainer2/Home"] -layout_mode = 2 -text = " Home" - -[node name="Share" type="HBoxContainer" parent="HBoxContainer/Icons/VBoxContainer2"] -unique_name_in_owner = true -layout_mode = 2 - -[node name="ControllerTextureRect" type="TextureRect" parent="HBoxContainer/Icons/VBoxContainer2/Share"] -custom_minimum_size = Vector2(40, 40) -layout_mode = 2 -texture = SubResource("Texture2D_dl7nm") -expand_mode = 1 - -[node name="Label" type="Label" parent="HBoxContainer/Icons/VBoxContainer2/Share"] -layout_mode = 2 -text = " Share" - -[node name="LStick" type="HBoxContainer" parent="HBoxContainer/Icons/VBoxContainer2"] -unique_name_in_owner = true -layout_mode = 2 - -[node name="ControllerTextureRect" type="TextureRect" parent="HBoxContainer/Icons/VBoxContainer2/LStick"] -custom_minimum_size = Vector2(40, 40) -layout_mode = 2 -texture = SubResource("Texture2D_3ry3e") -expand_mode = 1 - -[node name="Label" type="Label" parent="HBoxContainer/Icons/VBoxContainer2/LStick"] -layout_mode = 2 -text = " Left Stick" - -[node name="RStick" type="HBoxContainer" parent="HBoxContainer/Icons/VBoxContainer2"] -unique_name_in_owner = true -layout_mode = 2 - -[node name="ControllerTextureRect" type="TextureRect" parent="HBoxContainer/Icons/VBoxContainer2/RStick"] -custom_minimum_size = Vector2(40, 40) -layout_mode = 2 -texture = SubResource("Texture2D_t68xw") -expand_mode = 1 - -[node name="Label" type="Label" parent="HBoxContainer/Icons/VBoxContainer2/RStick"] -layout_mode = 2 -text = " Right Stick" - -[node name="Buttons" type="VBoxContainer" parent="HBoxContainer"] -layout_mode = 2 -size_flags_horizontal = 3 - -[node name="Auto" type="Button" parent="HBoxContainer/Buttons"] -layout_mode = 2 -size_flags_vertical = 3 -text = "[ Set to automatic ]" - -[node name="Luna" type="Button" parent="HBoxContainer/Buttons"] -layout_mode = 2 -size_flags_vertical = 3 -text = "Amazon Luna" - -[node name="PS3" type="Button" parent="HBoxContainer/Buttons"] -layout_mode = 2 -size_flags_vertical = 3 -text = "PlayStation 3" - -[node name="PS4" type="Button" parent="HBoxContainer/Buttons"] -layout_mode = 2 -size_flags_vertical = 3 -text = "PlayStation 4" - -[node name="PS5" type="Button" parent="HBoxContainer/Buttons"] -layout_mode = 2 -size_flags_vertical = 3 -text = "PlayStation 5" - -[node name="Stadia" type="Button" parent="HBoxContainer/Buttons"] -layout_mode = 2 -size_flags_vertical = 3 -text = "Google Stadia" - -[node name="Steam" type="Button" parent="HBoxContainer/Buttons"] -layout_mode = 2 -size_flags_vertical = 3 -text = "Steam Controller" - -[node name="SteamDeck" type="Button" parent="HBoxContainer/Buttons"] -layout_mode = 2 -size_flags_vertical = 3 -text = "Steam Deck" - -[node name="Switch" type="Button" parent="HBoxContainer/Buttons"] -layout_mode = 2 -size_flags_vertical = 3 -text = "Nintendo Switch Controller" - -[node name="Joycon" type="Button" parent="HBoxContainer/Buttons"] -layout_mode = 2 -size_flags_vertical = 3 -text = "Nintendo Switch JoyCon" - -[node name="OUYA" type="Button" parent="HBoxContainer/Buttons"] -layout_mode = 2 -size_flags_vertical = 3 -text = "OUYA" - -[node name="Xbox360" type="Button" parent="HBoxContainer/Buttons"] -layout_mode = 2 -size_flags_vertical = 3 -text = "Xbox 360" - -[node name="XboxOne" type="Button" parent="HBoxContainer/Buttons"] -layout_mode = 2 -size_flags_vertical = 3 -text = "Xbox One" - -[node name="XboxSeries" type="Button" parent="HBoxContainer/Buttons"] -layout_mode = 2 -size_flags_vertical = 3 -text = "Xbox Series" - -[connection signal="pressed" from="HBoxContainer/Buttons/Auto" to="." method="_on_Auto_pressed"] -[connection signal="pressed" from="HBoxContainer/Buttons/Luna" to="." method="_on_Luna_pressed"] -[connection signal="pressed" from="HBoxContainer/Buttons/PS3" to="." method="_on_PS3_pressed"] -[connection signal="pressed" from="HBoxContainer/Buttons/PS4" to="." method="_on_PS4_pressed"] -[connection signal="pressed" from="HBoxContainer/Buttons/PS5" to="." method="_on_PS5_pressed"] -[connection signal="pressed" from="HBoxContainer/Buttons/Stadia" to="." method="_on_Stadia_pressed"] -[connection signal="pressed" from="HBoxContainer/Buttons/Steam" to="." method="_on_Steam_pressed"] -[connection signal="pressed" from="HBoxContainer/Buttons/SteamDeck" to="." method="_on_SteamDeck_pressed"] -[connection signal="pressed" from="HBoxContainer/Buttons/Switch" to="." method="_on_Switch_pressed"] -[connection signal="pressed" from="HBoxContainer/Buttons/Joycon" to="." method="_on_Joycon_pressed"] -[connection signal="pressed" from="HBoxContainer/Buttons/OUYA" to="." method="_on_ouya_pressed"] -[connection signal="pressed" from="HBoxContainer/Buttons/Xbox360" to="." method="_on_Xbox360_pressed"] -[connection signal="pressed" from="HBoxContainer/Buttons/XboxOne" to="." method="_on_XboxOne_pressed"] -[connection signal="pressed" from="HBoxContainer/Buttons/XboxSeries" to="." method="_on_XboxSeries_pressed"] diff --git a/demo/Showcase.tscn b/demo/Showcase.tscn deleted file mode 100644 index c94c4c9..0000000 --- a/demo/Showcase.tscn +++ /dev/null @@ -1,224 +0,0 @@ -[gd_scene format=3 uid="uid://8ypaj35qfhyr"] - -[ext_resource type="Script" uid="uid://7hglx6nfu063" path="res://addons/controller_icons/objects/ControllerIconTexture.gd" id="1_vfnng"] - -[sub_resource type="Texture2D" id="Texture2D_s5m8q"] -resource_local_to_scene = false -resource_name = "" -script = ExtResource("1_vfnng") -path = "ui_accept" -show_mode = 0 -force_type = 0 - -[sub_resource type="Texture2D" id="Texture2D_m553g"] -resource_local_to_scene = false -resource_name = "" -script = ExtResource("1_vfnng") -path = "joypad/x" -show_mode = 0 -force_type = 0 - -[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_htjm2"] - -[sub_resource type="Sky" id="Sky_tf27q"] -sky_material = SubResource("ProceduralSkyMaterial_htjm2") - -[sub_resource type="Environment" id="Environment_klhn5"] -background_mode = 2 -sky = SubResource("Sky_tf27q") - -[sub_resource type="Texture2D" id="Texture2D_utrwd"] -resource_local_to_scene = false -resource_name = "" -script = ExtResource("1_vfnng") -path = "joypad/a" -show_mode = 0 -force_type = 0 - -[sub_resource type="Texture2D" id="Texture2D_8wr4o"] -resource_local_to_scene = false -resource_name = "" -script = ExtResource("1_vfnng") -path = "joypad/x" -show_mode = 0 -force_type = 0 - -[sub_resource type="Texture2D" id="Texture2D_82sge"] -resource_local_to_scene = false -resource_name = "" -script = ExtResource("1_vfnng") -path = "switch/controllers_separate" -show_mode = 0 -force_type = 0 - -[node name="Showcase" type="Node" unique_id=295027238] - -[node name="RichTextLabel" type="RichTextLabel" parent="." unique_id=349315614] -offset_left = 150.0 -offset_top = 25.0 -offset_right = 1002.0 -offset_bottom = 111.0 -bbcode_enabled = true -text = "Controller Icons provides automatic icons for all major controllers, keyboard, and mouse. - -It provides a [b]ControllerIconTexture[/b] resource that can be set on any node that accepts a [b]Texture2D[/b], such as:" - -[node name="Label" type="Label" parent="." unique_id=1724750574] -offset_left = 117.0 -offset_top = 151.0 -offset_right = 292.0 -offset_bottom = 174.0 -text = "TextureRect / Sprite2D" -horizontal_alignment = 1 - -[node name="TextureRect" type="TextureRect" parent="." unique_id=405427048] -offset_left = 164.0 -offset_top = 187.0 -offset_right = 235.0 -offset_bottom = 258.0 -texture = SubResource("Texture2D_s5m8q") -expand_mode = 1 - -[node name="Label2" type="Label" parent="." unique_id=1009805006] -offset_left = 357.0 -offset_top = 152.0 -offset_right = 451.0 -offset_bottom = 175.0 -text = "Button" -horizontal_alignment = 1 - -[node name="Button" type="Button" parent="." unique_id=2024101150] -offset_left = 340.0 -offset_top = 191.0 -offset_right = 468.0 -offset_bottom = 239.0 -text = "Attack" -icon = SubResource("Texture2D_m553g") -expand_icon = true - -[node name="Label3" type="Label" parent="." unique_id=296529233] -offset_left = 571.0 -offset_top = 151.0 -offset_right = 665.0 -offset_bottom = 174.0 -text = "Sprite3D" -horizontal_alignment = 1 - -[node name="SubViewportContainer" type="SubViewportContainer" parent="." unique_id=1188610478] -offset_left = 546.0 -offset_top = 187.0 -offset_right = 689.0 -offset_bottom = 332.0 -stretch = true - -[node name="SubViewport" type="SubViewport" parent="SubViewportContainer" unique_id=1088140940] -handle_input_locally = false -size = Vector2i(143, 145) -render_target_update_mode = 4 - -[node name="Camera3D" type="Camera3D" parent="SubViewportContainer/SubViewport" unique_id=255731315] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.125, 0.745) -environment = SubResource("Environment_klhn5") - -[node name="Sprite3D" type="Sprite3D" parent="SubViewportContainer/SubViewport" unique_id=942846403] -texture = SubResource("Texture2D_utrwd") - -[node name="Label3D" type="Label3D" parent="SubViewportContainer/SubViewport" unique_id=1104632312] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.573528, 0) -text = "Jump" - -[node name="Label4" type="Label" parent="." unique_id=232674080] -offset_left = 826.0 -offset_top = 152.0 -offset_right = 934.0 -offset_bottom = 175.0 -text = "RichTextLabel" -horizontal_alignment = 1 - -[node name="RichTextLabel2" type="RichTextLabel" parent="." unique_id=755217362] -offset_left = 775.0 -offset_top = 195.0 -offset_right = 993.0 -offset_bottom = 279.0 -bbcode_enabled = true -text = "Press [img=40]res://demo/icon_respect.tres[/img] to pay respects" - -[node name="RichTextLabel3" type="RichTextLabel" parent="." unique_id=176142651] -offset_left = 262.0 -offset_top = 389.0 -offset_right = 858.0 -offset_bottom = 421.0 -bbcode_enabled = true -text = "You'll need to provide a [b]path[/b] indicating which icon to display, which can be:" - -[node name="RichTextLabel4" type="RichTextLabel" parent="." unique_id=2109360878] -offset_left = 47.0 -offset_top = 434.0 -offset_right = 373.0 -offset_bottom = 525.0 -bbcode_enabled = true -text = "[center]An input action, switching automatically between keyboard/mouse and controller[/center]" - -[node name="TextureRect2" type="TextureRect" parent="." unique_id=881988573] -offset_left = 187.0 -offset_top = 515.0 -offset_right = 258.0 -offset_bottom = 586.0 -texture = SubResource("Texture2D_s5m8q") -expand_mode = 1 - -[node name="RichTextLabel5" type="RichTextLabel" parent="." unique_id=1415597120] -offset_left = 181.0 -offset_top = 596.0 -offset_right = 274.0 -offset_bottom = 624.0 -bbcode_enabled = true -text = "[i]\"ui_accept\"[/i]" - -[node name="RichTextLabel6" type="RichTextLabel" parent="." unique_id=1634196808] -offset_left = 417.0 -offset_top = 432.0 -offset_right = 777.0 -offset_bottom = 523.0 -bbcode_enabled = true -text = "[center]A generic joypad path, which shows only controller icons and according to the connected controller type[/center]" - -[node name="TextureRect3" type="TextureRect" parent="." unique_id=345677152] -offset_left = 567.0 -offset_top = 513.0 -offset_right = 638.0 -offset_bottom = 584.0 -texture = SubResource("Texture2D_8wr4o") -expand_mode = 1 - -[node name="RichTextLabel7" type="RichTextLabel" parent="." unique_id=1190522777] -offset_left = 561.0 -offset_top = 594.0 -offset_right = 654.0 -offset_bottom = 622.0 -bbcode_enabled = true -text = "[i]\"joypad/x\"[/i]" - -[node name="RichTextLabel8" type="RichTextLabel" parent="." unique_id=2135033758] -offset_left = 789.0 -offset_top = 432.0 -offset_right = 1060.0 -offset_bottom = 523.0 -bbcode_enabled = true -text = "[center]A specific path, which will always display the chosen icon[/center]" - -[node name="TextureRect4" type="TextureRect" parent="." unique_id=617366000] -offset_left = 874.0 -offset_top = 513.0 -offset_right = 945.0 -offset_bottom = 584.0 -texture = SubResource("Texture2D_82sge") -expand_mode = 1 - -[node name="RichTextLabel9" type="RichTextLabel" parent="." unique_id=711467859] -offset_left = 798.0 -offset_top = 594.0 -offset_right = 1031.0 -offset_bottom = 622.0 -bbcode_enabled = true -text = "[i]\"switch/controllers_separate\"[/i]" diff --git a/demo/icon_respect.tres b/demo/icon_respect.tres deleted file mode 100644 index c36b8da..0000000 --- a/demo/icon_respect.tres +++ /dev/null @@ -1,11 +0,0 @@ -[gd_resource type="Texture2D" script_class="ControllerIconTexture" format=3 uid="uid://5bh1m7kwdsah"] - -[ext_resource type="Script" uid="uid://7hglx6nfu063" path="res://addons/controller_icons/objects/ControllerIconTexture.gd" id="1_up1mj"] - -[resource] -resource_local_to_scene = false -resource_name = "" -script = ExtResource("1_up1mj") -path = "key/f" -show_mode = 0 -force_type = 0