[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]"
