Added some Kenney icons and text color is now handled by a shader so [img] tags get colored too

master
Wynd 2026-01-24 21:46:06 +02:00
parent 0b7720cad6
commit d00bc0c12b
30 changed files with 591 additions and 73 deletions

View File

@ -92,7 +92,7 @@ layout_mode = 0
offset_top = -128.0 offset_top = -128.0
offset_bottom = -32.0 offset_bottom = -32.0
input_code = "action_4" input_code = "action_4"
label = "Y" label = "[img]uid://dd8f8gmpc0era[/img]"
[node name="Action3" parent="Actions" instance=ExtResource("2_uu6xs")] [node name="Action3" parent="Actions" instance=ExtResource("2_uu6xs")]
layout_mode = 0 layout_mode = 0
@ -101,7 +101,7 @@ offset_top = -32.0
offset_right = 0.0 offset_right = 0.0
offset_bottom = 64.0 offset_bottom = 64.0
input_code = "action_3" input_code = "action_3"
label = "X" label = "[img]uid://c3cwld6imdmxo[/img]"
[node name="Action2" parent="Actions" instance=ExtResource("2_uu6xs")] [node name="Action2" parent="Actions" instance=ExtResource("2_uu6xs")]
layout_mode = 0 layout_mode = 0
@ -110,14 +110,14 @@ offset_top = -32.0
offset_right = 192.0 offset_right = 192.0
offset_bottom = 64.0 offset_bottom = 64.0
input_code = "action_2" input_code = "action_2"
label = "B" label = "[img]uid://dgmruo36vderr[/img]"
[node name="Action1" parent="Actions" instance=ExtResource("2_uu6xs")] [node name="Action1" parent="Actions" instance=ExtResource("2_uu6xs")]
layout_mode = 0 layout_mode = 0
offset_top = 64.0 offset_top = 64.0
offset_bottom = 160.0 offset_bottom = 160.0
input_code = "action_1" input_code = "action_1"
label = "A" label = "[img]uid://d23pu1ionxes1[/img]"
[node name="MidButtons" type="Control" parent="."] [node name="MidButtons" type="Control" parent="."]
layout_mode = 1 layout_mode = 1
@ -141,7 +141,7 @@ offset_right = -44.0
offset_bottom = 16.0 offset_bottom = 16.0
pivot_offset = Vector2(48, 24) pivot_offset = Vector2(48, 24)
input_code = "select" input_code = "select"
label = "Select" label = "[img width=48]uid://kq8unss5dfnf[/img]"
[node name="Start" parent="MidButtons" instance=ExtResource("2_uu6xs")] [node name="Start" parent="MidButtons" instance=ExtResource("2_uu6xs")]
layout_mode = 0 layout_mode = 0
@ -151,7 +151,7 @@ offset_right = 180.0
offset_bottom = 16.0 offset_bottom = 16.0
pivot_offset = Vector2(48, 24) pivot_offset = Vector2(48, 24)
input_code = "start" input_code = "start"
label = "Start" label = "[img width=48]uid://03m3ethxsomd[/img]"
[node name="ShoulderButtons" type="Control" parent="."] [node name="ShoulderButtons" type="Control" parent="."]
layout_mode = 1 layout_mode = 1
@ -174,7 +174,7 @@ offset_top = -231.0
offset_right = 212.0 offset_right = 212.0
offset_bottom = -167.0 offset_bottom = -167.0
input_code = "r1" input_code = "r1"
label = "R1" label = "[img]uid://wqltrinwradw[/img]"
[node name="R2" parent="ShoulderButtons" instance=ExtResource("3_r0du0")] [node name="R2" parent="ShoulderButtons" instance=ExtResource("3_r0du0")]
layout_mode = 0 layout_mode = 0
@ -183,7 +183,7 @@ offset_top = -261.0
offset_right = 340.0 offset_right = 340.0
offset_bottom = -133.0 offset_bottom = -133.0
input_axis = 5 input_axis = 5
label = "R2" label = "[img width=48]uid://wrst4mxi4mdc[/img]"
[node name="L1" parent="ShoulderButtons" instance=ExtResource("2_uu6xs")] [node name="L1" parent="ShoulderButtons" instance=ExtResource("2_uu6xs")]
layout_mode = 0 layout_mode = 0
@ -192,7 +192,7 @@ offset_top = -233.0
offset_right = -44.0 offset_right = -44.0
offset_bottom = -169.0 offset_bottom = -169.0
input_code = "l1" input_code = "l1"
label = "L1" label = "[img]uid://crjyakxa6idyd[/img]"
[node name="L2" parent="ShoulderButtons" instance=ExtResource("3_r0du0")] [node name="L2" parent="ShoulderButtons" instance=ExtResource("3_r0du0")]
layout_mode = 0 layout_mode = 0
@ -201,7 +201,7 @@ offset_top = -261.0
offset_right = -236.0 offset_right = -236.0
offset_bottom = -133.0 offset_bottom = -133.0
input_axis = 4 input_axis = 4
label = "L2" label = "[img width=48]uid://xl1fiv1qi2sx[/img]"
[node name="LeftJoystick" parent="." instance=ExtResource("4_cm0pq")] [node name="LeftJoystick" parent="." instance=ExtResource("4_cm0pq")]
layout_mode = 1 layout_mode = 1

View File

@ -0,0 +1,6 @@
<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="#FFFFFF" d="M10.85 10.8 L10.9 10.75 Q11.75 10 13 10 14.15 10 15.05 10.75 L15.1 10.8 Q16 11.65 16 12.8 L16 17.25 Q16 18.35 15.1 19.25 L15.05 19.3 Q14.15 20 13 20 11.75 20 10.9 19.3 L10.85 19.2 Q10 18.35 10 17.25 L10 12.8 Q10 11.65 10.85 10.8 M12 12.8 L12 17.25 12.2 17.75 13 18 13.75 17.75 13.75 17.8 14 17.25 14 12.8 13.75 12.25 13.75 12.3 Q13.45 12 13 12 12.55 12 12.2 12.3 L12.25 12.2 12 12.8 M20.1 14 L20.45 13.9 20.7 13.7 20.75 13.7 21 13 20.7 12.25 Q20.45 12 20.05 12 L19 12 19 14 20.1 14 M19 19 L18.7 19.7 Q18.4 20 18 20 L17.3 19.7 Q17 19.4 17 19 L17 11 Q17 10.6 17.3 10.3 17.6 10 18 10 L20.05 10 Q21.25 10 22.1 10.85 23 11.75 23 13 23 14.25 22.1 15.1 L22.1 15.15 21.45 15.65 21.35 15.7 20.1 16 19 16 19 19 M25 12 L24.3 11.7 Q24 11.4 24 11 24 10.6 24.3 10.3 24.6 10 25 10 L29 10 29.7 10.3 30 11 29.7 11.7 29 12 28 12 28 19 27.7 19.7 Q27.4 20 27 20 L26.3 19.7 26 19 26 12 25 12 M36 12.8 L36 17.25 36.2 17.75 37 18 37.75 17.75 37.75 17.8 38 17.25 38 12.8 37.75 12.25 37.75 12.3 Q37.45 12 37 12 36.55 12 36.2 12.3 L36.25 12.2 36 12.8 M34.85 10.8 L34.9 10.75 Q35.75 10 37 10 38.15 10 39.05 10.75 L39.1 10.8 Q40 11.65 40 12.8 L40 17.25 Q40 18.35 39.1 19.25 L39.05 19.3 Q38.15 20 37 20 35.75 20 34.9 19.3 L34.85 19.2 Q34 18.35 34 17.25 L34 12.8 Q34 11.65 34.85 10.8 M33 19 L32.7 19.7 32 20 Q31.6 20 31.3 19.7 31 19.4 31 19 L31 11 Q31 10.6 31.3 10.3 31.6 10 32 10 32.4 10 32.7 10.3 L33 11 33 19 M47 19 L46.8 19.65 46.25 20 45.6 19.9 45.1 19.45 43 15.25 43 19 42.7 19.7 42 20 41.3 19.7 Q41 19.4 41 19 L41 11 Q41 10.65 41.25 10.4 L41.8 10.05 42.45 10.1 42.9 10.55 45 14.75 45 11 Q45 10.6 45.3 10.3 45.6 10 46 10 46.4 10 46.7 10.3 L47 11 47 19 M51 12 Q50.6 12 50.3 12.3 50 12.6 50 13 50 13.4 50.3 13.7 L50.95 14 51.05 14 Q52.2 14 53.1 14.9 54 15.8 54 17 54 18.2 53.1 19.1 52.2 20 51 20 L49 20 Q48.6 20 48.3 19.7 48 19.4 48 19 48 18.6 48.3 18.3 48.6 18 49 18 L51 18 Q51.4 18 51.7 17.7 L52 17 51.7 16.3 Q51.4 16 51.05 16 L50.95 16 Q49.8 16 48.9 15.1 48 14.2 48 13 48 11.8 48.9 10.9 49.8 10 51 10 L53 10 Q53.4 10 53.7 10.3 L54 11 53.7 11.7 53 12 51 12 M32 26 Q35.3 26 37.65 28.35 40 30.7 40 34 L40 46 39.85 47.6 Q39.4 49.9 37.65 51.65 35.3 54 32 54 28.7 54 26.35 51.65 24.6 49.9 24.15 47.6 L24 46 24 34 Q24 30.7 26.35 28.35 28.7 26 32 26 M32 29 Q29.95 29 28.5 30.5 27 31.95 27 34 L27 46 27.1 47 27.1 47.05 Q27.4 48.45 28.5 49.55 29.95 51 32 51 34.05 51 35.55 49.55 36.6 48.45 36.9 47.05 L36.9 47 37 46 37 34 Q37 31.95 35.55 30.5 34.05 29 32 29"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

@ -0,0 +1,43 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://03m3ethxsomd"
path="res://.godot/imported/playstation4_button_options_outline.svg-77e6d0606bb5509eb2308c290b920f40.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/ps/playstation4_button_options_outline.svg"
dest_files=["res://.godot/imported/playstation4_button_options_outline.svg-77e6d0606bb5509eb2308c290b920f40.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
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/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
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

View File

@ -0,0 +1,6 @@
<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="#FFFFFF" d="M28 19 L27.7 19.7 Q27.4 20 27 20 L26.3 19.7 26 19 26 16 24 16 24 19 23.7 19.7 23 20 Q22.6 20 22.3 19.7 22 19.4 22 19 L22 11 Q22 10.6 22.3 10.3 22.6 10 23 10 23.4 10 23.7 10.3 L24 11 24 14 26 14 26 11 Q26 10.6 26.3 10.3 26.6 10 27 10 27.4 10 27.7 10.3 L28 11 28 19 M18 12 Q17.6 12 17.3 12.3 17 12.6 17 13 17 13.4 17.3 13.7 17.6 14 17.95 14 L18.05 14 Q19.2 14 20.1 14.9 21 15.8 21 17 21 18.2 20.1 19.1 19.2 20 18 20 L16 20 15.3 19.7 Q15 19.4 15 19 15 18.6 15.3 18.3 15.6 18 16 18 L18 18 Q18.4 18 18.7 17.7 L19 17 18.7 16.3 Q18.4 16 18.05 16 L17.95 16 Q16.8 16 15.9 15.1 15 14.2 15 13 15 11.8 15.9 10.9 16.8 10 18 10 L20 10 Q20.4 10 20.7 10.3 L21 11 20.7 11.7 20 12 18 12 M39.1 14 L39.45 13.9 39.7 13.7 39.75 13.7 40 13 39.7 12.25 Q39.45 12 39.05 12 L38 12 38 14 39.1 14 M29 12.8 Q29 11.65 29.85 10.8 L29.9 10.75 Q30.75 10 32 10 33.15 10 34.05 10.75 L34.1 10.8 Q35 11.65 35 12.8 L35 19 34.7 19.7 Q34.4 20 34 20 L33.3 19.7 Q33 19.4 33 19 L33 17 31 17 31 19 30.7 19.7 Q30.4 20 30 20 L29.3 19.7 Q29 19.4 29 19 L29 12.8 M31 12.8 L31 15 33 15 33 12.8 32.75 12.25 32.75 12.3 Q32.45 12 32 12 31.55 12 31.2 12.3 L31.25 12.2 Q31 12.45 31 12.8 M41.1 15.1 L41.1 15.15 40.45 15.65 41.9 18.55 41.95 19.35 41.45 19.9 40.7 19.95 Q40.3 19.8 40.1 19.45 L38.4 16 38 16 38 19 37.7 19.7 37 20 36.3 19.7 Q36 19.4 36 19 L36 11 Q36 10.6 36.3 10.3 36.6 10 37 10 L39.05 10 Q40.25 10 41.1 10.85 42 11.75 42 13 42 14.25 41.1 15.1 M43 11 Q43 10.6 43.3 10.3 43.6 10 44 10 L48 10 Q48.4 10 48.7 10.3 L49 11 48.7 11.7 Q48.4 12 48 12 L45 12 45 14 48 14 Q48.4 14 48.7 14.3 L49 15 48.7 15.7 Q48.4 16 48 16 L45 16 45 18 48 18 Q48.4 18 48.7 18.3 L49 19 48.7 19.7 Q48.4 20 48 20 L44 20 Q43.6 20 43.3 19.7 43 19.4 43 19 L43 11 M32 26 Q35.3 26 37.65 28.35 40 30.7 40 34 L40 46 Q40 49.3 37.65 51.65 35.3 54 32 54 28.7 54 26.35 51.65 24 49.3 24 46 L24 34 Q24 30.7 26.35 28.35 28.7 26 32 26 M28.5 30.5 Q27 31.95 27 34 L27 46 Q27 48.05 28.5 49.55 29.95 51 32 51 34.05 51 35.55 49.55 37 48.05 37 46 L37 34 Q37 31.95 35.55 30.5 34.05 29 32 29 29.95 29 28.5 30.5"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

@ -0,0 +1,43 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://kq8unss5dfnf"
path="res://.godot/imported/playstation4_button_share_outline.svg-4f4652eb7ab725d653f9667c098274d0.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/ps/playstation4_button_share_outline.svg"
dest_files=["res://.godot/imported/playstation4_button_share_outline.svg-4f4652eb7ab725d653f9667c098274d0.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
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/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
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

View File

@ -0,0 +1,6 @@
<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="#FFFFFF" d="M32 11 Q23.3 11 17.15 17.15 11 23.3 11 32 11 40.75 17.15 46.85 23.3 53 32 53 40.75 53 46.85 46.85 53 40.75 53 32 53 23.3 46.85 17.15 40.75 11 32 11 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 M37.7 26.35 Q35.35 24 32 24 28.7 24 26.4 26.35 L26.35 26.35 Q24 28.7 24 32 24 35.3 26.35 37.65 L26.4 37.7 Q28.7 40 32 40 35.35 40 37.7 37.7 40 35.35 40 32 40 28.65 37.7 26.35 M44 32 Q44 37 40.5 40.5 37 44 32 44 27.05 44 23.55 40.5 20 37 20 32 20 27 23.55 23.5 27.05 20 32 20 37 20 40.5 23.5 44 27 44 32"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 754 B

View File

@ -0,0 +1,43 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://dgmruo36vderr"
path="res://.godot/imported/playstation_button_circle_outline.svg-705c9764db2abb57c1c4304936afa4ed.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/ps/playstation_button_circle_outline.svg"
dest_files=["res://.godot/imported/playstation_button_circle_outline.svg-705c9764db2abb57c1c4304936afa4ed.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
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/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
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

View File

@ -0,0 +1,6 @@
<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="#FFFFFF" d="M11 32 Q11 40.75 17.15 46.85 23.3 53 32 53 40.75 53 46.85 46.85 53 40.75 53 32 53 23.3 46.85 17.15 40.75 11 32 11 23.3 11 17.15 17.15 11 23.3 11 32 M22.8 20 L32 29.2 41.2 20 44 22.8 34.8 32 44 41.2 41.2 44 32 34.8 22.8 44 20 41.2 29.2 32 20 22.8 22.8 20 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"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 557 B

View File

@ -0,0 +1,43 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://d23pu1ionxes1"
path="res://.godot/imported/playstation_button_cross_outline.svg-234fb69d320952d642ac672b91954046.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/ps/playstation_button_cross_outline.svg"
dest_files=["res://.godot/imported/playstation_button_cross_outline.svg-234fb69d320952d642ac672b91954046.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
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/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
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

View File

@ -0,0 +1,6 @@
<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="#FFFFFF" d="M46.85 17.15 Q40.75 11 32 11 23.3 11 17.15 17.15 11 23.3 11 32 11 40.75 17.15 46.85 23.3 53 32 53 40.75 53 46.85 46.85 53 40.75 53 32 53 23.3 46.85 17.15 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 M20 20 L44 20 44 44 20 44 20 20 M24 40 L40 40 40 24 24 24 24 40"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 521 B

View File

@ -0,0 +1,43 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://c3cwld6imdmxo"
path="res://.godot/imported/playstation_button_square_outline.svg-a1e129c0ead780502a9d3b757b710784.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/ps/playstation_button_square_outline.svg"
dest_files=["res://.godot/imported/playstation_button_square_outline.svg-a1e129c0ead780502a9d3b757b710784.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
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/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
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

View File

@ -0,0 +1,6 @@
<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="#FFFFFF" d="M17.15 17.15 Q11 23.3 11 32 11 40.75 17.15 46.85 23.3 53 32 53 40.75 53 46.85 46.85 53 40.75 53 32 53 23.3 46.85 17.15 40.75 11 32 11 23.3 11 17.15 17.15 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 21.45 8.6 30.35 8.05 L32 8 33.7 8.05 Q42.6 8.6 48.95 15 56 22.05 56 32 M46 42 L18 42 32 18 46 42 M32 25.95 L25 38 39.05 38 32 25.95"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 547 B

View File

@ -0,0 +1,43 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://dd8f8gmpc0era"
path="res://.godot/imported/playstation_button_triangle_outline.svg-dd07a659f942de4953e7b2b2f334e409.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/ps/playstation_button_triangle_outline.svg"
dest_files=["res://.godot/imported/playstation_button_triangle_outline.svg-dd07a659f942de4953e7b2b2f334e409.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
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/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
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

View File

@ -0,0 +1,6 @@
<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="#FFFFFF" d="M42 23 L42 40 38 40 38 32.95 38 32.85 38 27.95 35 27.95 35 26 38 23 42 23 M56 20 L56 40 Q56 44.95 49 48.5 41.95 52 32 52 22.05 52 15.05 48.5 8 44.95 8 40 L8 20 Q8 12 16 12 L48 12 Q56 12 56 20 M16 15 Q11 15 11 20 L11 40 Q11.35 43.25 16.4 45.85 22.85 49 32 49 41.15 49 47.7 45.85 L47.65 45.85 Q52.7 43.25 53 40 L53 20 Q53 15 48 15 L16 15 M22 23 L26 23 26 36 34 36 34 40 22 40 22 23"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 561 B

View File

@ -0,0 +1,43 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://crjyakxa6idyd"
path="res://.godot/imported/playstation_trigger_l1_alternative_outline.svg-f59ed484aa1e2dac880c7c6340c6f0e4.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/ps/playstation_trigger_l1_alternative_outline.svg"
dest_files=["res://.godot/imported/playstation_trigger_l1_alternative_outline.svg-f59ed484aa1e2dac880c7c6340c6f0e4.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
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/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
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

View File

@ -0,0 +1,6 @@
<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="#FFFFFF" d="M16 49 L48 49 Q53 49 53 44 L53 24 Q52.7 20.75 47.65 18.2 L47.7 18.2 Q41.15 15 32 15 22.85 15 16.4 18.2 11.35 20.75 11 24 L11 44 Q11 49 16 49 M40.5 28.4 Q40.1 28 39.5 28 L37.95 28 37.85 28 Q37.55 28.05 37.3 28.3 37 28.6 37 29 L33 29 33.1 28 Q33.35 26.6 34.4 25.5 L34.5 25.4 Q35.9 24.05 37.85 24 L39.5 24 Q41.75 24 43.35 25.6 L43.4 25.65 44.4 27 Q45.65 30.35 43.45 32.55 L39 37 45 37 45 41 37.95 41 37.85 41 33 41 33 37 40 30.45 Q41.25 29.15 40.5 28.4 M56 44 Q56 52 48 52 L16 52 Q8 52 8 44 L8 24 Q8 19.05 15.05 15.5 22.05 12 32 12 41.95 12 49 15.5 56 19.05 56 24 L56 44 M19 24 L23 24 23 37 31 37 31 41 19 41 19 24"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 793 B

View File

@ -0,0 +1,43 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://xl1fiv1qi2sx"
path="res://.godot/imported/playstation_trigger_l2_alternative_outline.svg-d8e56af6f252b46772b1b92585a1cef7.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/ps/playstation_trigger_l2_alternative_outline.svg"
dest_files=["res://.godot/imported/playstation_trigger_l2_alternative_outline.svg-d8e56af6f252b46772b1b92585a1cef7.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
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/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
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

View File

@ -0,0 +1,6 @@
<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="#FFFFFF" d="M56 20 L56 40 Q56 44.95 49 48.5 41.95 52 32 52 22.05 52 15.05 48.5 8 44.95 8 40 L8 20 Q8 12 16 12 L48 12 Q56 12 56 20 M21 23 L28 23 Q30.5 23 32.25 24.75 34 26.5 34 29 34 31.45 32.25 33.2 L32.2 33.25 31.45 33.9 34.5 40 30.5 40 28 35 25 35 25 40 21 40 21 23 M11 20 L11 40 Q11.35 43.25 16.4 45.85 22.85 49 32 49 41.15 49 47.7 45.85 L47.65 45.85 Q52.7 43.25 53 40 L53 20 Q53 15 48 15 L16 15 Q11 15 11 20 M43 23 L43 40 39 40 39 32.95 39 32.85 39 27.95 36 27.95 36 26 39 23 43 23 M28 27 L25 27 25 31 28 31 Q28.8 31 29.35 30.45 L29.45 30.35 Q30 29.8 30 29 30 28.2 29.4 27.6 28.8 27 28 27"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 762 B

View File

@ -0,0 +1,43 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://wqltrinwradw"
path="res://.godot/imported/playstation_trigger_r1_alternative_outline.svg-e911b00d42cf67467c04704d67180885.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/ps/playstation_trigger_r1_alternative_outline.svg"
dest_files=["res://.godot/imported/playstation_trigger_r1_alternative_outline.svg-e911b00d42cf67467c04704d67180885.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
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/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
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

View File

@ -0,0 +1,6 @@
<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="#FFFFFF" d="M16 49 L48 49 Q53 49 53 44 L53 24 Q52.7 20.75 47.65 18.2 L47.7 18.2 Q41.15 15 32 15 22.85 15 16.4 18.2 11.35 20.75 11 24 L11 44 Q11 49 16 49 M41.5 28.4 Q41.1 28 40.5 28 L38.95 28 38.85 28 38.3 28.3 Q38 28.6 38 29 L34 29 34.1 28 Q34.35 26.6 35.4 25.5 L35.5 25.4 Q36.9 24.05 38.85 24 L40.5 24 Q42.75 24 44.35 25.6 L44.4 25.65 45.4 27 Q46.65 30.35 44.45 32.55 L40 37 46 37 46 41 38.95 41 38.85 41 34 41 34 37 41 30.45 Q42.25 29.15 41.5 28.4 M25 28 L22 28 22 32 25 32 Q25.8 32 26.35 31.45 L26.45 31.35 Q27 30.8 27 30 27 29.2 26.4 28.6 25.8 28 25 28 M18 24 L25 24 Q27.5 24 29.25 25.75 31 27.5 31 30 31 32.45 29.25 34.2 L29.2 34.25 28.45 34.9 31.5 41 27.5 41 25 36 22 36 22 41 18 41 18 24 M56 44 Q56 52 48 52 L16 52 Q8 52 8 44 L8 24 Q8 19.05 15.05 15.5 22.05 12 32 12 41.95 12 49 15.5 56 19.05 56 24 L56 44"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 982 B

View File

@ -0,0 +1,43 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://wrst4mxi4mdc"
path="res://.godot/imported/playstation_trigger_r2_alternative_outline.svg-58c3c73fd759a6c651df39a9a49dd4e7.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/ps/playstation_trigger_r2_alternative_outline.svg"
dest_files=["res://.godot/imported/playstation_trigger_r2_alternative_outline.svg-58c3c73fd759a6c651df39a9a49dd4e7.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
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/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
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

View File

@ -11,16 +11,17 @@ const JOYSTICK_LABELS := "joystick_labels"
const TRACK_JOYSTICK_MOVEMENT := "track_joystick_movement" const TRACK_JOYSTICK_MOVEMENT := "track_joystick_movement"
const TRACK_JOYSTICK_DRIFT := "track_joystick_drift" const TRACK_JOYSTICK_DRIFT := "track_joystick_drift"
const BUTTONS_LABELS := "buttons_labels" const BUTTONS_LABELS := "buttons_labels"
const DEFAULT_COLOR := "default_color" const DEFAULT_JOYSTICK_COLOR := "default_joystick_color"
const DEFAULT_BUTTON_COLOR := "default_button_color"
const ACTIVE_COLOR := "active_color" const ACTIVE_COLOR := "active_color"
const TEXT_COLOR := "text_color" const TEXT_COLOR := "text_color"
const COLOR_BUTTON_TEXT := "color_button_text"
var _config: ConfigFile var _config: ConfigFile
# Settings # Settings
static var device_label := ConfigOption.new(SETTINGS_SECTION, DEVICE_LABEL, true) static var device_label := ConfigOption.new(SETTINGS_SECTION, DEVICE_LABEL, true)
static var background_color := ConfigOption.new(SETTINGS_SECTION, BACKGROUND_COLOR, Color(0x4d4d4dff)) static var background_color := ConfigOption.new(SETTINGS_SECTION, BACKGROUND_COLOR, Color(0x4d4d4dff))
static var default_color := ConfigOption.new(SETTINGS_SECTION, DEFAULT_COLOR, Color(0x2a2a2aff))
static var active_color := ConfigOption.new(SETTINGS_SECTION, ACTIVE_COLOR, Color(0x4a8e53ff)) static var active_color := ConfigOption.new(SETTINGS_SECTION, ACTIVE_COLOR, Color(0x4a8e53ff))
static var text_color := ConfigOption.new(SETTINGS_SECTION, TEXT_COLOR, Color(0xffffffff)) static var text_color := ConfigOption.new(SETTINGS_SECTION, TEXT_COLOR, Color(0xffffffff))
@ -28,9 +29,12 @@ static var text_color := ConfigOption.new(SETTINGS_SECTION, TEXT_COLOR, Color(0x
static var joystick_labels := ConfigOption.new(JOYSTICK_SECTION, JOYSTICK_LABELS, true) static var joystick_labels := ConfigOption.new(JOYSTICK_SECTION, JOYSTICK_LABELS, true)
static var track_joystick_movement := ConfigOption.new(JOYSTICK_SECTION, TRACK_JOYSTICK_MOVEMENT, true) static var track_joystick_movement := ConfigOption.new(JOYSTICK_SECTION, TRACK_JOYSTICK_MOVEMENT, true)
static var track_joystick_drift := ConfigOption.new(JOYSTICK_SECTION, TRACK_JOYSTICK_DRIFT, true) static var track_joystick_drift := ConfigOption.new(JOYSTICK_SECTION, TRACK_JOYSTICK_DRIFT, true)
static var default_joystick_color := ConfigOption.new(JOYSTICK_SECTION, DEFAULT_JOYSTICK_COLOR, Color(0x2a2a2aff))
# Buttons # Buttons
static var buttons_labels := ConfigOption.new(BUTTONS_SECTION, BUTTONS_LABELS, true) static var buttons_labels := ConfigOption.new(BUTTONS_SECTION, BUTTONS_LABELS, true)
static var default_button_color := ConfigOption.new(BUTTONS_SECTION, DEFAULT_BUTTON_COLOR, Color(0x2a2a2aff))
static var color_button_text := ConfigOption.new(BUTTONS_SECTION, COLOR_BUTTON_TEXT, false)
func _ready() -> void: func _ready() -> void:
self._config = ConfigFile.new() self._config = ConfigFile.new()

View File

@ -2,6 +2,8 @@
class_name ControllerButton class_name ControllerButton
extends ColorRect extends ColorRect
const text_shader = preload("uid://crnhvx5xfqmj7")
@onready var label_node: RichTextLabel = $Label @onready var label_node: RichTextLabel = $Label
@export var input_code: String @export var input_code: String
@ -9,16 +11,37 @@ extends ColorRect
set(val): set(val):
label = val label = val
if Engine.is_editor_hint() && self.label_node != null: if Engine.is_editor_hint() && self.label_node != null:
self.label_node.text = label if val.begins_with("uid://"):
self.label_node.text = "[img]%s[/img]" % label
else:
self.label_node.text = label
var default_color: Color
var active_color: Color
var text_color: Color
func _ready() -> void: func _ready() -> void:
self.default_color = Config.default_button_color.value
self.active_color = Config.active_color.value
self.text_color = Config.text_color.value
if Config.buttons_labels.value: if Config.buttons_labels.value:
self.label_node.text = self.label self.label_node.text = self.label
else: else:
self.label_node.text = "" self.label_node.text = ""
var text_color: Color = Config.text_color.value self.label_node.add_theme_color_override("default_color", self.text_color)
self.label_node.add_theme_color_override("default_color", text_color) self.color = default_color
assert(self.input_code, "Missing input code for %s" % self.name) assert(self.input_code, "Missing input code for %s" % self.name)
assert(InputMap.has_action(self.input_code), "Invalid input code for %s" % self.name) assert(InputMap.has_action(self.input_code), "Invalid input code for %s" % self.name)
func _process(_delta: float) -> void:
if Engine.is_editor_hint():
return
var has_action_pressed := Input.is_action_pressed(self.input_code)
if Config.color_button_text.value:
self.label_node.set_instance_shader_parameter("TextColor", self.active_color if has_action_pressed else self.text_color)
else:
self.color = self.active_color if has_action_pressed else self.default_color

View File

@ -1,5 +1,6 @@
[gd_scene load_steps=2 format=3 uid="uid://bkw6xqubudrtw"] [gd_scene load_steps=3 format=3 uid="uid://bkw6xqubudrtw"]
[ext_resource type="Material" uid="uid://crnhvx5xfqmj7" path="res://controller/text_shader.tres" id="2_dmmye"]
[ext_resource type="Script" uid="uid://5ud76wl43q3w" path="res://controller/button/controller_button.gd" id="2_t8ak6"] [ext_resource type="Script" uid="uid://5ud76wl43q3w" path="res://controller/button/controller_button.gd" id="2_t8ak6"]
[node name="Button" type="ColorRect" groups=["buttons"]] [node name="Button" type="ColorRect" groups=["buttons"]]
@ -10,6 +11,7 @@ color = Color(0.164706, 0.164706, 0.164706, 1)
script = ExtResource("2_t8ak6") script = ExtResource("2_t8ak6")
[node name="Label" type="RichTextLabel" parent="."] [node name="Label" type="RichTextLabel" parent="."]
material = ExtResource("2_dmmye")
layout_mode = 1 layout_mode = 1
anchors_preset = 15 anchors_preset = 15
anchor_right = 1.0 anchor_right = 1.0
@ -18,6 +20,7 @@ grow_horizontal = 2
grow_vertical = 2 grow_vertical = 2
theme_override_font_sizes/normal_font_size = 24 theme_override_font_sizes/normal_font_size = 24
bbcode_enabled = true bbcode_enabled = true
text = "Up" scroll_active = false
autowrap_mode = 0
horizontal_alignment = 1 horizontal_alignment = 1
vertical_alignment = 1 vertical_alignment = 1

View File

@ -3,12 +3,8 @@ extends Control
@onready var device_name: RichTextLabel = $Device @onready var device_name: RichTextLabel = $Device
var _has_joy := false var _has_joy := false
var _buttons: Array[Node]
var _triggers: Array[Node]
func _ready() -> void: func _ready() -> void:
self._buttons = self.get_tree().get_nodes_in_group("buttons")
self._triggers = self.get_tree().get_nodes_in_group("triggers")
if Input.get_connected_joypads().size() > 0: if Input.get_connected_joypads().size() > 0:
self.device_name.text = Input.get_joy_name(0) if Config.device_label.value else "" self.device_name.text = Input.get_joy_name(0) if Config.device_label.value else ""
self._has_joy = true self._has_joy = true
@ -18,26 +14,7 @@ func _process(_delta: float) -> void:
if Input.get_connected_joypads().size() > 0: if Input.get_connected_joypads().size() > 0:
self.device_name.text = Input.get_joy_name(0) self.device_name.text = Input.get_joy_name(0)
self._has_joy = true self._has_joy = true
return else:
if Input.get_connected_joypads().size() <= 0:
if Input.get_connected_joypads().size() <= 0: self.device_name.text = WyHelper.NO_DEVICE
self._has_joy = false self._has_joy = false
self.device_name.text = WyHelper.NO_DEVICE
return
for btn in self._buttons:
if not btn is ControllerButton:
continue
var cbtn := btn as ControllerButton
cbtn.color = Config.default_color.value
if cbtn.input_code && Input.is_action_pressed(cbtn.input_code):
cbtn.color = Config.active_color.value
for btn in self._triggers:
if not btn is ControllerTrigger:
continue
var cbtn := btn as ControllerTrigger
cbtn.value = Input.get_joy_axis(0, cbtn.input_axis)

View File

@ -14,9 +14,9 @@ var _last_y := 0.0
func _ready() -> void: func _ready() -> void:
self._dot_style = box_theme.duplicate() self._dot_style = box_theme.duplicate()
self.pos.add_theme_stylebox_override("panel", self._dot_style) self.pos.add_theme_stylebox_override("panel", self._dot_style)
self._dot_style.bg_color = Config.default_color.value self._dot_style.bg_color = Config.default_joystick_color.value
var bg_color: Color = Config.default_color.value var bg_color: Color = Config.default_joystick_color.value
(self.get_theme_stylebox("panel") as StyleBoxFlat).border_color = bg_color (self.get_theme_stylebox("panel") as StyleBoxFlat).border_color = bg_color
func _process(_delta: float) -> void: func _process(_delta: float) -> void:
@ -39,7 +39,7 @@ func _process(_delta: float) -> void:
elif Config.track_joystick_drift.value && (is_drifting || is_stuck): elif Config.track_joystick_drift.value && (is_drifting || is_stuck):
self._dot_style.bg_color = WyHelper.ERROR_COLOR self._dot_style.bg_color = WyHelper.ERROR_COLOR
else: else:
self._dot_style.bg_color = Config.default_color.value self._dot_style.bg_color = Config.default_joystick_color.value
if Config.joystick_labels.value: if Config.joystick_labels.value:
self.label_node.text = "x:%0.2f y:%0.2f" % [x, y] self.label_node.text = "x:%0.2f y:%0.2f" % [x, y]

View File

@ -0,0 +1,34 @@
[gd_resource type="ShaderMaterial" load_steps=3 format=3 uid="uid://crnhvx5xfqmj7"]
[sub_resource type="VisualShaderNodeColorParameter" id="VisualShaderNodeColorParameter_i05ah"]
parameter_name = "TextColor"
qualifier = 2
default_value_enabled = true
[sub_resource type="VisualShader" id="VisualShader_6fe4d"]
code = "shader_type canvas_item;
render_mode blend_mix;
instance uniform vec4 TextColor : source_color = vec4(1.000000, 1.000000, 1.000000, 1.000000);
void vertex() {
// ColorParameter:2
vec4 n_out2p0 = TextColor;
// Output:0
COLOR.rgb = vec3(n_out2p0.xyz);
}
"
mode = 1
flags/light_only = false
nodes/vertex/2/node = SubResource("VisualShaderNodeColorParameter_i05ah")
nodes/vertex/2/position = Vector2(-40, 140)
nodes/vertex/connections = PackedInt32Array(2, 0, 0, 2)
[resource]
shader = SubResource("VisualShader_6fe4d")

View File

@ -19,15 +19,16 @@ func _ready() -> void:
self.label_node.text = "" self.label_node.text = ""
self.progress_label.text = "" self.progress_label.text = ""
var bg_color: Color = Config.default_color.value var bg_color: Color = Config.default_button_color.value
var fill_color: Color = Config.active_color.value var fill_color: Color = Config.active_color.value
(self.get_theme_stylebox("background") as StyleBoxFlat).border_color = bg_color (self.get_theme_stylebox("background") as StyleBoxFlat).border_color = bg_color
(self.get_theme_stylebox("fill") as StyleBoxFlat).bg_color = fill_color (self.get_theme_stylebox("fill") as StyleBoxFlat).bg_color = fill_color
var text_color: Color = Config.text_color.value
self.label_node.add_theme_color_override("default_color", text_color)
self.progress_label.add_theme_color_override("default_color", text_color)
func _process(_delta: float) -> void: func _process(_delta: float) -> void:
if !Engine.is_editor_hint() && Config.buttons_labels.value: if Engine.is_editor_hint():
return
if Config.buttons_labels.value:
self.progress_label.text = "%s%%" % str(self.value * 100.0) self.progress_label.text = "%s%%" % str(self.value * 100.0)
self.value = Input.get_joy_axis(0, self.input_axis)

View File

@ -1,6 +1,7 @@
[gd_scene load_steps=4 format=3 uid="uid://c1dixxyohl131"] [gd_scene load_steps=5 format=3 uid="uid://c1dixxyohl131"]
[ext_resource type="Script" uid="uid://dyjkb4jlrolof" path="res://controller/trigger/trigger_button.gd" id="1_w0n5r"] [ext_resource type="Script" uid="uid://dyjkb4jlrolof" path="res://controller/trigger/trigger_button.gd" id="1_w0n5r"]
[ext_resource type="Material" uid="uid://crnhvx5xfqmj7" path="res://controller/text_shader.tres" id="2_w7kec"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_lt7ru"] [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_lt7ru"]
bg_color = Color(0.6, 0.6, 0.6, 0) bg_color = Color(0.6, 0.6, 0.6, 0)
@ -41,6 +42,7 @@ show_percentage = false
script = ExtResource("1_w0n5r") script = ExtResource("1_w0n5r")
[node name="Label" type="RichTextLabel" parent="."] [node name="Label" type="RichTextLabel" parent="."]
material = ExtResource("2_w7kec")
layout_mode = 1 layout_mode = 1
anchors_preset = 10 anchors_preset = 10
anchor_right = 1.0 anchor_right = 1.0
@ -48,10 +50,13 @@ offset_bottom = 40.0
grow_horizontal = 2 grow_horizontal = 2
theme_override_font_sizes/normal_font_size = 24 theme_override_font_sizes/normal_font_size = 24
bbcode_enabled = true bbcode_enabled = true
scroll_active = false
autowrap_mode = 0
horizontal_alignment = 1 horizontal_alignment = 1
vertical_alignment = 1 vertical_alignment = 1
[node name="ProgressLabel" type="RichTextLabel" parent="."] [node name="ProgressLabel" type="RichTextLabel" parent="."]
material = ExtResource("2_w7kec")
layout_mode = 1 layout_mode = 1
anchors_preset = 12 anchors_preset = 12
anchor_top = 1.0 anchor_top = 1.0

View File

@ -111,30 +111,11 @@ r1={
"events": [Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"button_index":10,"pressure":0.0,"pressed":false,"script":null) "events": [Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"button_index":10,"pressure":0.0,"pressed":false,"script":null)
] ]
} }
r2={
"deadzone": 0.0,
"events": [Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":-1,"axis":5,"axis_value":1.0,"script":null)
]
}
r3={
"deadzone": 0.5,
"events": [Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"button_index":8,"pressure":0.0,"pressed":false,"script":null)
]
}
l1={ l1={
"deadzone": 0.5, "deadzone": 0.5,
"events": [Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"button_index":9,"pressure":0.0,"pressed":false,"script":null) "events": [Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"button_index":9,"pressure":0.0,"pressed":false,"script":null)
] ]
} }
l2={
"deadzone": 0.2,
"events": []
}
l3={
"deadzone": 0.5,
"events": [Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"button_index":7,"pressure":0.0,"pressed":false,"script":null)
]
}
[rendering] [rendering]