From cfcc0f3964a318573ad04944d74bc3a5ae3887ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Tue, 26 Feb 2019 15:13:08 +0100 Subject: [PATCH] Port misc and plugin demos to Godot 3.1 --- misc/android_iap/iap.gd | 6 +- misc/android_iap/main.tscn | 83 -- misc/android_iap/project.godot | 11 +- misc/autoload/project.godot | 7 +- misc/autoload/scene_a.tscn | 41 +- misc/autoload/scene_b.tscn | 33 - misc/background_load/background_load.gd | 28 +- misc/background_load/background_load.tscn | 34 +- .../background_load/painting_babel.jpg.import | 2 + .../painting_las_meninas.png.import | 2 + .../painting_mona_lisa.jpg.import | 2 + .../painting_old_guitarist.jpg.import | 2 + .../painting_parasol.jpg.import | 2 + .../painting_the_swing.jpg.import | 2 + misc/background_load/paintings.gd | 1 - misc/background_load/paintings.tscn | 41 +- misc/background_load/project.godot | 3 + .../sculpture_david.jpg.import | 2 + .../sculpture_fountain.jpg.import | 2 + .../sculpture_four_parts_of_earth.jpg.import | 2 + .../sculpture_lincoln.jpg.import | 2 + .../sculpture_thinker.jpg.import | 2 + .../sculpture_venus.png.import | 2 + misc/background_load/sculptures.gd | 1 - misc/background_load/sculptures.tscn | 48 +- misc/instancing/ball.tscn | 32 +- misc/instancing/bowling_ball.png.import | 5 +- misc/instancing/container.png.import | 5 +- misc/instancing/container.tscn | 64 +- misc/instancing/icon.png.import | 5 +- misc/instancing/project.godot | 7 +- misc/joypads/joypads.gd | 2 +- misc/joypads/joypads.tscn | 908 ++---------------- misc/joypads/jsdiagram.tscn | 79 +- misc/joypads/project.godot | 11 +- misc/multitouch_cubes/CubeScene.tscn | 95 +- misc/multitouch_cubes/GestureArea.gd | 1 - misc/multitouch_cubes/Main.tscn | 284 +----- misc/multitouch_cubes/default_env.tres | 75 -- misc/multitouch_cubes/icon.png.import | 31 + misc/multitouch_cubes/project.godot | 7 +- misc/multitouch_view/Main.gd | 2 +- misc/multitouch_view/Main.tscn | 2 - misc/multitouch_view/default_env.tres | 87 -- misc/multitouch_view/icon.png.import | 31 + misc/multitouch_view/project.godot | 7 +- misc/pause/icon.png.import | 5 +- misc/pause/project.godot | 7 +- misc/pause/spinpause.tscn | 143 +-- misc/regex/icon.png.import | 5 +- misc/regex/project.godot | 7 +- misc/regex/regex.tscn | 78 +- misc/scene_changer/project.godot | 11 +- misc/scene_changer/scene_a.tscn | 33 - misc/sensors/cube_6.png.import | 5 +- misc/sensors/default_env.tres | 90 -- misc/sensors/icon.png.import | 5 +- misc/sensors/main.tscn | 503 +--------- misc/sensors/project.godot | 7 +- misc/threads/project.godot | 7 +- misc/threads/thread.tscn | 26 +- misc/tween/godot.png.import | 5 +- misc/tween/icon.png.import | 5 +- misc/tween/main.gd | 4 +- misc/tween/main.tscn | 589 +----------- misc/tween/project.godot | 11 +- misc/window_management/control.gd | 2 +- misc/window_management/observer/observer.tscn | 1 - misc/window_management/project.godot | 42 +- misc/window_management/window_management.tscn | 2 - plugins/custom_dock/custom_dock.scn | Bin 1000 -> 0 bytes plugins/custom_dock/custom_dock.tscn | 56 ++ plugins/custom_dock/dock_plugin.gd | 12 +- plugins/custom_dock/plugin.cfg | 7 - plugins/custom_import_plugin/import_plugin.gd | 4 +- .../custom_import_plugin/material_import.gd | 1 - plugins/custom_import_plugin/test.mtxt.import | 14 + ...al_dock.tscn => custom_material_dock.tscn} | 2 +- .../material_import.gd | 10 +- ...l_creator.gd => silly_material_creator.gd} | 2 +- ...resource.gd => silly_material_resource.gd} | 0 plugins/custom_node/heart.gd | 7 +- plugins/custom_node/heart.png.import | 31 + plugins/custom_node/heart_icon.png.import | 31 + plugins/custom_node/heart_plugin.gd | 10 +- plugins/custom_node/plugin.cfg | 7 - 86 files changed, 693 insertions(+), 3195 deletions(-) create mode 100644 misc/multitouch_cubes/icon.png.import create mode 100644 misc/multitouch_view/icon.png.import delete mode 100644 plugins/custom_dock/custom_dock.scn create mode 100644 plugins/custom_dock/custom_dock.tscn create mode 100644 plugins/custom_import_plugin/test.mtxt.import rename plugins/custom_material_creator/{Custom_material_dock.tscn => custom_material_dock.tscn} (98%) rename plugins/custom_material_creator/{Silly_material_creator.gd => silly_material_creator.gd} (96%) rename plugins/custom_material_creator/{Silly_material_resource.gd => silly_material_resource.gd} (100%) create mode 100644 plugins/custom_node/heart.png.import create mode 100644 plugins/custom_node/heart_icon.png.import diff --git a/misc/android_iap/iap.gd b/misc/android_iap/iap.gd index 0f1e0a1c..220769cb 100644 --- a/misc/android_iap/iap.gd +++ b/misc/android_iap/iap.gd @@ -38,7 +38,7 @@ func request_purchased(): if payment: payment.requestPurchased() -func has_purchased(receipt, signature, sku): +func has_purchased(_receipt, _signature, sku): if sku == "": print("has_purchased : nothing") emit_signal("has_purchased", null) @@ -54,7 +54,7 @@ func purchase(item_name): # transaction_id could be any string that used for validation internally in java payment.purchase(item_name, "transaction_id") -func purchase_success(receipt, signature, sku): +func purchase_success(_receipt, _signature, sku): print("purchase_success : ", sku) emit_signal("purchase_success", sku) @@ -82,7 +82,7 @@ func consume_all(): if payment: payment.consumeUnconsumedPurchases() -func consume_success(receipt, signature, sku): +func consume_success(_receipt, _signature, sku): print("consume_success : ", sku) emit_signal("consume_success", sku) diff --git a/misc/android_iap/main.tscn b/misc/android_iap/main.tscn index 38156490..a26ca61e 100644 --- a/misc/android_iap/main.tscn +++ b/misc/android_iap/main.tscn @@ -3,140 +3,61 @@ [ext_resource path="res://iap_demo.gd" type="Script" id=1] [node name="Control" type="Control"] - -anchor_left = 0.0 -anchor_top = 0.0 anchor_right = 1.0 anchor_bottom = 1.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 0 size_flags_horizontal = 2 size_flags_vertical = 2 script = ExtResource( 1 ) [node name="purchase" type="Button" parent="."] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 margin_left = 40.0 margin_top = 40.0 margin_right = 250.0 margin_bottom = 120.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 0 size_flags_horizontal = 2 size_flags_vertical = 2 -toggle_mode = false -enabled_focus_mode = 2 -shortcut = null -group = null text = "Purchase in app" -flat = false [node name="consume" type="Button" parent="."] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 margin_left = 40.0 margin_top = 150.0 margin_right = 250.0 margin_bottom = 230.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 0 size_flags_horizontal = 2 size_flags_vertical = 2 -toggle_mode = false -enabled_focus_mode = 2 -shortcut = null -group = null text = "Consume in app" -flat = false [node name="request" type="Button" parent="."] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 margin_left = 40.0 margin_top = 260.0 margin_right = 250.0 margin_bottom = 340.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 0 size_flags_horizontal = 2 size_flags_vertical = 2 -toggle_mode = false -enabled_focus_mode = 2 -shortcut = null -group = null text = "Request purchased" -flat = false [node name="query" type="Button" parent="."] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 margin_left = 40.0 margin_top = 370.0 margin_right = 250.0 margin_bottom = 450.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 0 size_flags_horizontal = 2 size_flags_vertical = 2 -toggle_mode = false -enabled_focus_mode = 2 -shortcut = null -group = null text = "Query in app items" -flat = false [node name="alert" type="AcceptDialog" parent="."] - -visible = false -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 margin_left = 290.0 margin_top = 60.0 margin_right = 700.0 margin_bottom = 290.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 0 size_flags_horizontal = 2 size_flags_vertical = 2 -popup_exclusive = false -window_title = "Alert!" -resizable = false -dialog_hide_on_ok = true [node name="Label" type="Label" parent="."] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 margin_left = 300.0 margin_top = 40.0 margin_right = 932.0 margin_bottom = 207.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 2 size_flags_horizontal = 2 size_flags_vertical = 0 text = "\"iap\" is located in Autoloads. See Project > Project Settings > AutoLoad @@ -156,8 +77,4 @@ To test in-app purchase on android device, (It's not published to public, but you and tester can access it.) 3. There should be activated in-app item 4. Any changes on Developer console will take 2~3 hours to take effect" -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 - diff --git a/misc/android_iap/project.godot b/misc/android_iap/project.godot index 934108cb..6eb85467 100644 --- a/misc/android_iap/project.godot +++ b/misc/android_iap/project.godot @@ -6,7 +6,12 @@ ; [section] ; section goes between [] ; param=value ; assign values to parameters -config_version=3 +config_version=4 + +_global_script_classes=[ ] +_global_script_class_icons={ + +} [android] @@ -22,6 +27,10 @@ config/icon="res://icon.png" iap="*res://iap.gd" +[debug] + +gdscript/warnings/return_value_discarded=false + [gdnative] singletons=[ ] diff --git a/misc/autoload/project.godot b/misc/autoload/project.godot index e3985e8a..0425c251 100644 --- a/misc/autoload/project.godot +++ b/misc/autoload/project.godot @@ -6,7 +6,12 @@ ; [section] ; section goes between [] ; param=value ; assign values to parameters -config_version=3 +config_version=4 + +_global_script_classes=[ ] +_global_script_class_icons={ + +} [application] diff --git a/misc/autoload/scene_a.tscn b/misc/autoload/scene_a.tscn index 717b593d..1a60fa3e 100644 --- a/misc/autoload/scene_a.tscn +++ b/misc/autoload/scene_a.tscn @@ -2,63 +2,28 @@ [ext_resource path="res://scene_a.gd" type="Script" id=1] -[node name="scene_a" type="Panel" index="0"] - -anchor_left = 0.0 -anchor_top = 0.0 +[node name="scene_a" type="Panel"] anchor_right = 1.0 anchor_bottom = 1.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 0 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 2 script = ExtResource( 1 ) -[node name="label" type="Label" parent="." index="0"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="label" type="Label" parent="."] margin_left = 64.0 margin_top = 48.0 margin_right = 104.0 margin_bottom = 62.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 2 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 size_flags_vertical = 0 text = "This is scene A." -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 -[node name="goto_scene" type="Button" parent="." index="1"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="goto_scene" type="Button" parent="."] margin_left = 64.0 margin_top = 128.0 margin_right = 192.0 margin_bottom = 160.0 -rect_pivot_offset = Vector2( 0, 0 ) -focus_mode = 2 -mouse_filter = 0 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 2 -toggle_mode = false -enabled_focus_mode = 2 -shortcut = null -group = null text = "Go to Scene B" -flat = false -align = 1 [connection signal="pressed" from="goto_scene" to="." method="_on_goto_scene_pressed"] - - diff --git a/misc/autoload/scene_b.tscn b/misc/autoload/scene_b.tscn index b115c57b..6324a2af 100644 --- a/misc/autoload/scene_b.tscn +++ b/misc/autoload/scene_b.tscn @@ -3,60 +3,27 @@ [ext_resource path="res://scene_b.gd" type="Script" id=1] [node name="scene_b" type="Panel"] - -anchor_left = 0.0 -anchor_top = 0.0 anchor_right = 1.0 anchor_bottom = 1.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 0 size_flags_horizontal = 2 size_flags_vertical = 2 script = ExtResource( 1 ) [node name="label" type="Label" parent="."] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 margin_left = 64.0 margin_top = 48.0 margin_right = 164.0 margin_bottom = 62.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 2 -size_flags_horizontal = 1 size_flags_vertical = 0 text = "This is scene B." -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 [node name="goto_scene" type="Button" parent="."] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 margin_left = 64.0 margin_top = 128.0 margin_right = 192.0 margin_bottom = 160.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 0 size_flags_horizontal = 2 size_flags_vertical = 2 -toggle_mode = false -enabled_focus_mode = 2 -shortcut = null -group = null text = "Go to Scene A" -flat = false [connection signal="pressed" from="goto_scene" to="." method="_on_goto_scene_pressed"] - - diff --git a/misc/background_load/background_load.gd b/misc/background_load/background_load.gd index bbcbfecb..a32233ca 100644 --- a/misc/background_load/background_load.gd +++ b/misc/background_load/background_load.gd @@ -1,7 +1,5 @@ extends Control -var current_scene = null - var thread = null onready var progress = $progress @@ -10,35 +8,35 @@ var SIMULATED_DELAY_SEC = 1.0 func _thread_load(path): var ril = ResourceLoader.load_interactive(path) - assert( ril ) + assert(ril) var total = ril.get_stage_count() # Call deferred to configure max load steps - progress.call_deferred("set_max",total) + progress.call_deferred("set_max", total) var res = null - while (true): #iterate until we have a resource + while true: #iterate until we have a resource # Update progress bar, use call deferred, which routes to main thread - progress.call_deferred("set_value",ril.get_stage()) + progress.call_deferred("set_value", ril.get_stage()) # Simulate a delay - OS.delay_msec( SIMULATED_DELAY_SEC * 1000.0 ) + OS.delay_msec(SIMULATED_DELAY_SEC * 1000.0) # Poll (does a load step) var err = ril.poll() # if OK, then load another one. If EOF, it' s done. Otherwise there was an error. - if ( err == ERR_FILE_EOF): - #loading done, fetch resource + if err == ERR_FILE_EOF: + # Loading done, fetch resource res = ril.get_resource() break - elif (err != OK): - #Not OK, there was an error + elif err != OK: + # Not OK, there was an error print("There was an error loading") break # Send whathever we did (or not) get - call_deferred("_thread_done",res) + call_deferred("_thread_done", res) func _thread_done(resource): - assert( resource ) + assert(resource) # Always wait for threads to finish, this is required on Windows thread.wait_to_finish() @@ -52,7 +50,7 @@ func _thread_done(resource): get_tree().current_scene.free() get_tree().current_scene = null # Add new one to root - get_tree().root.add_child( new_scene ) + get_tree().root.add_child(new_scene) # Set as current scene get_tree().current_scene = new_scene @@ -62,7 +60,7 @@ func load_scene(path): thread = Thread.new() thread.start( self, "_thread_load", path) - raise() #show on top + raise() # show on top progress.visible = true diff --git a/misc/background_load/background_load.tscn b/misc/background_load/background_load.tscn index b3ca1d24..1681c904 100644 --- a/misc/background_load/background_load.tscn +++ b/misc/background_load/background_load.tscn @@ -2,44 +2,14 @@ [ext_resource path="res://background_load.gd" type="Script" id=1] -[node name="bgload" type="Control" index="0"] -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 +[node name="bgload" type="Control"] script = ExtResource( 1 ) -[node name="progress" type="ProgressBar" parent="." index="0"] +[node name="progress" type="ProgressBar" parent="."] visible = false -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 margin_left = 7.0 margin_top = 8.0 margin_right = 207.0 margin_bottom = 22.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 0 -min_value = 0.0 -max_value = 100.0 step = 1.0 -page = 0.0 -value = 0.0 -exp_edit = false -rounded = false -allow_greater = false -allow_lesser = false -percent_visible = true -_sections_unfolded = [ "Visibility" ] diff --git a/misc/background_load/painting_babel.jpg.import b/misc/background_load/painting_babel.jpg.import index 8c97c515..c6eff4b6 100644 --- a/misc/background_load/painting_babel.jpg.import +++ b/misc/background_load/painting_babel.jpg.import @@ -14,6 +14,7 @@ dest_files=[ "res://.import/painting_babel.jpg-bb6b7c64c260f78ce43012bcac8a1c4e. compress/mode=0 compress/lossy_quality=0.7 compress/hdr_mode=0 +compress/bptc_ldr=0 compress/normal_map=0 flags/repeat=0 flags/filter=true @@ -23,6 +24,7 @@ flags/srgb=2 process/fix_alpha_border=true process/premult_alpha=false process/HDR_as_SRGB=false +process/invert_color=false stream=false size_limit=0 detect_3d=true diff --git a/misc/background_load/painting_las_meninas.png.import b/misc/background_load/painting_las_meninas.png.import index 908f4efa..7125bfd4 100644 --- a/misc/background_load/painting_las_meninas.png.import +++ b/misc/background_load/painting_las_meninas.png.import @@ -14,6 +14,7 @@ dest_files=[ "res://.import/painting_las_meninas.png-158bef53fe63c53626df2020827 compress/mode=0 compress/lossy_quality=0.7 compress/hdr_mode=0 +compress/bptc_ldr=0 compress/normal_map=0 flags/repeat=0 flags/filter=true @@ -23,6 +24,7 @@ flags/srgb=2 process/fix_alpha_border=true process/premult_alpha=false process/HDR_as_SRGB=false +process/invert_color=false stream=false size_limit=0 detect_3d=true diff --git a/misc/background_load/painting_mona_lisa.jpg.import b/misc/background_load/painting_mona_lisa.jpg.import index a754763c..10d0649b 100644 --- a/misc/background_load/painting_mona_lisa.jpg.import +++ b/misc/background_load/painting_mona_lisa.jpg.import @@ -14,6 +14,7 @@ dest_files=[ "res://.import/painting_mona_lisa.jpg-cefdc64dfa49e9ee9566b078597cd compress/mode=0 compress/lossy_quality=0.7 compress/hdr_mode=0 +compress/bptc_ldr=0 compress/normal_map=0 flags/repeat=0 flags/filter=true @@ -23,6 +24,7 @@ flags/srgb=2 process/fix_alpha_border=true process/premult_alpha=false process/HDR_as_SRGB=false +process/invert_color=false stream=false size_limit=0 detect_3d=true diff --git a/misc/background_load/painting_old_guitarist.jpg.import b/misc/background_load/painting_old_guitarist.jpg.import index 40fce1fe..09689983 100644 --- a/misc/background_load/painting_old_guitarist.jpg.import +++ b/misc/background_load/painting_old_guitarist.jpg.import @@ -14,6 +14,7 @@ dest_files=[ "res://.import/painting_old_guitarist.jpg-f04ba627b38b0def60d96cb6c compress/mode=0 compress/lossy_quality=0.7 compress/hdr_mode=0 +compress/bptc_ldr=0 compress/normal_map=0 flags/repeat=0 flags/filter=true @@ -23,6 +24,7 @@ flags/srgb=2 process/fix_alpha_border=true process/premult_alpha=false process/HDR_as_SRGB=false +process/invert_color=false stream=false size_limit=0 detect_3d=true diff --git a/misc/background_load/painting_parasol.jpg.import b/misc/background_load/painting_parasol.jpg.import index c9f096f4..ba8eed8d 100644 --- a/misc/background_load/painting_parasol.jpg.import +++ b/misc/background_load/painting_parasol.jpg.import @@ -14,6 +14,7 @@ dest_files=[ "res://.import/painting_parasol.jpg-2864da595fcb4f0e842ba9c49097a05 compress/mode=0 compress/lossy_quality=0.7 compress/hdr_mode=0 +compress/bptc_ldr=0 compress/normal_map=0 flags/repeat=0 flags/filter=true @@ -23,6 +24,7 @@ flags/srgb=2 process/fix_alpha_border=true process/premult_alpha=false process/HDR_as_SRGB=false +process/invert_color=false stream=false size_limit=0 detect_3d=true diff --git a/misc/background_load/painting_the_swing.jpg.import b/misc/background_load/painting_the_swing.jpg.import index 54b4cfb1..68b434ff 100644 --- a/misc/background_load/painting_the_swing.jpg.import +++ b/misc/background_load/painting_the_swing.jpg.import @@ -14,6 +14,7 @@ dest_files=[ "res://.import/painting_the_swing.jpg-1303041ac03cbc85efa4b07ce56ef compress/mode=0 compress/lossy_quality=0.7 compress/hdr_mode=0 +compress/bptc_ldr=0 compress/normal_map=0 flags/repeat=0 flags/filter=true @@ -23,6 +24,7 @@ flags/srgb=2 process/fix_alpha_border=true process/premult_alpha=false process/HDR_as_SRGB=false +process/invert_color=false stream=false size_limit=0 detect_3d=true diff --git a/misc/background_load/paintings.gd b/misc/background_load/paintings.gd index 387dab95..131ce225 100644 --- a/misc/background_load/paintings.gd +++ b/misc/background_load/paintings.gd @@ -1,6 +1,5 @@ extends Node2D - func _on_switch_pressed(): $switch.hide() background_load.load_scene("res://sculptures.tscn") diff --git a/misc/background_load/paintings.tscn b/misc/background_load/paintings.tscn index 85114139..9657e65e 100644 --- a/misc/background_load/paintings.tscn +++ b/misc/background_load/paintings.tscn @@ -9,11 +9,9 @@ [ext_resource path="res://painting_the_swing.jpg" type="Texture" id=7] [sub_resource type="Animation" id=1] - resource_name = "move_around" length = 4.0 loop = true -step = 0.1 tracks/0/type = "value" tracks/0/path = NodePath("painting_mona_lisa:position") tracks/0/interp = 2 @@ -162,68 +160,45 @@ tracks/11/keys = { [node name="Node2D" type="Node2D"] script = ExtResource( 1 ) -[node name="painting_parasol" type="Sprite" parent="." index="0"] +[node name="painting_parasol" type="Sprite" parent="."] position = Vector2( 451.448, 256.916 ) scale = Vector2( 0.557998, 0.557998 ) texture = ExtResource( 2 ) -[node name="painting_babel" type="Sprite" parent="." index="1"] +[node name="painting_babel" type="Sprite" parent="."] position = Vector2( 155.796, 468.287 ) scale = Vector2( 0.29005, 0.29005 ) texture = ExtResource( 3 ) -[node name="painting_mona_lisa" type="Sprite" parent="." index="2"] +[node name="painting_mona_lisa" type="Sprite" parent="."] position = Vector2( 117.659, 173.793 ) scale = Vector2( 0.696799, 0.696799 ) texture = ExtResource( 4 ) -_sections_unfolded = [ "Transform" ] -[node name="painting_las_meninas" type="Sprite" parent="." index="3"] +[node name="painting_las_meninas" type="Sprite" parent="."] position = Vector2( 861.734, 494.059 ) scale = Vector2( 0.348146, 0.348146 ) texture = ExtResource( 5 ) -[node name="painting_old_guitarist" type="Sprite" parent="." index="4"] +[node name="painting_old_guitarist" type="Sprite" parent="."] position = Vector2( 886.982, 185.641 ) scale = Vector2( 0.344706, 0.328421 ) texture = ExtResource( 6 ) -[node name="painting_the_swing" type="Sprite" parent="." index="5"] +[node name="painting_the_swing" type="Sprite" parent="."] position = Vector2( 715.927, 181.745 ) scale = Vector2( 0.286677, 0.286677 ) texture = ExtResource( 7 ) -[node name="AnimationPlayer" type="AnimationPlayer" parent="." index="6"] -root_node = NodePath("..") +[node name="AnimationPlayer" type="AnimationPlayer" parent="."] autoplay = "move_around" -playback_process_mode = 1 -playback_default_blend_time = 0.0 -playback_speed = 1.0 anims/move_around = SubResource( 1 ) -blend_times = [ ] -[node name="switch" type="Button" parent="." index="7"] -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="switch" type="Button" parent="."] margin_left = 6.0 margin_top = 7.0 margin_right = 152.0 margin_bottom = 27.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -focus_mode = 2 -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -toggle_mode = false -enabled_focus_mode = 2 -shortcut = null -group = null text = "Switch to Sulptures" -flat = false -align = 1 [connection signal="pressed" from="switch" to="." method="_on_switch_pressed"] diff --git a/misc/background_load/project.godot b/misc/background_load/project.godot index 51405432..3f7d75c5 100644 --- a/misc/background_load/project.godot +++ b/misc/background_load/project.godot @@ -9,6 +9,9 @@ config_version=4 _global_script_classes=[ ] +_global_script_class_icons={ + +} [application] diff --git a/misc/background_load/sculpture_david.jpg.import b/misc/background_load/sculpture_david.jpg.import index ae6f44d6..569f0fab 100644 --- a/misc/background_load/sculpture_david.jpg.import +++ b/misc/background_load/sculpture_david.jpg.import @@ -14,6 +14,7 @@ dest_files=[ "res://.import/sculpture_david.jpg-48aeb7cb164d32e6f17209e6764b659c compress/mode=0 compress/lossy_quality=0.7 compress/hdr_mode=0 +compress/bptc_ldr=0 compress/normal_map=0 flags/repeat=0 flags/filter=true @@ -23,6 +24,7 @@ flags/srgb=2 process/fix_alpha_border=true process/premult_alpha=false process/HDR_as_SRGB=false +process/invert_color=false stream=false size_limit=0 detect_3d=true diff --git a/misc/background_load/sculpture_fountain.jpg.import b/misc/background_load/sculpture_fountain.jpg.import index 979ed5b8..b82d83dd 100644 --- a/misc/background_load/sculpture_fountain.jpg.import +++ b/misc/background_load/sculpture_fountain.jpg.import @@ -14,6 +14,7 @@ dest_files=[ "res://.import/sculpture_fountain.jpg-dac3819d7eb39b78d36e9f6504d09 compress/mode=0 compress/lossy_quality=0.7 compress/hdr_mode=0 +compress/bptc_ldr=0 compress/normal_map=0 flags/repeat=0 flags/filter=true @@ -23,6 +24,7 @@ flags/srgb=2 process/fix_alpha_border=true process/premult_alpha=false process/HDR_as_SRGB=false +process/invert_color=false stream=false size_limit=0 detect_3d=true diff --git a/misc/background_load/sculpture_four_parts_of_earth.jpg.import b/misc/background_load/sculpture_four_parts_of_earth.jpg.import index 3d8074e4..c367608a 100644 --- a/misc/background_load/sculpture_four_parts_of_earth.jpg.import +++ b/misc/background_load/sculpture_four_parts_of_earth.jpg.import @@ -14,6 +14,7 @@ dest_files=[ "res://.import/sculpture_four_parts_of_earth.jpg-6d7b17284103f155af compress/mode=0 compress/lossy_quality=0.7 compress/hdr_mode=0 +compress/bptc_ldr=0 compress/normal_map=0 flags/repeat=0 flags/filter=true @@ -23,6 +24,7 @@ flags/srgb=2 process/fix_alpha_border=true process/premult_alpha=false process/HDR_as_SRGB=false +process/invert_color=false stream=false size_limit=0 detect_3d=true diff --git a/misc/background_load/sculpture_lincoln.jpg.import b/misc/background_load/sculpture_lincoln.jpg.import index 9683e27c..dc96cabc 100644 --- a/misc/background_load/sculpture_lincoln.jpg.import +++ b/misc/background_load/sculpture_lincoln.jpg.import @@ -14,6 +14,7 @@ dest_files=[ "res://.import/sculpture_lincoln.jpg-2309a3ef73573c72052204394b916e compress/mode=0 compress/lossy_quality=0.7 compress/hdr_mode=0 +compress/bptc_ldr=0 compress/normal_map=0 flags/repeat=0 flags/filter=true @@ -23,6 +24,7 @@ flags/srgb=2 process/fix_alpha_border=true process/premult_alpha=false process/HDR_as_SRGB=false +process/invert_color=false stream=false size_limit=0 detect_3d=true diff --git a/misc/background_load/sculpture_thinker.jpg.import b/misc/background_load/sculpture_thinker.jpg.import index d11d9795..29668918 100644 --- a/misc/background_load/sculpture_thinker.jpg.import +++ b/misc/background_load/sculpture_thinker.jpg.import @@ -14,6 +14,7 @@ dest_files=[ "res://.import/sculpture_thinker.jpg-d13623267c5f848cecaa2bb8bb609f compress/mode=0 compress/lossy_quality=0.7 compress/hdr_mode=0 +compress/bptc_ldr=0 compress/normal_map=0 flags/repeat=0 flags/filter=true @@ -23,6 +24,7 @@ flags/srgb=2 process/fix_alpha_border=true process/premult_alpha=false process/HDR_as_SRGB=false +process/invert_color=false stream=false size_limit=0 detect_3d=true diff --git a/misc/background_load/sculpture_venus.png.import b/misc/background_load/sculpture_venus.png.import index 302abb91..210b6de7 100644 --- a/misc/background_load/sculpture_venus.png.import +++ b/misc/background_load/sculpture_venus.png.import @@ -14,6 +14,7 @@ dest_files=[ "res://.import/sculpture_venus.png-ce0240c8ebb6a0aae05e92456d21d8f3 compress/mode=0 compress/lossy_quality=0.7 compress/hdr_mode=0 +compress/bptc_ldr=0 compress/normal_map=0 flags/repeat=0 flags/filter=true @@ -23,6 +24,7 @@ flags/srgb=2 process/fix_alpha_border=true process/premult_alpha=false process/HDR_as_SRGB=false +process/invert_color=false stream=false size_limit=0 detect_3d=true diff --git a/misc/background_load/sculptures.gd b/misc/background_load/sculptures.gd index 0edbb4ee..a15877bf 100644 --- a/misc/background_load/sculptures.gd +++ b/misc/background_load/sculptures.gd @@ -1,6 +1,5 @@ extends Node2D - func _on_switch_pressed(): $switch.hide() background_load.load_scene("res://paintings.tscn") diff --git a/misc/background_load/sculptures.tscn b/misc/background_load/sculptures.tscn index 23399205..233e2a35 100644 --- a/misc/background_load/sculptures.tscn +++ b/misc/background_load/sculptures.tscn @@ -9,11 +9,9 @@ [ext_resource path="res://sculpture_venus.png" type="Texture" id=7] [sub_resource type="Animation" id=1] - resource_name = "colorcycle" length = 8.0 loop = true -step = 0.1 tracks/0/type = "value" tracks/0/path = NodePath("sculpture_four_parts_of_earth:modulate") tracks/0/interp = 1 @@ -87,76 +85,48 @@ tracks/5/keys = { "values": [ Color( 1, 1, 1, 1 ), Color( 0, 0, 0, 1 ) ] } -[node name="Node2D" type="Node2D" index="0"] +[node name="Node2D" type="Node2D"] script = ExtResource( 1 ) -[node name="sculpture_fountain" type="Sprite" parent="." index="0"] +[node name="sculpture_fountain" type="Sprite" parent="."] position = Vector2( 152.971, 513.499 ) scale = Vector2( 0.191615, 0.191615 ) texture = ExtResource( 2 ) -_sections_unfolded = [ "Visibility" ] -[node name="sculpture_four_parts_of_earth" type="Sprite" parent="." index="1"] +[node name="sculpture_four_parts_of_earth" type="Sprite" parent="."] position = Vector2( 480.743, 588.027 ) scale = Vector2( 0.198693, 0.198693 ) texture = ExtResource( 3 ) -_sections_unfolded = [ "Visibility" ] -[node name="sculpture_david" type="Sprite" parent="." index="2"] +[node name="sculpture_david" type="Sprite" parent="."] position = Vector2( 567.784, 196.577 ) scale = Vector2( 0.447348, 0.447348 ) texture = ExtResource( 4 ) -_sections_unfolded = [ "Visibility" ] -[node name="sculpture_lincoln" type="Sprite" parent="." index="3"] +[node name="sculpture_lincoln" type="Sprite" parent="."] position = Vector2( 211.852, 203.688 ) scale = Vector2( 0.386179, 0.378971 ) texture = ExtResource( 5 ) -_sections_unfolded = [ "Visibility" ] -[node name="sculpture_thinker" type="Sprite" parent="." index="4"] +[node name="sculpture_thinker" type="Sprite" parent="."] position = Vector2( 854.336, 202.363 ) scale = Vector2( 0.182302, 0.182302 ) texture = ExtResource( 6 ) -_sections_unfolded = [ "Visibility" ] -[node name="sculpture_venus" type="Sprite" parent="." index="5"] +[node name="sculpture_venus" type="Sprite" parent="."] position = Vector2( 848.731, 495.153 ) scale = Vector2( 0.402249, 0.402249 ) texture = ExtResource( 7 ) -_sections_unfolded = [ "Visibility" ] -[node name="AnimationPlayer" type="AnimationPlayer" parent="." index="6"] -root_node = NodePath("..") +[node name="AnimationPlayer" type="AnimationPlayer" parent="."] autoplay = "colorcycle" -playback_process_mode = 1 -playback_default_blend_time = 0.0 -playback_speed = 1.0 anims/colorcycle = SubResource( 1 ) -blend_times = [ ] -[node name="switch" type="Button" parent="." index="7"] -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="switch" type="Button" parent="."] margin_left = 5.0 margin_top = 6.0 margin_right = 137.0 margin_bottom = 26.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -focus_mode = 2 -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -toggle_mode = false -enabled_focus_mode = 2 -shortcut = null -group = null text = "Switch to Paintings" -flat = false -align = 1 [connection signal="pressed" from="switch" to="." method="_on_switch_pressed"] diff --git a/misc/instancing/ball.tscn b/misc/instancing/ball.tscn index 2facd044..bd559c4e 100644 --- a/misc/instancing/ball.tscn +++ b/misc/instancing/ball.tscn @@ -1,39 +1,19 @@ -[gd_scene load_steps=3 format=2] +[gd_scene load_steps=4 format=2] [ext_resource path="res://bowling_ball.png" type="Texture" id=1] -[sub_resource type="CircleShape2D" id=1] +[sub_resource type="PhysicsMaterial" id=1] +bounce = 0.4 -custom_solver_bias = 0.0 +[sub_resource type="CircleShape2D" id=2] radius = 30.0 [node name="ball" type="RigidBody2D"] - -input_pickable = false -collision_layer = 1 -collision_mask = 1 -mode = 0 -mass = 1.0 -friction = 1.0 -bounce = 0.4 -gravity_scale = 1.0 -custom_integrator = false -continuous_cd = 0 -contacts_reported = 0 -contact_monitor = false -sleeping = false -can_sleep = true -linear_velocity = Vector2( 0, 0 ) -linear_damp = -1.0 -angular_velocity = 0.0 -angular_damp = -1.0 +physics_material_override = SubResource( 1 ) [node name="sprite" type="Sprite" parent="."] - texture = ExtResource( 1 ) [node name="collision" type="CollisionShape2D" parent="."] - -shape = SubResource( 1 ) - +shape = SubResource( 2 ) diff --git a/misc/instancing/bowling_ball.png.import b/misc/instancing/bowling_ball.png.import index 3d37c389..4b0aade3 100644 --- a/misc/instancing/bowling_ball.png.import +++ b/misc/instancing/bowling_ball.png.import @@ -7,16 +7,14 @@ path="res://.import/bowling_ball.png-0fe48f78a8537b41cee7fd03e5ee14fe.stex" [deps] source_file="res://bowling_ball.png" -source_md5="ed6ee0994bbfefa88886b9c0844fd911" - dest_files=[ "res://.import/bowling_ball.png-0fe48f78a8537b41cee7fd03e5ee14fe.stex" ] -dest_md5="486e2c71579c634163b4521aeb93c256" [params] compress/mode=0 compress/lossy_quality=0.7 compress/hdr_mode=0 +compress/bptc_ldr=0 compress/normal_map=0 flags/repeat=0 flags/filter=true @@ -26,6 +24,7 @@ flags/srgb=2 process/fix_alpha_border=true process/premult_alpha=false process/HDR_as_SRGB=false +process/invert_color=false stream=false size_limit=0 detect_3d=true diff --git a/misc/instancing/container.png.import b/misc/instancing/container.png.import index c4e71dfa..e0028d22 100644 --- a/misc/instancing/container.png.import +++ b/misc/instancing/container.png.import @@ -7,16 +7,14 @@ path="res://.import/container.png-08b8c30d2209234da421d1db5c67b811.stex" [deps] source_file="res://container.png" -source_md5="3bb268159ba0d05e281b2218e48c8ce8" - dest_files=[ "res://.import/container.png-08b8c30d2209234da421d1db5c67b811.stex" ] -dest_md5="5c570503eb858bbf6a495ff5fac6653e" [params] compress/mode=0 compress/lossy_quality=0.7 compress/hdr_mode=0 +compress/bptc_ldr=0 compress/normal_map=0 flags/repeat=0 flags/filter=true @@ -26,6 +24,7 @@ flags/srgb=2 process/fix_alpha_border=true process/premult_alpha=false process/HDR_as_SRGB=false +process/invert_color=false stream=false size_limit=0 detect_3d=true diff --git a/misc/instancing/container.tscn b/misc/instancing/container.tscn index 0e70e81d..232a3efc 100644 --- a/misc/instancing/container.tscn +++ b/misc/instancing/container.tscn @@ -1,69 +1,87 @@ -[gd_scene load_steps=3 format=2] +[gd_scene load_steps=13 format=2] [ext_resource path="res://container.png" type="Texture" id=1] [ext_resource path="res://ball.tscn" type="PackedScene" id=2] +[sub_resource type="PhysicsMaterial" id=1] +bounce = 0.4 + +[sub_resource type="PhysicsMaterial" id=2] +bounce = 0.4 + +[sub_resource type="PhysicsMaterial" id=3] +bounce = 0.4 + +[sub_resource type="PhysicsMaterial" id=4] +bounce = 0.4 + +[sub_resource type="PhysicsMaterial" id=5] +bounce = 0.4 + +[sub_resource type="PhysicsMaterial" id=6] +bounce = 0.4 + +[sub_resource type="PhysicsMaterial" id=7] +bounce = 0.4 + +[sub_resource type="PhysicsMaterial" id=8] +bounce = 0.4 + +[sub_resource type="PhysicsMaterial" id=9] +bounce = 0.4 + +[sub_resource type="PhysicsMaterial" id=10] +bounce = 0.4 + [node name="container" type="Node"] [node name="static" type="StaticBody2D" parent="."] -input_pickable = false -collision_layer = 1 -collision_mask = 1 -constant_linear_velocity = Vector2( 0, 0 ) -constant_angular_velocity = 0.0 -friction = 1.0 -bounce = 0.0 - [node name="sprite" type="Sprite" parent="static"] - position = Vector2( 3, -4 ) texture = ExtResource( 1 ) centered = false [node name="collision" type="CollisionPolygon2D" parent="static"] - -build_mode = 0 polygon = PoolVector2Array( 8.68994, 22.1976, 50.4445, 556.656, 292.621, 501.54, 335.36, 550.855, 510.039, 563.135, 542.137, 526.368, 567.463, 515.822, 612.463, 506.822, 667.291, 495.079, 747.553, 553.575, 793.806, 6.70509, 802.465, 601.097, 4.43558, 596.186 ) [node name="ball 1" parent="." instance=ExtResource( 2 )] - position = Vector2( 223.823, 161.773 ) +physics_material_override = SubResource( 1 ) [node name="ball 2" parent="." instance=ExtResource( 2 )] - position = Vector2( 388.078, 213.215 ) +physics_material_override = SubResource( 2 ) [node name="ball 3" parent="." instance=ExtResource( 2 )] - position = Vector2( 439.52, 104.013 ) +physics_material_override = SubResource( 3 ) [node name="ball 4" parent="." instance=ExtResource( 2 )] - position = Vector2( 235.555, 336.858 ) +physics_material_override = SubResource( 4 ) [node name="ball 5" parent="." instance=ExtResource( 2 )] - position = Vector2( 509.555, 362.858 ) +physics_material_override = SubResource( 5 ) [node name="ball 6" parent="." instance=ExtResource( 2 )] - position = Vector2( 635.555, 147.858 ) +physics_material_override = SubResource( 6 ) [node name="ball 7" parent="." instance=ExtResource( 2 )] - position = Vector2( 631.872, 325.88 ) +physics_material_override = SubResource( 7 ) [node name="ball 8" parent="." instance=ExtResource( 2 )] - position = Vector2( 529.97, 205.561 ) +physics_material_override = SubResource( 8 ) [node name="ball 9" parent="." instance=ExtResource( 2 )] - position = Vector2( 101.489, 167.502 ) +physics_material_override = SubResource( 9 ) [node name="ball 10" parent="." instance=ExtResource( 2 )] - position = Vector2( 143.756, 295.139 ) - +physics_material_override = SubResource( 10 ) diff --git a/misc/instancing/icon.png.import b/misc/instancing/icon.png.import index fa07478d..45ee6af7 100644 --- a/misc/instancing/icon.png.import +++ b/misc/instancing/icon.png.import @@ -7,16 +7,14 @@ path="res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" [deps] source_file="res://icon.png" -source_md5="e70abe25cc26c842c92db68acfe39dbb" - dest_files=[ "res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" ] -dest_md5="c3a615657e792c23f1442ea6f3eb334a" [params] compress/mode=0 compress/lossy_quality=0.7 compress/hdr_mode=0 +compress/bptc_ldr=0 compress/normal_map=0 flags/repeat=0 flags/filter=true @@ -26,6 +24,7 @@ flags/srgb=2 process/fix_alpha_border=true process/premult_alpha=false process/HDR_as_SRGB=false +process/invert_color=false stream=false size_limit=0 detect_3d=true diff --git a/misc/instancing/project.godot b/misc/instancing/project.godot index 9accfbd4..47a09614 100644 --- a/misc/instancing/project.godot +++ b/misc/instancing/project.godot @@ -6,7 +6,12 @@ ; [section] ; section goes between [] ; param=value ; assign values to parameters -config_version=3 +config_version=4 + +_global_script_classes=[ ] +_global_script_class_icons={ + +} [application] diff --git a/misc/joypads/joypads.gd b/misc/joypads/joypads.gd index 340d1656..bcf7b658 100644 --- a/misc/joypads/joypads.gd +++ b/misc/joypads/joypads.gd @@ -14,7 +14,7 @@ var axis_value const DEADZONE = 0.2 -func _physics_process(delta): +func _physics_process(_delta): # Get the joypad device number from the spinbox joy_num = get_node("device_info/joy_num").get_value() diff --git a/misc/joypads/joypads.tscn b/misc/joypads/joypads.tscn index dd0907b5..548faf9a 100644 --- a/misc/joypads/joypads.tscn +++ b/misc/joypads/joypads.tscn @@ -3,1421 +3,649 @@ [ext_resource path="res://joypads.gd" type="Script" id=1] [ext_resource path="res://jsdiagram.tscn" type="PackedScene" id=2] -[node name="joypads" type="Node2D" index="0"] - +[node name="joypads" type="Node2D"] script = ExtResource( 1 ) -[node name="diagram" parent="." index="0" instance=ExtResource( 2 )] - +[node name="diagram" parent="." instance=ExtResource( 2 )] position = Vector2( 400, 200 ) -[node name="device_info" type="Control" parent="." index="1"] - +[node name="device_info" type="Control" parent="."] editor/display_folded = true -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 margin_right = 40.0 margin_bottom = 40.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -[node name="label_device" type="Label" parent="device_info" index="0"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="label_device" type="Label" parent="device_info"] margin_left = 10.0 margin_top = 10.0 margin_right = 60.0 margin_bottom = 30.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 2 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 0 text = "Device" valign = 1 -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 -[node name="joy_num" type="SpinBox" parent="device_info" index="1"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="joy_num" type="SpinBox" parent="device_info"] margin_left = 65.0 margin_top = 10.0 margin_right = 139.0 margin_bottom = 34.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 0 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 2 -min_value = 0.0 max_value = 16.0 -step = 1.0 -page = 0.0 -value = 0.0 -exp_edit = false -rounded = false -editable = true -prefix = "" -suffix = "" -[node name="joy_name" type="Label" parent="device_info" index="2"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="joy_name" type="Label" parent="device_info"] margin_left = 10.0 margin_top = 35.0 margin_right = 250.0 margin_bottom = 50.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 2 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 0 custom_colors/font_color = Color( 0.229156, 1, 0.239205, 1 ) -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 - -[node name="axes" type="Control" parent="." index="2"] +[node name="axes" type="Control" parent="."] editor/display_folded = true -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 margin_right = 40.0 margin_bottom = 40.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -[node name="axis_prog0" type="ProgressBar" parent="axes" index="0"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="axis_prog0" type="ProgressBar" parent="axes"] margin_left = 60.0 margin_top = 60.0 margin_right = 260.0 margin_bottom = 76.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 0 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 -size_flags_vertical = 0 min_value = -100.0 -max_value = 100.0 step = 0.0001 -page = 0.0 -value = 0.0 -exp_edit = false -rounded = false percent_visible = false -[node name="axis_prog1" type="ProgressBar" parent="axes" index="1"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="axis_prog1" type="ProgressBar" parent="axes"] margin_left = 60.0 margin_top = 80.0 margin_right = 260.0 margin_bottom = 96.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 0 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 -size_flags_vertical = 0 min_value = -100.0 -max_value = 100.0 step = 0.0001 -page = 0.0 -value = 0.0 -exp_edit = false -rounded = false percent_visible = false -[node name="axis_prog2" type="ProgressBar" parent="axes" index="2"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="axis_prog2" type="ProgressBar" parent="axes"] margin_left = 60.0 margin_top = 100.0 margin_right = 260.0 margin_bottom = 116.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 0 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 -size_flags_vertical = 0 min_value = -100.0 -max_value = 100.0 step = 0.0001 -page = 0.0 -value = 0.0 -exp_edit = false -rounded = false percent_visible = false -[node name="axis_prog3" type="ProgressBar" parent="axes" index="3"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="axis_prog3" type="ProgressBar" parent="axes"] margin_left = 60.0 margin_top = 120.0 margin_right = 260.0 margin_bottom = 136.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 0 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 -size_flags_vertical = 0 min_value = -100.0 -max_value = 100.0 step = 0.0001 -page = 0.0 -value = 0.0 -exp_edit = false -rounded = false percent_visible = false -[node name="axis_prog4" type="ProgressBar" parent="axes" index="4"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="axis_prog4" type="ProgressBar" parent="axes"] margin_left = 60.0 margin_top = 140.0 margin_right = 260.0 margin_bottom = 156.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 0 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 -size_flags_vertical = 0 min_value = -100.0 -max_value = 100.0 step = 0.0001 -page = 0.0 -value = 0.0 -exp_edit = false -rounded = false percent_visible = false -[node name="axis_prog5" type="ProgressBar" parent="axes" index="5"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="axis_prog5" type="ProgressBar" parent="axes"] margin_left = 60.0 margin_top = 160.0 margin_right = 260.0 margin_bottom = 176.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 0 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 -size_flags_vertical = 0 min_value = -100.0 -max_value = 100.0 step = 0.0001 -page = 0.0 -value = 0.0 -exp_edit = false -rounded = false percent_visible = false -[node name="axis_prog6" type="ProgressBar" parent="axes" index="6"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="axis_prog6" type="ProgressBar" parent="axes"] margin_left = 60.0 margin_top = 180.0 margin_right = 260.0 margin_bottom = 196.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 0 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 -size_flags_vertical = 0 min_value = -100.0 -max_value = 100.0 step = 0.0001 -page = 0.0 -value = 0.0 -exp_edit = false -rounded = false percent_visible = false -[node name="axis_prog7" type="ProgressBar" parent="axes" index="7"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="axis_prog7" type="ProgressBar" parent="axes"] margin_left = 60.0 margin_top = 200.0 margin_right = 260.0 margin_bottom = 216.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 0 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 -size_flags_vertical = 0 min_value = -100.0 -max_value = 100.0 step = 0.0001 -page = 0.0 -value = 0.0 -exp_edit = false -rounded = false percent_visible = false -[node name="axis_prog8" type="ProgressBar" parent="axes" index="8"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="axis_prog8" type="ProgressBar" parent="axes"] margin_left = 60.0 margin_top = 220.0 margin_right = 260.0 margin_bottom = 236.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 0 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 -size_flags_vertical = 0 min_value = -100.0 -max_value = 100.0 step = 0.0001 -page = 0.0 -value = 0.0 -exp_edit = false -rounded = false percent_visible = false -[node name="axis_prog9" type="ProgressBar" parent="axes" index="9"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="axis_prog9" type="ProgressBar" parent="axes"] margin_left = 60.0 margin_top = 240.0 margin_right = 260.0 margin_bottom = 256.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 0 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 -size_flags_vertical = 0 min_value = -100.0 -max_value = 100.0 step = 0.0001 -page = 0.0 -value = 0.0 -exp_edit = false -rounded = false percent_visible = false -[node name="axis_prog10" type="ProgressBar" parent="axes" index="10"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="axis_prog10" type="ProgressBar" parent="axes"] margin_left = 60.0 margin_top = 260.0 margin_right = 260.0 margin_bottom = 276.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 0 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 -size_flags_vertical = 0 min_value = -100.0 -max_value = 100.0 step = 0.0001 -page = 0.0 -value = 0.0 -exp_edit = false -rounded = false percent_visible = false -[node name="axis_val0" type="Label" parent="axes" index="11"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="axis_val0" type="Label" parent="axes"] margin_left = 60.0 margin_top = 60.0 margin_right = 260.0 margin_bottom = 75.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 2 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 0 text = "0" align = 1 valign = 1 -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 -[node name="axis_val1" type="Label" parent="axes" index="12"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="axis_val1" type="Label" parent="axes"] margin_left = 60.0 margin_top = 80.0 margin_right = 260.0 margin_bottom = 95.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 2 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 0 text = "0" align = 1 valign = 1 -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 -[node name="axis_val2" type="Label" parent="axes" index="13"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="axis_val2" type="Label" parent="axes"] margin_left = 60.0 margin_top = 100.0 margin_right = 260.0 margin_bottom = 115.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 2 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 0 text = "0" align = 1 valign = 1 -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 -[node name="axis_val3" type="Label" parent="axes" index="14"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="axis_val3" type="Label" parent="axes"] margin_left = 60.0 margin_top = 120.0 margin_right = 260.0 margin_bottom = 135.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 2 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 0 text = "0" align = 1 valign = 1 -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 -[node name="axis_val4" type="Label" parent="axes" index="15"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="axis_val4" type="Label" parent="axes"] margin_left = 60.0 margin_top = 140.0 margin_right = 260.0 margin_bottom = 155.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 2 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 0 text = "0" align = 1 valign = 1 -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 -[node name="axis_val5" type="Label" parent="axes" index="16"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="axis_val5" type="Label" parent="axes"] margin_left = 60.0 margin_top = 160.0 margin_right = 260.0 margin_bottom = 175.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 2 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 0 text = "0" align = 1 valign = 1 -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 -[node name="axis_val6" type="Label" parent="axes" index="17"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="axis_val6" type="Label" parent="axes"] margin_left = 60.0 margin_top = 180.0 margin_right = 260.0 margin_bottom = 195.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 2 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 0 text = "0" align = 1 valign = 1 -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 -[node name="axis_val7" type="Label" parent="axes" index="18"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="axis_val7" type="Label" parent="axes"] margin_left = 60.0 margin_top = 200.0 margin_right = 260.0 margin_bottom = 215.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 2 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 0 text = "0" align = 1 valign = 1 -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 -[node name="axis_val8" type="Label" parent="axes" index="19"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="axis_val8" type="Label" parent="axes"] margin_left = 60.0 margin_top = 220.0 margin_right = 260.0 margin_bottom = 235.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 2 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 0 text = "0" align = 1 valign = 1 -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 -[node name="axis_val9" type="Label" parent="axes" index="20"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="axis_val9" type="Label" parent="axes"] margin_left = 60.0 margin_top = 240.0 margin_right = 260.0 margin_bottom = 255.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 2 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 0 text = "0" align = 1 valign = 1 -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 -[node name="axis_val10" type="Label" parent="axes" index="21"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="axis_val10" type="Label" parent="axes"] margin_left = 60.0 margin_top = 260.0 margin_right = 260.0 margin_bottom = 275.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 2 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 0 text = "0" align = 1 valign = 1 -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 -[node name="label_axis0" type="Label" parent="axes" index="22"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="label_axis0" type="Label" parent="axes"] margin_left = 10.0 margin_top = 60.0 margin_right = 51.0 margin_bottom = 75.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 2 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 0 text = "Axis 0" valign = 1 -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 -[node name="label_axis1" type="Label" parent="axes" index="23"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="label_axis1" type="Label" parent="axes"] margin_left = 10.0 margin_top = 80.0 margin_right = 51.0 margin_bottom = 95.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 2 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 0 text = "Axis 1" valign = 1 -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 -[node name="label_axis2" type="Label" parent="axes" index="24"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="label_axis2" type="Label" parent="axes"] margin_left = 10.0 margin_top = 100.0 margin_right = 51.0 margin_bottom = 115.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 2 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 0 text = "Axis 2" valign = 1 -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 -[node name="label_axis3" type="Label" parent="axes" index="25"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="label_axis3" type="Label" parent="axes"] margin_left = 10.0 margin_top = 120.0 margin_right = 51.0 margin_bottom = 135.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 2 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 0 text = "Axis 3" valign = 1 -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 -[node name="label_axis4" type="Label" parent="axes" index="26"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="label_axis4" type="Label" parent="axes"] margin_left = 10.0 margin_top = 140.0 margin_right = 51.0 margin_bottom = 155.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 2 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 0 text = "Axis 4" valign = 1 -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 -[node name="label_axis5" type="Label" parent="axes" index="27"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="label_axis5" type="Label" parent="axes"] margin_left = 10.0 margin_top = 160.0 margin_right = 51.0 margin_bottom = 175.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 2 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 0 text = "Axis 5" valign = 1 -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 -[node name="label_axis6" type="Label" parent="axes" index="28"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="label_axis6" type="Label" parent="axes"] margin_left = 10.0 margin_top = 180.0 margin_right = 51.0 margin_bottom = 195.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 2 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 0 text = "Axis 6" valign = 1 -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 -[node name="label_axis7" type="Label" parent="axes" index="29"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="label_axis7" type="Label" parent="axes"] margin_left = 10.0 margin_top = 200.0 margin_right = 51.0 margin_bottom = 215.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 2 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 0 text = "Axis 7" valign = 2 -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 -[node name="label_axis8" type="Label" parent="axes" index="30"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="label_axis8" type="Label" parent="axes"] margin_left = 10.0 margin_top = 220.0 margin_right = 51.0 margin_bottom = 235.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 2 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 0 text = "Axis 8" valign = 2 -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 -[node name="label_axis9" type="Label" parent="axes" index="31"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="label_axis9" type="Label" parent="axes"] margin_left = 10.0 margin_top = 240.0 margin_right = 51.0 margin_bottom = 255.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 2 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 0 text = "Axis 9" valign = 2 -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 -[node name="label_axis10" type="Label" parent="axes" index="32"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="label_axis10" type="Label" parent="axes"] margin_left = 10.0 margin_top = 260.0 margin_right = 51.0 margin_bottom = 275.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 2 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 0 text = "Axis 10" valign = 2 -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 - -[node name="buttons" type="Control" parent="." index="3"] +[node name="buttons" type="Control" parent="."] editor/display_folded = true -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 margin_right = 40.0 margin_bottom = 40.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -[node name="label_buttons" type="Label" parent="buttons" index="0"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="label_buttons" type="Label" parent="buttons"] margin_left = 10.0 margin_top = 290.0 margin_right = 65.0 margin_bottom = 304.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 2 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 0 text = "Buttons:" -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 -[node name="btn0" type="Label" parent="buttons" index="1"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="btn0" type="Label" parent="buttons"] margin_left = 20.0 margin_top = 310.0 margin_right = 45.0 margin_bottom = 324.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 2 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 0 text = "0" align = 1 -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 -[node name="btn1" type="Label" parent="buttons" index="2"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="btn1" type="Label" parent="buttons"] margin_left = 45.0 margin_top = 310.0 margin_right = 70.0 margin_bottom = 324.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 2 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 0 text = "1" align = 1 -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 -[node name="btn2" type="Label" parent="buttons" index="3"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="btn2" type="Label" parent="buttons"] margin_left = 70.0 margin_top = 310.0 margin_right = 95.0 margin_bottom = 324.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 2 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 0 text = "2" align = 1 -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 -[node name="btn3" type="Label" parent="buttons" index="4"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="btn3" type="Label" parent="buttons"] margin_left = 95.0 margin_top = 310.0 margin_right = 120.0 margin_bottom = 324.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 2 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 0 text = "3" align = 1 -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 -[node name="btn4" type="Label" parent="buttons" index="5"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="btn4" type="Label" parent="buttons"] margin_left = 120.0 margin_top = 310.0 margin_right = 145.0 margin_bottom = 324.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 2 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 0 text = "4" align = 1 -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 -[node name="btn5" type="Label" parent="buttons" index="6"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="btn5" type="Label" parent="buttons"] margin_left = 145.0 margin_top = 310.0 margin_right = 170.0 margin_bottom = 324.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 2 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 0 text = "5" align = 1 -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 -[node name="btn6" type="Label" parent="buttons" index="7"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="btn6" type="Label" parent="buttons"] margin_left = 170.0 margin_top = 310.0 margin_right = 195.0 margin_bottom = 324.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 2 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 0 text = "6" align = 1 -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 -[node name="btn7" type="Label" parent="buttons" index="8"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="btn7" type="Label" parent="buttons"] margin_left = 195.0 margin_top = 310.0 margin_right = 220.0 margin_bottom = 324.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 2 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 0 text = "7" align = 1 -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 -[node name="btn8" type="Label" parent="buttons" index="9"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="btn8" type="Label" parent="buttons"] margin_left = 220.0 margin_top = 310.0 margin_right = 245.0 margin_bottom = 324.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 2 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 0 text = "8" align = 1 -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 -[node name="btn9" type="Label" parent="buttons" index="10"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="btn9" type="Label" parent="buttons"] margin_left = 20.0 margin_top = 330.0 margin_right = 45.0 margin_bottom = 344.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 2 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 0 text = "9" align = 1 -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 -[node name="btn10" type="Label" parent="buttons" index="11"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="btn10" type="Label" parent="buttons"] margin_left = 45.0 margin_top = 330.0 margin_right = 70.0 margin_bottom = 344.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 2 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 0 text = "10" align = 1 -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 -[node name="btn11" type="Label" parent="buttons" index="12"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="btn11" type="Label" parent="buttons"] margin_left = 70.0 margin_top = 330.0 margin_right = 95.0 margin_bottom = 344.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 2 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 0 text = "11" align = 1 -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 -[node name="btn12" type="Label" parent="buttons" index="13"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="btn12" type="Label" parent="buttons"] margin_left = 95.0 margin_top = 330.0 margin_right = 120.0 margin_bottom = 344.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 2 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 0 text = "12" align = 1 -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 -[node name="btn13" type="Label" parent="buttons" index="14"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="btn13" type="Label" parent="buttons"] margin_left = 120.0 margin_top = 330.0 margin_right = 145.0 margin_bottom = 344.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 2 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 0 text = "13" align = 1 -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 -[node name="btn14" type="Label" parent="buttons" index="15"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="btn14" type="Label" parent="buttons"] margin_left = 145.0 margin_top = 330.0 margin_right = 170.0 margin_bottom = 344.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 2 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 0 text = "14" align = 1 -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 -[node name="btn15" type="Label" parent="buttons" index="16"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="btn15" type="Label" parent="buttons"] margin_left = 170.0 margin_top = 330.0 margin_right = 195.0 margin_bottom = 344.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 2 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 0 text = "15" align = 1 -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 - -[node name="vibration" type="Control" parent="." index="4"] +[node name="vibration" type="Control" parent="."] editor/display_folded = true -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 margin_right = 40.0 margin_bottom = 40.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -[node name="weak_label" type="Label" parent="vibration" index="0"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="weak_label" type="Label" parent="vibration"] margin_left = 10.0 margin_top = 375.0 margin_right = 152.0 margin_bottom = 389.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 2 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 0 text = "Vibration Weak Motor:" -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 -[node name="strong_label" type="Label" parent="vibration" index="1"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="strong_label" type="Label" parent="vibration"] margin_left = 10.0 margin_top = 413.0 margin_right = 157.0 margin_bottom = 427.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 2 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 0 text = "Vibration Strong Motor:" -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 -[node name="duration_label" type="Label" parent="vibration" index="2"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="duration_label" type="Label" parent="vibration"] margin_left = 10.0 margin_top = 454.0 margin_right = 157.0 margin_bottom = 468.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 2 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 0 text = "Vibration Duration:" -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 -[node name="vibration_weak_value" type="SpinBox" parent="vibration" index="3"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="vibration_weak_value" type="SpinBox" parent="vibration"] margin_left = 165.0 margin_top = 370.0 margin_right = 239.0 margin_bottom = 394.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 0 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 2 -min_value = 0.0 max_value = 1.0 step = 0.05 -page = 0.0 value = 1.0 -exp_edit = false -rounded = false -editable = true -prefix = "" -suffix = "" -[node name="vibration_strong_value" type="SpinBox" parent="vibration" index="4"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="vibration_strong_value" type="SpinBox" parent="vibration"] margin_left = 165.0 margin_top = 408.0 margin_right = 239.0 margin_bottom = 432.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 0 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 2 -min_value = 0.0 max_value = 1.0 step = 0.05 -page = 0.0 value = 1.0 -exp_edit = false -rounded = false -editable = true -prefix = "" -suffix = "" -[node name="vibration_duration_value" type="SpinBox" parent="vibration" index="5"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="vibration_duration_value" type="SpinBox" parent="vibration"] margin_left = 165.0 margin_top = 449.0 margin_right = 239.0 margin_bottom = 473.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 0 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 2 -min_value = 0.0 max_value = 10.0 step = 0.1 -page = 0.0 value = 1.0 -exp_edit = false -rounded = false -editable = true -prefix = "" -suffix = "" -[node name="start_vibration" type="Button" parent="vibration" index="6"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="start_vibration" type="Button" parent="vibration"] margin_left = 290.0 margin_top = 400.0 margin_right = 392.0 margin_bottom = 420.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 0 -mouse_default_cursor_shape = 0 +focus_mode = 0 size_flags_horizontal = 2 size_flags_vertical = 2 -toggle_mode = false enabled_focus_mode = 0 -shortcut = null -group = null text = "Start Vibration" -flat = false -align = 1 -[node name="stop_vibration" type="Button" parent="vibration" index="7"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="stop_vibration" type="Button" parent="vibration"] margin_left = 408.0 margin_top = 400.0 margin_right = 509.0 margin_bottom = 420.0 -rect_pivot_offset = Vector2( 0, 0 ) -focus_mode = 2 -mouse_filter = 0 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 2 -toggle_mode = false -enabled_focus_mode = 2 -shortcut = null -group = null text = "Stop Vibration" -flat = false -align = 1 [connection signal="pressed" from="vibration/start_vibration" to="." method="_on_start_vibration_pressed"] - [connection signal="pressed" from="vibration/stop_vibration" to="." method="_on_stop_vibration_pressed"] - - diff --git a/misc/joypads/jsdiagram.tscn b/misc/joypads/jsdiagram.tscn index 266db3a1..3ed32bdd 100644 --- a/misc/joypads/jsdiagram.tscn +++ b/misc/joypads/jsdiagram.tscn @@ -4,65 +4,56 @@ [ext_resource path="res://indicators.png" type="Texture" id=2] [node name="diagram" type="Sprite"] - position = Vector2( 368.635, 155.289 ) scale = Vector2( 0.432859, 0.446287 ) texture = ExtResource( 1 ) -[node name="buttons" type="Node2D" parent="." index="0"] - +[node name="buttons" type="Node2D" parent="."] editor/display_folded = true -[node name="0" type="Sprite" parent="buttons" index="0"] - +[node name="0" type="Sprite" parent="buttons"] position = Vector2( 147.73, 120.925 ) scale = Vector2( 0.9, 0.9 ) texture = ExtResource( 2 ) region_enabled = true region_rect = Rect2( 0, 0, 45, 45 ) -[node name="1" type="Sprite" parent="buttons" index="1"] - +[node name="1" type="Sprite" parent="buttons"] position = Vector2( 185.769, 82.4874 ) scale = Vector2( 0.9, 0.9 ) texture = ExtResource( 2 ) region_enabled = true region_rect = Rect2( 0, 0, 45, 45 ) -[node name="2" type="Sprite" parent="buttons" index="2"] - +[node name="2" type="Sprite" parent="buttons"] position = Vector2( 112.377, 82.4874 ) scale = Vector2( 0.9, 0.9 ) texture = ExtResource( 2 ) region_enabled = true region_rect = Rect2( 0, 0, 45, 45 ) -[node name="3" type="Sprite" parent="buttons" index="3"] - +[node name="3" type="Sprite" parent="buttons"] position = Vector2( 149.073, 47.3293 ) scale = Vector2( 0.9, 0.9 ) texture = ExtResource( 2 ) region_enabled = true region_rect = Rect2( 0, 0, 45, 45 ) -[node name="4" type="Sprite" parent="buttons" index="4"] - +[node name="4" type="Sprite" parent="buttons"] position = Vector2( -161.038, -158.037 ) scale = Vector2( 5.3348, 3.35512 ) texture = ExtResource( 2 ) region_enabled = true region_rect = Rect2( 10, 10, 10, 10 ) -[node name="5" type="Sprite" parent="buttons" index="5"] - +[node name="5" type="Sprite" parent="buttons"] position = Vector2( 159.362, -156.977 ) scale = Vector2( 5.3348, 3.35512 ) texture = ExtResource( 2 ) region_enabled = true region_rect = Rect2( 10, 10, 10, 10 ) -[node name="6" type="Sprite" parent="buttons" index="6"] - +[node name="6" type="Sprite" parent="buttons"] position = Vector2( -159.349, -221.878 ) scale = Vector2( 1.0458, 2.16952 ) texture = ExtResource( 2 ) @@ -70,56 +61,49 @@ flip_h = true region_enabled = true region_rect = Rect2( 0, 0, 45, 22 ) -[node name="7" type="Sprite" parent="buttons" index="7"] - +[node name="7" type="Sprite" parent="buttons"] position = Vector2( 156.677, -220.11 ) scale = Vector2( 1.0458, 2.16952 ) texture = ExtResource( 2 ) region_enabled = true region_rect = Rect2( 0, 0, 45, 22 ) -[node name="8" type="Sprite" parent="buttons" index="8"] - +[node name="8" type="Sprite" parent="buttons"] position = Vector2( -67.5308, 164.422 ) scale = Vector2( 0.9, 0.9 ) texture = ExtResource( 2 ) region_enabled = true region_rect = Rect2( 0, 0, 45, 45 ) -[node name="9" type="Sprite" parent="buttons" index="9"] - +[node name="9" type="Sprite" parent="buttons"] position = Vector2( 75.8825, 167.363 ) scale = Vector2( 0.9, 0.9 ) texture = ExtResource( 2 ) region_enabled = true region_rect = Rect2( 0, 0, 45, 45 ) -[node name="10" type="Sprite" parent="buttons" index="10"] - +[node name="10" type="Sprite" parent="buttons"] position = Vector2( -46.6707, 52.702 ) scale = Vector2( 0.810497, 0.57205 ) texture = ExtResource( 2 ) region_enabled = true region_rect = Rect2( 0, 0, 45, 45 ) -[node name="11" type="Sprite" parent="buttons" index="11"] - +[node name="11" type="Sprite" parent="buttons"] position = Vector2( 56.2581, 54.4382 ) scale = Vector2( 0.810497, 0.57205 ) texture = ExtResource( 2 ) region_enabled = true region_rect = Rect2( 0, 0, 45, 45 ) -[node name="12" type="Sprite" parent="buttons" index="12"] - +[node name="12" type="Sprite" parent="buttons"] position = Vector2( -139.402, 46.8295 ) scale = Vector2( 0.9, 0.9 ) texture = ExtResource( 2 ) region_enabled = true region_rect = Rect2( 50, 0, 54, 14 ) -[node name="13" type="Sprite" parent="buttons" index="13"] - +[node name="13" type="Sprite" parent="buttons"] position = Vector2( -139.838, 115.789 ) scale = Vector2( 0.9, 0.9 ) texture = ExtResource( 2 ) @@ -127,16 +111,14 @@ flip_v = true region_enabled = true region_rect = Rect2( 50, 0, 54, 14 ) -[node name="14" type="Sprite" parent="buttons" index="14"] - +[node name="14" type="Sprite" parent="buttons"] position = Vector2( -172.262, 81.8793 ) scale = Vector2( 0.9, 0.9 ) texture = ExtResource( 2 ) region_enabled = true region_rect = Rect2( 50, 0, 14, 54 ) -[node name="15" type="Sprite" parent="buttons" index="15"] - +[node name="15" type="Sprite" parent="buttons"] position = Vector2( -105.085, 81.0326 ) scale = Vector2( 0.9, 0.9 ) texture = ExtResource( 2 ) @@ -144,18 +126,16 @@ flip_h = true region_enabled = true region_rect = Rect2( 50, 0, 14, 54 ) -[node name="axes" type="Node2D" parent="." index="1"] - -[node name="0-" type="Sprite" parent="axes" index="0"] +[node name="axes" type="Node2D" parent="."] +[node name="0-" type="Sprite" parent="axes"] position = Vector2( -94.4295, 164.932 ) scale = Vector2( 0.9, 0.9 ) texture = ExtResource( 2 ) region_enabled = true region_rect = Rect2( 50, 0, 14, 54 ) -[node name="0+" type="Sprite" parent="axes" index="1"] - +[node name="0+" type="Sprite" parent="axes"] position = Vector2( -40.3475, 164.509 ) scale = Vector2( 0.9, 0.9 ) texture = ExtResource( 2 ) @@ -163,16 +143,14 @@ flip_h = true region_enabled = true region_rect = Rect2( 50, 0, 14, 54 ) -[node name="1-" type="Sprite" parent="axes" index="2"] - +[node name="1-" type="Sprite" parent="axes"] position = Vector2( -67.6802, 137.926 ) scale = Vector2( 0.9, 0.9 ) texture = ExtResource( 2 ) region_enabled = true region_rect = Rect2( 50, 0, 54, 14 ) -[node name="1+" type="Sprite" parent="axes" index="3"] - +[node name="1+" type="Sprite" parent="axes"] position = Vector2( -67.4618, 192.915 ) scale = Vector2( 0.9, 0.9 ) texture = ExtResource( 2 ) @@ -180,16 +158,14 @@ flip_v = true region_enabled = true region_rect = Rect2( 50, 0, 54, 14 ) -[node name="2-" type="Sprite" parent="axes" index="4"] - +[node name="2-" type="Sprite" parent="axes"] position = Vector2( 48.8152, 167.145 ) scale = Vector2( 0.9, 0.9 ) texture = ExtResource( 2 ) region_enabled = true region_rect = Rect2( 50, 0, 14, 54 ) -[node name="2+" type="Sprite" parent="axes" index="5"] - +[node name="2+" type="Sprite" parent="axes"] position = Vector2( 102.899, 167.857 ) scale = Vector2( 0.9, 0.9 ) texture = ExtResource( 2 ) @@ -197,16 +173,14 @@ flip_h = true region_enabled = true region_rect = Rect2( 50, 0, 14, 54 ) -[node name="3-" type="Sprite" parent="axes" index="6"] - +[node name="3-" type="Sprite" parent="axes"] position = Vector2( 76.6557, 140.986 ) scale = Vector2( 0.9, 0.9 ) texture = ExtResource( 2 ) region_enabled = true region_rect = Rect2( 50, 0, 54, 14 ) -[node name="3+" type="Sprite" parent="axes" index="7"] - +[node name="3+" type="Sprite" parent="axes"] position = Vector2( 76.0009, 195.339 ) scale = Vector2( 0.9, 0.9 ) texture = ExtResource( 2 ) @@ -214,4 +188,3 @@ flip_v = true region_enabled = true region_rect = Rect2( 50, 0, 54, 14 ) - diff --git a/misc/joypads/project.godot b/misc/joypads/project.godot index 9ac09a2d..9957ec6e 100644 --- a/misc/joypads/project.godot +++ b/misc/joypads/project.godot @@ -6,7 +6,12 @@ ; [section] ; section goes between [] ; param=value ; assign values to parameters -config_version=3 +config_version=4 + +_global_script_classes=[ ] +_global_script_class_icons={ + +} [application] @@ -14,6 +19,10 @@ config/name="Joypads" run/main_scene="res://joypads.tscn" config/icon="res://icon.png" +[debug] + +gdscript/warnings/return_value_discarded=false + [display] window/size/width=540 diff --git a/misc/multitouch_cubes/CubeScene.tscn b/misc/multitouch_cubes/CubeScene.tscn index e7986ed9..2d48955a 100644 --- a/misc/multitouch_cubes/CubeScene.tscn +++ b/misc/multitouch_cubes/CubeScene.tscn @@ -3,121 +3,28 @@ [ext_resource path="res://default_env.tres" type="Environment" id=1] [sub_resource type="SpatialMaterial" id=1] - -render_priority = 0 -flags_transparent = false -flags_unshaded = false -flags_vertex_lighting = false -flags_no_depth_test = false -flags_use_point_size = false -flags_world_triplanar = false -flags_fixed_size = false -vertex_color_use_as_albedo = false -vertex_color_is_srgb = false params_diffuse_mode = 1 -params_specular_mode = 0 -params_blend_mode = 0 -params_cull_mode = 0 -params_depth_draw_mode = 0 -params_line_width = 1.0 -params_point_size = 1.0 -params_billboard_mode = 0 -params_grow = false -params_use_alpha_scissor = false albedo_color = Color( 0.149414, 0.796875, 0.569252, 1 ) -metallic = 0.0 -metallic_specular = 0.5 -metallic_texture_channel = 0 roughness = 0.0 -roughness_texture_channel = 0 -emission_enabled = false -normal_enabled = false -rim_enabled = false -clearcoat_enabled = false -anisotropy_enabled = false -ao_enabled = false -depth_enabled = false -subsurf_scatter_enabled = false -transmission_enabled = false -refraction_enabled = false -detail_enabled = false -uv1_scale = Vector3( 1, 1, 1 ) -uv1_offset = Vector3( 0, 0, 0 ) -uv1_triplanar = false -uv1_triplanar_sharpness = 1.0 -uv2_scale = Vector3( 1, 1, 1 ) -uv2_offset = Vector3( 0, 0, 0 ) -uv2_triplanar = false -uv2_triplanar_sharpness = 1.0 -proximity_fade_enable = false -distance_fade_enable = false [sub_resource type="CubeMesh" id=2] -size = Vector3( 2, 2, 2 ) -subdivide_width = 0 -subdivide_height = 0 -subdivide_depth = 0 - [node name="Spatial" type="Spatial"] [node name="MeshInstance" type="MeshInstance" parent="."] - transform = Transform( 0.707107, 0, -0.707107, -0.353553, 0.866025, -0.353553, 0.612372, 0.5, 0.612372, 0, 0, 0 ) -layers = 1 material_override = SubResource( 1 ) -cast_shadow = 1 -extra_cull_margin = 0.0 -use_in_baked_light = false -lod_min_distance = 0.0 -lod_min_hysteresis = 0.0 -lod_max_distance = 0.0 -lod_max_hysteresis = 0.0 mesh = SubResource( 2 ) -skeleton = NodePath("..") material/0 = null [node name="DirectionalLight" type="DirectionalLight" parent="."] - transform = Transform( 0.926535, 0.11439, -0.358396, 0.199614, 0.658013, 0.726067, 0.318884, -0.744267, 0.586839, 0, 4.14991, 0 ) -layers = 1 -light_color = Color( 1, 1, 1, 1 ) -light_energy = 1.0 -light_indirect_energy = 1.0 -light_negative = false -light_specular = 0.5 -light_cull_mask = -1 -shadow_enabled = false -shadow_color = Color( 0, 0, 0, 1 ) -shadow_bias = 0.1 -shadow_contact = 0.0 -shadow_reverse_cull_face = false -editor_only = false -directional_shadow_mode = 2 -directional_shadow_split_1 = 0.1 -directional_shadow_split_2 = 0.2 -directional_shadow_split_3 = 0.5 -directional_shadow_blend_splits = false -directional_shadow_normal_bias = 0.8 -directional_shadow_bias_split_scale = 0.25 -directional_shadow_depth_range = 0 -directional_shadow_max_distance = 200.0 [node name="Camera" type="Camera" parent="."] - transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 7.09558 ) -projection = 0 fov = 74.0 near = 0.1 -far = 100.0 -keep_aspect = 1 -current = false -cull_mask = 1048575 -environment = null -h_offset = 0.0 -v_offset = 0.0 -doppler/tracking = 0 [node name="WorldEnvironment" type="WorldEnvironment" parent="."] - environment = ExtResource( 1 ) + diff --git a/misc/multitouch_cubes/GestureArea.gd b/misc/multitouch_cubes/GestureArea.gd index d50f645b..c6896cf7 100644 --- a/misc/multitouch_cubes/GestureArea.gd +++ b/misc/multitouch_cubes/GestureArea.gd @@ -27,7 +27,6 @@ func _gui_input(event): # (event is InputEventScreenTouch && (!event.pressed || get_global_rect().has_point(event.position)))): # return - var finger_count_changed = false var finger_count = base_state.size() if finger_count == 0: diff --git a/misc/multitouch_cubes/Main.tscn b/misc/multitouch_cubes/Main.tscn index 2b0a98ae..72a88a5c 100644 --- a/misc/multitouch_cubes/Main.tscn +++ b/misc/multitouch_cubes/Main.tscn @@ -4,373 +4,165 @@ [ext_resource path="res://CubeScene.tscn" type="PackedScene" id=2] [node name="VBoxContainer" type="VBoxContainer"] - -anchor_left = 0.0 -anchor_top = 0.0 anchor_right = 1.0 anchor_bottom = 1.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 1 size_flags_horizontal = 0 size_flags_vertical = 0 -alignment = 0 [node name="HBoxContainer" type="HBoxContainer" parent="."] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_right = 512.0 -margin_bottom = 254.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 1 +margin_right = 1024.0 +margin_bottom = 298.0 size_flags_horizontal = 3 size_flags_vertical = 3 -alignment = 0 [node name="ViewportContainer" type="ViewportContainer" parent="HBoxContainer"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_right = 254.0 -margin_bottom = 254.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 0 +margin_right = 510.0 +margin_bottom = 298.0 size_flags_horizontal = 3 size_flags_vertical = 3 stretch = true -stretch_shrink = 1 script = ExtResource( 1 ) target = NodePath("Viewport/Spatial/MeshInstance") -min_scale = 0.1 -max_scale = 3.0 -one_finger_rot_x = true one_finger_rot_y = false two_fingers_rot_z = false two_fingers_zoom = false [node name="Viewport" type="Viewport" parent="HBoxContainer/ViewportContainer"] - -arvr = false -size = Vector2( 254, 254 ) +size = Vector2( 510, 298 ) own_world = true -world = null transparent_bg = true -msaa = 0 +handle_input_locally = false hdr = false -disable_3d = false -usage = 2 -debug_draw = 0 -render_target_v_flip = false -render_target_clear_mode = 0 render_target_update_mode = 3 -audio_listener_enable_2d = false -audio_listener_enable_3d = false -physics_object_picking = false -gui_disable_input = false -gui_snap_controls_to_pixels = true -shadow_atlas_size = 0 -shadow_atlas_quad_0 = 2 -shadow_atlas_quad_1 = 2 -shadow_atlas_quad_2 = 3 -shadow_atlas_quad_3 = 4 [node name="Spatial" parent="HBoxContainer/ViewportContainer/Viewport" instance=ExtResource( 2 )] -[node name="DirectionalLight" parent="HBoxContainer/ViewportContainer/Viewport/Spatial"] - -light_cull_mask = -1 - -[node name="Camera" parent="HBoxContainer/ViewportContainer/Viewport/Spatial"] +[node name="DirectionalLight" parent="HBoxContainer/ViewportContainer/Viewport/Spatial" index="1"] +light_cull_mask = 4294967295 +[node name="Camera" parent="HBoxContainer/ViewportContainer/Viewport/Spatial" index="2"] current = true [node name="Label" type="Label" parent="HBoxContainer/ViewportContainer"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 margin_left = 7.0 margin_top = 11.0 margin_right = 157.0 margin_bottom = 25.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 2 -size_flags_horizontal = 1 -size_flags_vertical = 4 text = "One-finger rot around X" -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 [node name="ViewportContainer2" type="ViewportContainer" parent="HBoxContainer"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_left = 258.0 -margin_right = 512.0 -margin_bottom = 254.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 0 +margin_left = 514.0 +margin_right = 1024.0 +margin_bottom = 298.0 size_flags_horizontal = 3 size_flags_vertical = 3 stretch = true -stretch_shrink = 1 script = ExtResource( 1 ) target = NodePath("Viewport/Spatial/MeshInstance") -min_scale = 0.1 -max_scale = 3.0 -one_finger_rot_x = true -one_finger_rot_y = true two_fingers_rot_z = false two_fingers_zoom = false [node name="Viewport" type="Viewport" parent="HBoxContainer/ViewportContainer2"] - -arvr = false -size = Vector2( 254, 254 ) +size = Vector2( 510, 298 ) own_world = true -world = null transparent_bg = true -msaa = 0 +handle_input_locally = false hdr = false -disable_3d = false -usage = 2 -debug_draw = 0 -render_target_v_flip = false -render_target_clear_mode = 0 render_target_update_mode = 3 -audio_listener_enable_2d = false -audio_listener_enable_3d = false -physics_object_picking = false -gui_disable_input = false -gui_snap_controls_to_pixels = true -shadow_atlas_size = 0 -shadow_atlas_quad_0 = 2 -shadow_atlas_quad_1 = 2 -shadow_atlas_quad_2 = 3 -shadow_atlas_quad_3 = 4 [node name="Spatial" parent="HBoxContainer/ViewportContainer2/Viewport" instance=ExtResource( 2 )] -[node name="DirectionalLight" parent="HBoxContainer/ViewportContainer2/Viewport/Spatial"] - -light_cull_mask = -1 - -[node name="Camera" parent="HBoxContainer/ViewportContainer2/Viewport/Spatial"] +[node name="DirectionalLight" parent="HBoxContainer/ViewportContainer2/Viewport/Spatial" index="1"] +light_cull_mask = 4294967295 +[node name="Camera" parent="HBoxContainer/ViewportContainer2/Viewport/Spatial" index="2"] current = true [node name="Label2" type="Label" parent="HBoxContainer/ViewportContainer2"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 margin_left = 8.0 margin_top = 11.0 margin_right = 196.0 margin_bottom = 25.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 2 -size_flags_horizontal = 1 -size_flags_vertical = 4 text = "One-finger rot around X and Y" -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 [node name="HBoxContainer2" type="HBoxContainer" parent="."] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_top = 258.0 -margin_right = 512.0 -margin_bottom = 512.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 1 +margin_top = 302.0 +margin_right = 1024.0 +margin_bottom = 600.0 size_flags_horizontal = 3 size_flags_vertical = 3 -alignment = 0 [node name="ViewportContainer" type="ViewportContainer" parent="HBoxContainer2"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_right = 254.0 -margin_bottom = 254.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 0 +margin_right = 510.0 +margin_bottom = 298.0 size_flags_horizontal = 3 size_flags_vertical = 3 stretch = true -stretch_shrink = 1 script = ExtResource( 1 ) target = NodePath("Viewport/Spatial/MeshInstance") -min_scale = 0.1 -max_scale = 3.0 -one_finger_rot_x = true -one_finger_rot_y = true -two_fingers_rot_z = true two_fingers_zoom = false [node name="Viewport" type="Viewport" parent="HBoxContainer2/ViewportContainer"] - -arvr = false -size = Vector2( 254, 254 ) +size = Vector2( 510, 298 ) own_world = true -world = null transparent_bg = true -msaa = 0 +handle_input_locally = false hdr = false -disable_3d = false -usage = 2 -debug_draw = 0 -render_target_v_flip = false -render_target_clear_mode = 0 render_target_update_mode = 3 -audio_listener_enable_2d = false -audio_listener_enable_3d = false -physics_object_picking = false -gui_disable_input = false -gui_snap_controls_to_pixels = true -shadow_atlas_size = 0 -shadow_atlas_quad_0 = 2 -shadow_atlas_quad_1 = 2 -shadow_atlas_quad_2 = 3 -shadow_atlas_quad_3 = 4 [node name="Spatial" parent="HBoxContainer2/ViewportContainer/Viewport" instance=ExtResource( 2 )] -[node name="DirectionalLight" parent="HBoxContainer2/ViewportContainer/Viewport/Spatial"] - -light_cull_mask = -1 - -[node name="Camera" parent="HBoxContainer2/ViewportContainer/Viewport/Spatial"] +[node name="DirectionalLight" parent="HBoxContainer2/ViewportContainer/Viewport/Spatial" index="1"] +light_cull_mask = 4294967295 +[node name="Camera" parent="HBoxContainer2/ViewportContainer/Viewport/Spatial" index="2"] current = true [node name="Label3" type="Label" parent="HBoxContainer2/ViewportContainer"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 margin_left = 8.0 margin_top = 9.0 margin_right = 236.0 margin_bottom = 23.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 2 -size_flags_horizontal = 1 -size_flags_vertical = 4 text = "One-finger X/Y rot + two-finger Z rot" -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 [node name="ViewportContainer2" type="ViewportContainer" parent="HBoxContainer2"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_left = 258.0 -margin_right = 512.0 -margin_bottom = 254.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 0 +margin_left = 514.0 +margin_right = 1024.0 +margin_bottom = 298.0 size_flags_horizontal = 3 size_flags_vertical = 3 stretch = true -stretch_shrink = 1 script = ExtResource( 1 ) target = NodePath("Viewport/Spatial/MeshInstance") -min_scale = 0.1 -max_scale = 3.0 -one_finger_rot_x = true -one_finger_rot_y = true -two_fingers_rot_z = true -two_fingers_zoom = true [node name="Viewport" type="Viewport" parent="HBoxContainer2/ViewportContainer2"] - -arvr = false -size = Vector2( 254, 254 ) +size = Vector2( 510, 298 ) own_world = true -world = null transparent_bg = true -msaa = 0 +handle_input_locally = false hdr = false -disable_3d = false -usage = 2 -debug_draw = 0 -render_target_v_flip = false -render_target_clear_mode = 0 render_target_update_mode = 3 -audio_listener_enable_2d = false -audio_listener_enable_3d = false -physics_object_picking = false -gui_disable_input = false -gui_snap_controls_to_pixels = true -shadow_atlas_size = 0 -shadow_atlas_quad_0 = 2 -shadow_atlas_quad_1 = 2 -shadow_atlas_quad_2 = 3 -shadow_atlas_quad_3 = 4 [node name="Spatial" parent="HBoxContainer2/ViewportContainer2/Viewport" instance=ExtResource( 2 )] -[node name="DirectionalLight" parent="HBoxContainer2/ViewportContainer2/Viewport/Spatial"] - -light_cull_mask = -1 - -[node name="Camera" parent="HBoxContainer2/ViewportContainer2/Viewport/Spatial"] +[node name="DirectionalLight" parent="HBoxContainer2/ViewportContainer2/Viewport/Spatial" index="1"] +light_cull_mask = 4294967295 +[node name="Camera" parent="HBoxContainer2/ViewportContainer2/Viewport/Spatial" index="2"] current = true [node name="Label2" type="Label" parent="HBoxContainer2/ViewportContainer2"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 margin_left = 12.0 margin_top = 9.0 margin_right = 279.0 margin_bottom = 23.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 2 -size_flags_horizontal = 1 -size_flags_vertical = 4 text = "One-finger X/Y, two-finger Z + pinch" -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 [editable path="HBoxContainer/ViewportContainer/Viewport/Spatial"] + [editable path="HBoxContainer/ViewportContainer2/Viewport/Spatial"] + [editable path="HBoxContainer2/ViewportContainer/Viewport/Spatial"] + [editable path="HBoxContainer2/ViewportContainer2/Viewport/Spatial"] diff --git a/misc/multitouch_cubes/default_env.tres b/misc/multitouch_cubes/default_env.tres index 03504276..2488177a 100644 --- a/misc/multitouch_cubes/default_env.tres +++ b/misc/multitouch_cubes/default_env.tres @@ -1,80 +1,5 @@ [gd_resource type="Environment" format=2] [resource] - -background_mode = 0 -background_sky_custom_fov = 0.0 -background_color = Color( 0, 0, 0, 1 ) -background_energy = 1.0 -background_canvas_max_layer = 0 ambient_light_color = Color( 0.307434, 0.362682, 0.539063, 1 ) -ambient_light_energy = 1.0 -ambient_light_sky_contribution = 1.0 -fog_enabled = false -fog_color = Color( 0.5, 0.6, 0.7, 1 ) -fog_sun_color = Color( 1, 0.9, 0.7, 1 ) -fog_sun_amount = 0.0 -fog_depth_enabled = true -fog_depth_begin = 10.0 -fog_depth_curve = 1.0 -fog_transmit_enabled = false -fog_transmit_curve = 1.0 -fog_height_enabled = false -fog_height_min = 0.0 -fog_height_max = 100.0 -fog_height_curve = 1.0 -tonemap_mode = 0 -tonemap_exposure = 1.0 -tonemap_white = 1.0 -auto_exposure_enabled = false -auto_exposure_scale = 0.4 -auto_exposure_min_luma = 0.05 -auto_exposure_max_luma = 8.0 -auto_exposure_speed = 0.5 -ss_reflections_enabled = false -ss_reflections_max_steps = 64 -ss_reflections_fade_in = 0.15 -ss_reflections_fade_out = 2.0 -ss_reflections_depth_tolerance = 0.2 -ss_reflections_roughness = true -ssao_enabled = false -ssao_radius = 1.0 -ssao_intensity = 1.0 -ssao_radius2 = 0.0 -ssao_intensity2 = 1.0 -ssao_bias = 0.01 -ssao_light_affect = 0.0 -ssao_color = Color( 0, 0, 0, 1 ) -ssao_quality = 0 -ssao_blur = 3 -ssao_edge_sharpness = 4.0 -dof_blur_far_enabled = false -dof_blur_far_distance = 10.0 -dof_blur_far_transition = 5.0 -dof_blur_far_amount = 0.1 -dof_blur_far_quality = 1 -dof_blur_near_enabled = false -dof_blur_near_distance = 2.0 -dof_blur_near_transition = 1.0 -dof_blur_near_amount = 0.1 -dof_blur_near_quality = 1 -glow_enabled = false -glow_levels/1 = false -glow_levels/2 = false -glow_levels/3 = true -glow_levels/4 = false -glow_levels/5 = true -glow_levels/6 = false -glow_levels/7 = false -glow_intensity = 0.8 -glow_strength = 1.0 -glow_bloom = 0.0 -glow_blend_mode = 2 -glow_hdr_threshold = 1.0 -glow_hdr_scale = 2.0 -glow_bicubic_upscale = false -adjustment_enabled = false -adjustment_brightness = 1.0 -adjustment_contrast = 1.0 -adjustment_saturation = 1.0 diff --git a/misc/multitouch_cubes/icon.png.import b/misc/multitouch_cubes/icon.png.import new file mode 100644 index 00000000..45ee6af7 --- /dev/null +++ b/misc/multitouch_cubes/icon.png.import @@ -0,0 +1,31 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" + +[deps] + +source_file="res://icon.png" +dest_files=[ "res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/misc/multitouch_cubes/project.godot b/misc/multitouch_cubes/project.godot index d67fd905..c9b8312d 100644 --- a/misc/multitouch_cubes/project.godot +++ b/misc/multitouch_cubes/project.godot @@ -6,7 +6,12 @@ ; [section] ; section goes between [] ; param=value ; assign values to parameters -config_version=3 +config_version=4 + +_global_script_classes=[ ] +_global_script_class_icons={ + +} [application] diff --git a/misc/multitouch_view/Main.gd b/misc/multitouch_view/Main.gd index 1ccad7c8..976dabaf 100644 --- a/misc/multitouch_view/Main.gd +++ b/misc/multitouch_view/Main.gd @@ -1,6 +1,6 @@ extends Node2D -func _process(delta): +func _process(_delta): # To keep redrawing on every frame update() diff --git a/misc/multitouch_view/Main.tscn b/misc/multitouch_view/Main.tscn index 517e34e5..8b6acc9b 100644 --- a/misc/multitouch_view/Main.tscn +++ b/misc/multitouch_view/Main.tscn @@ -3,7 +3,5 @@ [ext_resource path="res://Main.gd" type="Script" id=1] [node name="Main" type="Node2D"] - script = ExtResource( 1 ) - diff --git a/misc/multitouch_view/default_env.tres b/misc/multitouch_view/default_env.tres index ad86b722..4b7cb0ac 100644 --- a/misc/multitouch_view/default_env.tres +++ b/misc/multitouch_view/default_env.tres @@ -1,101 +1,14 @@ [gd_resource type="Environment" load_steps=2 format=2] [sub_resource type="ProceduralSky" id=1] - -radiance_size = 4 sky_top_color = Color( 0.0470588, 0.454902, 0.976471, 1 ) sky_horizon_color = Color( 0.556863, 0.823529, 0.909804, 1 ) sky_curve = 0.25 -sky_energy = 1.0 ground_bottom_color = Color( 0.101961, 0.145098, 0.188235, 1 ) ground_horizon_color = Color( 0.482353, 0.788235, 0.952941, 1 ) ground_curve = 0.01 -ground_energy = 1.0 -sun_color = Color( 1, 1, 1, 1 ) -sun_latitude = 35.0 -sun_longitude = 0.0 -sun_angle_min = 1.0 -sun_angle_max = 100.0 -sun_curve = 0.05 -sun_energy = 16.0 -texture_size = 2 [resource] - background_mode = 2 background_sky = SubResource( 1 ) -background_sky_custom_fov = 0.0 -background_color = Color( 0, 0, 0, 1 ) -background_energy = 1.0 -background_canvas_max_layer = 0 -ambient_light_color = Color( 0, 0, 0, 1 ) -ambient_light_energy = 1.0 -ambient_light_sky_contribution = 1.0 -fog_enabled = false -fog_color = Color( 0.5, 0.6, 0.7, 1 ) -fog_sun_color = Color( 1, 0.9, 0.7, 1 ) -fog_sun_amount = 0.0 -fog_depth_enabled = true -fog_depth_begin = 10.0 -fog_depth_curve = 1.0 -fog_transmit_enabled = false -fog_transmit_curve = 1.0 -fog_height_enabled = false -fog_height_min = 0.0 -fog_height_max = 100.0 -fog_height_curve = 1.0 -tonemap_mode = 0 -tonemap_exposure = 1.0 -tonemap_white = 1.0 -auto_exposure_enabled = false -auto_exposure_scale = 0.4 -auto_exposure_min_luma = 0.05 -auto_exposure_max_luma = 8.0 -auto_exposure_speed = 0.5 -ss_reflections_enabled = false -ss_reflections_max_steps = 64 -ss_reflections_fade_in = 0.15 -ss_reflections_fade_out = 2.0 -ss_reflections_depth_tolerance = 0.2 -ss_reflections_roughness = true -ssao_enabled = false -ssao_radius = 1.0 -ssao_intensity = 1.0 -ssao_radius2 = 0.0 -ssao_intensity2 = 1.0 -ssao_bias = 0.01 -ssao_light_affect = 0.0 -ssao_color = Color( 0, 0, 0, 1 ) -ssao_quality = 0 -ssao_blur = 3 -ssao_edge_sharpness = 4.0 -dof_blur_far_enabled = false -dof_blur_far_distance = 10.0 -dof_blur_far_transition = 5.0 -dof_blur_far_amount = 0.1 -dof_blur_far_quality = 1 -dof_blur_near_enabled = false -dof_blur_near_distance = 2.0 -dof_blur_near_transition = 1.0 -dof_blur_near_amount = 0.1 -dof_blur_near_quality = 1 -glow_enabled = false -glow_levels/1 = false -glow_levels/2 = false -glow_levels/3 = true -glow_levels/4 = false -glow_levels/5 = true -glow_levels/6 = false -glow_levels/7 = false -glow_intensity = 0.8 -glow_strength = 1.0 -glow_bloom = 0.0 -glow_blend_mode = 2 -glow_hdr_threshold = 1.0 -glow_hdr_scale = 2.0 -glow_bicubic_upscale = false -adjustment_enabled = false -adjustment_brightness = 1.0 -adjustment_contrast = 1.0 -adjustment_saturation = 1.0 diff --git a/misc/multitouch_view/icon.png.import b/misc/multitouch_view/icon.png.import new file mode 100644 index 00000000..45ee6af7 --- /dev/null +++ b/misc/multitouch_view/icon.png.import @@ -0,0 +1,31 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" + +[deps] + +source_file="res://icon.png" +dest_files=[ "res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/misc/multitouch_view/project.godot b/misc/multitouch_view/project.godot index 4331a85f..71e99ab5 100644 --- a/misc/multitouch_view/project.godot +++ b/misc/multitouch_view/project.godot @@ -6,7 +6,12 @@ ; [section] ; section goes between [] ; param=value ; assign values to parameters -config_version=3 +config_version=4 + +_global_script_classes=[ ] +_global_script_class_icons={ + +} [application] diff --git a/misc/pause/icon.png.import b/misc/pause/icon.png.import index 59f91702..45ee6af7 100644 --- a/misc/pause/icon.png.import +++ b/misc/pause/icon.png.import @@ -7,16 +7,14 @@ path="res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" [deps] source_file="res://icon.png" -source_md5="96d63cb4455baa9e16edea6a3d3d7376" - dest_files=[ "res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" ] -dest_md5="ec0188ad554f40c7bf64dff529d58d79" [params] compress/mode=0 compress/lossy_quality=0.7 compress/hdr_mode=0 +compress/bptc_ldr=0 compress/normal_map=0 flags/repeat=0 flags/filter=true @@ -26,6 +24,7 @@ flags/srgb=2 process/fix_alpha_border=true process/premult_alpha=false process/HDR_as_SRGB=false +process/invert_color=false stream=false size_limit=0 detect_3d=true diff --git a/misc/pause/project.godot b/misc/pause/project.godot index b16375a8..13af4676 100644 --- a/misc/pause/project.godot +++ b/misc/pause/project.godot @@ -6,7 +6,12 @@ ; [section] ; section goes between [] ; param=value ; assign values to parameters -config_version=3 +config_version=4 + +_global_script_classes=[ ] +_global_script_class_icons={ + +} [application] diff --git a/misc/pause/spinpause.tscn b/misc/pause/spinpause.tscn index 778e93b1..3eaaa5ba 100644 --- a/misc/pause/spinpause.tscn +++ b/misc/pause/spinpause.tscn @@ -4,16 +4,9 @@ [sub_resource type="CubeMesh" id=1] -size = Vector3( 2, 2, 2 ) -subdivide_width = 0 -subdivide_height = 0 -subdivide_depth = 0 - [sub_resource type="Animation" id=2] - length = 10.0 loop = true -step = 0.1 tracks/0/type = "value" tracks/0/path = NodePath("cube:rotation_degrees") tracks/0/interp = 1 @@ -27,165 +20,63 @@ tracks/0/keys = { "values": [ Vector3( 0, 0, 0 ), Vector3( 0, -360, 0 ) ] } -[node name="pause_scene" type="Spatial" index="0"] - +[node name="pause_scene" type="Spatial"] script = ExtResource( 1 ) -[node name="cube" type="MeshInstance" parent="." index="0"] - -layers = 1 -material_override = null -cast_shadow = 1 -extra_cull_margin = 0.0 -use_in_baked_light = false -lod_min_distance = 0.0 -lod_min_hysteresis = 0.0 -lod_max_distance = 0.0 -lod_max_hysteresis = 0.0 +[node name="cube" type="MeshInstance" parent="."] mesh = SubResource( 1 ) -skeleton = NodePath("..") material/0 = null -[node name="camera" type="Camera" parent="." index="1"] - +[node name="camera" type="Camera" parent="."] transform = Transform( 0.571594, 0.275303, -0.772974, 0, 0.942035, 0.335515, 0.820537, -0.191779, 0.538461, -5.59754, 2.75935, 4.01344 ) -keep_aspect = 1 -cull_mask = 1048575 -environment = null -h_offset = 0.0 -v_offset = 0.0 -doppler_tracking = 0 -projection = 0 -current = false fov = 74.0 -size = 1.0 near = 0.1 -far = 100.0 -[node name="anim" type="AnimationPlayer" parent="." index="2"] - -root_node = NodePath("..") +[node name="anim" type="AnimationPlayer" parent="."] autoplay = "spin" -playback_process_mode = 1 -playback_default_blend_time = 0.0 -playback_speed = 1.0 anims/spin = SubResource( 2 ) -blend_times = [ ] -autoplay = "spin" - -[node name="spot" type="SpotLight" parent="." index="3"] +[node name="spot" type="SpotLight" parent="."] transform = Transform( 0.792992, 0.251051, -0.555101, 0, 0.911149, 0.412078, 0.609232, -0.326775, 0.722534, -3.05357, 1.80053, 3.64099 ) -layers = 1 -light_color = Color( 1, 1, 1, 1 ) -light_energy = 1.0 -light_indirect_energy = 1.0 -light_negative = false -light_specular = 0.5 -light_bake_mode = 1 -light_cull_mask = -1 -shadow_enabled = false -shadow_color = Color( 0, 0, 0, 1 ) -shadow_bias = 0.15 -shadow_contact = 0.0 -shadow_reverse_cull_face = false -editor_only = false spot_range = 6.0 -spot_attenuation = 1.0 -spot_angle = 45.0 -spot_angle_attenuation = 1.0 -_sections_unfolded = [ "Spot" ] -[node name="pause" type="Button" parent="." index="4"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="pause" type="Button" parent="."] margin_left = 24.0 margin_top = 24.0 margin_right = 120.0 margin_bottom = 56.0 -rect_pivot_offset = Vector2( 0, 0 ) -focus_mode = 2 -mouse_filter = 0 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 2 -toggle_mode = false -enabled_focus_mode = 2 -shortcut = null -group = null text = "PAUSE!" -flat = false -align = 1 - -[node name="pause_popup" type="PopupPanel" parent="." index="5"] +[node name="pause_popup" type="PopupPanel" parent="."] pause_mode = 2 -visible = false self_modulate = Color( 1, 1, 1, 0.7 ) -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 margin_left = 185.0 margin_top = 72.0 margin_right = 638.0 margin_bottom = 433.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 0 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 2 -popup_exclusive = false -_sections_unfolded = [ "Pause" ] -[node name="text" type="Label" parent="pause_popup" index="0"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_left = 73.0 -margin_top = 49.0 -margin_right = 389.0 -margin_bottom = 154.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 2 -mouse_default_cursor_shape = 0 +[node name="text" type="Label" parent="pause_popup"] +margin_left = 4.0 +margin_top = 4.0 +margin_right = 449.0 +margin_bottom = 357.0 size_flags_horizontal = 2 size_flags_vertical = 0 text = "The game has been paused! Nodes are not processing anymore, but this popup can still process!" autowrap = true -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 -[node name="unpause" type="Button" parent="pause_popup" index="1"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_left = 185.0 -margin_top = 288.0 -margin_right = 281.0 -margin_bottom = 320.0 -rect_pivot_offset = Vector2( 0, 0 ) -focus_mode = 2 -mouse_filter = 0 -mouse_default_cursor_shape = 0 +[node name="unpause" type="Button" parent="pause_popup"] +margin_left = 4.0 +margin_top = 4.0 +margin_right = 449.0 +margin_bottom = 357.0 size_flags_horizontal = 2 size_flags_vertical = 2 -toggle_mode = false -enabled_focus_mode = 2 -shortcut = null -group = null text = "UN-PAUSE!" -flat = false -align = 1 [connection signal="pressed" from="pause" to="." method="_on_pause_pressed"] - [connection signal="pressed" from="pause_popup/unpause" to="." method="_on_unpause_pressed"] diff --git a/misc/regex/icon.png.import b/misc/regex/icon.png.import index d66c762b..45ee6af7 100644 --- a/misc/regex/icon.png.import +++ b/misc/regex/icon.png.import @@ -7,16 +7,14 @@ path="res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" [deps] source_file="res://icon.png" -source_md5="1a9620f0fb6d6216fe36a69a9f4e89f6" - dest_files=[ "res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" ] -dest_md5="b4d083f20fc2ab22305e92d47d512f03" [params] compress/mode=0 compress/lossy_quality=0.7 compress/hdr_mode=0 +compress/bptc_ldr=0 compress/normal_map=0 flags/repeat=0 flags/filter=true @@ -26,6 +24,7 @@ flags/srgb=2 process/fix_alpha_border=true process/premult_alpha=false process/HDR_as_SRGB=false +process/invert_color=false stream=false size_limit=0 detect_3d=true diff --git a/misc/regex/project.godot b/misc/regex/project.godot index 7cf32d5b..aeaf00e7 100644 --- a/misc/regex/project.godot +++ b/misc/regex/project.godot @@ -6,7 +6,12 @@ ; [section] ; section goes between [] ; param=value ; assign values to parameters -config_version=3 +config_version=4 + +_global_script_classes=[ ] +_global_script_class_icons={ + +} [application] diff --git a/misc/regex/regex.tscn b/misc/regex/regex.tscn index e4095034..b01677dc 100644 --- a/misc/regex/regex.tscn +++ b/misc/regex/regex.tscn @@ -2,97 +2,27 @@ [ext_resource path="res://regex.gd" type="Script" id=1] -[node name="VBoxContainer" type="VBoxContainer" index="0"] - -anchor_left = 0.0 -anchor_top = 0.0 +[node name="VBoxContainer" type="VBoxContainer"] anchor_right = 1.0 anchor_bottom = 1.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 1 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -alignment = 0 script = ExtResource( 1 ) -_sections_unfolded = [ "Size Flags" ] -[node name="Expression" type="LineEdit" parent="." index="0"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="Expression" type="LineEdit" parent="."] margin_right = 1024.0 margin_bottom = 24.0 -rect_pivot_offset = Vector2( 0, 0 ) -focus_mode = 2 -mouse_filter = 0 -mouse_default_cursor_shape = 1 -size_flags_horizontal = 1 -size_flags_vertical = 1 text = "\"((?:\\\\.|[^\"])*)\"" -focus_mode = 2 -context_menu_enabled = true -placeholder_alpha = 0.6 -caret_blink = false -caret_blink_speed = 0.65 -caret_position = 0 -_sections_unfolded = [ "Size Flags" ] -[node name="Text" type="TextEdit" parent="." index="1"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="Text" type="TextEdit" parent="."] margin_top = 28.0 margin_right = 1024.0 margin_bottom = 328.0 rect_min_size = Vector2( 0, 300 ) -rect_pivot_offset = Vector2( 0, 0 ) -focus_mode = 2 -mouse_filter = 0 mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -text = "" -readonly = false -highlight_current_line = false -syntax_highlighting = false -show_line_numbers = false -highlight_all_occurrences = false -override_selected_font_color = false -context_menu_enabled = true -smooth_scrolling = false -v_scroll_speed = 80.0 -hiding_enabled = 0 -wrap_lines = false -caret_block_mode = false -caret_blink = false -caret_blink_speed = 0.65 -caret_moving_by_right_click = true -_sections_unfolded = [ "Rect", "Size Flags" ] -[node name="List" type="VBoxContainer" parent="." index="2"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="List" type="VBoxContainer" parent="."] margin_top = 332.0 margin_right = 1024.0 margin_bottom = 332.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 1 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -alignment = 0 -_sections_unfolded = [ "Rect", "Size Flags" ] [connection signal="text_changed" from="Expression" to="." method="update_expression"] - [connection signal="text_changed" from="Text" to="." method="update_text"] - - diff --git a/misc/scene_changer/project.godot b/misc/scene_changer/project.godot index db13591c..7f5648cb 100644 --- a/misc/scene_changer/project.godot +++ b/misc/scene_changer/project.godot @@ -6,13 +6,22 @@ ; [section] ; section goes between [] ; param=value ; assign values to parameters -config_version=3 +config_version=4 + +_global_script_classes=[ ] +_global_script_class_icons={ + +} [application] config/name="Scene Changer" run/main_scene="res://scene_a.tscn" +[debug] + +gdscript/warnings/return_value_discarded=false + [gdnative] singletons=[ ] diff --git a/misc/scene_changer/scene_a.tscn b/misc/scene_changer/scene_a.tscn index 712f1bcc..1a60fa3e 100644 --- a/misc/scene_changer/scene_a.tscn +++ b/misc/scene_changer/scene_a.tscn @@ -3,60 +3,27 @@ [ext_resource path="res://scene_a.gd" type="Script" id=1] [node name="scene_a" type="Panel"] - -anchor_left = 0.0 -anchor_top = 0.0 anchor_right = 1.0 anchor_bottom = 1.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 0 size_flags_horizontal = 2 size_flags_vertical = 2 script = ExtResource( 1 ) [node name="label" type="Label" parent="."] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 margin_left = 64.0 margin_top = 48.0 margin_right = 104.0 margin_bottom = 62.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 2 -size_flags_horizontal = 1 size_flags_vertical = 0 text = "This is scene A." -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 [node name="goto_scene" type="Button" parent="."] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 margin_left = 64.0 margin_top = 128.0 margin_right = 192.0 margin_bottom = 160.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 0 size_flags_horizontal = 2 size_flags_vertical = 2 -toggle_mode = false -enabled_focus_mode = 2 -shortcut = null -group = null text = "Go to Scene B" -flat = false [connection signal="pressed" from="goto_scene" to="." method="_on_goto_scene_pressed"] - - diff --git a/misc/sensors/cube_6.png.import b/misc/sensors/cube_6.png.import index b86462a4..fea8a691 100644 --- a/misc/sensors/cube_6.png.import +++ b/misc/sensors/cube_6.png.import @@ -8,16 +8,14 @@ path.etc2="res://.import/cube_6.png-0b954e2c88c21596044fe6448711988e.etc2.stex" [deps] source_file="res://cube_6.png" -source_md5="9d2131f81a62c204dc382856b9be043c" - dest_files=[ "res://.import/cube_6.png-0b954e2c88c21596044fe6448711988e.s3tc.stex", "res://.import/cube_6.png-0b954e2c88c21596044fe6448711988e.etc2.stex" ] -dest_md5="5187ca5e757e289bfdded0a98ce964ba" [params] compress/mode=2 compress/lossy_quality=0.7 compress/hdr_mode=0 +compress/bptc_ldr=0 compress/normal_map=0 flags/repeat=true flags/filter=true @@ -27,6 +25,7 @@ flags/srgb=1 process/fix_alpha_border=true process/premult_alpha=false process/HDR_as_SRGB=false +process/invert_color=false stream=false size_limit=0 detect_3d=false diff --git a/misc/sensors/default_env.tres b/misc/sensors/default_env.tres index 0fe380dc..4b7cb0ac 100644 --- a/misc/sensors/default_env.tres +++ b/misc/sensors/default_env.tres @@ -1,104 +1,14 @@ [gd_resource type="Environment" load_steps=2 format=2] [sub_resource type="ProceduralSky" id=1] - -radiance_size = 4 sky_top_color = Color( 0.0470588, 0.454902, 0.976471, 1 ) sky_horizon_color = Color( 0.556863, 0.823529, 0.909804, 1 ) sky_curve = 0.25 -sky_energy = 1.0 ground_bottom_color = Color( 0.101961, 0.145098, 0.188235, 1 ) ground_horizon_color = Color( 0.482353, 0.788235, 0.952941, 1 ) ground_curve = 0.01 -ground_energy = 1.0 -sun_color = Color( 1, 1, 1, 1 ) -sun_latitude = 35.0 -sun_longitude = 0.0 -sun_angle_min = 1.0 -sun_angle_max = 100.0 -sun_curve = 0.05 -sun_energy = 16.0 -texture_size = 2 [resource] - background_mode = 2 background_sky = SubResource( 1 ) -background_sky_custom_fov = 0.0 -background_color = Color( 0, 0, 0, 1 ) -background_energy = 1.0 -background_canvas_max_layer = 0 -background_camera_feed_id = 1 -background_camera_feed_h_flip = false -background_camera_feed_v_flip = true -ambient_light_color = Color( 0, 0, 0, 1 ) -ambient_light_energy = 1.0 -ambient_light_sky_contribution = 1.0 -fog_enabled = false -fog_color = Color( 0.5, 0.6, 0.7, 1 ) -fog_sun_color = Color( 1, 0.9, 0.7, 1 ) -fog_sun_amount = 0.0 -fog_depth_enabled = true -fog_depth_begin = 10.0 -fog_depth_curve = 1.0 -fog_transmit_enabled = false -fog_transmit_curve = 1.0 -fog_height_enabled = false -fog_height_min = 0.0 -fog_height_max = 100.0 -fog_height_curve = 1.0 -tonemap_mode = 0 -tonemap_exposure = 1.0 -tonemap_white = 1.0 -auto_exposure_enabled = false -auto_exposure_scale = 0.4 -auto_exposure_min_luma = 0.05 -auto_exposure_max_luma = 8.0 -auto_exposure_speed = 0.5 -ss_reflections_enabled = false -ss_reflections_max_steps = 64 -ss_reflections_fade_in = 0.15 -ss_reflections_fade_out = 2.0 -ss_reflections_depth_tolerance = 0.2 -ss_reflections_roughness = true -ssao_enabled = false -ssao_radius = 1.0 -ssao_intensity = 1.0 -ssao_radius2 = 0.0 -ssao_intensity2 = 1.0 -ssao_bias = 0.01 -ssao_light_affect = 0.0 -ssao_color = Color( 0, 0, 0, 1 ) -ssao_quality = 0 -ssao_blur = 3 -ssao_edge_sharpness = 4.0 -dof_blur_far_enabled = false -dof_blur_far_distance = 10.0 -dof_blur_far_transition = 5.0 -dof_blur_far_amount = 0.1 -dof_blur_far_quality = 1 -dof_blur_near_enabled = false -dof_blur_near_distance = 2.0 -dof_blur_near_transition = 1.0 -dof_blur_near_amount = 0.1 -dof_blur_near_quality = 1 -glow_enabled = false -glow_levels/1 = false -glow_levels/2 = false -glow_levels/3 = true -glow_levels/4 = false -glow_levels/5 = true -glow_levels/6 = false -glow_levels/7 = false -glow_intensity = 0.8 -glow_strength = 1.0 -glow_bloom = 0.0 -glow_blend_mode = 2 -glow_hdr_threshold = 1.0 -glow_hdr_scale = 2.0 -glow_bicubic_upscale = false -adjustment_enabled = false -adjustment_brightness = 1.0 -adjustment_contrast = 1.0 -adjustment_saturation = 1.0 diff --git a/misc/sensors/icon.png.import b/misc/sensors/icon.png.import index 7e34d87f..45ee6af7 100644 --- a/misc/sensors/icon.png.import +++ b/misc/sensors/icon.png.import @@ -7,16 +7,14 @@ path="res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" [deps] source_file="res://icon.png" -source_md5="ae7e641067601e2184afcade49abd283" - dest_files=[ "res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" ] -dest_md5="84511021bbc8c9d37c7f0f4d181de883" [params] compress/mode=0 compress/lossy_quality=0.7 compress/hdr_mode=0 +compress/bptc_ldr=0 compress/normal_map=0 flags/repeat=0 flags/filter=true @@ -26,6 +24,7 @@ flags/srgb=2 process/fix_alpha_border=true process/premult_alpha=false process/HDR_as_SRGB=false +process/invert_color=false stream=false size_limit=0 detect_3d=true diff --git a/misc/sensors/main.tscn b/misc/sensors/main.tscn index bab56dd5..483f9a15 100644 --- a/misc/sensors/main.tscn +++ b/misc/sensors/main.tscn @@ -4,591 +4,130 @@ [ext_resource path="res://cube_6.png" type="Texture" id=2] [sub_resource type="Environment" id=1] - background_mode = 1 -background_sky_custom_fov = 0.0 -background_color = Color( 0, 0, 0, 1 ) -background_energy = 1.0 -background_canvas_max_layer = 0 ambient_light_color = Color( 0.648438, 0.64578, 0.64578, 1 ) -ambient_light_energy = 1.0 -ambient_light_sky_contribution = 1.0 -fog_enabled = false -fog_color = Color( 0.5, 0.6, 0.7, 1 ) -fog_sun_color = Color( 1, 0.9, 0.7, 1 ) -fog_sun_amount = 0.0 -fog_depth_enabled = true -fog_depth_begin = 10.0 -fog_depth_curve = 1.0 -fog_transmit_enabled = false -fog_transmit_curve = 1.0 -fog_height_enabled = false -fog_height_min = 0.0 -fog_height_max = 100.0 -fog_height_curve = 1.0 -tonemap_mode = 0 -tonemap_exposure = 1.0 -tonemap_white = 1.0 -auto_exposure_enabled = false -auto_exposure_scale = 0.4 -auto_exposure_min_luma = 0.05 -auto_exposure_max_luma = 8.0 -auto_exposure_speed = 0.5 -ss_reflections_enabled = false -ss_reflections_max_steps = 64 -ss_reflections_fade_in = 0.15 -ss_reflections_fade_out = 2.0 -ss_reflections_depth_tolerance = 0.2 -ss_reflections_roughness = true -ssao_enabled = false -ssao_radius = 1.0 -ssao_intensity = 1.0 -ssao_radius2 = 0.0 -ssao_intensity2 = 1.0 -ssao_bias = 0.01 -ssao_light_affect = 0.0 -ssao_color = Color( 0, 0, 0, 1 ) -ssao_quality = 0 -ssao_blur = 3 -ssao_edge_sharpness = 4.0 -dof_blur_far_enabled = false -dof_blur_far_distance = 10.0 -dof_blur_far_transition = 5.0 -dof_blur_far_amount = 0.1 -dof_blur_far_quality = 1 -dof_blur_near_enabled = false -dof_blur_near_distance = 2.0 -dof_blur_near_transition = 1.0 -dof_blur_near_amount = 0.1 -dof_blur_near_quality = 1 -glow_enabled = false -glow_levels/1 = false -glow_levels/2 = false -glow_levels/3 = true -glow_levels/4 = false -glow_levels/5 = true -glow_levels/6 = false -glow_levels/7 = false -glow_intensity = 0.8 -glow_strength = 1.0 -glow_bloom = 0.0 -glow_blend_mode = 2 -glow_hdr_threshold = 1.0 -glow_hdr_scale = 2.0 -glow_bicubic_upscale = false -adjustment_enabled = false -adjustment_brightness = 1.0 -adjustment_contrast = 1.0 -adjustment_saturation = 1.0 -_sections_unfolded = [ "Ambient Light", "Background" ] [sub_resource type="CylinderMesh" id=2] - top_radius = 0.2 bottom_radius = 0.1 height = 4.0 radial_segments = 16 -rings = 4 [sub_resource type="SpatialMaterial" id=3] - -render_priority = 0 -flags_transparent = false -flags_unshaded = false -flags_vertex_lighting = false -flags_no_depth_test = false -flags_use_point_size = false -flags_world_triplanar = false -flags_fixed_size = false -flags_albedo_tex_force_srgb = false -vertex_color_use_as_albedo = false -vertex_color_is_srgb = false params_diffuse_mode = 1 -params_specular_mode = 0 -params_blend_mode = 0 -params_cull_mode = 0 -params_depth_draw_mode = 0 -params_line_width = 1.0 -params_point_size = 1.0 -params_billboard_mode = 0 -params_grow = false -params_use_alpha_scissor = false albedo_color = Color( 0.356557, 1, 0.366611, 1 ) -metallic = 0.0 -metallic_specular = 0.5 -metallic_texture_channel = 0 roughness = 0.0 -roughness_texture_channel = 0 -emission_enabled = false -normal_enabled = false -rim_enabled = false -clearcoat_enabled = false -anisotropy_enabled = false -ao_enabled = false -depth_enabled = false -subsurf_scatter_enabled = false -transmission_enabled = false -refraction_enabled = false -detail_enabled = false -uv1_scale = Vector3( 1, 1, 1 ) -uv1_offset = Vector3( 0, 0, 0 ) -uv1_triplanar = false -uv1_triplanar_sharpness = 1.0 -uv2_scale = Vector3( 1, 1, 1 ) -uv2_offset = Vector3( 0, 0, 0 ) -uv2_triplanar = false -uv2_triplanar_sharpness = 1.0 -proximity_fade_enable = false -distance_fade_enable = false -_sections_unfolded = [ "Albedo", "Flags", "Parameters", "Resource", "Vertex Color" ] [sub_resource type="CylinderMesh" id=4] - top_radius = 0.1 -bottom_radius = 1.0 -height = 2.0 radial_segments = 16 -rings = 4 [sub_resource type="SpatialMaterial" id=5] - -render_priority = 0 -flags_transparent = false -flags_unshaded = false -flags_vertex_lighting = false -flags_no_depth_test = false -flags_use_point_size = false -flags_world_triplanar = false -flags_fixed_size = false -flags_albedo_tex_force_srgb = false -vertex_color_use_as_albedo = false -vertex_color_is_srgb = false params_diffuse_mode = 1 -params_specular_mode = 0 -params_blend_mode = 0 -params_cull_mode = 0 -params_depth_draw_mode = 0 -params_line_width = 1.0 -params_point_size = 1.0 -params_billboard_mode = 0 -params_grow = false -params_use_alpha_scissor = false albedo_color = Color( 0.0266393, 0.292793, 1, 1 ) -metallic = 0.0 -metallic_specular = 0.5 -metallic_texture_channel = 0 roughness = 0.0 -roughness_texture_channel = 0 -emission_enabled = false -normal_enabled = false -rim_enabled = false -clearcoat_enabled = false -anisotropy_enabled = false -ao_enabled = false -depth_enabled = false -subsurf_scatter_enabled = false -transmission_enabled = false -refraction_enabled = false -detail_enabled = false -uv1_scale = Vector3( 1, 1, 1 ) -uv1_offset = Vector3( 0, 0, 0 ) -uv1_triplanar = false -uv1_triplanar_sharpness = 1.0 -uv2_scale = Vector3( 1, 1, 1 ) -uv2_offset = Vector3( 0, 0, 0 ) -uv2_triplanar = false -uv2_triplanar_sharpness = 1.0 -proximity_fade_enable = false -distance_fade_enable = false -_sections_unfolded = [ "Albedo", "Vertex Color" ] [sub_resource type="SpatialMaterial" id=6] - -render_priority = 0 -flags_transparent = false -flags_unshaded = false -flags_vertex_lighting = false -flags_no_depth_test = false -flags_use_point_size = false -flags_world_triplanar = false -flags_fixed_size = false -flags_albedo_tex_force_srgb = false -vertex_color_use_as_albedo = false -vertex_color_is_srgb = false params_diffuse_mode = 1 -params_specular_mode = 0 -params_blend_mode = 0 -params_cull_mode = 0 -params_depth_draw_mode = 0 -params_line_width = 1.0 -params_point_size = 1.0 -params_billboard_mode = 0 -params_grow = false -params_use_alpha_scissor = false albedo_color = Color( 0.957031, 0.801627, 0.0921731, 1 ) -metallic = 0.0 -metallic_specular = 0.5 -metallic_texture_channel = 0 roughness = 0.0 -roughness_texture_channel = 0 -emission_enabled = false -normal_enabled = false -rim_enabled = false -clearcoat_enabled = false -anisotropy_enabled = false -ao_enabled = false -depth_enabled = false -subsurf_scatter_enabled = false -transmission_enabled = false -refraction_enabled = false -detail_enabled = false -uv1_scale = Vector3( 1, 1, 1 ) -uv1_offset = Vector3( 0, 0, 0 ) -uv1_triplanar = false -uv1_triplanar_sharpness = 1.0 -uv2_scale = Vector3( 1, 1, 1 ) -uv2_offset = Vector3( 0, 0, 0 ) -uv2_triplanar = false -uv2_triplanar_sharpness = 1.0 -proximity_fade_enable = false -distance_fade_enable = false -_sections_unfolded = [ "Albedo" ] [sub_resource type="CubeMesh" id=7] - size = Vector3( 4, 4, 4 ) -subdivide_width = 0 -subdivide_height = 0 -subdivide_depth = 0 [sub_resource type="SpatialMaterial" id=8] - -render_priority = 0 -flags_transparent = false -flags_unshaded = false -flags_vertex_lighting = false -flags_no_depth_test = false -flags_use_point_size = false -flags_world_triplanar = false -flags_fixed_size = false -flags_albedo_tex_force_srgb = false -vertex_color_use_as_albedo = false -vertex_color_is_srgb = false params_diffuse_mode = 1 -params_specular_mode = 0 -params_blend_mode = 0 -params_cull_mode = 0 -params_depth_draw_mode = 0 -params_line_width = 1.0 -params_point_size = 1.0 -params_billboard_mode = 0 -params_grow = false -params_use_alpha_scissor = false -albedo_color = Color( 1, 1, 1, 1 ) albedo_texture = ExtResource( 2 ) -metallic = 0.0 -metallic_specular = 0.5 -metallic_texture_channel = 0 roughness = 0.0 -roughness_texture_channel = 0 -emission_enabled = false -normal_enabled = false -rim_enabled = false -clearcoat_enabled = false -anisotropy_enabled = false -ao_enabled = false -depth_enabled = false -subsurf_scatter_enabled = false -transmission_enabled = false -refraction_enabled = false -detail_enabled = false -uv1_scale = Vector3( 1, 1, 1 ) -uv1_offset = Vector3( 0, 0, 0 ) -uv1_triplanar = false -uv1_triplanar_sharpness = 1.0 -uv2_scale = Vector3( 1, 1, 1 ) -uv2_offset = Vector3( 0, 0, 0 ) -uv2_triplanar = false -uv2_triplanar_sharpness = 1.0 -proximity_fade_enable = false -distance_fade_enable = false -_sections_unfolded = [ "Albedo" ] - -[node name="Main" type="Node" index="0"] +[node name="Main" type="Node"] script = ExtResource( 1 ) -[node name="Control" type="Control" parent="." index="0"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="Control" type="Control" parent="."] margin_right = 1025.0 margin_bottom = 602.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 0 -mouse_default_cursor_shape = 0 size_flags_horizontal = 3 size_flags_vertical = 3 -_sections_unfolded = [ "Anchor", "Grow Direction", "Hint", "Margin", "Rect", "Size Flags" ] -[node name="Accelerometer" type="Label" parent="Control" index="0"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="Accelerometer" type="Label" parent="Control"] margin_right = 340.0 margin_bottom = 14.0 rect_scale = Vector2( 2, 2 ) -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 2 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 4 text = "Accelerometer" -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 -_sections_unfolded = [ "Anchor", "Margin", "Rect", "Size Flags" ] -[node name="Magnetometer" type="Label" parent="Control" index="1"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="Magnetometer" type="Label" parent="Control"] margin_top = 30.0 margin_right = 340.0 margin_bottom = 44.0 rect_scale = Vector2( 2, 2 ) -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 2 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 4 text = "Magnetometer" -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 -_sections_unfolded = [ "Anchor", "Margin", "Rect", "Size Flags" ] -[node name="Gyroscope" type="Label" parent="Control" index="2"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="Gyroscope" type="Label" parent="Control"] margin_top = 60.0 margin_right = 340.0 margin_bottom = 74.0 rect_scale = Vector2( 2, 2 ) -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 2 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 4 text = "Gyroscope" -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 -_sections_unfolded = [ "Anchor", "Margin", "Rect", "Size Flags" ] - -[node name="Camera" type="Camera" parent="." index="1"] +[node name="Camera" type="Camera" parent="."] transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -0.285209, 0, 11.9833 ) -keep_aspect = 1 -cull_mask = 1048575 environment = SubResource( 1 ) -h_offset = 0.0 -v_offset = 0.0 -doppler_tracking = 0 -projection = 0 -current = false fov = 74.0 -size = 1.0 near = 0.1 -far = 100.0 -[node name="Arrows" type="Spatial" parent="." index="2"] - -[node name="AccelerometerArrow" type="Spatial" parent="Arrows" index="0"] +[node name="Arrows" type="Spatial" parent="."] +[node name="AccelerometerArrow" type="Spatial" parent="Arrows"] transform = Transform( 1, 0, 0, 0, -1, 8.74228e-08, 0, -8.74228e-08, -1, 0, 0, 0 ) -_sections_unfolded = [ "Transform" ] - -[node name="Bottom" type="MeshInstance" parent="Arrows/AccelerometerArrow" index="0"] +[node name="Bottom" type="MeshInstance" parent="Arrows/AccelerometerArrow"] transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2, 0 ) -layers = 1 -material_override = null -cast_shadow = 1 -extra_cull_margin = 0.0 -use_in_baked_light = false -lod_min_distance = 0.0 -lod_min_hysteresis = 0.0 -lod_max_distance = 0.0 -lod_max_hysteresis = 0.0 mesh = SubResource( 2 ) -skeleton = NodePath("..") material/0 = SubResource( 3 ) -_sections_unfolded = [ "Transform", "material" ] - -[node name="Top" type="MeshInstance" parent="Arrows/AccelerometerArrow" index="1"] +[node name="Top" type="MeshInstance" parent="Arrows/AccelerometerArrow"] transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 5, 0 ) -layers = 1 -material_override = null -cast_shadow = 1 -extra_cull_margin = 0.0 -use_in_baked_light = false -lod_min_distance = 0.0 -lod_min_hysteresis = 0.0 -lod_max_distance = 0.0 -lod_max_hysteresis = 0.0 mesh = SubResource( 4 ) -skeleton = NodePath("..") material/0 = SubResource( 3 ) -_sections_unfolded = [ "Transform", "material" ] - -[node name="MagnetoArrow" type="Spatial" parent="Arrows" index="1"] +[node name="MagnetoArrow" type="Spatial" parent="Arrows"] transform = Transform( -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0, 0, 1, 0, 0, 0 ) -_sections_unfolded = [ "Transform" ] - -[node name="Bottom" type="MeshInstance" parent="Arrows/MagnetoArrow" index="0"] +[node name="Bottom" type="MeshInstance" parent="Arrows/MagnetoArrow"] transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2, 0 ) -layers = 1 -material_override = null -cast_shadow = 1 -extra_cull_margin = 0.0 -use_in_baked_light = false -lod_min_distance = 0.0 -lod_min_hysteresis = 0.0 -lod_max_distance = 0.0 -lod_max_hysteresis = 0.0 mesh = SubResource( 2 ) -skeleton = NodePath("..") material/0 = SubResource( 5 ) -_sections_unfolded = [ "Transform", "material" ] - -[node name="Top" type="MeshInstance" parent="Arrows/MagnetoArrow" index="1"] +[node name="Top" type="MeshInstance" parent="Arrows/MagnetoArrow"] transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 5, 0 ) -layers = 1 -material_override = null -cast_shadow = 1 -extra_cull_margin = 0.0 -use_in_baked_light = false -lod_min_distance = 0.0 -lod_min_hysteresis = 0.0 -lod_max_distance = 0.0 -lod_max_hysteresis = 0.0 mesh = SubResource( 4 ) -skeleton = NodePath("..") material/0 = SubResource( 5 ) -_sections_unfolded = [ "Transform", "material" ] - -[node name="NorthArrow" type="Spatial" parent="Arrows" index="2"] +[node name="NorthArrow" type="Spatial" parent="Arrows"] transform = Transform( 1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0, 0 ) -_sections_unfolded = [ "Transform" ] - -[node name="Bottom" type="MeshInstance" parent="Arrows/NorthArrow" index="0"] +[node name="Bottom" type="MeshInstance" parent="Arrows/NorthArrow"] transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2, 0 ) -layers = 1 -material_override = null -cast_shadow = 1 -extra_cull_margin = 0.0 -use_in_baked_light = false -lod_min_distance = 0.0 -lod_min_hysteresis = 0.0 -lod_max_distance = 0.0 -lod_max_hysteresis = 0.0 mesh = SubResource( 2 ) -skeleton = NodePath("..") material/0 = SubResource( 6 ) -_sections_unfolded = [ "Transform", "material" ] - -[node name="Top" type="MeshInstance" parent="Arrows/NorthArrow" index="1"] +[node name="Top" type="MeshInstance" parent="Arrows/NorthArrow"] transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 5, 0 ) -layers = 1 -material_override = null -cast_shadow = 1 -extra_cull_margin = 0.0 -use_in_baked_light = false -lod_min_distance = 0.0 -lod_min_hysteresis = 0.0 -lod_max_distance = 0.0 -lod_max_hysteresis = 0.0 mesh = SubResource( 4 ) -skeleton = NodePath("..") material/0 = SubResource( 6 ) -_sections_unfolded = [ "Transform", "material" ] -[node name="Boxes" type="Spatial" parent="." index="3"] - -[node name="MagAndGrav" type="MeshInstance" parent="Boxes" index="0"] +[node name="Boxes" type="Spatial" parent="."] +[node name="MagAndGrav" type="MeshInstance" parent="Boxes"] transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -7, -4, 0 ) -layers = 1 -material_override = null -cast_shadow = 1 -extra_cull_margin = 0.0 -use_in_baked_light = false -lod_min_distance = 0.0 -lod_min_hysteresis = 0.0 -lod_max_distance = 0.0 -lod_max_hysteresis = 0.0 mesh = SubResource( 7 ) -skeleton = NodePath("..") material/0 = SubResource( 8 ) -_sections_unfolded = [ "Transform", "material" ] - -[node name="GyroAndGrav" type="MeshInstance" parent="Boxes" index="1"] +[node name="GyroAndGrav" type="MeshInstance" parent="Boxes"] transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 7, -4, 0 ) -layers = 1 -material_override = null -cast_shadow = 1 -extra_cull_margin = 0.0 -use_in_baked_light = false -lod_min_distance = 0.0 -lod_min_hysteresis = 0.0 -lod_max_distance = 0.0 -lod_max_hysteresis = 0.0 mesh = SubResource( 7 ) -skeleton = NodePath("..") material/0 = SubResource( 8 ) -_sections_unfolded = [ "Transform", "material" ] - -[node name="DirectionalLight" type="DirectionalLight" parent="." index="4"] +[node name="DirectionalLight" type="DirectionalLight" parent="."] transform = Transform( 0.884838, -0.329433, 0.329449, 0, 0.707124, 0.707089, -0.4659, -0.625659, 0.62569, 0, 4.69444, 0 ) -layers = 1 -light_color = Color( 1, 1, 1, 1 ) -light_energy = 1.0 -light_indirect_energy = 1.0 -light_negative = false -light_specular = 0.5 -light_bake_mode = 1 -light_cull_mask = -1 -shadow_enabled = false -shadow_color = Color( 0, 0, 0, 1 ) -shadow_bias = 0.1 -shadow_contact = 0.0 -shadow_reverse_cull_face = false -editor_only = false -directional_shadow_mode = 2 -directional_shadow_split_1 = 0.1 -directional_shadow_split_2 = 0.2 -directional_shadow_split_3 = 0.5 -directional_shadow_blend_splits = false -directional_shadow_normal_bias = 0.8 -directional_shadow_bias_split_scale = 0.25 -directional_shadow_depth_range = 0 -directional_shadow_max_distance = 200.0 + diff --git a/misc/sensors/project.godot b/misc/sensors/project.godot index 4b0a57e6..a8876824 100644 --- a/misc/sensors/project.godot +++ b/misc/sensors/project.godot @@ -6,7 +6,12 @@ ; [section] ; section goes between [] ; param=value ; assign values to parameters -config_version=3 +config_version=4 + +_global_script_classes=[ ] +_global_script_class_icons={ + +} [application] diff --git a/misc/threads/project.godot b/misc/threads/project.godot index 3b95e294..5918c41c 100644 --- a/misc/threads/project.godot +++ b/misc/threads/project.godot @@ -6,7 +6,12 @@ ; [section] ; section goes between [] ; param=value ; assign values to parameters -config_version=3 +config_version=4 + +_global_script_classes=[ ] +_global_script_class_icons={ + +} [application] diff --git a/misc/threads/thread.tscn b/misc/threads/thread.tscn index 2d2fcf1a..f749beac 100644 --- a/misc/threads/thread.tscn +++ b/misc/threads/thread.tscn @@ -2,39 +2,19 @@ [ext_resource path="res://thread.gd" type="Script" id=1] -[node name="node" type="Node2D" index="0"] - +[node name="node" type="Node2D"] script = ExtResource( 1 ) -[node name="load" type="Button" parent="." index="0"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="load" type="Button" parent="."] margin_left = 192.0 margin_top = 32.0 margin_right = 320.0 margin_bottom = 64.0 -rect_pivot_offset = Vector2( 0, 0 ) -focus_mode = 2 -mouse_filter = 0 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 2 -toggle_mode = false -enabled_focus_mode = 2 -shortcut = null -group = null text = "Load in Thread" -flat = false -align = 1 - -[node name="sprite" type="Sprite" parent="." index="1"] +[node name="sprite" type="Sprite" parent="."] position = Vector2( 248, 256 ) -_sections_unfolded = [ "Transform" ] [connection signal="pressed" from="load" to="." method="_on_load_pressed"] - - diff --git a/misc/tween/godot.png.import b/misc/tween/godot.png.import index 5d535355..288f7fe8 100644 --- a/misc/tween/godot.png.import +++ b/misc/tween/godot.png.import @@ -7,16 +7,14 @@ path="res://.import/godot.png-5e0da45ed3d6786d5794553e04f58a8c.stex" [deps] source_file="res://godot.png" -source_md5="377c28f8825ea7512b64b3bff69f4e34" - dest_files=[ "res://.import/godot.png-5e0da45ed3d6786d5794553e04f58a8c.stex" ] -dest_md5="7d9b5e3ee856458ff45c2bf5351d3d81" [params] compress/mode=0 compress/lossy_quality=0.7 compress/hdr_mode=0 +compress/bptc_ldr=0 compress/normal_map=0 flags/repeat=0 flags/filter=true @@ -26,6 +24,7 @@ flags/srgb=2 process/fix_alpha_border=true process/premult_alpha=false process/HDR_as_SRGB=false +process/invert_color=false stream=false size_limit=0 detect_3d=false diff --git a/misc/tween/icon.png.import b/misc/tween/icon.png.import index 590682dd..45ee6af7 100644 --- a/misc/tween/icon.png.import +++ b/misc/tween/icon.png.import @@ -7,16 +7,14 @@ path="res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" [deps] source_file="res://icon.png" -source_md5="84f7874a3f7c91a93c9ee13c816e4c09" - dest_files=[ "res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" ] -dest_md5="7d003c6ff4c5614804c89fb09547b9bd" [params] compress/mode=0 compress/lossy_quality=0.7 compress/hdr_mode=0 +compress/bptc_ldr=0 compress/normal_map=0 flags/repeat=0 flags/filter=true @@ -26,6 +24,7 @@ flags/srgb=2 process/fix_alpha_border=true process/premult_alpha=false process/HDR_as_SRGB=false +process/invert_color=false stream=false size_limit=0 detect_3d=true diff --git a/misc/tween/main.gd b/misc/tween/main.gd index 0fd5bdef..a97e998d 100644 --- a/misc/tween/main.gd +++ b/misc/tween/main.gd @@ -73,7 +73,7 @@ func on_modes_changed(mode_name): reset_tween() -func on_color_changed(color): +func on_color_changed(_color): reset_tween() @@ -138,7 +138,7 @@ func reset_tween(): #get_node("timeline").set_ignore_mouse(true) -func _on_tween_step(object, key, elapsed, value): +func _on_tween_step(_object, _key, elapsed, _value): var timeline = get_node("timeline") var tween = get_node("tween") diff --git a/misc/tween/main.tscn b/misc/tween/main.tscn index f10affd9..ac0e2187 100644 --- a/misc/tween/main.tscn +++ b/misc/tween/main.tscn @@ -3,825 +3,336 @@ [ext_resource path="res://main.gd" type="Script" id=1] [ext_resource path="res://godot.png" type="Texture" id=2] -[node name="main" type="Control" index="0"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="main" type="Control"] margin_right = 800.0 margin_bottom = 600.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 0 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 2 script = ExtResource( 1 ) -[node name="trans" type="VBoxContainer" parent="." index="0"] - +[node name="trans" type="VBoxContainer" parent="."] editor/display_folded = true -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 margin_left = 56.0 margin_top = 288.0 margin_right = 129.0 margin_bottom = 614.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 1 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 2 -alignment = 0 -[node name="linear" type="Button" parent="trans" index="0"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="linear" type="Button" parent="trans"] margin_right = 48.0 margin_bottom = 20.0 -rect_pivot_offset = Vector2( 0, 0 ) -focus_mode = 2 -mouse_filter = 0 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 2 toggle_mode = true -enabled_focus_mode = 2 -shortcut = null -group = null text = "linear" -flat = false -align = 1 -[node name="sine" type="Button" parent="trans" index="1"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="sine" type="Button" parent="trans"] margin_top = 30.0 margin_right = 39.0 margin_bottom = 50.0 -rect_pivot_offset = Vector2( 0, 0 ) -focus_mode = 2 -mouse_filter = 0 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 2 toggle_mode = true -enabled_focus_mode = 2 -shortcut = null -group = null text = "sine" -flat = false -align = 1 -[node name="quint" type="Button" parent="trans" index="2"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="quint" type="Button" parent="trans"] margin_top = 60.0 margin_right = 45.0 margin_bottom = 80.0 -rect_pivot_offset = Vector2( 0, 0 ) -focus_mode = 2 -mouse_filter = 0 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 2 toggle_mode = true -enabled_focus_mode = 2 -shortcut = null -group = null text = "quint" -flat = false -align = 1 -[node name="quart" type="Button" parent="trans" index="3"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="quart" type="Button" parent="trans"] margin_top = 90.0 margin_right = 45.0 margin_bottom = 110.0 -rect_pivot_offset = Vector2( 0, 0 ) -focus_mode = 2 -mouse_filter = 0 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 2 toggle_mode = true -enabled_focus_mode = 2 -shortcut = null -group = null text = "quart" -flat = false -align = 1 -[node name="quad" type="Button" parent="trans" index="4"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="quad" type="Button" parent="trans"] margin_top = 120.0 margin_right = 43.0 margin_bottom = 140.0 -rect_pivot_offset = Vector2( 0, 0 ) -focus_mode = 2 -mouse_filter = 0 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 2 toggle_mode = true -enabled_focus_mode = 2 -shortcut = null -group = null text = "quad" -flat = false -align = 1 -[node name="expo" type="Button" parent="trans" index="5"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="expo" type="Button" parent="trans"] margin_top = 150.0 margin_right = 43.0 margin_bottom = 170.0 -rect_pivot_offset = Vector2( 0, 0 ) -focus_mode = 2 -mouse_filter = 0 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 2 toggle_mode = true -enabled_focus_mode = 2 -shortcut = null -group = null text = "expo" -flat = false -align = 1 -[node name="elastic" type="Button" parent="trans" index="6"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="elastic" type="Button" parent="trans"] margin_top = 180.0 margin_right = 54.0 margin_bottom = 200.0 -rect_pivot_offset = Vector2( 0, 0 ) -focus_mode = 2 -mouse_filter = 0 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 2 toggle_mode = true -enabled_focus_mode = 2 -shortcut = null -group = null text = "elastic" -flat = false -align = 1 -[node name="cubic" type="Button" parent="trans" index="7"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="cubic" type="Button" parent="trans"] margin_top = 210.0 margin_right = 46.0 margin_bottom = 230.0 -rect_pivot_offset = Vector2( 0, 0 ) -focus_mode = 2 -mouse_filter = 0 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 2 toggle_mode = true -enabled_focus_mode = 2 -shortcut = null -group = null text = "cubic" -flat = false -align = 1 -[node name="circ" type="Button" parent="trans" index="8"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="circ" type="Button" parent="trans"] margin_top = 240.0 margin_right = 35.0 margin_bottom = 260.0 -rect_pivot_offset = Vector2( 0, 0 ) -focus_mode = 2 -mouse_filter = 0 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 2 toggle_mode = true -enabled_focus_mode = 2 -shortcut = null -group = null text = "circ" -flat = false -align = 1 -[node name="bounce" type="Button" parent="trans" index="9"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="bounce" type="Button" parent="trans"] margin_top = 270.0 margin_right = 59.0 margin_bottom = 290.0 -rect_pivot_offset = Vector2( 0, 0 ) -focus_mode = 2 -mouse_filter = 0 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 2 toggle_mode = true -enabled_focus_mode = 2 -shortcut = null -group = null text = "bounce" -flat = false -align = 1 -[node name="back" type="Button" parent="trans" index="10"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="back" type="Button" parent="trans"] margin_top = 300.0 margin_right = 41.0 margin_bottom = 320.0 -rect_pivot_offset = Vector2( 0, 0 ) -focus_mode = 2 -mouse_filter = 0 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 2 toggle_mode = true -enabled_focus_mode = 2 -shortcut = null -group = null text = "back" -flat = false -align = 1 - -[node name="eases" type="VBoxContainer" parent="." index="1"] +[node name="eases" type="VBoxContainer" parent="."] editor/display_folded = true -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 margin_left = 152.0 margin_top = 288.0 margin_right = 215.0 margin_bottom = 404.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 1 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 2 -alignment = 0 -[node name="in" type="Button" parent="eases" index="0"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="in" type="Button" parent="eases"] margin_right = 24.0 margin_bottom = 20.0 -rect_pivot_offset = Vector2( 0, 0 ) -focus_mode = 2 -mouse_filter = 0 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 2 toggle_mode = true -enabled_focus_mode = 2 -shortcut = null -group = null text = "in" -flat = false -align = 1 -[node name="out" type="Button" parent="eases" index="1"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="out" type="Button" parent="eases"] margin_top = 30.0 margin_right = 33.0 margin_bottom = 50.0 -rect_pivot_offset = Vector2( 0, 0 ) -focus_mode = 2 -mouse_filter = 0 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 2 toggle_mode = true -enabled_focus_mode = 2 -shortcut = null -group = null text = "out" -flat = false -align = 1 -[node name="in_out" type="Button" parent="eases" index="2"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="in_out" type="Button" parent="eases"] margin_top = 60.0 margin_right = 51.0 margin_bottom = 80.0 -rect_pivot_offset = Vector2( 0, 0 ) -focus_mode = 2 -mouse_filter = 0 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 2 toggle_mode = true -enabled_focus_mode = 2 -shortcut = null -group = null text = "in_out" -flat = false -align = 1 -[node name="out_in" type="Button" parent="eases" index="3"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="out_in" type="Button" parent="eases"] margin_top = 90.0 margin_right = 51.0 margin_bottom = 110.0 -rect_pivot_offset = Vector2( 0, 0 ) -focus_mode = 2 -mouse_filter = 0 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 2 toggle_mode = true -enabled_focus_mode = 2 -shortcut = null -group = null text = "out_in" -flat = false -align = 1 - -[node name="modes" type="VBoxContainer" parent="." index="2"] +[node name="modes" type="VBoxContainer" parent="."] editor/display_folded = true -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 margin_left = 240.0 margin_top = 288.0 margin_right = 317.0 margin_bottom = 524.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 1 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 2 -alignment = 0 -[node name="move" type="Button" parent="modes" index="0"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="move" type="Button" parent="modes"] margin_right = 48.0 margin_bottom = 20.0 -rect_pivot_offset = Vector2( 0, 0 ) -focus_mode = 2 -mouse_filter = 0 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 2 toggle_mode = true -enabled_focus_mode = 2 -shortcut = null -group = null text = "move" -flat = false -align = 1 -[node name="color" type="Button" parent="modes" index="1"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="color" type="Button" parent="modes"] margin_top = 30.0 margin_right = 44.0 margin_bottom = 50.0 -rect_pivot_offset = Vector2( 0, 0 ) -focus_mode = 2 -mouse_filter = 0 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 2 toggle_mode = true -enabled_focus_mode = 2 -shortcut = null -group = null text = "color" -flat = false -align = 1 -[node name="scale" type="Button" parent="modes" index="2"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="scale" type="Button" parent="modes"] margin_top = 60.0 margin_right = 45.0 margin_bottom = 80.0 -rect_pivot_offset = Vector2( 0, 0 ) -focus_mode = 2 -mouse_filter = 0 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 2 toggle_mode = true -enabled_focus_mode = 2 -shortcut = null -group = null text = "scale" -flat = false -align = 1 -[node name="rotate" type="Button" parent="modes" index="3"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="rotate" type="Button" parent="modes"] margin_top = 90.0 margin_right = 50.0 margin_bottom = 110.0 -rect_pivot_offset = Vector2( 0, 0 ) -focus_mode = 2 -mouse_filter = 0 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 2 toggle_mode = true -enabled_focus_mode = 2 -shortcut = null -group = null text = "rotate" -flat = false -align = 1 -[node name="callback" type="Button" parent="modes" index="4"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="callback" type="Button" parent="modes"] margin_top = 120.0 margin_right = 63.0 margin_bottom = 140.0 -rect_pivot_offset = Vector2( 0, 0 ) -focus_mode = 2 -mouse_filter = 0 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 2 toggle_mode = true -enabled_focus_mode = 2 -shortcut = null -group = null text = "callback" -flat = false -align = 1 -[node name="follow" type="Button" parent="modes" index="5"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="follow" type="Button" parent="modes"] margin_top = 150.0 margin_right = 50.0 margin_bottom = 170.0 -rect_pivot_offset = Vector2( 0, 0 ) -focus_mode = 2 -mouse_filter = 0 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 2 toggle_mode = true -enabled_focus_mode = 2 -shortcut = null -group = null text = "follow" -flat = false -align = 1 -[node name="repeat" type="Button" parent="modes" index="6"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="repeat" type="Button" parent="modes"] margin_top = 180.0 margin_right = 53.0 margin_bottom = 200.0 -rect_pivot_offset = Vector2( 0, 0 ) -focus_mode = 2 -mouse_filter = 0 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 2 toggle_mode = true -enabled_focus_mode = 2 -shortcut = null -group = null text = "repeat" -flat = false -align = 1 -[node name="pause" type="Button" parent="modes" index="7"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="pause" type="Button" parent="modes"] margin_top = 210.0 margin_right = 50.0 margin_bottom = 230.0 -rect_pivot_offset = Vector2( 0, 0 ) -focus_mode = 2 -mouse_filter = 0 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 2 toggle_mode = true -enabled_focus_mode = 2 -shortcut = null -group = null text = "pause" -flat = false -align = 1 -[node name="colors" type="HBoxContainer" parent="." index="3"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="colors" type="HBoxContainer" parent="."] margin_left = 352.0 margin_top = 288.0 margin_right = 858.0 margin_bottom = 626.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 1 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 2 custom_constants/separation = 40 -alignment = 0 -[node name="color_from" type="VBoxContainer" parent="colors" index="0"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_right = 298.0 -margin_bottom = 476.0 +[node name="color_from" type="VBoxContainer" parent="colors"] +margin_right = 290.0 +margin_bottom = 480.0 rect_min_size = Vector2( 0, 320 ) -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 1 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 2 -alignment = 0 -[node name="label" type="Label" parent="colors/color_from" index="0"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="label" type="Label" parent="colors/color_from"] margin_right = 74.0 margin_bottom = 14.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 2 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 0 text = "Color From:" -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 -[node name="picker" type="ColorPicker" parent="colors/color_from" index="1"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="picker" type="ColorPicker" parent="colors/color_from"] margin_top = 18.0 -margin_right = 298.0 -margin_bottom = 476.0 +margin_right = 290.0 +margin_bottom = 480.0 rect_min_size = Vector2( 0, 320 ) -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 1 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 2 -alignment = 0 -color = Color( 1, 1, 1, 1 ) -edit_alpha = true -raw_mode = false -[node name="color_to" type="VBoxContainer" parent="colors" index="1"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_left = 338.0 -margin_right = 636.0 -margin_bottom = 476.0 +[node name="color_to" type="VBoxContainer" parent="colors"] +margin_left = 330.0 +margin_right = 620.0 +margin_bottom = 480.0 rect_min_size = Vector2( 0, 320 ) -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 1 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 2 -alignment = 0 -[node name="label" type="Label" parent="colors/color_to" index="0"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="label" type="Label" parent="colors/color_to"] margin_right = 56.0 margin_bottom = 14.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 2 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 0 text = "Color To:" -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 -[node name="picker" type="ColorPicker" parent="colors/color_to" index="1"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="picker" type="ColorPicker" parent="colors/color_to"] margin_top = 18.0 -margin_right = 298.0 -margin_bottom = 476.0 +margin_right = 290.0 +margin_bottom = 480.0 rect_min_size = Vector2( 0, 320 ) -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 1 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 2 -alignment = 0 -color = Color( 1, 1, 1, 1 ) -edit_alpha = true -raw_mode = false - -[node name="tween" type="Tween" parent="." index="4"] +[node name="tween" type="Tween" parent="."] repeat = true -playback_process_mode = 1 -playback_speed = 1.0 -playback/active = true playback/repeat = true -playback/speed = 1.0 -[node name="area" type="Panel" parent="tween" index="0"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="area" type="Panel" parent="tween"] margin_left = 32.0 margin_top = 32.0 margin_right = 896.0 margin_bottom = 232.0 -rect_pivot_offset = Vector2( 0, 0 ) -mouse_filter = 0 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 2 -[node name="label" type="RichTextLabel" parent="tween/area" index="0"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="label" type="RichTextLabel" parent="tween/area"] margin_left = 176.0 margin_top = 24.0 margin_right = 552.0 margin_bottom = 160.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = true -mouse_filter = 0 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 size_flags_vertical = 2 -bbcode_enabled = false -bbcode_text = "" -visible_characters = -1 -percent_visible = 1.0 -meta_underlined = true -tab_size = 4 -text = "" -scroll_active = true -scroll_following = false -selection_enabled = false -override_selected_font_color = false - -[node name="sprite" type="Sprite" parent="tween/area" index="1"] +[node name="sprite" type="Sprite" parent="tween/area"] texture = ExtResource( 2 ) -[node name="follow" type="Sprite" parent="tween/area" index="2"] - +[node name="follow" type="Sprite" parent="tween/area"] position = Vector2( 0, 184 ) texture = ExtResource( 2 ) -[node name="follow_2" type="Sprite" parent="tween/area" index="3"] - +[node name="follow_2" type="Sprite" parent="tween/area"] position = Vector2( 736, 0 ) texture = ExtResource( 2 ) -[node name="timeline" type="HSlider" parent="." index="5"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="timeline" type="HSlider" parent="."] margin_left = 48.0 margin_top = 240.0 margin_right = 880.0 margin_bottom = 256.0 -rect_pivot_offset = Vector2( 0, 0 ) -focus_mode = 2 -mouse_filter = 0 -mouse_default_cursor_shape = 0 size_flags_horizontal = 2 -size_flags_vertical = 0 -min_value = 0.0 -max_value = 100.0 -step = 1.0 -page = 0.0 value = 1.0 -exp_edit = false -rounded = false -editable = true -tick_count = 0 -ticks_on_borders = false -focus_mode = 2 [connection signal="tween_step" from="tween" to="." method="_on_tween_step"] - [connection signal="value_changed" from="timeline" to="." method="_on_timeline_value_changed"] - - diff --git a/misc/tween/project.godot b/misc/tween/project.godot index 9c68c5f6..b7310804 100644 --- a/misc/tween/project.godot +++ b/misc/tween/project.godot @@ -6,7 +6,12 @@ ; [section] ; section goes between [] ; param=value ; assign values to parameters -config_version=3 +config_version=4 + +_global_script_classes=[ ] +_global_script_class_icons={ + +} [application] @@ -15,6 +20,10 @@ run/main_scene="res://main.tscn" config/icon="res://icon.png" target_fps=60 +[debug] + +gdscript/warnings/return_value_discarded=false + [display] window/size/height=768 diff --git a/misc/window_management/control.gd b/misc/window_management/control.gd index b95bd672..afd66f10 100644 --- a/misc/window_management/control.gd +++ b/misc/window_management/control.gd @@ -5,7 +5,7 @@ var mousepos onready var observer = $"../Observer" -func _physics_process(delta): +func _physics_process(_delta): var modetext = "Mode:\n" if OS.is_window_fullscreen(): diff --git a/misc/window_management/observer/observer.tscn b/misc/window_management/observer/observer.tscn index dbdf9a4e..e9681310 100644 --- a/misc/window_management/observer/observer.tscn +++ b/misc/window_management/observer/observer.tscn @@ -4,7 +4,6 @@ [sub_resource type="BoxShape" id=1] - [node name="Observer" type="KinematicBody"] script = ExtResource( 1 ) diff --git a/misc/window_management/project.godot b/misc/window_management/project.godot index dc8f20a6..5036207e 100644 --- a/misc/window_management/project.godot +++ b/misc/window_management/project.godot @@ -6,7 +6,12 @@ ; [section] ; section goes between [] ; param=value ; assign values to parameters -config_version=3 +config_version=4 + +_global_script_classes=[ ] +_global_script_class_icons={ + +} [application] @@ -26,17 +31,38 @@ singletons=[ ] [input] -mouse_mode_captured=[ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777246,"unicode":0,"echo":false,"script":null) +mouse_mode_captured={ +"deadzone": 0.5, +"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777246,"unicode":0,"echo":false,"script":null) ] -mouse_mode_hidden=[ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777245,"unicode":0,"echo":false,"script":null) +} +mouse_mode_hidden={ +"deadzone": 0.5, +"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777245,"unicode":0,"echo":false,"script":null) ] -mouse_mode_visible=[ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777244,"unicode":0,"echo":false,"script":null) +} +mouse_mode_visible={ +"deadzone": 0.5, +"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777244,"unicode":0,"echo":false,"script":null) ] -move_backwards=[ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":83,"unicode":0,"echo":false,"script":null) +} +move_backwards={ +"deadzone": 0.5, +"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":83,"unicode":0,"echo":false,"script":null) ] -move_forward=[ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":87,"unicode":0,"echo":false,"script":null) +} +move_forward={ +"deadzone": 0.5, +"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":87,"unicode":0,"echo":false,"script":null) ] -move_left=[ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":65,"unicode":0,"echo":false,"script":null) +} +move_left={ +"deadzone": 0.5, +"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":65,"unicode":0,"echo":false,"script":null) ] -move_right=[ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":68,"unicode":0,"echo":false,"script":null) +} +move_right={ +"deadzone": 0.5, +"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":68,"unicode":0,"echo":false,"script":null) ] +} diff --git a/misc/window_management/window_management.tscn b/misc/window_management/window_management.tscn index d3babc62..1f883f10 100644 --- a/misc/window_management/window_management.tscn +++ b/misc/window_management/window_management.tscn @@ -4,11 +4,9 @@ [ext_resource path="res://control.gd" type="Script" id=2] [sub_resource type="SpatialMaterial" id=1] - albedo_color = Color( 0.835294, 0.133333, 0.133333, 1 ) [sub_resource type="CubeMesh" id=2] - material = SubResource( 1 ) size = Vector3( 5, 5, 5 ) diff --git a/plugins/custom_dock/custom_dock.scn b/plugins/custom_dock/custom_dock.scn deleted file mode 100644 index 452a82768822f5af66cfd6f06e8a41d0dfd71463..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1000 zcmVKQ$s@n000005C8yP3jhGn0{{RhwJ-f(UJ5lH0M;gYJ}|2W0K=TVZQGXj zJkRs@iQ3-})+7DS)8G4()L+W}UVd8##7K%Wp)6<5YJM4p^|G>ThGp3dORy_@lGb=& z0Am1U02X(P^d)4fEh9Bv`TW25pWr{r%|U$obaAk)_l1a;l#g*_B9S!$w3J0 ziL8s^sIS(LsTi-uqMY=F*y{g|>%>*+8;!V^yD!hv5R>qKB41cF1)mm|mM^;qwWMuX z$8{O0W>$We8-fD{OiD;T3VZ})14U%hK>!m1qQQ7{oS0xZHZV#^LNXZ~9~+tq4UG#5 ziHnE||2dEEy||@Lyi93?4<0<Tp+HYyxKIMBf1Fiv!w=qOO8 zqhcZR!B}Asfc2=6#hDp_0R#X90DuC488YJl5+EfdQyQcg5P|?89Aqa_KoA2`2Mzmd zO;@X8RuwHUP z*hdbo-cVK?#Pz7gl`@_zTB@pXG--O*`k)M7Jz}>+g`0e#8Y9ieYf7oN9qzhxf*gur zG3x{C*ayr$CMs@~=cQv3Rs3w8Z$g^_y!GPMFP4+4qqrF<)UyC#45rI4=1nLbE zuuq}TPn`=MicbWN^!nNli!QC@^Uc3=RC@X4&pZX;>xV|FlnX^goAQ#;OMS%vDWa~#q7#bQ$s^y7UMer diff --git a/plugins/custom_dock/custom_dock.tscn b/plugins/custom_dock/custom_dock.tscn new file mode 100644 index 00000000..3e40818e --- /dev/null +++ b/plugins/custom_dock/custom_dock.tscn @@ -0,0 +1,56 @@ +[gd_scene format=2] + +[node name="CustomDock" type="VBoxContainer"] +__meta__ = { +"__editor_plugin_screen__": "2D" +} + +[node name="Title" type="Label" parent="."] +margin_right = 141.0 +margin_bottom = 14.0 +text = "This is a Custom Dock" + +[node name="Button" type="Button" parent="."] +margin_top = 18.0 +margin_right = 141.0 +margin_bottom = 38.0 +text = "Really cool" + +[node name="GridContainer" type="GridContainer" parent="."] +margin_top = 42.0 +margin_right = 141.0 +margin_bottom = 74.0 +columns = 2 + +[node name="One" type="Label" parent="GridContainer"] +margin_right = 36.0 +margin_bottom = 14.0 +text = "One" + +[node name="Two" type="Label" parent="GridContainer"] +margin_left = 40.0 +margin_right = 68.0 +margin_bottom = 14.0 +text = "Two" + +[node name="Three" type="Label" parent="GridContainer"] +margin_top = 18.0 +margin_right = 36.0 +margin_bottom = 32.0 +text = "Three" + +[node name="Four" type="Label" parent="GridContainer"] +margin_left = 40.0 +margin_top = 18.0 +margin_right = 68.0 +margin_bottom = 32.0 +text = "Four" + +[node name="OptionButton" type="OptionButton" parent="."] +margin_top = 78.0 +margin_right = 141.0 +margin_bottom = 98.0 +text = "Heho" +items = [ "Heho", null, false, -1, null ] +selected = 0 + diff --git a/plugins/custom_dock/dock_plugin.gd b/plugins/custom_dock/dock_plugin.gd index ce8a3bcd..6151ad25 100644 --- a/plugins/custom_dock/dock_plugin.gd +++ b/plugins/custom_dock/dock_plugin.gd @@ -5,19 +5,11 @@ var dock = null func _enter_tree(): # When this plugin node enters tree, add the custom type - - dock = preload("res://addons/custom_dock/custom_dock.scn").instance() - - add_control_to_dock( DOCK_SLOT_LEFT_UL, dock ) + dock = preload("res://addons/custom_dock/custom_dock.tscn").instance() + add_control_to_dock(DOCK_SLOT_LEFT_UL, dock) func _exit_tree(): - # Remove from docks (must be called so layout is updated and saved) remove_control_from_docks(dock) # Remove the node dock.free() - - - - - \ No newline at end of file diff --git a/plugins/custom_dock/plugin.cfg b/plugins/custom_dock/plugin.cfg index e295384c..e04024f6 100644 --- a/plugins/custom_dock/plugin.cfg +++ b/plugins/custom_dock/plugin.cfg @@ -5,10 +5,3 @@ description="Adds a new Customizable Dock" author="Juan Linietsky" version="1.0" script="dock_plugin.gd" - - - - - - - diff --git a/plugins/custom_import_plugin/import_plugin.gd b/plugins/custom_import_plugin/import_plugin.gd index 87d09a0c..b8edb72a 100644 --- a/plugins/custom_import_plugin/import_plugin.gd +++ b/plugins/custom_import_plugin/import_plugin.gd @@ -23,12 +23,12 @@ func get_preset_count(): func get_preset_name(preset): match preset: - PRESET_DEFAULT: return "Default" + Presets.PRESET_DEFAULT: return "Default" _ : return "Unknown" func get_import_options(preset): match preset: - PRESET_DEFAULT: + Presets.PRESET_DEFAULT: return [{ "name": "use_red_anyway", "default_value": false diff --git a/plugins/custom_import_plugin/material_import.gd b/plugins/custom_import_plugin/material_import.gd index 0f98a026..6b769b3f 100644 --- a/plugins/custom_import_plugin/material_import.gd +++ b/plugins/custom_import_plugin/material_import.gd @@ -5,7 +5,6 @@ var import_plugin func _enter_tree(): import_plugin = preload("import_plugin.gd").new() - add_import_plugin(import_plugin) func _exit_tree(): diff --git a/plugins/custom_import_plugin/test.mtxt.import b/plugins/custom_import_plugin/test.mtxt.import new file mode 100644 index 00000000..36f7a0d8 --- /dev/null +++ b/plugins/custom_import_plugin/test.mtxt.import @@ -0,0 +1,14 @@ +[remap] + +importer="demos.sillymaterial" +type="Material" +path="res://.import/test.mtxt-0850936d050b34fd8096ae7fe7a591cc.res" + +[deps] + +source_file="res://addons/custom_import_plugin/test.mtxt" +dest_files=[ "res://.import/test.mtxt-0850936d050b34fd8096ae7fe7a591cc.res" ] + +[params] + +use_red_anyway=false diff --git a/plugins/custom_material_creator/Custom_material_dock.tscn b/plugins/custom_material_creator/custom_material_dock.tscn similarity index 98% rename from plugins/custom_material_creator/Custom_material_dock.tscn rename to plugins/custom_material_creator/custom_material_dock.tscn index 0ee1e79f..35cd75a8 100644 --- a/plugins/custom_material_creator/Custom_material_dock.tscn +++ b/plugins/custom_material_creator/custom_material_dock.tscn @@ -1,6 +1,6 @@ [gd_scene load_steps=2 format=2] -[ext_resource path="res://addons/custom_import_plugin/Silly_material_creator.gd" type="Script" id=1] +[ext_resource path="res://addons/custom_material_creator/silly_material_creator.gd" type="Script" id=1] [node name="Silly Material Creator" type="Panel"] diff --git a/plugins/custom_material_creator/material_import.gd b/plugins/custom_material_creator/material_import.gd index 03072c70..965947ac 100644 --- a/plugins/custom_material_creator/material_import.gd +++ b/plugins/custom_material_creator/material_import.gd @@ -4,20 +4,18 @@ # SPECIAL NOTE: This technically should be using EditorImportPlugin and EditorExportPlugin # to handle the input and output of the silly material. However, currently you cannot export # custom resources in Godot, so instead we're using JSON files instead. -# | +# # This example should be replaced when EditorImportPlugin and EditorExportPlugin are both # fully working and you can save custom resources. tool extends EditorPlugin -var io_material_dialog; +var io_material_dialog func _enter_tree(): - - io_material_dialog = preload("res://addons/custom_import_plugin/Custom_material_dock.tscn").instance() - io_material_dialog.editor_interface = get_editor_interface(); - + io_material_dialog = preload("res://addons/custom_material_creator/custom_material_dock.tscn").instance() + io_material_dialog.editor_interface = get_editor_interface() add_control_to_dock(DOCK_SLOT_LEFT_UL, io_material_dialog) func _exit_tree(): diff --git a/plugins/custom_material_creator/Silly_material_creator.gd b/plugins/custom_material_creator/silly_material_creator.gd similarity index 96% rename from plugins/custom_material_creator/Silly_material_creator.gd rename to plugins/custom_material_creator/silly_material_creator.gd index d24533b1..8d173541 100644 --- a/plugins/custom_material_creator/Silly_material_creator.gd +++ b/plugins/custom_material_creator/silly_material_creator.gd @@ -1,7 +1,7 @@ tool extends Panel -var silly_material_resource = preload("res://addons/custom_import_plugin/Silly_material_resource.gd") +var silly_material_resource = preload("res://addons/custom_material_creator/silly_material_resource.gd") var editor_interface func _ready(): diff --git a/plugins/custom_material_creator/Silly_material_resource.gd b/plugins/custom_material_creator/silly_material_resource.gd similarity index 100% rename from plugins/custom_material_creator/Silly_material_resource.gd rename to plugins/custom_material_creator/silly_material_resource.gd diff --git a/plugins/custom_node/heart.gd b/plugins/custom_node/heart.gd index d53c92d8..abe9cdaa 100644 --- a/plugins/custom_node/heart.gd +++ b/plugins/custom_node/heart.gd @@ -1,12 +1,11 @@ tool extends Node2D - var heart = preload("res://addons/custom_node/heart.png") func _draw(): - draw_texture(heart,-heart.get_size()/2) + draw_texture(heart, -heart.get_size() / 2) func _get_item_rect(): - #override - return Rect2(-heart.get_size()/2,heart.get_size()) + # override + return Rect2(-heart.get_size() / 2, heart.get_size()) diff --git a/plugins/custom_node/heart.png.import b/plugins/custom_node/heart.png.import new file mode 100644 index 00000000..e45b5978 --- /dev/null +++ b/plugins/custom_node/heart.png.import @@ -0,0 +1,31 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/heart.png-53d6538480df02caf4bbbee10b65a623.stex" + +[deps] + +source_file="res://addons/custom_node/heart.png" +dest_files=[ "res://.import/heart.png-53d6538480df02caf4bbbee10b65a623.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/plugins/custom_node/heart_icon.png.import b/plugins/custom_node/heart_icon.png.import new file mode 100644 index 00000000..1db232f7 --- /dev/null +++ b/plugins/custom_node/heart_icon.png.import @@ -0,0 +1,31 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/heart_icon.png-8f04adf78b3bd1a5c39f790588a1fa78.stex" + +[deps] + +source_file="res://addons/custom_node/heart_icon.png" +dest_files=[ "res://.import/heart_icon.png-8f04adf78b3bd1a5c39f790588a1fa78.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/plugins/custom_node/heart_plugin.gd b/plugins/custom_node/heart_plugin.gd index 01a6177c..42c948ee 100644 --- a/plugins/custom_node/heart_plugin.gd +++ b/plugins/custom_node/heart_plugin.gd @@ -1,18 +1,10 @@ tool extends EditorPlugin - func _enter_tree(): # When this plugin node enters tree, add the custom type - - add_custom_type("Heart","Node2D",preload("res://addons/custom_node/heart.gd"),preload("res://addons/custom_node/heart_icon.png")) + add_custom_type("Heart", "Node2D", preload("res://addons/custom_node/heart.gd"), preload("res://addons/custom_node/heart_icon.png")) func _exit_tree(): # When the plugin node exits the tree, remove the custom type - remove_custom_type("Heart") - - - - - \ No newline at end of file diff --git a/plugins/custom_node/plugin.cfg b/plugins/custom_node/plugin.cfg index ebb4b564..f1a33b0e 100644 --- a/plugins/custom_node/plugin.cfg +++ b/plugins/custom_node/plugin.cfg @@ -5,10 +5,3 @@ description="Adds a new Heart node in 2D" author="Juan Linietsky" version="1.0" script="heart_plugin.gd" - - - - - - -