Merge pull request #51 from Nitwel/testing
Add credits, media player, a lot of bug fixes and ui improvements
This commit is contained in:
commit
2d92628a51
|
@ -139,6 +139,7 @@ Thus I've decided to use a custom event system that is similar to the one used i
|
|||
|
||||
| Group | Description |
|
||||
| -- | -- |
|
||||
| `entity` | Marks the object as being an entity placed in space |
|
||||
| `ui_focus` | The element can be focused |
|
||||
| `ui_focus_skip` | The focus will not be reset. Useful for keyboard |
|
||||
|
||||
|
@ -182,3 +183,7 @@ Click at the link to get a list of the supported controls.
|
|||
- Ckeck Internet under the permissions
|
||||
- Under Resources > Filters to export, add `*.j2`
|
||||
7. `<uses-feature android:name="com.oculus.feature.CONTEXTUAL_BOUNDARYLESS_APP" android:required="true" />` can be added to the `AndroidManifest.xml` to disable the boundary system.
|
||||
|
||||
## Troubleshooting
|
||||
|
||||
- If you encounter unexpected behavior when building compared to running locally, it may be that the cached data of godot is corrupted or outdated. Try deleting the `.godot` folder and / or all `*.import` files.
|
|
@ -3,25 +3,27 @@
|
|||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://dbbxlk5acoxfg"
|
||||
path="res://.godot/imported/Hold trigger to continue.png-ce0a3a4de13c262f7015326bad2cb09d.ctex"
|
||||
path.s3tc="res://.godot/imported/Hold trigger to continue.png-ce0a3a4de13c262f7015326bad2cb09d.s3tc.ctex"
|
||||
path.etc2="res://.godot/imported/Hold trigger to continue.png-ce0a3a4de13c262f7015326bad2cb09d.etc2.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
"imported_formats": ["s3tc_bptc", "etc2_astc"],
|
||||
"vram_texture": true
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://addons/godot-xr-tools/assets/misc/Hold trigger to continue.png"
|
||||
dest_files=["res://.godot/imported/Hold trigger to continue.png-ce0a3a4de13c262f7015326bad2cb09d.ctex"]
|
||||
dest_files=["res://.godot/imported/Hold trigger to continue.png-ce0a3a4de13c262f7015326bad2cb09d.s3tc.ctex", "res://.godot/imported/Hold trigger to continue.png-ce0a3a4de13c262f7015326bad2cb09d.etc2.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/mode=2
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/generate=true
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
|
@ -31,4 +33,4 @@ 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
|
||||
detect_3d/compress_to=0
|
||||
|
|
|
@ -3,25 +3,27 @@
|
|||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://b77u06jwo4l5y"
|
||||
path="res://.godot/imported/progress_bar.png-2ef3cbffca173889900be004fdeb1700.ctex"
|
||||
path.s3tc="res://.godot/imported/progress_bar.png-2ef3cbffca173889900be004fdeb1700.s3tc.ctex"
|
||||
path.etc2="res://.godot/imported/progress_bar.png-2ef3cbffca173889900be004fdeb1700.etc2.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
"imported_formats": ["s3tc_bptc", "etc2_astc"],
|
||||
"vram_texture": true
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://addons/godot-xr-tools/assets/misc/progress_bar.png"
|
||||
dest_files=["res://.godot/imported/progress_bar.png-2ef3cbffca173889900be004fdeb1700.ctex"]
|
||||
dest_files=["res://.godot/imported/progress_bar.png-2ef3cbffca173889900be004fdeb1700.s3tc.ctex", "res://.godot/imported/progress_bar.png-2ef3cbffca173889900be004fdeb1700.etc2.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/mode=2
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/generate=true
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
|
@ -31,4 +33,4 @@ 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
|
||||
detect_3d/compress_to=0
|
||||
|
|
|
@ -3,25 +3,27 @@
|
|||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://ura2vjsqegjt"
|
||||
path="res://.godot/imported/caucasian_baseColor.png-2ffa4b91e9a1b3bcc11c22eccd941be7.ctex"
|
||||
path.s3tc="res://.godot/imported/caucasian_baseColor.png-2ffa4b91e9a1b3bcc11c22eccd941be7.s3tc.ctex"
|
||||
path.etc2="res://.godot/imported/caucasian_baseColor.png-2ffa4b91e9a1b3bcc11c22eccd941be7.etc2.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
"imported_formats": ["s3tc_bptc", "etc2_astc"],
|
||||
"vram_texture": true
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://addons/godot-xr-tools/hands/textures/caucasian_baseColor.png"
|
||||
dest_files=["res://.godot/imported/caucasian_baseColor.png-2ffa4b91e9a1b3bcc11c22eccd941be7.ctex"]
|
||||
dest_files=["res://.godot/imported/caucasian_baseColor.png-2ffa4b91e9a1b3bcc11c22eccd941be7.s3tc.ctex", "res://.godot/imported/caucasian_baseColor.png-2ffa4b91e9a1b3bcc11c22eccd941be7.etc2.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/mode=2
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/generate=true
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
|
@ -31,4 +33,4 @@ 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
|
||||
detect_3d/compress_to=0
|
||||
|
|
|
@ -3,25 +3,27 @@
|
|||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://deh22migllf4t"
|
||||
path="res://.godot/imported/cleaning_glove_baseColor.png-775896445d04c5f9ecad1dcd0609e336.ctex"
|
||||
path.s3tc="res://.godot/imported/cleaning_glove_baseColor.png-775896445d04c5f9ecad1dcd0609e336.s3tc.ctex"
|
||||
path.etc2="res://.godot/imported/cleaning_glove_baseColor.png-775896445d04c5f9ecad1dcd0609e336.etc2.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
"imported_formats": ["s3tc_bptc", "etc2_astc"],
|
||||
"vram_texture": true
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://addons/godot-xr-tools/hands/textures/cleaning_glove_baseColor.png"
|
||||
dest_files=["res://.godot/imported/cleaning_glove_baseColor.png-775896445d04c5f9ecad1dcd0609e336.ctex"]
|
||||
dest_files=["res://.godot/imported/cleaning_glove_baseColor.png-775896445d04c5f9ecad1dcd0609e336.s3tc.ctex", "res://.godot/imported/cleaning_glove_baseColor.png-775896445d04c5f9ecad1dcd0609e336.etc2.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/mode=2
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/generate=true
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
|
@ -31,4 +33,4 @@ 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
|
||||
detect_3d/compress_to=0
|
||||
|
|
|
@ -3,25 +3,27 @@
|
|||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://daphmv2yp22x"
|
||||
path="res://.godot/imported/glove_caucasian_dark_camo.png-338e35680a2de0f7c6ad596eba6a3d5f.ctex"
|
||||
path.s3tc="res://.godot/imported/glove_caucasian_dark_camo.png-338e35680a2de0f7c6ad596eba6a3d5f.s3tc.ctex"
|
||||
path.etc2="res://.godot/imported/glove_caucasian_dark_camo.png-338e35680a2de0f7c6ad596eba6a3d5f.etc2.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
"imported_formats": ["s3tc_bptc", "etc2_astc"],
|
||||
"vram_texture": true
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://addons/godot-xr-tools/hands/textures/glove_caucasian_dark_camo.png"
|
||||
dest_files=["res://.godot/imported/glove_caucasian_dark_camo.png-338e35680a2de0f7c6ad596eba6a3d5f.ctex"]
|
||||
dest_files=["res://.godot/imported/glove_caucasian_dark_camo.png-338e35680a2de0f7c6ad596eba6a3d5f.s3tc.ctex", "res://.godot/imported/glove_caucasian_dark_camo.png-338e35680a2de0f7c6ad596eba6a3d5f.etc2.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/mode=2
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/generate=true
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
|
@ -31,4 +33,4 @@ 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
|
||||
detect_3d/compress_to=0
|
||||
|
|
|
@ -3,25 +3,27 @@
|
|||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://bvbbghjfsau1b"
|
||||
path="res://.godot/imported/glove_caucasian_green_camo.png-009f6b98bc0f9d73ac78a6b6900a0d00.ctex"
|
||||
path.s3tc="res://.godot/imported/glove_caucasian_green_camo.png-009f6b98bc0f9d73ac78a6b6900a0d00.s3tc.ctex"
|
||||
path.etc2="res://.godot/imported/glove_caucasian_green_camo.png-009f6b98bc0f9d73ac78a6b6900a0d00.etc2.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
"imported_formats": ["s3tc_bptc", "etc2_astc"],
|
||||
"vram_texture": true
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://addons/godot-xr-tools/hands/textures/glove_caucasian_green_camo.png"
|
||||
dest_files=["res://.godot/imported/glove_caucasian_green_camo.png-009f6b98bc0f9d73ac78a6b6900a0d00.ctex"]
|
||||
dest_files=["res://.godot/imported/glove_caucasian_green_camo.png-009f6b98bc0f9d73ac78a6b6900a0d00.s3tc.ctex", "res://.godot/imported/glove_caucasian_green_camo.png-009f6b98bc0f9d73ac78a6b6900a0d00.etc2.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/mode=2
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/generate=true
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
|
@ -31,4 +33,4 @@ 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
|
||||
detect_3d/compress_to=0
|
||||
|
|
|
@ -3,32 +3,34 @@
|
|||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://duqdr6qqrim0s"
|
||||
path="res://.godot/imported/glove_fingerless_normal.png-46736b8f0a977e37b17257f7bbbb718f.ctex"
|
||||
path.s3tc="res://.godot/imported/glove_fingerless_normal.png-46736b8f0a977e37b17257f7bbbb718f.s3tc.ctex"
|
||||
path.etc2="res://.godot/imported/glove_fingerless_normal.png-46736b8f0a977e37b17257f7bbbb718f.etc2.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
"imported_formats": ["s3tc_bptc", "etc2_astc"],
|
||||
"vram_texture": true
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://addons/godot-xr-tools/hands/textures/glove_fingerless_normal.png"
|
||||
dest_files=["res://.godot/imported/glove_fingerless_normal.png-46736b8f0a977e37b17257f7bbbb718f.ctex"]
|
||||
dest_files=["res://.godot/imported/glove_fingerless_normal.png-46736b8f0a977e37b17257f7bbbb718f.s3tc.ctex", "res://.godot/imported/glove_fingerless_normal.png-46736b8f0a977e37b17257f7bbbb718f.etc2.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/mode=2
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/normal_map=1
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/generate=true
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
roughness/mode=1
|
||||
roughness/src_normal="res://addons/godot-xr-tools/hands/textures/glove_fingerless_normal.png"
|
||||
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
|
||||
detect_3d/compress_to=0
|
||||
|
|
|
@ -3,25 +3,27 @@
|
|||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://3fax6yglkrd3"
|
||||
path="res://.godot/imported/glove_fingerless_occlusionRoughnessMetallic.png-441bf1f84442c3cd6ae3834c9c982565.ctex"
|
||||
path.s3tc="res://.godot/imported/glove_fingerless_occlusionRoughnessMetallic.png-441bf1f84442c3cd6ae3834c9c982565.s3tc.ctex"
|
||||
path.etc2="res://.godot/imported/glove_fingerless_occlusionRoughnessMetallic.png-441bf1f84442c3cd6ae3834c9c982565.etc2.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
"imported_formats": ["s3tc_bptc", "etc2_astc"],
|
||||
"vram_texture": true
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://addons/godot-xr-tools/hands/textures/glove_fingerless_occlusionRoughnessMetallic.png"
|
||||
dest_files=["res://.godot/imported/glove_fingerless_occlusionRoughnessMetallic.png-441bf1f84442c3cd6ae3834c9c982565.ctex"]
|
||||
dest_files=["res://.godot/imported/glove_fingerless_occlusionRoughnessMetallic.png-441bf1f84442c3cd6ae3834c9c982565.s3tc.ctex", "res://.godot/imported/glove_fingerless_occlusionRoughnessMetallic.png-441bf1f84442c3cd6ae3834c9c982565.etc2.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/mode=2
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/generate=true
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
|
@ -31,4 +33,4 @@ 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
|
||||
detect_3d/compress_to=0
|
||||
|
|
|
@ -3,32 +3,34 @@
|
|||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://dasjkfath7rqu"
|
||||
path="res://.godot/imported/glove_normal.png-da82759e655cb7106cb0172b7076b948.ctex"
|
||||
path.s3tc="res://.godot/imported/glove_normal.png-da82759e655cb7106cb0172b7076b948.s3tc.ctex"
|
||||
path.etc2="res://.godot/imported/glove_normal.png-da82759e655cb7106cb0172b7076b948.etc2.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
"imported_formats": ["s3tc_bptc", "etc2_astc"],
|
||||
"vram_texture": true
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://addons/godot-xr-tools/hands/textures/glove_normal.png"
|
||||
dest_files=["res://.godot/imported/glove_normal.png-da82759e655cb7106cb0172b7076b948.ctex"]
|
||||
dest_files=["res://.godot/imported/glove_normal.png-da82759e655cb7106cb0172b7076b948.s3tc.ctex", "res://.godot/imported/glove_normal.png-da82759e655cb7106cb0172b7076b948.etc2.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/mode=2
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/normal_map=1
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/generate=true
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
roughness/mode=1
|
||||
roughness/src_normal="res://addons/godot-xr-tools/hands/textures/glove_normal.png"
|
||||
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
|
||||
detect_3d/compress_to=0
|
||||
|
|
|
@ -3,25 +3,27 @@
|
|||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://b5v1xfnkyjaf6"
|
||||
path="res://.godot/imported/glove_occlusionRoughnessMetallic.png-1a61c4638e30c81daa59d92c8681eb2c.ctex"
|
||||
path.s3tc="res://.godot/imported/glove_occlusionRoughnessMetallic.png-1a61c4638e30c81daa59d92c8681eb2c.s3tc.ctex"
|
||||
path.etc2="res://.godot/imported/glove_occlusionRoughnessMetallic.png-1a61c4638e30c81daa59d92c8681eb2c.etc2.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
"imported_formats": ["s3tc_bptc", "etc2_astc"],
|
||||
"vram_texture": true
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://addons/godot-xr-tools/hands/textures/glove_occlusionRoughnessMetallic.png"
|
||||
dest_files=["res://.godot/imported/glove_occlusionRoughnessMetallic.png-1a61c4638e30c81daa59d92c8681eb2c.ctex"]
|
||||
dest_files=["res://.godot/imported/glove_occlusionRoughnessMetallic.png-1a61c4638e30c81daa59d92c8681eb2c.s3tc.ctex", "res://.godot/imported/glove_occlusionRoughnessMetallic.png-1a61c4638e30c81daa59d92c8681eb2c.etc2.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/mode=2
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/generate=true
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
|
@ -31,4 +33,4 @@ 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
|
||||
detect_3d/compress_to=0
|
||||
|
|
|
@ -3,25 +3,27 @@
|
|||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://dy5hyp5n7o6gl"
|
||||
path="res://.godot/imported/hands_occlusionRoughnessMetallic.png-73229fc54301aa8833117ebde8abfd4e.ctex"
|
||||
path.s3tc="res://.godot/imported/hands_occlusionRoughnessMetallic.png-73229fc54301aa8833117ebde8abfd4e.s3tc.ctex"
|
||||
path.etc2="res://.godot/imported/hands_occlusionRoughnessMetallic.png-73229fc54301aa8833117ebde8abfd4e.etc2.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
"imported_formats": ["s3tc_bptc", "etc2_astc"],
|
||||
"vram_texture": true
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://addons/godot-xr-tools/hands/textures/hands_occlusionRoughnessMetallic.png"
|
||||
dest_files=["res://.godot/imported/hands_occlusionRoughnessMetallic.png-73229fc54301aa8833117ebde8abfd4e.ctex"]
|
||||
dest_files=["res://.godot/imported/hands_occlusionRoughnessMetallic.png-73229fc54301aa8833117ebde8abfd4e.s3tc.ctex", "res://.godot/imported/hands_occlusionRoughnessMetallic.png-73229fc54301aa8833117ebde8abfd4e.etc2.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/mode=2
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/generate=true
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
|
@ -31,4 +33,4 @@ 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
|
||||
detect_3d/compress_to=0
|
||||
|
|
|
@ -3,25 +3,27 @@
|
|||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://cxwjhfe1yvm65"
|
||||
path="res://.godot/imported/labglove_baseColor.png-2eb9fa4d9955a5755a96f0663ee3ceb2.ctex"
|
||||
path.s3tc="res://.godot/imported/labglove_baseColor.png-2eb9fa4d9955a5755a96f0663ee3ceb2.s3tc.ctex"
|
||||
path.etc2="res://.godot/imported/labglove_baseColor.png-2eb9fa4d9955a5755a96f0663ee3ceb2.etc2.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
"imported_formats": ["s3tc_bptc", "etc2_astc"],
|
||||
"vram_texture": true
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://addons/godot-xr-tools/hands/textures/labglove_baseColor.png"
|
||||
dest_files=["res://.godot/imported/labglove_baseColor.png-2eb9fa4d9955a5755a96f0663ee3ceb2.ctex"]
|
||||
dest_files=["res://.godot/imported/labglove_baseColor.png-2eb9fa4d9955a5755a96f0663ee3ceb2.s3tc.ctex", "res://.godot/imported/labglove_baseColor.png-2eb9fa4d9955a5755a96f0663ee3ceb2.etc2.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/mode=2
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/generate=true
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
|
@ -31,4 +33,4 @@ 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
|
||||
detect_3d/compress_to=0
|
||||
|
|
|
@ -3,25 +3,27 @@
|
|||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://ciimvkgy0mee0"
|
||||
path="res://.godot/imported/ring.png-34d9c9e9780f2732148a5b14fcac48dd.ctex"
|
||||
path.s3tc="res://.godot/imported/ring.png-34d9c9e9780f2732148a5b14fcac48dd.s3tc.ctex"
|
||||
path.etc2="res://.godot/imported/ring.png-34d9c9e9780f2732148a5b14fcac48dd.etc2.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
"imported_formats": ["s3tc_bptc", "etc2_astc"],
|
||||
"vram_texture": true
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://addons/godot-xr-tools/images/ring.png"
|
||||
dest_files=["res://.godot/imported/ring.png-34d9c9e9780f2732148a5b14fcac48dd.ctex"]
|
||||
dest_files=["res://.godot/imported/ring.png-34d9c9e9780f2732148a5b14fcac48dd.s3tc.ctex", "res://.godot/imported/ring.png-34d9c9e9780f2732148a5b14fcac48dd.etc2.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/mode=2
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/generate=true
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
|
@ -31,4 +33,4 @@ 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
|
||||
detect_3d/compress_to=0
|
||||
|
|
|
@ -3,25 +3,27 @@
|
|||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://bbfwq7mhqgwjm"
|
||||
path="res://.godot/imported/teleport_arrow.png-f1bd44b6f478277692b3fa29171b62d3.ctex"
|
||||
path.s3tc="res://.godot/imported/teleport_arrow.png-f1bd44b6f478277692b3fa29171b62d3.s3tc.ctex"
|
||||
path.etc2="res://.godot/imported/teleport_arrow.png-f1bd44b6f478277692b3fa29171b62d3.etc2.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
"imported_formats": ["s3tc_bptc", "etc2_astc"],
|
||||
"vram_texture": true
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://addons/godot-xr-tools/images/teleport_arrow.png"
|
||||
dest_files=["res://.godot/imported/teleport_arrow.png-f1bd44b6f478277692b3fa29171b62d3.ctex"]
|
||||
dest_files=["res://.godot/imported/teleport_arrow.png-f1bd44b6f478277692b3fa29171b62d3.s3tc.ctex", "res://.godot/imported/teleport_arrow.png-f1bd44b6f478277692b3fa29171b62d3.etc2.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/mode=2
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/generate=true
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
|
@ -31,4 +33,4 @@ 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
|
||||
detect_3d/compress_to=0
|
||||
|
|
|
@ -3,25 +3,27 @@
|
|||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://cygfooytyfhyd"
|
||||
path="res://.godot/imported/teleport_target.png-cd812f7d5692711ac91f6c8a4753ad73.ctex"
|
||||
path.s3tc="res://.godot/imported/teleport_target.png-cd812f7d5692711ac91f6c8a4753ad73.s3tc.ctex"
|
||||
path.etc2="res://.godot/imported/teleport_target.png-cd812f7d5692711ac91f6c8a4753ad73.etc2.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
"imported_formats": ["s3tc_bptc", "etc2_astc"],
|
||||
"vram_texture": true
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://addons/godot-xr-tools/images/teleport_target.png"
|
||||
dest_files=["res://.godot/imported/teleport_target.png-cd812f7d5692711ac91f6c8a4753ad73.ctex"]
|
||||
dest_files=["res://.godot/imported/teleport_target.png-cd812f7d5692711ac91f6c8a4753ad73.s3tc.ctex", "res://.godot/imported/teleport_target.png-cd812f7d5692711ac91f6c8a4753ad73.etc2.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/mode=2
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/generate=true
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
|
@ -31,4 +33,4 @@ 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
|
||||
detect_3d/compress_to=0
|
||||
|
|
37
assets/badges/github.svg.import
Normal file
37
assets/badges/github.svg.import
Normal file
|
@ -0,0 +1,37 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://d2m7dsy45cm45"
|
||||
path="res://.godot/imported/github.svg-b4e0b9256be113f9a0665e9c95790b59.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/badges/github.svg"
|
||||
dest_files=["res://.godot/imported/github.svg-b4e0b9256be113f9a0665e9c95790b59.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
svg/scale=1.0
|
||||
editor/scale_with_editor_scale=false
|
||||
editor/convert_colors_with_editor_theme=false
|
37
assets/badges/itch.svg.import
Normal file
37
assets/badges/itch.svg.import
Normal file
|
@ -0,0 +1,37 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://7ygo5y1i64ww"
|
||||
path="res://.godot/imported/itch.svg-3d15cca1133e170befe9a26d9161ddf6.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/badges/itch.svg"
|
||||
dest_files=["res://.godot/imported/itch.svg-3d15cca1133e170befe9a26d9161ddf6.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
svg/scale=1.0
|
||||
editor/scale_with_editor_scale=false
|
||||
editor/convert_colors_with_editor_theme=false
|
37
assets/badges/sidequest.svg.import
Normal file
37
assets/badges/sidequest.svg.import
Normal file
|
@ -0,0 +1,37 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://4eu0xm566idr"
|
||||
path="res://.godot/imported/sidequest.svg-e25d54ee38a5859d424a8e70762bf4ef.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/badges/sidequest.svg"
|
||||
dest_files=["res://.godot/imported/sidequest.svg-e25d54ee38a5859d424a8e70762bf4ef.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
svg/scale=1.0
|
||||
editor/scale_with_editor_scale=false
|
||||
editor/convert_colors_with_editor_theme=false
|
|
@ -1,3 +1,3 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:9e25fabb4455ad3207f25fbc1ca0410e44a66ae995241d3a636f457730f50cdf
|
||||
size 2947483
|
||||
oid sha256:7d7a2a14b2ff07822a00a59534d6ab1126984356895e27b703005e9eb0de5e81
|
||||
size 3379915
|
||||
|
|
|
@ -3,25 +3,27 @@
|
|||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://br3p0c2foputg"
|
||||
path="res://.godot/imported/swich_on.png-aaecfc89af488277ed429205bc63e729.ctex"
|
||||
path.s3tc="res://.godot/imported/swich_on.png-aaecfc89af488277ed429205bc63e729.s3tc.ctex"
|
||||
path.etc2="res://.godot/imported/swich_on.png-aaecfc89af488277ed429205bc63e729.etc2.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
"imported_formats": ["s3tc_bptc", "etc2_astc"],
|
||||
"vram_texture": true
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/materials/swich_on.png"
|
||||
dest_files=["res://.godot/imported/swich_on.png-aaecfc89af488277ed429205bc63e729.ctex"]
|
||||
dest_files=["res://.godot/imported/swich_on.png-aaecfc89af488277ed429205bc63e729.s3tc.ctex", "res://.godot/imported/swich_on.png-aaecfc89af488277ed429205bc63e729.etc2.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/mode=2
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/generate=true
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
|
@ -31,4 +33,4 @@ 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
|
||||
detect_3d/compress_to=0
|
||||
|
|
11
assets/models/basketball/license.txt
Normal file
11
assets/models/basketball/license.txt
Normal file
|
@ -0,0 +1,11 @@
|
|||
Model Information:
|
||||
* title: Basketball
|
||||
* source: https://sketchfab.com/3d-models/basketball-19f76a0df81747369acf46406b36afa6
|
||||
* author: Mateus Schwaab (https://sketchfab.com/Mehrus)
|
||||
|
||||
Model License:
|
||||
* license type: CC-BY-4.0 (http://creativecommons.org/licenses/by/4.0/)
|
||||
* requirements: Author must be credited. Commercial use is allowed.
|
||||
|
||||
If you use this 3D model in your project be sure to copy paste this credit wherever you share it:
|
||||
This work is based on "Basketball" (https://sketchfab.com/3d-models/basketball-19f76a0df81747369acf46406b36afa6) by Mateus Schwaab (https://sketchfab.com/Mehrus) licensed under CC-BY-4.0 (http://creativecommons.org/licenses/by/4.0/)
|
3
assets/models/basketball/scene.bin
Normal file
3
assets/models/basketball/scene.bin
Normal file
|
@ -0,0 +1,3 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:649cd7ff5e3cb7afbb8f5a54722df0abd83cc3c7927745e11f14462bd3e30c7b
|
||||
size 27744
|
3
assets/models/basketball/scene.gltf
Normal file
3
assets/models/basketball/scene.gltf
Normal file
|
@ -0,0 +1,3 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:19f5b238df4d029855b1e53f2f421ad4fde09eccdad054cc026522eef5360425
|
||||
size 4942
|
32
assets/models/basketball/scene.gltf.import
Normal file
32
assets/models/basketball/scene.gltf.import
Normal file
|
@ -0,0 +1,32 @@
|
|||
[remap]
|
||||
|
||||
importer="scene"
|
||||
importer_version=1
|
||||
type="PackedScene"
|
||||
uid="uid://o1qeng8cu244"
|
||||
path="res://.godot/imported/scene.gltf-9936f7e96e5b12c84242086a50bcd0af.scn"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/models/basketball/scene.gltf"
|
||||
dest_files=["res://.godot/imported/scene.gltf-9936f7e96e5b12c84242086a50bcd0af.scn"]
|
||||
|
||||
[params]
|
||||
|
||||
nodes/root_type="Node3D"
|
||||
nodes/root_name="Scene Root"
|
||||
nodes/apply_root_scale=true
|
||||
nodes/root_scale=0.001
|
||||
meshes/ensure_tangents=true
|
||||
meshes/generate_lods=true
|
||||
meshes/create_shadow_meshes=true
|
||||
meshes/light_baking=1
|
||||
meshes/lightmap_texel_size=0.2
|
||||
skins/use_named_skins=true
|
||||
animation/import=true
|
||||
animation/fps=30
|
||||
animation/trimming=false
|
||||
animation/remove_immutable_tracks=true
|
||||
import_script/path=""
|
||||
_subresources={}
|
||||
gltf/embedded_image_handling=1
|
|
@ -0,0 +1,3 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:ec14f788dce23df6b5cc30993dd0cded09502a67367ea053aafe88ec06e534f1
|
||||
size 274128
|
|
@ -0,0 +1,36 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://bw35kpxn8wn1t"
|
||||
path.s3tc="res://.godot/imported/Scene_-_Root_baseColor.jpeg-669d7332c39c241b55cea79d53931b22.s3tc.ctex"
|
||||
path.etc2="res://.godot/imported/Scene_-_Root_baseColor.jpeg-669d7332c39c241b55cea79d53931b22.etc2.ctex"
|
||||
metadata={
|
||||
"imported_formats": ["s3tc_bptc", "etc2_astc"],
|
||||
"vram_texture": true
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/models/basketball/textures/Scene_-_Root_baseColor.jpeg"
|
||||
dest_files=["res://.godot/imported/Scene_-_Root_baseColor.jpeg-669d7332c39c241b55cea79d53931b22.s3tc.ctex", "res://.godot/imported/Scene_-_Root_baseColor.jpeg-669d7332c39c241b55cea79d53931b22.etc2.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=2
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=true
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=0
|
|
@ -0,0 +1,3 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:9de5ebd70a2387b83dfb3c7888510a9c892f4897610b227147ebb13f5fb4fd51
|
||||
size 33554
|
|
@ -0,0 +1,36 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://bj2xcn273ri2q"
|
||||
path.s3tc="res://.godot/imported/Scene_-_Root_metallicRoughness.png-3693ee5b1966a3ac4738bca1d2eaf3a8.s3tc.ctex"
|
||||
path.etc2="res://.godot/imported/Scene_-_Root_metallicRoughness.png-3693ee5b1966a3ac4738bca1d2eaf3a8.etc2.ctex"
|
||||
metadata={
|
||||
"imported_formats": ["s3tc_bptc", "etc2_astc"],
|
||||
"vram_texture": true
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/models/basketball/textures/Scene_-_Root_metallicRoughness.png"
|
||||
dest_files=["res://.godot/imported/Scene_-_Root_metallicRoughness.png-3693ee5b1966a3ac4738bca1d2eaf3a8.s3tc.ctex", "res://.godot/imported/Scene_-_Root_metallicRoughness.png-3693ee5b1966a3ac4738bca1d2eaf3a8.etc2.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=2
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=true
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=0
|
|
@ -0,0 +1,3 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:a0aabefd3229a3c8ea281e103533522c90613ee447da841218c45da69ea5161f
|
||||
size 669017
|
|
@ -0,0 +1,36 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://cw3ucknjur4e1"
|
||||
path.s3tc="res://.godot/imported/Scene_-_Root_normal.jpeg-5e054ed6b46e2f7b3e419b7d8ec5f86a.s3tc.ctex"
|
||||
path.etc2="res://.godot/imported/Scene_-_Root_normal.jpeg-5e054ed6b46e2f7b3e419b7d8ec5f86a.etc2.ctex"
|
||||
metadata={
|
||||
"imported_formats": ["s3tc_bptc", "etc2_astc"],
|
||||
"vram_texture": true
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/models/basketball/textures/Scene_-_Root_normal.jpeg"
|
||||
dest_files=["res://.godot/imported/Scene_-_Root_normal.jpeg-5e054ed6b46e2f7b3e419b7d8ec5f86a.s3tc.ctex", "res://.godot/imported/Scene_-_Root_normal.jpeg-5e054ed6b46e2f7b3e419b7d8ec5f86a.etc2.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=2
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=1
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=true
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=1
|
||||
roughness/src_normal="res://assets/models/basketball/textures/Scene_-_Root_normal.jpeg"
|
||||
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=0
|
|
@ -1,8 +1,8 @@
|
|||
[gd_scene load_steps=15 format=3 uid="uid://cw86rc42dv2d8"]
|
||||
|
||||
[ext_resource type="Script" path="res://content/entities/light/light.gd" id="1_ykxy3"]
|
||||
[ext_resource type="Texture2D" uid="uid://b72vsbcvqqxg7" path="res://assets/materials/swich_on.png" id="2_6gn2e"]
|
||||
[ext_resource type="Texture2D" uid="uid://cvc0o6dsktnvl" path="res://assets/materials/switch_off.png" id="3_qlm62"]
|
||||
[ext_resource type="Texture2D" uid="uid://br3p0c2foputg" path="res://assets/materials/swich_on.png" id="2_6gn2e"]
|
||||
[ext_resource type="Texture2D" uid="uid://co2ishj2hx57p" path="res://assets/materials/switch_off.png" id="3_qlm62"]
|
||||
[ext_resource type="Script" path="res://content/functions/movable.gd" id="4_4sfxb"]
|
||||
[ext_resource type="Material" uid="uid://vce66e7sbc3n" path="res://content/entities/light/light_on.tres" id="5_50gph"]
|
||||
|
||||
|
|
74
content/entities/media_player/media_player.gd
Normal file
74
content/entities/media_player/media_player.gd
Normal file
|
@ -0,0 +1,74 @@
|
|||
extends StaticBody3D
|
||||
|
||||
@export var entity_id = "media_player.bedroomspeaker"
|
||||
|
||||
@onready var previous = $Previous
|
||||
@onready var next = $Next
|
||||
@onready var play = $Play
|
||||
@onready var logo = $PlayingInfo/Logo
|
||||
@onready var title = $PlayingInfo/Title
|
||||
@onready var artist = $PlayingInfo/Artist
|
||||
@onready var http_request = $PlayingInfo/HTTPRequest
|
||||
|
||||
var playing = false
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
var stateInfo = await HomeApi.get_state(entity_id)
|
||||
set_state(stateInfo)
|
||||
|
||||
await HomeApi.watch_state(entity_id, func(new_state):
|
||||
set_state(new_state)
|
||||
)
|
||||
|
||||
previous.on_button_down.connect(func():
|
||||
HomeApi.set_state(entity_id, "previous")
|
||||
)
|
||||
|
||||
play.on_button_down.connect(func():
|
||||
if playing:
|
||||
HomeApi.set_state(entity_id, "pause")
|
||||
else:
|
||||
HomeApi.set_state(entity_id, "play")
|
||||
)
|
||||
|
||||
next.on_button_down.connect(func():
|
||||
HomeApi.set_state(entity_id, "next")
|
||||
)
|
||||
|
||||
|
||||
func set_state(stateInfo):
|
||||
var state = stateInfo["state"]
|
||||
|
||||
print("State changed to ", stateInfo)
|
||||
|
||||
if state == "playing":
|
||||
if stateInfo["attributes"].has("entity_picture_local"):
|
||||
load_image(stateInfo["attributes"]["entity_picture_local"])
|
||||
title.text = stateInfo["attributes"]["media_title"]
|
||||
artist.text = stateInfo["attributes"]["media_artist"]
|
||||
|
||||
playing = true
|
||||
play.label = "pause"
|
||||
else:
|
||||
playing = false
|
||||
play.label = "play_arrow"
|
||||
|
||||
func load_image(url: String):
|
||||
http_request.request("http://192.168.33.33:8123" + url)
|
||||
|
||||
var result = await http_request.request_completed
|
||||
|
||||
if result[0] != HTTPRequest.RESULT_SUCCESS:
|
||||
print("Error loading image: ", result[0], " ", result[1])
|
||||
return
|
||||
|
||||
var image = Image.new()
|
||||
var error = image.load_jpg_from_buffer(result[3])
|
||||
|
||||
if error != OK:
|
||||
print("Error loading image: ", error)
|
||||
return
|
||||
|
||||
var texture = ImageTexture.create_from_image(image)
|
||||
logo.texture = texture
|
57
content/entities/media_player/media_player.tscn
Normal file
57
content/entities/media_player/media_player.tscn
Normal file
|
@ -0,0 +1,57 @@
|
|||
[gd_scene load_steps=5 format=3 uid="uid://dyktdg7ggiwl4"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://bsjqdvkt0u87c" path="res://content/ui/components/button/button.tscn" id="1_8opk3"]
|
||||
[ext_resource type="Script" path="res://content/entities/media_player/media_player.gd" id="1_ame17"]
|
||||
[ext_resource type="Script" path="res://content/functions/movable.gd" id="3_bguto"]
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_vi3eg"]
|
||||
size = Vector3(0.23, 0.142768, 0.01)
|
||||
|
||||
[node name="MediaPlayer" type="StaticBody3D" groups=["entity"]]
|
||||
script = ExtResource("1_ame17")
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.0364514, -0.01)
|
||||
shape = SubResource("BoxShape3D_vi3eg")
|
||||
|
||||
[node name="Previous" parent="." instance=ExtResource("1_8opk3")]
|
||||
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, -0.07, 0, 0)
|
||||
label = "skip_previous"
|
||||
icon = true
|
||||
|
||||
[node name="Play" parent="." instance=ExtResource("1_8opk3")]
|
||||
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, -4.65661e-08, 0, 0)
|
||||
label = "pause"
|
||||
icon = true
|
||||
|
||||
[node name="Next" parent="." instance=ExtResource("1_8opk3")]
|
||||
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0.07, 0, 0)
|
||||
label = "skip_next"
|
||||
icon = true
|
||||
|
||||
[node name="PlayingInfo" type="Node3D" parent="."]
|
||||
|
||||
[node name="Title" type="Label3D" parent="PlayingInfo"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.09, 0.07, 0)
|
||||
pixel_size = 0.001
|
||||
text = "All Falls Down"
|
||||
font_size = 24
|
||||
outline_size = 4
|
||||
horizontal_alignment = 0
|
||||
|
||||
[node name="Artist" type="Label3D" parent="PlayingInfo"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.09, 0.05, 0)
|
||||
pixel_size = 0.001
|
||||
text = "Alan Walker"
|
||||
font_size = 16
|
||||
outline_size = 4
|
||||
horizontal_alignment = 0
|
||||
|
||||
[node name="Logo" type="Sprite3D" parent="PlayingInfo"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.15, 0)
|
||||
pixel_size = 0.001
|
||||
|
||||
[node name="HTTPRequest" type="HTTPRequest" parent="PlayingInfo"]
|
||||
|
||||
[node name="Movable" type="Node" parent="."]
|
||||
script = ExtResource("3_bguto")
|
|
@ -25,7 +25,6 @@ background_color = Color(0.466667, 0.47451, 0.462745, 0)
|
|||
sky = SubResource("Sky_vhymk")
|
||||
ambient_light_color = Color(1, 1, 1, 1)
|
||||
ambient_light_sky_contribution = 0.72
|
||||
ssao_enabled = true
|
||||
ssao_radius = 6.52
|
||||
ssao_intensity = 5.68
|
||||
|
||||
|
|
|
@ -1,20 +0,0 @@
|
|||
[gd_scene load_steps=4 format=3 uid="uid://c40yyuev2k8c2"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://bsjqdvkt0u87c" path="res://content/ui/components/button/button.tscn" id="1_byj6h"]
|
||||
[ext_resource type="Material" uid="uid://bujy3egn1oqac" path="res://assets/materials/ui_element.material" id="2_sskv8"]
|
||||
|
||||
[sub_resource type="BoxMesh" id="BoxMesh_guj81"]
|
||||
resource_local_to_scene = true
|
||||
material = ExtResource("2_sskv8")
|
||||
size = Vector3(0.05, 0.02, 0.05)
|
||||
|
||||
[node name="Button" groups=["ui_focus_skip"] instance=ExtResource("1_byj6h")]
|
||||
|
||||
[node name="MeshInstance3D" parent="." index="0"]
|
||||
mesh = SubResource("BoxMesh_guj81")
|
||||
|
||||
[node name="Label" type="Label3D" parent="." index="3"]
|
||||
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 0.012, 0)
|
||||
pixel_size = 0.001
|
||||
text = "E"
|
||||
outline_size = 0
|
|
@ -1,7 +1,7 @@
|
|||
@tool
|
||||
extends StaticBody3D
|
||||
|
||||
const key_scene = preload("res://content/system/keyboard/key.tscn")
|
||||
const button_scene = preload("res://content/ui/components/button/button.tscn")
|
||||
|
||||
@onready var keys = $Keys
|
||||
@onready var caps_button = $Caps
|
||||
|
@ -68,9 +68,11 @@ func _ready():
|
|||
)
|
||||
|
||||
func create_key(key: Key):
|
||||
var key_node = key_scene.instantiate()
|
||||
var key_node = button_scene.instantiate()
|
||||
|
||||
key_node.get_node("Label").text = EventKey.key_to_string(key, caps)
|
||||
key_node.label = EventKey.key_to_string(key, caps)
|
||||
key_node.add_to_group("ui_focus_skip")
|
||||
key_node.get_node("Label").font_size = 32
|
||||
key_node.set_meta("key", key)
|
||||
|
||||
return key_node
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
[gd_scene load_steps=8 format=3 uid="uid://lrehk38exd5n"]
|
||||
[gd_scene load_steps=7 format=3 uid="uid://lrehk38exd5n"]
|
||||
|
||||
[ext_resource type="Script" path="res://content/system/keyboard/keyboard.gd" id="1_maojw"]
|
||||
[ext_resource type="PackedScene" uid="uid://bsjqdvkt0u87c" path="res://content/ui/components/button/button.tscn" id="1_xdpwr"]
|
||||
[ext_resource type="FontVariation" uid="uid://sshfnckriqxn" path="res://assets/icons/icons.tres" id="3_3glvw"]
|
||||
[ext_resource type="Script" path="res://content/ui/menu/grid.gd" id="3_mx544"]
|
||||
[ext_resource type="Script" path="res://content/functions/movable.gd" id="4_86fct"]
|
||||
|
||||
|
@ -18,38 +17,20 @@ script = ExtResource("1_maojw")
|
|||
|
||||
[node name="Backspace" parent="." groups=["ui_focus_skip"] instance=ExtResource("1_xdpwr")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.66, 0, 0.02)
|
||||
label = "backspace"
|
||||
icon = true
|
||||
metadata/key = 4194308
|
||||
|
||||
[node name="Label3D" type="Label3D" parent="Backspace"]
|
||||
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 0.012, 0)
|
||||
pixel_size = 0.001
|
||||
text = "backspace"
|
||||
font = ExtResource("3_3glvw")
|
||||
font_size = 48
|
||||
outline_size = 0
|
||||
|
||||
[node name="Caps" parent="." groups=["ui_focus_skip"] instance=ExtResource("1_xdpwr")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.06, 0, 0.15)
|
||||
label = "keyboard_capslock"
|
||||
icon = true
|
||||
toggleable = true
|
||||
|
||||
[node name="Label3D" type="Label3D" parent="Caps"]
|
||||
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 0.012, 0)
|
||||
pixel_size = 0.001
|
||||
text = "keyboard_capslock"
|
||||
font = ExtResource("3_3glvw")
|
||||
font_size = 48
|
||||
outline_size = 0
|
||||
|
||||
[node name="Paste" parent="." groups=["ui_focus_skip"] instance=ExtResource("1_xdpwr")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.66, 0, 0.18)
|
||||
|
||||
[node name="Label3D" type="Label3D" parent="Paste"]
|
||||
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 0.012, 0)
|
||||
pixel_size = 0.001
|
||||
text = "assignment"
|
||||
font = ExtResource("3_3glvw")
|
||||
font_size = 48
|
||||
outline_size = 0
|
||||
label = "assignment"
|
||||
icon = true
|
||||
|
||||
[node name="Keys" type="Node3D" parent="."]
|
||||
script = ExtResource("3_mx544")
|
||||
|
|
|
@ -30,6 +30,11 @@ func _handle_move():
|
|||
|
||||
moved = true
|
||||
|
||||
# reset if last_collided gets deleted
|
||||
if is_instance_valid(last_collided) == false:
|
||||
last_collided = null
|
||||
return
|
||||
|
||||
if is_pressed:
|
||||
_emit_event("press_move", last_collided )
|
||||
|
||||
|
@ -65,9 +70,6 @@ func _on_button_pressed(button: String):
|
|||
_emit_event("grab_down", collider )
|
||||
|
||||
func _on_button_released(button: String):
|
||||
if last_collided == null:
|
||||
return
|
||||
|
||||
match button:
|
||||
"trigger_click":
|
||||
if is_pressed:
|
||||
|
|
|
@ -1,9 +1,32 @@
|
|||
@tool
|
||||
|
||||
extends StaticBody3D
|
||||
class_name Button3D
|
||||
|
||||
signal on_button_down()
|
||||
signal on_button_up()
|
||||
|
||||
const IconFont = preload("res://assets/icons/icons.tres")
|
||||
|
||||
@onready var label_node: Label3D = $Label
|
||||
|
||||
@export var label: String = "":
|
||||
set(value):
|
||||
label = value
|
||||
if !is_node_ready(): await ready
|
||||
label_node.text = value
|
||||
@export var icon: bool = false:
|
||||
set(value):
|
||||
icon = value
|
||||
if !is_node_ready(): await ready
|
||||
|
||||
if value:
|
||||
label_node.font = IconFont
|
||||
label_node.font_size = 48
|
||||
label_node.width = 1000
|
||||
label_node.autowrap_mode = TextServer.AUTOWRAP_OFF
|
||||
|
||||
|
||||
@export var toggleable: bool = false
|
||||
@export var disabled: bool = false
|
||||
@export var external_state: bool = false
|
||||
|
|
|
@ -81,6 +81,7 @@ _data = {
|
|||
|
||||
[node name="Button" type="StaticBody3D" groups=["ui_focus"]]
|
||||
script = ExtResource("1_74x7g")
|
||||
label = "Example Text"
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
|
||||
mesh = SubResource("BoxMesh_jwpm5")
|
||||
|
@ -92,3 +93,12 @@ shape = SubResource("ConvexPolygonShape3D_o4j7g")
|
|||
libraries = {
|
||||
"": SubResource("AnimationLibrary_sbgno")
|
||||
}
|
||||
|
||||
[node name="Label" type="Label3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 0.011, 0)
|
||||
pixel_size = 0.001
|
||||
text = "Example Text"
|
||||
font_size = 10
|
||||
outline_size = 0
|
||||
autowrap_mode = 3
|
||||
width = 50.0
|
||||
|
|
|
@ -13,16 +13,23 @@ var text_handler = preload("res://content/ui/components/input/text_handler.gd").
|
|||
get:
|
||||
return text_handler.width
|
||||
set(value):
|
||||
set_width(value)
|
||||
text_handler.width = value
|
||||
|
||||
if !is_node_ready(): await ready
|
||||
|
||||
mesh_box.mesh.size.x = value
|
||||
collision.shape.size.x = value
|
||||
label.position.x = -value / 2 + 0.002
|
||||
|
||||
@export var text: String:
|
||||
get:
|
||||
return text_handler.text
|
||||
set(value):
|
||||
var focused = Engine.is_editor_hint() == false && EventSystem.is_focused(self) == false
|
||||
text_handler.set_text(value, focused)
|
||||
|
||||
if label != null:
|
||||
if !is_node_ready(): await ready
|
||||
|
||||
text_handler.set_text(value, focused)
|
||||
label.text = text_handler.get_display_text()
|
||||
|
||||
var keyboard_input: bool = false
|
||||
|
@ -31,8 +38,6 @@ var input_plane = Plane(Vector3.UP, Vector3.ZERO)
|
|||
|
||||
func _ready():
|
||||
text_handler.label = label
|
||||
text = text
|
||||
width = width
|
||||
|
||||
if Engine.is_editor_hint():
|
||||
return
|
||||
|
@ -63,16 +68,6 @@ func _process(_delta):
|
|||
if get_tree().debug_collisions_hint && OS.get_name() != "Android":
|
||||
_draw_debug_text_gaps()
|
||||
|
||||
func set_width(value: float):
|
||||
text_handler.width = value
|
||||
|
||||
if mesh_box == null || collision == null || label == null:
|
||||
return
|
||||
|
||||
mesh_box.mesh.size.x = value
|
||||
collision.shape.size.x = value
|
||||
label.position.x = -value / 2 + 0.002
|
||||
|
||||
func _on_press_move(event):
|
||||
var ray_pos = event.ray.global_position
|
||||
var ray_dir = -event.ray.global_transform.basis.z
|
||||
|
|
|
@ -55,6 +55,7 @@ _data = {
|
|||
[node name="Input" type="StaticBody3D" groups=["ui_focus"]]
|
||||
script = ExtResource("1_uml3t")
|
||||
width = 0.2
|
||||
text = "Example"
|
||||
|
||||
[node name="Box" type="MeshInstance3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.003, 0)
|
||||
|
@ -68,6 +69,7 @@ shape = SubResource("BoxShape3D_x4yp8")
|
|||
[node name="Label" type="Label3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, -0.098, 0.00618291, 0)
|
||||
pixel_size = 0.001
|
||||
text = "Example"
|
||||
font = ExtResource("3_ij5fh")
|
||||
font_size = 18
|
||||
outline_size = 0
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
extends Node3D
|
||||
|
||||
@onready var label: Label3D = $Button/Label
|
||||
@export var id: String = "0"
|
||||
|
||||
func set_device_name(text):
|
||||
assert(label != null, "Device has to be added to the scene tree")
|
||||
label.text = text
|
8
content/ui/menu/edit/device/device.gd
Normal file
8
content/ui/menu/edit/device/device.gd
Normal file
|
@ -0,0 +1,8 @@
|
|||
extends Node3D
|
||||
|
||||
@onready var button = $Button
|
||||
@export var id: String = "0"
|
||||
|
||||
func set_device_name(text):
|
||||
assert(button != null, "Device has to be added to the scene tree")
|
||||
button.label = text
|
|
@ -1,6 +1,6 @@
|
|||
[gd_scene load_steps=4 format=3 uid="uid://dbe8slnyhro2n"]
|
||||
|
||||
[ext_resource type="Script" path="res://content/ui/device/device.gd" id="1_rbo86"]
|
||||
[ext_resource type="Script" path="res://content/ui/menu/edit/device/device.gd" id="1_rbo86"]
|
||||
[ext_resource type="PackedScene" uid="uid://bsjqdvkt0u87c" path="res://content/ui/components/button/button.tscn" id="2_go2es"]
|
||||
[ext_resource type="Script" path="res://content/functions/clickable.gd" id="3_6wicx"]
|
||||
|
||||
|
@ -9,14 +9,5 @@ script = ExtResource("1_rbo86")
|
|||
|
||||
[node name="Button" parent="." instance=ExtResource("2_go2es")]
|
||||
|
||||
[node name="Label" type="Label3D" parent="Button"]
|
||||
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 0.0142873, 0)
|
||||
pixel_size = 0.001
|
||||
text = "Texttexttexttexttexttextext"
|
||||
font_size = 7
|
||||
outline_size = 0
|
||||
autowrap_mode = 3
|
||||
width = 50.0
|
||||
|
||||
[node name="Clickable" type="Node" parent="."]
|
||||
script = ExtResource("3_6wicx")
|
|
@ -1,10 +1,8 @@
|
|||
extends Node3D
|
||||
|
||||
const Device = preload("res://content/ui/device/device.tscn")
|
||||
const Entity = preload("res://content/ui/entity/entity.tscn")
|
||||
const Switch = preload("res://content/entities/switch/switch.tscn")
|
||||
const Light = preload("res://content/entities/light/light.tscn")
|
||||
const Sensor = preload("res://content/entities/sensor/sensor.tscn")
|
||||
const Device = preload("./device/device.tscn")
|
||||
const Entity = preload("./entity/entity.tscn")
|
||||
const EntityCreator = preload("./entity_creator.gd")
|
||||
|
||||
@onready var devices_node: GridContainer3D = $Devices
|
||||
@onready var next_page_button = $Buttons/NextPageButton
|
||||
|
@ -19,12 +17,11 @@ var pages = 0
|
|||
var selected_device = null
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
next_page_button.get_node("Clickable").on_click.connect(func(_event):
|
||||
print("next page")
|
||||
next_page_button.on_button_down.connect(func():
|
||||
next_page()
|
||||
)
|
||||
|
||||
previous_page_button.get_node("Clickable").on_click.connect(func(_event):
|
||||
previous_page_button.on_button_down.connect(func():
|
||||
previous_page()
|
||||
)
|
||||
|
||||
|
@ -33,7 +30,7 @@ func _enter_tree():
|
|||
load_devices()
|
||||
else:
|
||||
HomeApi.on_connect.connect(func():
|
||||
if is_inside_tree():
|
||||
if is_node_ready():
|
||||
load_devices()
|
||||
)
|
||||
|
||||
|
@ -44,7 +41,7 @@ func load_devices():
|
|||
|
||||
HomeApi.on_disconnect.connect(func():
|
||||
devices = []
|
||||
if is_inside_tree():
|
||||
if is_node_ready():
|
||||
render()
|
||||
)
|
||||
|
||||
|
@ -150,29 +147,11 @@ func _on_entity_click(entity_name):
|
|||
return
|
||||
|
||||
var type = entity_name.split(".")[0]
|
||||
print(type)
|
||||
AudioPlayer.play_effect("spawn")
|
||||
|
||||
if type == "switch":
|
||||
var switch = Switch.instantiate()
|
||||
switch.entity_id = entity_name
|
||||
|
||||
switch.set_position(global_position)
|
||||
get_node("/root").add_child(switch)
|
||||
|
||||
if type == "light":
|
||||
var light = Light.instantiate()
|
||||
light.entity_id = entity_name
|
||||
|
||||
light.set_position(global_position)
|
||||
get_node("/root").add_child(light)
|
||||
|
||||
if type == "sensor":
|
||||
var sensor = Sensor.instantiate()
|
||||
sensor.entity_id = entity_name
|
||||
|
||||
sensor.set_position(global_position)
|
||||
get_node("/root").add_child(sensor)
|
||||
var entity = EntityCreator.create_entity(type, entity_name)
|
||||
entity.set_position(global_position)
|
||||
get_node("/root").add_child(entity)
|
||||
|
||||
func clear_menu():
|
||||
for child in devices_node.get_children():
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
[gd_scene load_steps=6 format=3 uid="uid://crrb0l3ekuotj"]
|
||||
[gd_scene load_steps=5 format=3 uid="uid://crrb0l3ekuotj"]
|
||||
|
||||
[ext_resource type="Script" path="res://content/ui/menu/edit/edit_menu.gd" id="1_34cbn"]
|
||||
[ext_resource type="Script" path="res://content/ui/menu/grid.gd" id="3_0xvyw"]
|
||||
[ext_resource type="PackedScene" uid="uid://bsjqdvkt0u87c" path="res://content/ui/components/button/button.tscn" id="4_tvimg"]
|
||||
[ext_resource type="FontVariation" uid="uid://sshfnckriqxn" path="res://assets/icons/icons.tres" id="5_0josb"]
|
||||
[ext_resource type="Script" path="res://content/functions/clickable.gd" id="6_pf8jy"]
|
||||
|
||||
[node name="EditMenu" type="Node3D"]
|
||||
|
@ -27,28 +26,16 @@ outline_size = 0
|
|||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.19, 0.01, 0.27)
|
||||
|
||||
[node name="NextPageButton" parent="Buttons" instance=ExtResource("4_tvimg")]
|
||||
label = "navigate_next"
|
||||
icon = true
|
||||
|
||||
[node name="Clickable" type="Node" parent="Buttons/NextPageButton"]
|
||||
script = ExtResource("6_pf8jy")
|
||||
|
||||
[node name="Label3D" type="Label3D" parent="Buttons/NextPageButton"]
|
||||
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 0.012, 0)
|
||||
pixel_size = 0.001
|
||||
text = "navigate_next"
|
||||
font = ExtResource("5_0josb")
|
||||
font_size = 48
|
||||
outline_size = 0
|
||||
|
||||
[node name="PreviousPageButton" parent="Buttons" instance=ExtResource("4_tvimg")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.08, 0, 0)
|
||||
label = "navigate_before"
|
||||
icon = true
|
||||
|
||||
[node name="Clickable" type="Node" parent="Buttons/PreviousPageButton"]
|
||||
script = ExtResource("6_pf8jy")
|
||||
|
||||
[node name="Label3D2" type="Label3D" parent="Buttons/PreviousPageButton"]
|
||||
transform = Transform3D(-1, 8.74228e-08, 3.82137e-15, 0, -4.37114e-08, 1, 8.74228e-08, 1, 4.37114e-08, 0, 0.012, 0)
|
||||
pixel_size = 0.001
|
||||
text = "navigate_next"
|
||||
font = ExtResource("5_0josb")
|
||||
font_size = 48
|
||||
outline_size = 0
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[gd_scene load_steps=5 format=3 uid="uid://xo0o5nrfjl23"]
|
||||
|
||||
[ext_resource type="Script" path="res://content/ui/entity/entity.gd" id="1_825oj"]
|
||||
[ext_resource type="Script" path="res://content/ui/menu/edit/entity/entity.gd" id="1_825oj"]
|
||||
[ext_resource type="Script" path="res://content/functions/clickable.gd" id="2_i054q"]
|
||||
|
||||
[sub_resource type="BoxMesh" id="BoxMesh_aa3i4"]
|
24
content/ui/menu/edit/entity_creator.gd
Normal file
24
content/ui/menu/edit/entity_creator.gd
Normal file
|
@ -0,0 +1,24 @@
|
|||
extends Object
|
||||
|
||||
const Switch = preload("res://content/entities/switch/switch.tscn")
|
||||
const Light = preload("res://content/entities/light/light.tscn")
|
||||
const Sensor = preload("res://content/entities/sensor/sensor.tscn")
|
||||
const MediaPlayer = preload("res://content/entities/media_player/media_player.tscn")
|
||||
|
||||
static func create_entity(type: String, id: String):
|
||||
var entity = null
|
||||
|
||||
match type:
|
||||
"switch":
|
||||
entity = Switch.instantiate()
|
||||
"light":
|
||||
entity = Light.instantiate()
|
||||
"sensor":
|
||||
entity = Sensor.instantiate()
|
||||
"media_player":
|
||||
entity = MediaPlayer.instantiate()
|
||||
_:
|
||||
return null
|
||||
|
||||
entity.entity_id = id
|
||||
return entity
|
|
@ -1,7 +1,6 @@
|
|||
[gd_scene load_steps=13 format=3 uid="uid://c3kdssrmv84kv"]
|
||||
[gd_scene load_steps=12 format=3 uid="uid://c3kdssrmv84kv"]
|
||||
|
||||
[ext_resource type="Script" path="res://content/ui/menu/menu.gd" id="1_ng4u3"]
|
||||
[ext_resource type="FontVariation" uid="uid://sshfnckriqxn" path="res://assets/icons/icons.tres" id="3_5qlpm"]
|
||||
[ext_resource type="PackedScene" uid="uid://crrb0l3ekuotj" path="res://content/ui/menu/edit/edit_menu.tscn" id="4_r2raj"]
|
||||
[ext_resource type="PackedScene" uid="uid://bsjqdvkt0u87c" path="res://content/ui/components/button/button.tscn" id="5_w4i01"]
|
||||
[ext_resource type="ArrayMesh" uid="uid://cbqhhnknyium2" path="res://assets/immersive_home_panels/immersive_home_panels.obj" id="7_f4u4o"]
|
||||
|
@ -166,69 +165,39 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.06, 0, 0)
|
|||
|
||||
[node name="View" parent="AnimationContainer/Navigation" instance=ExtResource("5_w4i01")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.03, 0, 0.03)
|
||||
label = "visibility"
|
||||
icon = true
|
||||
toggleable = true
|
||||
external_state = true
|
||||
|
||||
[node name="Label3D" type="Label3D" parent="AnimationContainer/Navigation/View"]
|
||||
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 0.012, 0)
|
||||
pixel_size = 0.001
|
||||
text = "visibility"
|
||||
font = ExtResource("3_5qlpm")
|
||||
font_size = 48
|
||||
outline_size = 0
|
||||
|
||||
[node name="Edit" parent="AnimationContainer/Navigation" instance=ExtResource("5_w4i01")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.03, 0, 0.09)
|
||||
label = "widgets"
|
||||
icon = true
|
||||
toggleable = true
|
||||
external_state = true
|
||||
|
||||
[node name="Label3D2" type="Label3D" parent="AnimationContainer/Navigation/Edit"]
|
||||
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 0.012, 0)
|
||||
pixel_size = 0.001
|
||||
text = "widgets"
|
||||
font = ExtResource("3_5qlpm")
|
||||
font_size = 48
|
||||
outline_size = 0
|
||||
|
||||
[node name="Room" parent="AnimationContainer/Navigation" instance=ExtResource("5_w4i01")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.03, 0, 0.15)
|
||||
label = "view_in_ar"
|
||||
icon = true
|
||||
toggleable = true
|
||||
external_state = true
|
||||
|
||||
[node name="Label3D3" type="Label3D" parent="AnimationContainer/Navigation/Room"]
|
||||
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 0.012, 0)
|
||||
pixel_size = 0.001
|
||||
text = "view_in_ar"
|
||||
font = ExtResource("3_5qlpm")
|
||||
font_size = 48
|
||||
outline_size = 0
|
||||
|
||||
[node name="Automate" parent="AnimationContainer/Navigation" instance=ExtResource("5_w4i01")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.03, 0, 0.21)
|
||||
label = "schema"
|
||||
icon = true
|
||||
toggleable = true
|
||||
external_state = true
|
||||
|
||||
[node name="Label3D4" type="Label3D" parent="AnimationContainer/Navigation/Automate"]
|
||||
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 0.012, 0)
|
||||
pixel_size = 0.001
|
||||
text = "schema"
|
||||
font = ExtResource("3_5qlpm")
|
||||
font_size = 48
|
||||
outline_size = 0
|
||||
|
||||
[node name="Settings" parent="AnimationContainer/Navigation" instance=ExtResource("5_w4i01")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.03, 0, 0.27)
|
||||
label = "settings"
|
||||
icon = true
|
||||
toggleable = true
|
||||
external_state = true
|
||||
|
||||
[node name="Label3D5" type="Label3D" parent="AnimationContainer/Navigation/Settings"]
|
||||
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 0.012, 0)
|
||||
pixel_size = 0.001
|
||||
text = "settings"
|
||||
font = ExtResource("3_5qlpm")
|
||||
font_size = 48
|
||||
outline_size = 0
|
||||
|
||||
[node name="Content" type="Node3D" parent="AnimationContainer"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.06, 0, 0)
|
||||
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
extends Node3D
|
||||
|
||||
const wall_corner_scene = preload("res://content/ui/menu/room/wall_corner.tscn")
|
||||
const wall_edge_scene = preload("res://content/ui/menu/room/wall_edge.tscn")
|
||||
const wall_corner_scene = preload("./wall_corner.tscn")
|
||||
const wall_edge_scene = preload("./wall_edge.tscn")
|
||||
|
||||
@onready var teleport_root = $TeleportRoot
|
||||
@onready var background = $Background
|
||||
@onready var wall_corners = $TeleportRoot/WallCorners
|
||||
@onready var wall_edges = $TeleportRoot/WallEdges
|
||||
@onready var wall_mesh = $TeleportRoot/WallMesh
|
||||
|
@ -16,6 +17,7 @@ var edit_enabled = false
|
|||
|
||||
func _ready():
|
||||
remove_child(teleport_root)
|
||||
background.visible = false
|
||||
get_tree().get_root().get_node("Main").add_child.call_deferred(teleport_root)
|
||||
|
||||
teleport_root.get_node("Ground/Clickable").on_click.connect(func(event):
|
||||
|
|
|
@ -1,10 +1,9 @@
|
|||
[gd_scene load_steps=9 format=3 uid="uid://c01gkeldvjwtr"]
|
||||
[gd_scene load_steps=8 format=3 uid="uid://c01gkeldvjwtr"]
|
||||
|
||||
[ext_resource type="Script" path="res://content/ui/menu/room/room_menu.gd" id="1_ch4jb"]
|
||||
[ext_resource type="Script" path="res://content/functions/clickable.gd" id="2_elugy"]
|
||||
[ext_resource type="Material" uid="uid://bbx6fv7jq50tr" path="res://content/ui/menu/room/walls.tres" id="3_fke3j"]
|
||||
[ext_resource type="PackedScene" uid="uid://bsjqdvkt0u87c" path="res://content/ui/components/button/button.tscn" id="3_whl7a"]
|
||||
[ext_resource type="FontVariation" uid="uid://sshfnckriqxn" path="res://assets/icons/icons.tres" id="5_kr7ln"]
|
||||
|
||||
[sub_resource type="WorldBoundaryShape3D" id="WorldBoundaryShape3D_08sv0"]
|
||||
|
||||
|
@ -45,19 +44,13 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.01, 0)
|
|||
|
||||
[node name="ToggleEdit" parent="Interface" instance=ExtResource("3_whl7a")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.05, 0, 0.05)
|
||||
label = "room_preferences"
|
||||
icon = true
|
||||
toggleable = true
|
||||
|
||||
[node name="Clickable" type="Node" parent="Interface/ToggleEdit"]
|
||||
script = ExtResource("2_elugy")
|
||||
|
||||
[node name="Label3D" type="Label3D" parent="Interface/ToggleEdit"]
|
||||
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 0.012, 0)
|
||||
pixel_size = 0.001
|
||||
text = "room_preferences"
|
||||
font = ExtResource("5_kr7ln")
|
||||
font_size = 48
|
||||
outline_size = 0
|
||||
|
||||
[node name="Label3D" type="Label3D" parent="Interface"]
|
||||
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0.13, -1.86265e-09, 0.05)
|
||||
pixel_size = 0.001
|
||||
|
|
|
@ -1,17 +1,19 @@
|
|||
[gd_scene load_steps=3 format=3 uid="uid://cn3axur15ftft"]
|
||||
[gd_scene load_steps=4 format=3 uid="uid://cn3axur15ftft"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://o1qeng8cu244" path="res://assets/models/basketball/scene.gltf" id="1_x2hv5"]
|
||||
|
||||
[sub_resource type="PhysicsMaterial" id="PhysicsMaterial_f6jtg"]
|
||||
bounce = 0.7
|
||||
|
||||
[sub_resource type="SphereShape3D" id="SphereShape3D_orlq6"]
|
||||
radius = 0.08
|
||||
|
||||
[sub_resource type="SphereMesh" id="SphereMesh_rfu32"]
|
||||
radius = 0.08
|
||||
height = 0.16
|
||||
|
||||
[node name="Ball" type="RigidBody3D"]
|
||||
physics_material_override = SubResource("PhysicsMaterial_f6jtg")
|
||||
angular_damp = 4.0
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||
shape = SubResource("SphereShape3D_orlq6")
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
|
||||
mesh = SubResource("SphereMesh_rfu32")
|
||||
[node name="scene" parent="." instance=ExtResource("1_x2hv5")]
|
||||
transform = Transform3D(0.4, 0, 0, 0, 0.4, 0, 0, 0, 0.4, 0, 0, 0)
|
||||
|
|
8
content/ui/menu/settings/credits.gd
Normal file
8
content/ui/menu/settings/credits.gd
Normal file
|
@ -0,0 +1,8 @@
|
|||
extends StaticBody3D
|
||||
|
||||
@onready var close = $Content/Button
|
||||
|
||||
func _ready():
|
||||
close.on_button_down.connect(func():
|
||||
queue_free()
|
||||
)
|
50
content/ui/menu/settings/credits.tscn
Normal file
50
content/ui/menu/settings/credits.tscn
Normal file
|
@ -0,0 +1,50 @@
|
|||
[gd_scene load_steps=6 format=3 uid="uid://d1h1ii47dfwnk"]
|
||||
|
||||
[ext_resource type="Script" path="res://content/ui/menu/settings/credits.gd" id="1_6iala"]
|
||||
[ext_resource type="Script" path="res://content/functions/movable.gd" id="1_napfi"]
|
||||
[ext_resource type="PackedScene" uid="uid://bsjqdvkt0u87c" path="res://content/ui/components/button/button.tscn" id="2_dejch"]
|
||||
|
||||
[sub_resource type="BoxMesh" id="BoxMesh_ssj75"]
|
||||
size = Vector3(0.5, 0.01, 0.5)
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_glrua"]
|
||||
size = Vector3(0.5, 0.01, 0.5)
|
||||
|
||||
[node name="Credits" type="StaticBody3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0, 0)
|
||||
script = ExtResource("1_6iala")
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
|
||||
mesh = SubResource("BoxMesh_ssj75")
|
||||
|
||||
[node name="Movable" type="Node" parent="."]
|
||||
script = ExtResource("1_napfi")
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||
shape = SubResource("BoxShape3D_glrua")
|
||||
|
||||
[node name="Content" type="Node3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.01, 0)
|
||||
|
||||
[node name="Basketball" type="Label3D" parent="Content"]
|
||||
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 0, -0.14)
|
||||
pixel_size = 0.001
|
||||
modulate = Color(0, 0, 0, 1)
|
||||
text = "This work is based on \"Basketball\" (https://sketchfab.com/3d-models/basketball-19f76a0df81747369acf46406b36afa6) by Mateus Schwaab (https://sketchfab.com/Mehrus) licensed under CC-BY-4.0 (http://creativecommons.org/licenses/by/4.0/)"
|
||||
font_size = 14
|
||||
outline_size = 0
|
||||
autowrap_mode = 3
|
||||
|
||||
[node name="Room" type="Label3D" parent="Content"]
|
||||
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 0, -0.06)
|
||||
pixel_size = 0.001
|
||||
modulate = Color(0, 0, 0, 1)
|
||||
text = "This work is based on \"Living Room\" (https://sketchfab.com/3d-models/living-room-2978ca6c93fb4f5c83e346d5ecdef0b0) by Chin.Seng.Choy (https://sketchfab.com/Chin.Seng.Choy) licensed under CC-BY-4.0 (http://creativecommons.org/licenses/by/4.0/)"
|
||||
font_size = 14
|
||||
outline_size = 0
|
||||
autowrap_mode = 3
|
||||
|
||||
[node name="Button" parent="Content" instance=ExtResource("2_dejch")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.22, 0, -0.22)
|
||||
label = "close"
|
||||
icon = true
|
|
@ -1,6 +1,7 @@
|
|||
extends Node3D
|
||||
|
||||
const ball_scene = preload("res://content/ui/menu/settings/ball.tscn")
|
||||
const ball_scene = preload("./ball.tscn")
|
||||
const credits_scene = preload("./credits.tscn")
|
||||
|
||||
@onready var clickable = $Content/Button/Clickable
|
||||
@onready var connection_status = $Content/ConnectionStatus
|
||||
|
@ -8,8 +9,12 @@ const ball_scene = preload("res://content/ui/menu/settings/ball.tscn")
|
|||
@onready var input_url = $Content/InputURL
|
||||
@onready var input_token = $Content/InputToken
|
||||
@onready var button_connect = $Content/Connect
|
||||
@onready var credits = $Content/Credits/Clickable
|
||||
@onready var background = $Background
|
||||
|
||||
func _ready():
|
||||
background.visible = false
|
||||
|
||||
clickable.on_click.connect(func(event):
|
||||
var ball = ball_scene.instantiate()
|
||||
ball.transform = event.controller.transform
|
||||
|
@ -17,6 +22,14 @@ func _ready():
|
|||
get_tree().root.add_child(ball)
|
||||
)
|
||||
|
||||
credits.on_click.connect(func(_event):
|
||||
print("_active_controller")
|
||||
var credits_instance = credits_scene.instantiate()
|
||||
get_tree().root.add_child(credits_instance)
|
||||
var label = $Content/Credits/Label
|
||||
credits_instance.global_position = + label.to_global(label.position + Vector3(0.1, 0, -0.15))
|
||||
)
|
||||
|
||||
var config = ConfigData.load_config()
|
||||
|
||||
if config.has("url"):
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=7 format=3 uid="uid://c6r4higceibif"]
|
||||
[gd_scene load_steps=8 format=3 uid="uid://c6r4higceibif"]
|
||||
|
||||
[ext_resource type="Script" path="res://content/ui/menu/settings/settings_menu.gd" id="1_0lte6"]
|
||||
[ext_resource type="PackedScene" uid="uid://bsjqdvkt0u87c" path="res://content/ui/components/button/button.tscn" id="1_faxng"]
|
||||
|
@ -9,6 +9,9 @@
|
|||
[sub_resource type="BoxMesh" id="BoxMesh_e51x8"]
|
||||
size = Vector3(0.3, 0.01, 0.3)
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_3qdps"]
|
||||
size = Vector3(0.08, 0.01, 0.02)
|
||||
|
||||
[node name="SettingsMenu" type="Node3D"]
|
||||
script = ExtResource("1_0lte6")
|
||||
|
||||
|
@ -17,7 +20,7 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.15, 0, 0.15)
|
|||
mesh = SubResource("BoxMesh_e51x8")
|
||||
|
||||
[node name="Content" type="Node3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.0102286, 0)
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.007, 0)
|
||||
|
||||
[node name="Label3D" type="Label3D" parent="Content"]
|
||||
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0.134377, 0, 0.253575)
|
||||
|
@ -29,17 +32,12 @@ outline_size = 0
|
|||
|
||||
[node name="Button" parent="Content" instance=ExtResource("1_faxng")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0458097, 0, 0.253575)
|
||||
label = "sports_basketball"
|
||||
icon = true
|
||||
|
||||
[node name="Clickable" type="Node" parent="Content/Button"]
|
||||
script = ExtResource("3_qmg6q")
|
||||
|
||||
[node name="Label3D" type="Label3D" parent="Content/Button"]
|
||||
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 0, 0)
|
||||
pixel_size = 0.001
|
||||
text = "ball"
|
||||
font_size = 18
|
||||
outline_size = 0
|
||||
|
||||
[node name="ConnectionStatus" type="Label3D" parent="Content"]
|
||||
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0.250698, 0, 0.151303)
|
||||
pixel_size = 0.001
|
||||
|
@ -86,11 +84,32 @@ horizontal_alignment = 0
|
|||
|
||||
[node name="Connect" parent="Content" instance=ExtResource("1_faxng")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.25, 0, 0.12)
|
||||
label = "wifi"
|
||||
icon = true
|
||||
|
||||
[node name="Label3D" type="Label3D" parent="Content/Connect"]
|
||||
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 0.012, 0)
|
||||
[node name="Credits" type="StaticBody3D" parent="Content"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.0102286, 0)
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="Content/Credits"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.26, 0.005, 0.29)
|
||||
shape = SubResource("BoxShape3D_3qdps")
|
||||
|
||||
[node name="Label" type="Label3D" parent="Content/Credits"]
|
||||
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0.26, 0.0102286, 0.29)
|
||||
pixel_size = 0.001
|
||||
text = "wifi"
|
||||
font = ExtResource("5_eiwd4")
|
||||
font_size = 42
|
||||
modulate = Color(0, 0, 0, 1)
|
||||
text = "credits"
|
||||
font_size = 12
|
||||
outline_size = 0
|
||||
|
||||
[node name="Hearth" type="Label3D" parent="Content/Credits"]
|
||||
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0.29, 0.0102286, 0.29)
|
||||
pixel_size = 0.001
|
||||
modulate = Color(0.584314, 0, 0, 1)
|
||||
text = "favorite"
|
||||
font = ExtResource("5_eiwd4")
|
||||
font_size = 14
|
||||
outline_size = 0
|
||||
|
||||
[node name="Clickable" type="Node" parent="Content/Credits"]
|
||||
script = ExtResource("3_qmg6q")
|
||||
|
|
|
@ -6,7 +6,7 @@ runnable=true
|
|||
dedicated_server=false
|
||||
custom_features=""
|
||||
export_filter="all_resources"
|
||||
include_filter="*.j2"
|
||||
include_filter="*.j2,*.woff2"
|
||||
exclude_filter=""
|
||||
export_path="builds/android/immersive-home.apk"
|
||||
encryption_include_filters=""
|
||||
|
|
|
@ -6,7 +6,7 @@ runnable=false
|
|||
dedicated_server=false
|
||||
custom_features=""
|
||||
export_filter="all_resources"
|
||||
include_filter="*.j2"
|
||||
include_filter="*.j2,*.woff2"
|
||||
exclude_filter=""
|
||||
export_path="builds/android/immersive-home.apk"
|
||||
encryption_include_filters=""
|
||||
|
|
|
@ -245,6 +245,15 @@ func set_state(entity: String, state: String, attributes: Dictionary = {}):
|
|||
service = 'turn_on'
|
||||
elif state == 'off':
|
||||
service = 'turn_off'
|
||||
elif domain == 'media_player':
|
||||
if state == 'play':
|
||||
service = 'media_play'
|
||||
elif state == "pause":
|
||||
service = "media_pause"
|
||||
elif state == "next":
|
||||
service = "media_next_track"
|
||||
elif state == "previous":
|
||||
service = "media_previous_track"
|
||||
|
||||
if service == null:
|
||||
return null
|
||||
|
|
Loading…
Reference in New Issue
Block a user