Compare commits
18 commits
8e442b4f64
...
a9a6152c04
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a9a6152c04 | ||
|
|
758200e002 | ||
|
|
7188bb951e | ||
|
|
4db7e652cb | ||
|
|
e962e69560 | ||
|
|
428acfb161 | ||
|
|
f774af884f | ||
|
|
df3e682a8f | ||
|
|
e7c286ab03 | ||
|
|
05262d4cbf | ||
|
|
6d23ef3296 | ||
|
|
8b275e809b | ||
|
|
d3cce514e5 | ||
|
|
07415e31c2 | ||
|
|
dceb654a6b | ||
|
|
d261223070 | ||
|
|
3940b0d9bf | ||
|
|
bed6633f39 |
|
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 3.6 KiB |
|
|
@ -3,15 +3,15 @@
|
|||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://dfmnqts222b6e"
|
||||
path="res://.godot/imported/bug.png-78e6c86c98b6c8398b3232c1b3996384.ctex"
|
||||
path="res://.godot/imported/bug.png-2766a2b1a5adcb30c1a0233db70158e9.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/types/symbols/bug.png"
|
||||
dest_files=["res://.godot/imported/bug.png-78e6c86c98b6c8398b3232c1b3996384.ctex"]
|
||||
source_file="res://assets/ui/types/bug.png"
|
||||
dest_files=["res://.godot/imported/bug.png-2766a2b1a5adcb30c1a0233db70158e9.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
|
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 3.7 KiB |
|
|
@ -3,15 +3,15 @@
|
|||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://71ufanayln8q"
|
||||
path="res://.godot/imported/dark.png-4fdfb624ebd0fdda6774c58258b384df.ctex"
|
||||
path="res://.godot/imported/dark.png-e1c82ea109504167a8123a063deeb8a4.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/types/symbols/dark.png"
|
||||
dest_files=["res://.godot/imported/dark.png-4fdfb624ebd0fdda6774c58258b384df.ctex"]
|
||||
source_file="res://assets/ui/types/dark.png"
|
||||
dest_files=["res://.godot/imported/dark.png-e1c82ea109504167a8123a063deeb8a4.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.8 KiB |
|
|
@ -3,15 +3,15 @@
|
|||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://dthmd16chdhrk"
|
||||
path="res://.godot/imported/dragon.png-79109ee974c8d974e11e1f34b49f2247.ctex"
|
||||
path="res://.godot/imported/dragon.png-312c07f44b30339b517e97f94e4f0480.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/types/symbols/dragon.png"
|
||||
dest_files=["res://.godot/imported/dragon.png-79109ee974c8d974e11e1f34b49f2247.ctex"]
|
||||
source_file="res://assets/ui/types/dragon.png"
|
||||
dest_files=["res://.godot/imported/dragon.png-312c07f44b30339b517e97f94e4f0480.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
|
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.5 KiB |
|
|
@ -3,15 +3,15 @@
|
|||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://c7rxmb5nbq0fe"
|
||||
path="res://.godot/imported/electric.png-456144fe6e4f4662cdb4888f3df771a3.ctex"
|
||||
path="res://.godot/imported/electric.png-2233f3b150fe2bae2b751b840a4b9fcb.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/types/symbols/electric.png"
|
||||
dest_files=["res://.godot/imported/electric.png-456144fe6e4f4662cdb4888f3df771a3.ctex"]
|
||||
source_file="res://assets/ui/types/electric.png"
|
||||
dest_files=["res://.godot/imported/electric.png-2233f3b150fe2bae2b751b840a4b9fcb.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
|
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 3.5 KiB |
|
|
@ -3,15 +3,15 @@
|
|||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://bvf8t0i0bklww"
|
||||
path="res://.godot/imported/fairy.png-7e946565ee81cd761cdd9251f9b36741.ctex"
|
||||
path="res://.godot/imported/fairy.png-f706a56d45a8eb4dea243b38d6e4ca69.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/types/symbols/fairy.png"
|
||||
dest_files=["res://.godot/imported/fairy.png-7e946565ee81cd761cdd9251f9b36741.ctex"]
|
||||
source_file="res://assets/ui/types/fairy.png"
|
||||
dest_files=["res://.godot/imported/fairy.png-f706a56d45a8eb4dea243b38d6e4ca69.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.4 KiB |
|
|
@ -3,15 +3,15 @@
|
|||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://ch1k7lg57h7or"
|
||||
path="res://.godot/imported/fighting.png-28d1c6ff32e8d6b357b10031b99f6234.ctex"
|
||||
path="res://.godot/imported/fighting.png-470ae135d1ee0c6f04ad0e46f4cb9559.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/types/symbols/fighting.png"
|
||||
dest_files=["res://.godot/imported/fighting.png-28d1c6ff32e8d6b357b10031b99f6234.ctex"]
|
||||
source_file="res://assets/ui/types/fighting.png"
|
||||
dest_files=["res://.godot/imported/fighting.png-470ae135d1ee0c6f04ad0e46f4cb9559.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
|
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.3 KiB |
|
|
@ -3,15 +3,15 @@
|
|||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://mifp3ggainij"
|
||||
path="res://.godot/imported/fire.png-f8da9c6864285cb8801259dccf3734ca.ctex"
|
||||
path="res://.godot/imported/fire.png-bb0e2b216456a48a49ba72e32dbe92e5.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/types/symbols/fire.png"
|
||||
dest_files=["res://.godot/imported/fire.png-f8da9c6864285cb8801259dccf3734ca.ctex"]
|
||||
source_file="res://assets/ui/types/fire.png"
|
||||
dest_files=["res://.godot/imported/fire.png-bb0e2b216456a48a49ba72e32dbe92e5.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
|
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.1 KiB |
|
|
@ -3,15 +3,15 @@
|
|||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://dyxlsy4s7uuwi"
|
||||
path="res://.godot/imported/flying.png-6157126aa64c5e526a5f8010a6986cca.ctex"
|
||||
path="res://.godot/imported/flying.png-57cb53c09ae4c29e0057af45e91f903e.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/types/symbols/flying.png"
|
||||
dest_files=["res://.godot/imported/flying.png-6157126aa64c5e526a5f8010a6986cca.ctex"]
|
||||
source_file="res://assets/ui/types/flying.png"
|
||||
dest_files=["res://.godot/imported/flying.png-57cb53c09ae4c29e0057af45e91f903e.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
|
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 3.4 KiB |
|
|
@ -3,15 +3,15 @@
|
|||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://ui81tr0rjdgx"
|
||||
path="res://.godot/imported/ghost.png-4b566cb780f6cb18c28e1efeb9d59032.ctex"
|
||||
path="res://.godot/imported/ghost.png-a7949eae3be7b0b317c9aaf32e4a867f.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/types/symbols/ghost.png"
|
||||
dest_files=["res://.godot/imported/ghost.png-4b566cb780f6cb18c28e1efeb9d59032.ctex"]
|
||||
source_file="res://assets/ui/types/ghost.png"
|
||||
dest_files=["res://.godot/imported/ghost.png-a7949eae3be7b0b317c9aaf32e4a867f.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
|
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 3.5 KiB |
|
|
@ -3,15 +3,15 @@
|
|||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://vvcmm1pmtpdk"
|
||||
path="res://.godot/imported/grass.png-c940c350f7164fe1ace9e570af29cd91.ctex"
|
||||
path="res://.godot/imported/grass.png-3c01ec48121410827e3411aa37c3e337.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/types/symbols/grass.png"
|
||||
dest_files=["res://.godot/imported/grass.png-c940c350f7164fe1ace9e570af29cd91.ctex"]
|
||||
source_file="res://assets/ui/types/grass.png"
|
||||
dest_files=["res://.godot/imported/grass.png-3c01ec48121410827e3411aa37c3e337.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB |
|
|
@ -3,15 +3,15 @@
|
|||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://d1h5u5imumix1"
|
||||
path="res://.godot/imported/ground.png-459049580ca950572ab32983573835a1.ctex"
|
||||
path="res://.godot/imported/ground.png-7c9eb08303917110a6679422c181de75.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/types/symbols/ground.png"
|
||||
dest_files=["res://.godot/imported/ground.png-459049580ca950572ab32983573835a1.ctex"]
|
||||
source_file="res://assets/ui/types/ground.png"
|
||||
dest_files=["res://.godot/imported/ground.png-7c9eb08303917110a6679422c181de75.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
|
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.2 KiB |
|
|
@ -3,15 +3,15 @@
|
|||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://b8s8fosmn8dti"
|
||||
path="res://.godot/imported/ice.png-b7fefd91f38ebbfcc243ac1bcf838b89.ctex"
|
||||
path="res://.godot/imported/ice.png-c78d7b456cc901014f207ca39ec7e276.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/types/symbols/ice.png"
|
||||
dest_files=["res://.godot/imported/ice.png-b7fefd91f38ebbfcc243ac1bcf838b89.ctex"]
|
||||
source_file="res://assets/ui/types/ice.png"
|
||||
dest_files=["res://.godot/imported/ice.png-c78d7b456cc901014f207ca39ec7e276.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
|
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 3.4 KiB |
|
|
@ -3,15 +3,15 @@
|
|||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://cspmj2qucdw0s"
|
||||
path="res://.godot/imported/normal.png-5b2bbfb4fbce0c8bcb8ec37fa6bd2f74.ctex"
|
||||
path="res://.godot/imported/normal.png-9fbb8e8fcddad1b24237a3c5a73d33d3.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/types/symbols/normal.png"
|
||||
dest_files=["res://.godot/imported/normal.png-5b2bbfb4fbce0c8bcb8ec37fa6bd2f74.ctex"]
|
||||
source_file="res://assets/ui/types/normal.png"
|
||||
dest_files=["res://.godot/imported/normal.png-9fbb8e8fcddad1b24237a3c5a73d33d3.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
|
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 3.5 KiB |
|
|
@ -3,15 +3,15 @@
|
|||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://bavkhhubi35xf"
|
||||
path="res://.godot/imported/poison.png-a30f4c7855b7b1f44b7ccddbf58d1351.ctex"
|
||||
path="res://.godot/imported/poison.png-bd5f77c4c95d0bb902a5b056d9ae1c99.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/types/symbols/poison.png"
|
||||
dest_files=["res://.godot/imported/poison.png-a30f4c7855b7b1f44b7ccddbf58d1351.ctex"]
|
||||
source_file="res://assets/ui/types/poison.png"
|
||||
dest_files=["res://.godot/imported/poison.png-bd5f77c4c95d0bb902a5b056d9ae1c99.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
|
Before Width: | Height: | Size: 4 KiB After Width: | Height: | Size: 4 KiB |
|
|
@ -3,15 +3,15 @@
|
|||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://cb67mi0c2t4du"
|
||||
path="res://.godot/imported/psychic.png-c7e4ad315ab5238e0f6ff1759f1e093c.ctex"
|
||||
path="res://.godot/imported/psychic.png-f22f90d7e289800381ed88430308c458.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/types/symbols/psychic.png"
|
||||
dest_files=["res://.godot/imported/psychic.png-c7e4ad315ab5238e0f6ff1759f1e093c.ctex"]
|
||||
source_file="res://assets/ui/types/psychic.png"
|
||||
dest_files=["res://.godot/imported/psychic.png-f22f90d7e289800381ed88430308c458.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
|
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.2 KiB |
|
|
@ -3,15 +3,15 @@
|
|||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://dtqprytuqfdv4"
|
||||
path="res://.godot/imported/rock.png-5964d64148bf2778dee1d19a38281b79.ctex"
|
||||
path="res://.godot/imported/rock.png-0276c300725a23fff0e891012e9284b3.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/types/symbols/rock.png"
|
||||
dest_files=["res://.godot/imported/rock.png-5964d64148bf2778dee1d19a38281b79.ctex"]
|
||||
source_file="res://assets/ui/types/rock.png"
|
||||
dest_files=["res://.godot/imported/rock.png-0276c300725a23fff0e891012e9284b3.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
|
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.1 KiB |
|
|
@ -3,15 +3,15 @@
|
|||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://dd0idj2l3ao8j"
|
||||
path="res://.godot/imported/steel.png-744fdbce726dcceb98ab9071ea516a2a.ctex"
|
||||
path="res://.godot/imported/steel.png-1c1b97d85807dfbaf29df8780c4a61a9.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/types/symbols/steel.png"
|
||||
dest_files=["res://.godot/imported/steel.png-744fdbce726dcceb98ab9071ea516a2a.ctex"]
|
||||
source_file="res://assets/ui/types/steel.png"
|
||||
dest_files=["res://.godot/imported/steel.png-1c1b97d85807dfbaf29df8780c4a61a9.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
|
Before Width: | Height: | Size: 5.4 KiB After Width: | Height: | Size: 5.4 KiB |
|
|
@ -3,15 +3,15 @@
|
|||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://dpqv0q8fobbx"
|
||||
path="res://.godot/imported/stellar.png-83bd49eebae2166894b0cbb5325ccfca.ctex"
|
||||
path="res://.godot/imported/stellar.png-83d2474711b36fcf8976bda2e1665ca3.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/types/symbols/stellar.png"
|
||||
dest_files=["res://.godot/imported/stellar.png-83bd49eebae2166894b0cbb5325ccfca.ctex"]
|
||||
source_file="res://assets/ui/types/stellar.png"
|
||||
dest_files=["res://.godot/imported/stellar.png-83d2474711b36fcf8976bda2e1665ca3.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
|
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.1 KiB |
|
|
@ -3,15 +3,15 @@
|
|||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://b4b6poy7sn6cu"
|
||||
path="res://.godot/imported/water.png-f4791ef1eeda0dec2b76fa49366591a1.ctex"
|
||||
path="res://.godot/imported/water.png-c40f3e38972ed5a09324769d77fb1a74.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/types/symbols/water.png"
|
||||
dest_files=["res://.godot/imported/water.png-f4791ef1eeda0dec2b76fa49366591a1.ctex"]
|
||||
source_file="res://assets/ui/types/water.png"
|
||||
dest_files=["res://.godot/imported/water.png-c40f3e38972ed5a09324769d77fb1a74.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
|
|
@ -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
|
||||
|
|
@ -1 +0,0 @@
|
|||
uid://c048itedcqksc
|
||||
|
|
@ -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"]
|
||||
|
|
@ -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]"
|
||||
|
|
@ -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
|
||||
|
|
@ -1,9 +1,9 @@
|
|||
[gd_scene format=3 uid="uid://b2gh50nogfllj"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://ba5gqdhohvdin" path="res://game/player/Camera/CameraHolder.gd" id="1_ha8x6"]
|
||||
[ext_resource type="Script" uid="uid://ba5gqdhohvdin" path="res://game/player/camera/camera_holder.gd" id="1_bvor0"]
|
||||
|
||||
[node name="CameraHolder" type="Node3D" unique_id=232451612]
|
||||
script = ExtResource("1_ha8x6")
|
||||
script = ExtResource("1_bvor0")
|
||||
|
||||
[node name="SpringArm3D" type="SpringArm3D" parent="." unique_id=1346420998]
|
||||
unique_name_in_owner = true
|
||||
|
|
@ -1,16 +1,16 @@
|
|||
[gd_scene format=3 uid="uid://dwxpt0s7vn36k"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://br1dfd4fltlef" path="res://game/player/StateMachine/PlayerCharacter.gd" id="1_lg056"]
|
||||
[ext_resource type="PackedScene" uid="uid://b2gh50nogfllj" path="res://game/player/Camera/CameraHolder.tscn" id="1_obar5"]
|
||||
[ext_resource type="Script" uid="uid://c8vfvcjtsb220" path="res://game/player/InputManagementComponent/InputManagementComponent.gd" id="2_r5dqo"]
|
||||
[ext_resource type="Script" uid="uid://dy4wrpvpep1jq" path="res://game/player/StateMachine/StateMachine.gd" id="3_o4naa"]
|
||||
[ext_resource type="Script" uid="uid://bf6hjwfa74ttj" path="res://game/player/StateMachine/IdleState.gd" id="4_38lxl"]
|
||||
[ext_resource type="Script" uid="uid://2agliol5dulc" path="res://game/player/StateMachine/WalkState.gd" id="4_lg056"]
|
||||
[ext_resource type="Script" uid="uid://dr5p8ygj25w6x" path="res://game/player/StateMachine/JumpState.gd" id="6_lwgph"]
|
||||
[ext_resource type="Script" uid="uid://dn5idrvu68k83" path="res://game/player/StateMachine/AimState.gd" id="7_kxr4l"]
|
||||
[ext_resource type="Script" uid="uid://dpcfffs3vt5co" path="res://game/player/StateMachine/RunState.gd" id="8_j4mf1"]
|
||||
[ext_resource type="Script" uid="uid://bwojkp7yrwswt" path="res://game/player/StateMachine/DodgeState.gd" id="9_6abew"]
|
||||
[ext_resource type="Script" uid="uid://d0577tj0c23bu" path="res://game/player/StateMachine/CrouchState.gd" id="10_mi63v"]
|
||||
[ext_resource type="PackedScene" uid="uid://b2gh50nogfllj" path="res://game/player/camera/camera_holder.tscn" id="1_obar5"]
|
||||
[ext_resource type="Script" uid="uid://br1dfd4fltlef" path="res://game/player/player_character.gd" id="1_pj0hh"]
|
||||
[ext_resource type="Script" uid="uid://c8vfvcjtsb220" path="res://game/player/input/input_management_component.gd" id="2_r5dqo"]
|
||||
[ext_resource type="Script" uid="uid://dy4wrpvpep1jq" path="res://game/player/states/state_machine.gd" id="3_o4naa"]
|
||||
[ext_resource type="Script" uid="uid://bf6hjwfa74ttj" path="res://game/player/states/idle_state.gd" id="4_38lxl"]
|
||||
[ext_resource type="Script" uid="uid://2agliol5dulc" path="res://game/player/states/walk_state.gd" id="4_lg056"]
|
||||
[ext_resource type="Script" uid="uid://dr5p8ygj25w6x" path="res://game/player/states/jump_state.gd" id="6_lwgph"]
|
||||
[ext_resource type="Script" uid="uid://dn5idrvu68k83" path="res://game/player/states/aim_state.gd" id="7_kxr4l"]
|
||||
[ext_resource type="Script" uid="uid://dpcfffs3vt5co" path="res://game/player/states/run_state.gd" id="8_j4mf1"]
|
||||
[ext_resource type="Script" uid="uid://bwojkp7yrwswt" path="res://game/player/states/dodge_state.gd" id="9_6abew"]
|
||||
[ext_resource type="Script" uid="uid://d0577tj0c23bu" path="res://game/player/states/crouch_state.gd" id="10_mi63v"]
|
||||
|
||||
[sub_resource type="Curve" id="Curve_kxr4l"]
|
||||
_limits = [0.0, 10.0, 0.0, 1.0]
|
||||
|
|
@ -40,7 +40,7 @@ size = Vector3(0.1484375, 0.1640625, 0.907959)
|
|||
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_3agn1"]
|
||||
|
||||
[node name="PlayerCharacter" type="CharacterBody3D" unique_id=1830301535]
|
||||
script = ExtResource("1_lg056")
|
||||
script = ExtResource("1_pj0hh")
|
||||
nb_jumps_in_air_allowed = 0
|
||||
in_air_move_speed = Array[Curve]([SubResource("Curve_kxr4l"), SubResource("Curve_j4mf1")])
|
||||
in_air_accel = Array[Curve]([SubResource("Curve_6abew"), SubResource("Curve_mi63v")])
|
||||