From 634d45a280777e898c4e46d6af49dc5158a2c913 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Fri, 30 Jun 2017 08:39:26 +0200 Subject: [PATCH] Port some misc demos to 3.0 autoload, instancing, joypads, pause, regex, scene_changer --- {old/misc => misc}/autoload/global.gd | 15 +- misc/autoload/project.godot | 13 + misc/autoload/scene_a.gd | 4 + misc/autoload/scene_a.tscn | 48 + misc/autoload/scene_b.gd | 4 + misc/autoload/scene_b.tscn | 48 + misc/instancing/ball.tscn | 39 + .../misc => misc}/instancing/bowling_ball.png | Bin misc/instancing/bowling_ball.png.import | 23 + {old/misc => misc}/instancing/container.png | Bin misc/instancing/container.png.import | 23 + misc/instancing/container.tscn | 69 ++ {old/misc => misc}/instancing/icon.png | Bin misc/instancing/icon.png.import | 23 + misc/instancing/project.godot | 10 + .../joysticks => misc/joypads}/diagram.png | Bin misc/joypads/diagram.png.import | 23 + {old/misc/joysticks => misc/joypads}/icon.png | Bin misc/joypads/icon.png.import | 23 + .../joysticks => misc/joypads}/indicators.png | Bin misc/joypads/indicators.png.import | 23 + .../joysticks.gd => misc/joypads/joypads.gd | 39 +- misc/joypads/joypads.tscn | 931 ++++++++++++++++++ .../joysticks => misc/joypads}/jsdiagram.tscn | 177 ++-- misc/joypads/project.godot | 11 + {old/misc => misc}/pause/icon.png | Bin misc/pause/icon.png.import | 23 + misc/pause/project.godot | 6 + {old/misc => misc}/pause/spinpause.gd | 3 - misc/pause/spinpause.tscn | 165 ++++ {old/misc => misc}/regex/icon.png | Bin misc/regex/icon.png.import | 23 + .../engine.cfg => misc/regex/project.godot | 2 +- misc/regex/regex.gd | 22 + misc/regex/regex.tscn | 59 ++ misc/scene_changer/project.godot | 5 + misc/scene_changer/scene_a.gd | 4 + misc/scene_changer/scene_a.tscn | 48 + misc/scene_changer/scene_b.gd | 4 + misc/scene_changer/scene_b.tscn | 48 + old/misc/autoload/engine.cfg | 8 - old/misc/autoload/scene_a.gd | 5 - old/misc/autoload/scene_a.scn | Bin 1660 -> 0 bytes old/misc/autoload/scene_b.gd | 5 - old/misc/autoload/scene_b.scn | Bin 1639 -> 0 bytes old/misc/instancing/ball.scn | Bin 1885 -> 0 bytes old/misc/instancing/container.scn | Bin 3137 -> 0 bytes old/misc/instancing/engine.cfg | 9 - old/misc/joysticks/engine.cfg | 10 - old/misc/joysticks/joysticks.tscn | 854 ---------------- old/misc/pause/engine.cfg | 5 - old/misc/pause/spinpause.scn | Bin 5399 -> 0 bytes old/misc/regex/regex.gd | 28 - old/misc/regex/regex.scn | Bin 1775 -> 0 bytes old/misc/scene_changer/engine.cfg | 4 - old/misc/scene_changer/scene_a.gd | 16 - old/misc/scene_changer/scene_a.scn | Bin 1660 -> 0 bytes old/misc/scene_changer/scene_b.gd | 16 - old/misc/scene_changer/scene_b.scn | Bin 1639 -> 0 bytes 59 files changed, 1837 insertions(+), 1081 deletions(-) rename {old/misc => misc}/autoload/global.gd (95%) create mode 100644 misc/autoload/project.godot create mode 100644 misc/autoload/scene_a.gd create mode 100644 misc/autoload/scene_a.tscn create mode 100644 misc/autoload/scene_b.gd create mode 100644 misc/autoload/scene_b.tscn create mode 100644 misc/instancing/ball.tscn rename {old/misc => misc}/instancing/bowling_ball.png (100%) create mode 100644 misc/instancing/bowling_ball.png.import rename {old/misc => misc}/instancing/container.png (100%) create mode 100644 misc/instancing/container.png.import create mode 100644 misc/instancing/container.tscn rename {old/misc => misc}/instancing/icon.png (100%) create mode 100644 misc/instancing/icon.png.import create mode 100644 misc/instancing/project.godot rename {old/misc/joysticks => misc/joypads}/diagram.png (100%) create mode 100644 misc/joypads/diagram.png.import rename {old/misc/joysticks => misc/joypads}/icon.png (100%) create mode 100644 misc/joypads/icon.png.import rename {old/misc/joysticks => misc/joypads}/indicators.png (100%) create mode 100644 misc/joypads/indicators.png.import rename old/misc/joysticks/joysticks.gd => misc/joypads/joypads.gd (52%) create mode 100644 misc/joypads/joypads.tscn rename {old/misc/joysticks => misc/joypads}/jsdiagram.tscn (54%) create mode 100644 misc/joypads/project.godot rename {old/misc => misc}/pause/icon.png (100%) create mode 100644 misc/pause/icon.png.import create mode 100644 misc/pause/project.godot rename {old/misc => misc}/pause/spinpause.gd (98%) create mode 100644 misc/pause/spinpause.tscn rename {old/misc => misc}/regex/icon.png (100%) create mode 100644 misc/regex/icon.png.import rename old/misc/regex/engine.cfg => misc/regex/project.godot (62%) create mode 100644 misc/regex/regex.gd create mode 100644 misc/regex/regex.tscn create mode 100644 misc/scene_changer/project.godot create mode 100644 misc/scene_changer/scene_a.gd create mode 100644 misc/scene_changer/scene_a.tscn create mode 100644 misc/scene_changer/scene_b.gd create mode 100644 misc/scene_changer/scene_b.tscn delete mode 100644 old/misc/autoload/engine.cfg delete mode 100644 old/misc/autoload/scene_a.gd delete mode 100644 old/misc/autoload/scene_a.scn delete mode 100644 old/misc/autoload/scene_b.gd delete mode 100644 old/misc/autoload/scene_b.scn delete mode 100644 old/misc/instancing/ball.scn delete mode 100644 old/misc/instancing/container.scn delete mode 100644 old/misc/instancing/engine.cfg delete mode 100644 old/misc/joysticks/engine.cfg delete mode 100644 old/misc/joysticks/joysticks.tscn delete mode 100644 old/misc/pause/engine.cfg delete mode 100644 old/misc/pause/spinpause.scn delete mode 100644 old/misc/regex/regex.gd delete mode 100644 old/misc/regex/regex.scn delete mode 100644 old/misc/scene_changer/engine.cfg delete mode 100644 old/misc/scene_changer/scene_a.gd delete mode 100644 old/misc/scene_changer/scene_a.scn delete mode 100644 old/misc/scene_changer/scene_b.gd delete mode 100644 old/misc/scene_changer/scene_b.scn diff --git a/old/misc/autoload/global.gd b/misc/autoload/global.gd similarity index 95% rename from old/misc/autoload/global.gd rename to misc/autoload/global.gd index 735995e8..f5a1f2fb 100644 --- a/old/misc/autoload/global.gd +++ b/misc/autoload/global.gd @@ -1,36 +1,33 @@ extends Node - # Changing scenes is most easily done using the functions `change_scene` # and `change_scene_to` of the SceneTree. This script demonstrates how to # change scenes without those helpers. - func goto_scene(path): # This function will usually be called from a signal callback, # or some other function from the running scene. # Deleting the current scene at this point might be # a bad idea, because it may be inside of a callback or function of it. # The worst case will be a crash or unexpected behavior. - + # The way around this is deferring the load to a later time, when # it is ensured that no code from the current scene is running: - - call_deferred("_deferred_goto_scene",path) + call_deferred("_deferred_goto_scene", path) func _deferred_goto_scene(path): # Immediately free the current scene, there is no risk here. get_tree().get_current_scene().free() - + # Load new scene var packed_scene = ResourceLoader.load(path) - + # Instance the new scene var instanced_scene = packed_scene.instance() - + # Add it to the scene tree, as direct child of root get_tree().get_root().add_child(instanced_scene) - + # Set it as the current scene, only after it has been added to the tree get_tree().set_current_scene(instanced_scene) diff --git a/misc/autoload/project.godot b/misc/autoload/project.godot new file mode 100644 index 00000000..4edd2111 --- /dev/null +++ b/misc/autoload/project.godot @@ -0,0 +1,13 @@ +config_version=3 +[application] + +name="Autoload (Singletons)" +main_scene="res://scene_a.tscn" + +[autoload] + +global="res://global.gd" + +[memory] + +multithread/thread_rid_pool_prealloc=60 diff --git a/misc/autoload/scene_a.gd b/misc/autoload/scene_a.gd new file mode 100644 index 00000000..1154197e --- /dev/null +++ b/misc/autoload/scene_a.gd @@ -0,0 +1,4 @@ +extends Panel + +func _on_goto_scene_pressed(): + get_node("/root/global").goto_scene("res://scene_b.tscn") diff --git a/misc/autoload/scene_a.tscn b/misc/autoload/scene_a.tscn new file mode 100644 index 00000000..5b1b4c3b --- /dev/null +++ b/misc/autoload/scene_a.tscn @@ -0,0 +1,48 @@ +[gd_scene load_steps=2 format=2] + +[ext_resource path="res://scene_a.gd" type="Script" id=1] + +[node name="scene_a" type="Panel"] + +anchor_right = 1 +anchor_bottom = 1 +rect_clip_content = false +mouse_filter = 0 +size_flags_horizontal = 2 +size_flags_vertical = 2 +script = ExtResource( 1 ) + +[node name="label" type="Label" parent="."] + +margin_left = 64.0 +margin_top = 48.0 +margin_right = 104.0 +margin_bottom = 62.0 +rect_clip_content = false +mouse_filter = 2 +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="."] + +margin_left = 64.0 +margin_top = 128.0 +margin_right = 192.0 +margin_bottom = 160.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/autoload/scene_b.gd b/misc/autoload/scene_b.gd new file mode 100644 index 00000000..52b7d21d --- /dev/null +++ b/misc/autoload/scene_b.gd @@ -0,0 +1,4 @@ +extends Panel + +func _on_goto_scene_pressed(): + get_node("/root/global").goto_scene("res://scene_a.tscn") diff --git a/misc/autoload/scene_b.tscn b/misc/autoload/scene_b.tscn new file mode 100644 index 00000000..be22c214 --- /dev/null +++ b/misc/autoload/scene_b.tscn @@ -0,0 +1,48 @@ +[gd_scene load_steps=2 format=2] + +[ext_resource path="res://scene_b.gd" type="Script" id=1] + +[node name="scene_b" type="Panel"] + +anchor_right = 1 +anchor_bottom = 1 +rect_clip_content = false +mouse_filter = 0 +size_flags_horizontal = 2 +size_flags_vertical = 2 +script = ExtResource( 1 ) + +[node name="label" type="Label" parent="."] + +margin_left = 64.0 +margin_top = 48.0 +margin_right = 164.0 +margin_bottom = 62.0 +rect_clip_content = false +mouse_filter = 2 +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="."] + +margin_left = 64.0 +margin_top = 128.0 +margin_right = 192.0 +margin_bottom = 160.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/instancing/ball.tscn b/misc/instancing/ball.tscn new file mode 100644 index 00000000..2facd044 --- /dev/null +++ b/misc/instancing/ball.tscn @@ -0,0 +1,39 @@ +[gd_scene load_steps=3 format=2] + +[ext_resource path="res://bowling_ball.png" type="Texture" id=1] + +[sub_resource type="CircleShape2D" id=1] + +custom_solver_bias = 0.0 +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 + +[node name="sprite" type="Sprite" parent="."] + +texture = ExtResource( 1 ) + +[node name="collision" type="CollisionShape2D" parent="."] + +shape = SubResource( 1 ) + + diff --git a/old/misc/instancing/bowling_ball.png b/misc/instancing/bowling_ball.png similarity index 100% rename from old/misc/instancing/bowling_ball.png rename to misc/instancing/bowling_ball.png diff --git a/misc/instancing/bowling_ball.png.import b/misc/instancing/bowling_ball.png.import new file mode 100644 index 00000000..bd02f5ea --- /dev/null +++ b/misc/instancing/bowling_ball.png.import @@ -0,0 +1,23 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/bowling_ball.png-0fe48f78a8537b41cee7fd03e5ee14fe.stex" + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=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 +stream=false +size_limit=0 +detect_3d=true diff --git a/old/misc/instancing/container.png b/misc/instancing/container.png similarity index 100% rename from old/misc/instancing/container.png rename to misc/instancing/container.png diff --git a/misc/instancing/container.png.import b/misc/instancing/container.png.import new file mode 100644 index 00000000..ff978f2e --- /dev/null +++ b/misc/instancing/container.png.import @@ -0,0 +1,23 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/container.png-08b8c30d2209234da421d1db5c67b811.stex" + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=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 +stream=false +size_limit=0 +detect_3d=true diff --git a/misc/instancing/container.tscn b/misc/instancing/container.tscn new file mode 100644 index 00000000..0e70e81d --- /dev/null +++ b/misc/instancing/container.tscn @@ -0,0 +1,69 @@ +[gd_scene load_steps=3 format=2] + +[ext_resource path="res://container.png" type="Texture" id=1] +[ext_resource path="res://ball.tscn" type="PackedScene" id=2] + +[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 ) + +[node name="ball 2" parent="." instance=ExtResource( 2 )] + +position = Vector2( 388.078, 213.215 ) + +[node name="ball 3" parent="." instance=ExtResource( 2 )] + +position = Vector2( 439.52, 104.013 ) + +[node name="ball 4" parent="." instance=ExtResource( 2 )] + +position = Vector2( 235.555, 336.858 ) + +[node name="ball 5" parent="." instance=ExtResource( 2 )] + +position = Vector2( 509.555, 362.858 ) + +[node name="ball 6" parent="." instance=ExtResource( 2 )] + +position = Vector2( 635.555, 147.858 ) + +[node name="ball 7" parent="." instance=ExtResource( 2 )] + +position = Vector2( 631.872, 325.88 ) + +[node name="ball 8" parent="." instance=ExtResource( 2 )] + +position = Vector2( 529.97, 205.561 ) + +[node name="ball 9" parent="." instance=ExtResource( 2 )] + +position = Vector2( 101.489, 167.502 ) + +[node name="ball 10" parent="." instance=ExtResource( 2 )] + +position = Vector2( 143.756, 295.139 ) + + diff --git a/old/misc/instancing/icon.png b/misc/instancing/icon.png similarity index 100% rename from old/misc/instancing/icon.png rename to misc/instancing/icon.png diff --git a/misc/instancing/icon.png.import b/misc/instancing/icon.png.import new file mode 100644 index 00000000..627820bd --- /dev/null +++ b/misc/instancing/icon.png.import @@ -0,0 +1,23 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=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 +stream=false +size_limit=0 +detect_3d=true diff --git a/misc/instancing/project.godot b/misc/instancing/project.godot new file mode 100644 index 00000000..4a7738e7 --- /dev/null +++ b/misc/instancing/project.godot @@ -0,0 +1,10 @@ +[application] + +icon = "res://icon.png" +main_scene = "res://container.tscn" +name = "Scene Instancing Demo" + +[physics] + +2d/default_gravity = 300 + diff --git a/old/misc/joysticks/diagram.png b/misc/joypads/diagram.png similarity index 100% rename from old/misc/joysticks/diagram.png rename to misc/joypads/diagram.png diff --git a/misc/joypads/diagram.png.import b/misc/joypads/diagram.png.import new file mode 100644 index 00000000..e1f3fa7c --- /dev/null +++ b/misc/joypads/diagram.png.import @@ -0,0 +1,23 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/diagram.png-1621ff3c0b6dad34000ac99354b64701.stex" + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=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 +stream=false +size_limit=0 +detect_3d=true diff --git a/old/misc/joysticks/icon.png b/misc/joypads/icon.png similarity index 100% rename from old/misc/joysticks/icon.png rename to misc/joypads/icon.png diff --git a/misc/joypads/icon.png.import b/misc/joypads/icon.png.import new file mode 100644 index 00000000..627820bd --- /dev/null +++ b/misc/joypads/icon.png.import @@ -0,0 +1,23 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=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 +stream=false +size_limit=0 +detect_3d=true diff --git a/old/misc/joysticks/indicators.png b/misc/joypads/indicators.png similarity index 100% rename from old/misc/joysticks/indicators.png rename to misc/joypads/indicators.png diff --git a/misc/joypads/indicators.png.import b/misc/joypads/indicators.png.import new file mode 100644 index 00000000..05456830 --- /dev/null +++ b/misc/joypads/indicators.png.import @@ -0,0 +1,23 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/indicators.png-b2d98522e44d4529354ba542a9970360.stex" + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=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 +stream=false +size_limit=0 +detect_3d=true diff --git a/old/misc/joysticks/joysticks.gd b/misc/joypads/joypads.gd similarity index 52% rename from old/misc/joysticks/joysticks.gd rename to misc/joypads/joypads.gd index d7df00f6..1890800e 100644 --- a/old/misc/joysticks/joysticks.gd +++ b/misc/joypads/joypads.gd @@ -1,9 +1,8 @@ - extends Node2D -# Joysticks demo, written by Dana Olson +# Joypads demo, written by Dana Olson # -# This is a demo of joystick support, and doubles as a testing application +# This is a demo of joypad support, and doubles as a testing application # inspired by and similar to jstest-gtk. # # Licensed under the MIT license @@ -16,21 +15,21 @@ var axis_value const DEADZONE = 0.2 func _fixed_process(delta): - # Get the joystick device number from the spinbox - joy_num = get_node("joy_num").get_value() + # Get the joypad device number from the spinbox + joy_num = get_node("device_info/joy_num").get_value() - # Display the name of the joystick if we haven't already + # Display the name of the joypad if we haven't already if joy_num != cur_joy: cur_joy = joy_num - get_node("joy_name").set_text(Input.get_joy_name(joy_num)) + get_node("device_info/joy_name").set_text(Input.get_joy_name(joy_num)) # Loop through the axes and show their current values - for axis in range(JOY_ANALOG_0_X, JOY_AXIS_MAX): + for axis in range(JOY_AXIS_0, JOY_AXIS_MAX): axis_value = Input.get_joy_axis(joy_num, axis) - get_node("axis_prog" + str(axis)).set_value(100*axis_value) - get_node("axis_val" + str(axis)).set_text(str(axis_value)) - # Show joystick direction indicators - if (axis <= JOY_ANALOG_1_Y): + get_node("axes/axis_prog" + str(axis)).set_value(100*axis_value) + get_node("axes/axis_val" + str(axis)).set_text(str(axis_value)) + # Show joypad direction indicators + if (axis <= JOY_ANALOG_RY): if (abs(axis_value) < DEADZONE): get_node("diagram/axes/" + str(axis) + "+").hide() get_node("diagram/axes/" + str(axis) + "-").hide() @@ -42,28 +41,28 @@ func _fixed_process(delta): # Loop through the buttons and highlight the ones that are pressed for btn in range(JOY_BUTTON_0, JOY_BUTTON_MAX): if (Input.is_joy_button_pressed(joy_num, btn)): - get_node("btn" + str(btn)).add_color_override("font_color", Color(1, 1, 1, 1)) + get_node("buttons/btn" + str(btn)).add_color_override("font_color", Color(1, 1, 1, 1)) get_node("diagram/buttons/" + str(btn)).show() else: - get_node("btn" + str(btn)).add_color_override("font_color", Color(0.2, 0.1, 0.3, 1)) + get_node("buttons/btn" + str(btn)).add_color_override("font_color", Color(0.2, 0.1, 0.3, 1)) get_node("diagram/buttons/" + str(btn)).hide() func _ready(): set_fixed_process(true) Input.connect("joy_connection_changed", self, "_on_joy_connection_changed") -#Called whenever a joystick has been connected or disconnected. +#Called whenever a joypad has been connected or disconnected. func _on_joy_connection_changed(device_id, connected): if device_id == cur_joy: if connected: - get_node("joy_name").set_text(Input.get_joy_name(device_id)) + get_node("device_info/joy_name").set_text(Input.get_joy_name(device_id)) else: - get_node("joy_name").set_text("") + get_node("device_info/joy_name").set_text("") func _on_start_vibration_pressed(): - var weak = get_node("Vibration_weak_value").get_value() - var strong = get_node("Vibration_strong_value").get_value() - var duration = get_node("Vibration_duration_value").get_value() + var weak = get_node("vibration/vibration_weak_value").get_value() + var strong = get_node("vibration/vibration_strong_value").get_value() + var duration = get_node("vibration/vibration_duration_value").get_value() Input.start_joy_vibration(cur_joy, weak, strong, duration) diff --git a/misc/joypads/joypads.tscn b/misc/joypads/joypads.tscn new file mode 100644 index 00000000..ce4534e1 --- /dev/null +++ b/misc/joypads/joypads.tscn @@ -0,0 +1,931 @@ +[gd_scene load_steps=3 format=2] + +[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"] + +script = ExtResource( 1 ) + +[node name="diagram" parent="." instance=ExtResource( 2 )] + +position = Vector2( 403.304, 161.318 ) + +[node name="device_info" type="Control" parent="."] + +editor/display_folded = true +margin_right = 40.0 +margin_bottom = 40.0 +rect_clip_content = false +mouse_filter = 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_clip_content = false +mouse_filter = 2 +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"] + +margin_left = 65.0 +margin_top = 10.0 +margin_right = 139.0 +margin_bottom = 34.0 +rect_clip_content = false +mouse_filter = 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"] + +margin_left = 10.0 +margin_top = 35.0 +margin_right = 250.0 +margin_bottom = 50.0 +rect_clip_content = false +mouse_filter = 2 +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="."] + +editor/display_folded = true +margin_right = 40.0 +margin_bottom = 40.0 +rect_clip_content = false +mouse_filter = 0 + +[node name="axis_prog0" type="ProgressBar" parent="axes"] + +margin_left = 50.0 +margin_top = 60.0 +margin_right = 250.0 +margin_bottom = 76.0 +rect_clip_content = false +mouse_filter = 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"] + +margin_left = 50.0 +margin_top = 80.0 +margin_right = 250.0 +margin_bottom = 96.0 +rect_clip_content = false +mouse_filter = 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"] + +margin_left = 50.0 +margin_top = 100.0 +margin_right = 250.0 +margin_bottom = 116.0 +rect_clip_content = false +mouse_filter = 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"] + +margin_left = 50.0 +margin_top = 120.0 +margin_right = 250.0 +margin_bottom = 136.0 +rect_clip_content = false +mouse_filter = 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"] + +margin_left = 50.0 +margin_top = 140.0 +margin_right = 250.0 +margin_bottom = 156.0 +rect_clip_content = false +mouse_filter = 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"] + +margin_left = 50.0 +margin_top = 160.0 +margin_right = 250.0 +margin_bottom = 176.0 +rect_clip_content = false +mouse_filter = 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"] + +margin_left = 50.0 +margin_top = 180.0 +margin_right = 250.0 +margin_bottom = 196.0 +rect_clip_content = false +mouse_filter = 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"] + +margin_left = 50.0 +margin_top = 200.0 +margin_right = 250.0 +margin_bottom = 216.0 +rect_clip_content = false +mouse_filter = 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"] + +margin_left = 50.0 +margin_top = 60.0 +margin_right = 250.0 +margin_bottom = 75.0 +rect_clip_content = false +mouse_filter = 2 +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"] + +margin_left = 50.0 +margin_top = 80.0 +margin_right = 250.0 +margin_bottom = 95.0 +rect_clip_content = false +mouse_filter = 2 +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"] + +margin_left = 50.0 +margin_top = 100.0 +margin_right = 250.0 +margin_bottom = 115.0 +rect_clip_content = false +mouse_filter = 2 +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"] + +margin_left = 50.0 +margin_top = 120.0 +margin_right = 250.0 +margin_bottom = 135.0 +rect_clip_content = false +mouse_filter = 2 +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"] + +margin_left = 50.0 +margin_top = 140.0 +margin_right = 250.0 +margin_bottom = 155.0 +rect_clip_content = false +mouse_filter = 2 +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"] + +margin_left = 50.0 +margin_top = 160.0 +margin_right = 250.0 +margin_bottom = 175.0 +rect_clip_content = false +mouse_filter = 2 +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"] + +margin_left = 50.0 +margin_top = 180.0 +margin_right = 250.0 +margin_bottom = 195.0 +rect_clip_content = false +mouse_filter = 2 +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"] + +margin_left = 50.0 +margin_top = 200.0 +margin_right = 250.0 +margin_bottom = 215.0 +rect_clip_content = false +mouse_filter = 2 +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"] + +margin_left = 10.0 +margin_top = 60.0 +margin_right = 51.0 +margin_bottom = 75.0 +rect_clip_content = false +mouse_filter = 2 +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"] + +margin_left = 10.0 +margin_top = 80.0 +margin_right = 51.0 +margin_bottom = 95.0 +rect_clip_content = false +mouse_filter = 2 +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"] + +margin_left = 10.0 +margin_top = 100.0 +margin_right = 51.0 +margin_bottom = 115.0 +rect_clip_content = false +mouse_filter = 2 +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"] + +margin_left = 10.0 +margin_top = 120.0 +margin_right = 51.0 +margin_bottom = 135.0 +rect_clip_content = false +mouse_filter = 2 +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"] + +margin_left = 10.0 +margin_top = 140.0 +margin_right = 51.0 +margin_bottom = 155.0 +rect_clip_content = false +mouse_filter = 2 +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"] + +margin_left = 10.0 +margin_top = 160.0 +margin_right = 51.0 +margin_bottom = 175.0 +rect_clip_content = false +mouse_filter = 2 +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"] + +margin_left = 10.0 +margin_top = 180.0 +margin_right = 51.0 +margin_bottom = 195.0 +rect_clip_content = false +mouse_filter = 2 +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"] + +margin_left = 10.0 +margin_top = 200.0 +margin_right = 51.0 +margin_bottom = 215.0 +rect_clip_content = false +mouse_filter = 2 +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="buttons" type="Control" parent="."] + +editor/display_folded = true +margin_right = 40.0 +margin_bottom = 40.0 +rect_clip_content = false +mouse_filter = 0 + +[node name="label_buttons" type="Label" parent="buttons"] + +margin_left = 10.0 +margin_top = 235.0 +margin_right = 65.0 +margin_bottom = 249.0 +rect_clip_content = false +mouse_filter = 2 +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"] + +margin_left = 20.0 +margin_top = 255.0 +margin_right = 45.0 +margin_bottom = 269.0 +rect_clip_content = false +mouse_filter = 2 +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"] + +margin_left = 45.0 +margin_top = 255.0 +margin_right = 70.0 +margin_bottom = 269.0 +rect_clip_content = false +mouse_filter = 2 +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"] + +margin_left = 70.0 +margin_top = 255.0 +margin_right = 95.0 +margin_bottom = 269.0 +rect_clip_content = false +mouse_filter = 2 +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"] + +margin_left = 95.0 +margin_top = 255.0 +margin_right = 120.0 +margin_bottom = 269.0 +rect_clip_content = false +mouse_filter = 2 +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"] + +margin_left = 120.0 +margin_top = 255.0 +margin_right = 145.0 +margin_bottom = 269.0 +rect_clip_content = false +mouse_filter = 2 +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"] + +margin_left = 145.0 +margin_top = 255.0 +margin_right = 170.0 +margin_bottom = 269.0 +rect_clip_content = false +mouse_filter = 2 +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"] + +margin_left = 170.0 +margin_top = 255.0 +margin_right = 195.0 +margin_bottom = 269.0 +rect_clip_content = false +mouse_filter = 2 +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"] + +margin_left = 195.0 +margin_top = 255.0 +margin_right = 220.0 +margin_bottom = 269.0 +rect_clip_content = false +mouse_filter = 2 +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"] + +margin_left = 220.0 +margin_top = 255.0 +margin_right = 245.0 +margin_bottom = 269.0 +rect_clip_content = false +mouse_filter = 2 +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"] + +margin_left = 20.0 +margin_top = 275.0 +margin_right = 45.0 +margin_bottom = 289.0 +rect_clip_content = false +mouse_filter = 2 +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"] + +margin_left = 45.0 +margin_top = 275.0 +margin_right = 70.0 +margin_bottom = 289.0 +rect_clip_content = false +mouse_filter = 2 +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"] + +margin_left = 70.0 +margin_top = 275.0 +margin_right = 95.0 +margin_bottom = 289.0 +rect_clip_content = false +mouse_filter = 2 +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"] + +margin_left = 95.0 +margin_top = 275.0 +margin_right = 120.0 +margin_bottom = 289.0 +rect_clip_content = false +mouse_filter = 2 +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"] + +margin_left = 120.0 +margin_top = 275.0 +margin_right = 145.0 +margin_bottom = 289.0 +rect_clip_content = false +mouse_filter = 2 +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"] + +margin_left = 145.0 +margin_top = 275.0 +margin_right = 170.0 +margin_bottom = 289.0 +rect_clip_content = false +mouse_filter = 2 +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"] + +margin_left = 170.0 +margin_top = 275.0 +margin_right = 195.0 +margin_bottom = 289.0 +rect_clip_content = false +mouse_filter = 2 +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="."] + +editor/display_folded = true +margin_right = 40.0 +margin_bottom = 40.0 +rect_clip_content = false +mouse_filter = 0 + +[node name="weak_label" type="Label" parent="vibration"] + +margin_left = 8.0 +margin_top = 329.0 +margin_right = 150.0 +margin_bottom = 343.0 +rect_clip_content = false +mouse_filter = 2 +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"] + +margin_left = 8.0 +margin_top = 367.0 +margin_right = 155.0 +margin_bottom = 381.0 +rect_clip_content = false +mouse_filter = 2 +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"] + +margin_left = 8.0 +margin_top = 408.0 +margin_right = 155.0 +margin_bottom = 439.0 +rect_clip_content = false +mouse_filter = 2 +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"] + +margin_left = 163.0 +margin_top = 324.0 +margin_right = 237.0 +margin_bottom = 348.0 +rect_clip_content = false +mouse_filter = 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"] + +margin_left = 163.0 +margin_top = 362.0 +margin_right = 237.0 +margin_bottom = 386.0 +rect_clip_content = false +mouse_filter = 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"] + +margin_left = 163.0 +margin_top = 403.0 +margin_right = 237.0 +margin_bottom = 427.0 +rect_clip_content = false +mouse_filter = 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"] + +margin_left = 288.0 +margin_top = 352.0 +margin_right = 390.0 +margin_bottom = 372.0 +rect_clip_content = false +mouse_filter = 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 + +[node name="stop_vibration" type="Button" parent="vibration"] + +margin_left = 406.0 +margin_top = 352.0 +margin_right = 507.0 +margin_bottom = 372.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 = "Stop Vibration" +flat = false + +[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/old/misc/joysticks/jsdiagram.tscn b/misc/joypads/jsdiagram.tscn similarity index 54% rename from old/misc/joysticks/jsdiagram.tscn rename to misc/joypads/jsdiagram.tscn index 1b3ec86f..398ece88 100644 --- a/old/misc/joysticks/jsdiagram.tscn +++ b/misc/joypads/jsdiagram.tscn @@ -1,218 +1,219 @@ -[gd_scene load_steps=3 format=1] +[gd_scene load_steps=3 format=2] [ext_resource path="res://diagram.png" type="Texture" id=1] [ext_resource path="res://indicators.png" type="Texture" id=2] [node name="diagram" type="Sprite"] -transform/pos = Vector2( 368.635, 155.289 ) -transform/scale = Vector2( 0.432859, 0.446287 ) +position = Vector2( 368.635, 155.289 ) +scale = Vector2( 0.432859, 0.446287 ) texture = ExtResource( 1 ) -__meta__ = { "__editor_plugin_screen__":"2D" } [node name="buttons" type="Node2D" parent="."] -__meta__ = { "_editor_collapsed":true } +editor/display_folded = true [node name="0" type="Sprite" parent="buttons"] -transform/pos = Vector2( 147.73, 120.925 ) -transform/scale = Vector2( 0.9, 0.9 ) +position = Vector2( 147.73, 120.925 ) +scale = Vector2( 0.9, 0.9 ) texture = ExtResource( 2 ) -region = true +region_enabled = true region_rect = Rect2( 0, 0, 45, 45 ) [node name="1" type="Sprite" parent="buttons"] -transform/pos = Vector2( 185.769, 82.4874 ) -transform/scale = Vector2( 0.9, 0.9 ) +position = Vector2( 185.769, 82.4874 ) +scale = Vector2( 0.9, 0.9 ) texture = ExtResource( 2 ) -region = true +region_enabled = true region_rect = Rect2( 0, 0, 45, 45 ) [node name="2" type="Sprite" parent="buttons"] -transform/pos = Vector2( 112.377, 82.4874 ) -transform/scale = Vector2( 0.9, 0.9 ) +position = Vector2( 112.377, 82.4874 ) +scale = Vector2( 0.9, 0.9 ) texture = ExtResource( 2 ) -region = true +region_enabled = true region_rect = Rect2( 0, 0, 45, 45 ) [node name="3" type="Sprite" parent="buttons"] -transform/pos = Vector2( 149.073, 47.3293 ) -transform/scale = Vector2( 0.9, 0.9 ) +position = Vector2( 149.073, 47.3293 ) +scale = Vector2( 0.9, 0.9 ) texture = ExtResource( 2 ) -region = true +region_enabled = true region_rect = Rect2( 0, 0, 45, 45 ) [node name="4" type="Sprite" parent="buttons"] -transform/pos = Vector2( -161.038, -158.037 ) -transform/scale = Vector2( 5.3348, 3.35512 ) +position = Vector2( -161.038, -158.037 ) +scale = Vector2( 5.3348, 3.35512 ) texture = ExtResource( 2 ) -region = true +region_enabled = true region_rect = Rect2( 10, 10, 10, 10 ) [node name="5" type="Sprite" parent="buttons"] -transform/pos = Vector2( 159.362, -156.977 ) -transform/scale = Vector2( 5.3348, 3.35512 ) +position = Vector2( 159.362, -156.977 ) +scale = Vector2( 5.3348, 3.35512 ) texture = ExtResource( 2 ) -region = true +region_enabled = true region_rect = Rect2( 10, 10, 10, 10 ) [node name="6" type="Sprite" parent="buttons"] -transform/pos = Vector2( -159.349, -221.878 ) -transform/scale = Vector2( 1.0458, 2.16952 ) +position = Vector2( -159.349, -221.878 ) +scale = Vector2( 1.0458, 2.16952 ) texture = ExtResource( 2 ) flip_h = true -region = true +region_enabled = true region_rect = Rect2( 0, 0, 45, 22 ) [node name="7" type="Sprite" parent="buttons"] -transform/pos = Vector2( 156.677, -220.11 ) -transform/scale = Vector2( 1.0458, 2.16952 ) +position = Vector2( 156.677, -220.11 ) +scale = Vector2( 1.0458, 2.16952 ) texture = ExtResource( 2 ) -region = true +region_enabled = true region_rect = Rect2( 0, 0, 45, 22 ) [node name="8" type="Sprite" parent="buttons"] -transform/pos = Vector2( -67.5308, 164.422 ) -transform/scale = Vector2( 0.9, 0.9 ) +position = Vector2( -67.5308, 164.422 ) +scale = Vector2( 0.9, 0.9 ) texture = ExtResource( 2 ) -region = true +region_enabled = true region_rect = Rect2( 0, 0, 45, 45 ) [node name="9" type="Sprite" parent="buttons"] -transform/pos = Vector2( 75.8825, 167.363 ) -transform/scale = Vector2( 0.9, 0.9 ) +position = Vector2( 75.8825, 167.363 ) +scale = Vector2( 0.9, 0.9 ) texture = ExtResource( 2 ) -region = true +region_enabled = true region_rect = Rect2( 0, 0, 45, 45 ) [node name="10" type="Sprite" parent="buttons"] -transform/pos = Vector2( -46.6707, 52.702 ) -transform/scale = Vector2( 0.810497, 0.57205 ) +position = Vector2( -46.6707, 52.702 ) +scale = Vector2( 0.810497, 0.57205 ) texture = ExtResource( 2 ) -region = true +region_enabled = true region_rect = Rect2( 0, 0, 45, 45 ) [node name="11" type="Sprite" parent="buttons"] -transform/pos = Vector2( 56.2581, 54.4382 ) -transform/scale = Vector2( 0.810497, 0.57205 ) +position = Vector2( 56.2581, 54.4382 ) +scale = Vector2( 0.810497, 0.57205 ) texture = ExtResource( 2 ) -region = true +region_enabled = true region_rect = Rect2( 0, 0, 45, 45 ) [node name="12" type="Sprite" parent="buttons"] -transform/pos = Vector2( -139.402, 46.8295 ) -transform/scale = Vector2( 0.9, 0.9 ) +position = Vector2( -139.402, 46.8295 ) +scale = Vector2( 0.9, 0.9 ) texture = ExtResource( 2 ) -region = true +region_enabled = true region_rect = Rect2( 50, 0, 54, 14 ) [node name="13" type="Sprite" parent="buttons"] -transform/pos = Vector2( -139.838, 115.789 ) -transform/scale = Vector2( 0.9, 0.9 ) +position = Vector2( -139.838, 115.789 ) +scale = Vector2( 0.9, 0.9 ) texture = ExtResource( 2 ) flip_v = true -region = true +region_enabled = true region_rect = Rect2( 50, 0, 54, 14 ) [node name="14" type="Sprite" parent="buttons"] -transform/pos = Vector2( -172.262, 81.8793 ) -transform/scale = Vector2( 0.9, 0.9 ) +position = Vector2( -172.262, 81.8793 ) +scale = Vector2( 0.9, 0.9 ) texture = ExtResource( 2 ) -region = true +region_enabled = true region_rect = Rect2( 50, 0, 14, 54 ) [node name="15" type="Sprite" parent="buttons"] -transform/pos = Vector2( -105.085, 81.0326 ) -transform/scale = Vector2( 0.9, 0.9 ) +position = Vector2( -105.085, 81.0326 ) +scale = Vector2( 0.9, 0.9 ) texture = ExtResource( 2 ) flip_h = true -region = true +region_enabled = true region_rect = Rect2( 50, 0, 14, 54 ) [node name="axes" type="Node2D" parent="."] +editor/display_folded = true + [node name="0-" type="Sprite" parent="axes"] -transform/pos = Vector2( -94.4295, 164.932 ) -transform/scale = Vector2( 0.9, 0.9 ) +position = Vector2( -94.4295, 164.932 ) +scale = Vector2( 0.9, 0.9 ) texture = ExtResource( 2 ) -region = true +region_enabled = true region_rect = Rect2( 50, 0, 14, 54 ) [node name="0+" type="Sprite" parent="axes"] -transform/pos = Vector2( -40.3475, 164.509 ) -transform/scale = Vector2( 0.9, 0.9 ) +position = Vector2( -40.3475, 164.509 ) +scale = Vector2( 0.9, 0.9 ) texture = ExtResource( 2 ) flip_h = true -region = true +region_enabled = true region_rect = Rect2( 50, 0, 14, 54 ) [node name="1-" type="Sprite" parent="axes"] -transform/pos = Vector2( -67.6802, 137.926 ) -transform/scale = Vector2( 0.9, 0.9 ) +position = Vector2( -67.6802, 137.926 ) +scale = Vector2( 0.9, 0.9 ) texture = ExtResource( 2 ) -region = true +region_enabled = true region_rect = Rect2( 50, 0, 54, 14 ) [node name="1+" type="Sprite" parent="axes"] -transform/pos = Vector2( -67.4618, 192.915 ) -transform/scale = Vector2( 0.9, 0.9 ) +position = Vector2( -67.4618, 192.915 ) +scale = Vector2( 0.9, 0.9 ) texture = ExtResource( 2 ) flip_v = true -region = true -region_rect = Rect2( 50, 0, 54, 14 ) - -[node name="3-" type="Sprite" parent="axes"] - -transform/pos = Vector2( 76.6557, 140.986 ) -transform/scale = Vector2( 0.9, 0.9 ) -texture = ExtResource( 2 ) -region = true -region_rect = Rect2( 50, 0, 54, 14 ) - -[node name="3+" type="Sprite" parent="axes"] - -transform/pos = Vector2( 76.0009, 195.339 ) -transform/scale = Vector2( 0.9, 0.9 ) -texture = ExtResource( 2 ) -flip_v = true -region = true +region_enabled = true region_rect = Rect2( 50, 0, 54, 14 ) [node name="2-" type="Sprite" parent="axes"] -transform/pos = Vector2( 48.8152, 167.145 ) -transform/scale = Vector2( 0.9, 0.9 ) +position = Vector2( 48.8152, 167.145 ) +scale = Vector2( 0.9, 0.9 ) texture = ExtResource( 2 ) -region = true +region_enabled = true region_rect = Rect2( 50, 0, 14, 54 ) [node name="2+" type="Sprite" parent="axes"] -transform/pos = Vector2( 102.899, 167.857 ) -transform/scale = Vector2( 0.9, 0.9 ) +position = Vector2( 102.899, 167.857 ) +scale = Vector2( 0.9, 0.9 ) texture = ExtResource( 2 ) flip_h = true -region = true +region_enabled = true region_rect = Rect2( 50, 0, 14, 54 ) +[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"] + +position = Vector2( 76.0009, 195.339 ) +scale = Vector2( 0.9, 0.9 ) +texture = ExtResource( 2 ) +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 new file mode 100644 index 00000000..34a9c663 --- /dev/null +++ b/misc/joypads/project.godot @@ -0,0 +1,11 @@ +[application] + +icon = "res://icon.png" +main_scene = "res://joypads.tscn" +name = "Joypads" + +[display] + +window/height = 450 +window/width = 550 + diff --git a/old/misc/pause/icon.png b/misc/pause/icon.png similarity index 100% rename from old/misc/pause/icon.png rename to misc/pause/icon.png diff --git a/misc/pause/icon.png.import b/misc/pause/icon.png.import new file mode 100644 index 00000000..627820bd --- /dev/null +++ b/misc/pause/icon.png.import @@ -0,0 +1,23 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=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 +stream=false +size_limit=0 +detect_3d=true diff --git a/misc/pause/project.godot b/misc/pause/project.godot new file mode 100644 index 00000000..3e206a78 --- /dev/null +++ b/misc/pause/project.godot @@ -0,0 +1,6 @@ +[application] + +icon = "res://icon.png" +main_scene = "res://spinpause.tscn" +name = "Pause" + diff --git a/old/misc/pause/spinpause.gd b/misc/pause/spinpause.gd similarity index 98% rename from old/misc/pause/spinpause.gd rename to misc/pause/spinpause.gd index ea5617c0..6bb74c9d 100644 --- a/old/misc/pause/spinpause.gd +++ b/misc/pause/spinpause.gd @@ -1,13 +1,10 @@ - extends Spatial - func _on_pause_pressed(): get_node("pause_popup").set_exclusive(true) get_node("pause_popup").popup() get_tree().set_pause(true) - func _on_unpause_pressed(): get_node("pause_popup").hide() get_tree().set_pause(false) diff --git a/misc/pause/spinpause.tscn b/misc/pause/spinpause.tscn new file mode 100644 index 00000000..c5798798 --- /dev/null +++ b/misc/pause/spinpause.tscn @@ -0,0 +1,165 @@ +[gd_scene load_steps=4 format=2] + +[ext_resource path="res://spinpause.gd" type="Script" id=1] + +[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_deg") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/imported = false +tracks/0/keys = { +"times": PoolFloatArray( 0, 10 ), +"transitions": PoolFloatArray( 1, 1 ), +"update": 0, +"values": [ Vector3( 0, 0, 0 ), Vector3( 0, -360, 0 ) ] +} + +[node name="pause_scene" type="Spatial"] + +script = ExtResource( 1 ) + +[node name="cube" type="MeshInstance" parent="."] + +layers = 1 +material_override = null +cast_shadow = 1 +extra_cull_margin = 0.0 +visible_in_all_rooms = false +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( 1 ) +skeleton = NodePath("..") +material/0 = null + +[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 ) +projection = 0 +fov = 60.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 + +[node name="anim" type="AnimationPlayer" parent="."] + +playback_process_mode = 1 +playback_default_blend_time = 0.0 +root_node = NodePath("..") +anims/spin = SubResource( 2 ) +playback/active = true +playback/speed = 1.0 +blend_times = [ ] +autoplay = "spin" + +[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_negative = false +light_specular = 0.5 +light_cull_mask = -1 +shadow_enabled = false +shadow_color = Color( 0, 0, 0, 1 ) +shadow_bias = 0.15 +shadow_contact = 0.0 +shadow_max_distance = 0.0 +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="."] + +margin_left = 24.0 +margin_top = 24.0 +margin_right = 120.0 +margin_bottom = 56.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 = "PAUSE!" +flat = false + +[node name="pause_popup" type="PopupPanel" parent="."] + +pause_mode = 2 +visible = false +self_modulate = Color( 1, 1, 1, 0.7 ) +margin_left = 185.0 +margin_top = 72.0 +margin_right = 638.0 +margin_bottom = 433.0 +rect_clip_content = false +mouse_filter = 0 +size_flags_horizontal = 2 +size_flags_vertical = 2 +popup_exclusive = false +_sections_unfolded = [ "Pause" ] + +[node name="text" type="Label" parent="pause_popup"] + +margin_left = 73.0 +margin_top = 49.0 +margin_right = 389.0 +margin_bottom = 154.0 +rect_clip_content = false +mouse_filter = 2 +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"] + +margin_left = 185.0 +margin_top = 288.0 +margin_right = 281.0 +margin_bottom = 320.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 = "UN-PAUSE!" +flat = false + +[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/old/misc/regex/icon.png b/misc/regex/icon.png similarity index 100% rename from old/misc/regex/icon.png rename to misc/regex/icon.png diff --git a/misc/regex/icon.png.import b/misc/regex/icon.png.import new file mode 100644 index 00000000..627820bd --- /dev/null +++ b/misc/regex/icon.png.import @@ -0,0 +1,23 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=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 +stream=false +size_limit=0 +detect_3d=true diff --git a/old/misc/regex/engine.cfg b/misc/regex/project.godot similarity index 62% rename from old/misc/regex/engine.cfg rename to misc/regex/project.godot index ef5483e0..e2ec8b24 100644 --- a/old/misc/regex/engine.cfg +++ b/misc/regex/project.godot @@ -1,5 +1,5 @@ [application] name="RegEx" -main_scene="res://regex.scn" +main_scene="res://regex.tscn" icon="res://icon.png" diff --git a/misc/regex/regex.gd b/misc/regex/regex.gd new file mode 100644 index 00000000..d51adefd --- /dev/null +++ b/misc/regex/regex.gd @@ -0,0 +1,22 @@ +extends VBoxContainer + +# Member variables +var regex = RegEx.new() + +func update_expression(text): + regex.compile(text) + update_text() + +func update_text(): + for child in $List.get_children(): + child.queue_free() + if regex.is_valid(): + var matches = regex.search($Text.get_text()) + for result in matches.get_group_array(): + var label = Label.new() + label.text = result + $List.add_child(label) + +func _ready(): + $Text.set_text("They asked me \"What's going on \\\"in the manor\\\"?\"") + update_expression($Expression.text) diff --git a/misc/regex/regex.tscn b/misc/regex/regex.tscn new file mode 100644 index 00000000..055ea0b6 --- /dev/null +++ b/misc/regex/regex.tscn @@ -0,0 +1,59 @@ +[gd_scene load_steps=2 format=2] + +[ext_resource path="res://regex.gd" type="Script" id=1] + +[node name="VBoxContainer" type="VBoxContainer"] + +anchor_right = 1 +anchor_bottom = 1 +rect_clip_content = false +mouse_filter = 1 +alignment = 0 +script = ExtResource( 1 ) +_sections_unfolded = [ "Size Flags" ] + +[node name="Expression" type="LineEdit" parent="."] + +margin_right = 1024.0 +margin_bottom = 24.0 +rect_clip_content = false +mouse_filter = 0 +text = "\"((?:\\\\.|[^\"])*)\"" +expand_to_len = false +focus_mode = 2 +placeholder_alpha = 0.6 +caret_blink = false +caret_blink_speed = 0.65 +_sections_unfolded = [ "Size Flags" ] + +[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_clip_content = false +mouse_filter = 0 +syntax_highlighting = false +show_line_numbers = false +highlight_all_occurrences = false +caret_block_mode = false +caret_blink = false +caret_blink_speed = 0.65 +_sections_unfolded = [ "Rect", "Size Flags" ] + +[node name="List" type="VBoxContainer" parent="."] + +margin_top = 332.0 +margin_right = 1024.0 +margin_bottom = 332.0 +rect_clip_content = false +mouse_filter = 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 new file mode 100644 index 00000000..07a50032 --- /dev/null +++ b/misc/scene_changer/project.godot @@ -0,0 +1,5 @@ +[application] + +main_scene = "res://scene_a.tscn" +name = "Scene Changer" + diff --git a/misc/scene_changer/scene_a.gd b/misc/scene_changer/scene_a.gd new file mode 100644 index 00000000..f3e4efeb --- /dev/null +++ b/misc/scene_changer/scene_a.gd @@ -0,0 +1,4 @@ +extends Panel + +func _on_goto_scene_pressed(): + get_tree().change_scene("res://scene_b.tscn") diff --git a/misc/scene_changer/scene_a.tscn b/misc/scene_changer/scene_a.tscn new file mode 100644 index 00000000..5b1b4c3b --- /dev/null +++ b/misc/scene_changer/scene_a.tscn @@ -0,0 +1,48 @@ +[gd_scene load_steps=2 format=2] + +[ext_resource path="res://scene_a.gd" type="Script" id=1] + +[node name="scene_a" type="Panel"] + +anchor_right = 1 +anchor_bottom = 1 +rect_clip_content = false +mouse_filter = 0 +size_flags_horizontal = 2 +size_flags_vertical = 2 +script = ExtResource( 1 ) + +[node name="label" type="Label" parent="."] + +margin_left = 64.0 +margin_top = 48.0 +margin_right = 104.0 +margin_bottom = 62.0 +rect_clip_content = false +mouse_filter = 2 +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="."] + +margin_left = 64.0 +margin_top = 128.0 +margin_right = 192.0 +margin_bottom = 160.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/scene_changer/scene_b.gd b/misc/scene_changer/scene_b.gd new file mode 100644 index 00000000..80c3156d --- /dev/null +++ b/misc/scene_changer/scene_b.gd @@ -0,0 +1,4 @@ +extends Panel + +func _on_goto_scene_pressed(): + get_tree().change_scene("res://scene_a.tscn") diff --git a/misc/scene_changer/scene_b.tscn b/misc/scene_changer/scene_b.tscn new file mode 100644 index 00000000..be22c214 --- /dev/null +++ b/misc/scene_changer/scene_b.tscn @@ -0,0 +1,48 @@ +[gd_scene load_steps=2 format=2] + +[ext_resource path="res://scene_b.gd" type="Script" id=1] + +[node name="scene_b" type="Panel"] + +anchor_right = 1 +anchor_bottom = 1 +rect_clip_content = false +mouse_filter = 0 +size_flags_horizontal = 2 +size_flags_vertical = 2 +script = ExtResource( 1 ) + +[node name="label" type="Label" parent="."] + +margin_left = 64.0 +margin_top = 48.0 +margin_right = 164.0 +margin_bottom = 62.0 +rect_clip_content = false +mouse_filter = 2 +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="."] + +margin_left = 64.0 +margin_top = 128.0 +margin_right = 192.0 +margin_bottom = 160.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/old/misc/autoload/engine.cfg b/old/misc/autoload/engine.cfg deleted file mode 100644 index c6ad0230..00000000 --- a/old/misc/autoload/engine.cfg +++ /dev/null @@ -1,8 +0,0 @@ -[application] - -name="Autoload (Singletons)" -main_scene="res://scene_a.scn" - -[autoload] - -global="res://global.gd" diff --git a/old/misc/autoload/scene_a.gd b/old/misc/autoload/scene_a.gd deleted file mode 100644 index 03da86d9..00000000 --- a/old/misc/autoload/scene_a.gd +++ /dev/null @@ -1,5 +0,0 @@ -extends Panel - - -func _on_goto_scene_pressed(): - get_node("/root/global").goto_scene("res://scene_b.scn") diff --git a/old/misc/autoload/scene_a.scn b/old/misc/autoload/scene_a.scn deleted file m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c7 zGB85Z7Tb#VvYaZX#d4fPzeF1E@Vz);gRa7Lq3`2zZa$WxyUJPF3XEu>vM6PX$Kj-UDXyKR_2Ro$ZUh>B&_HRqaqKmWN{16uPxLH=rl<; z*}1zIYPPP2)VV7D1?<7+4(($lJ!Obx(N)eih0HP5{}t!*w=sGJmf5+gulqJR6FQ}8 z^Cl#m+`JNZV38eg!`B3`9&h(*V8|asKdC3xBCI@M$9#QHbMtKbd-UQ8^l}~cew96j z2hbh8jkP^jZ7QF&N&W#g^<2bR9N3*wFdQjCHzy!OYYzu{?ebFIO>awK@ ztsYKc&-{ABYsA-Zq(927`SxS~e)~evW-R~1&3$ilOp+o0WHDn-&aQWZ#KHLx8nuZO=vChVIudf!gH{wU}^zuXGSb2^;Z5U?|$e;je67E{|q_dgZ>q(qsJoR N=AqaSKV*Nb{|5~CS-k)N diff --git a/old/misc/instancing/container.scn b/old/misc/instancing/container.scn deleted file mode 100644 index 0f65daa2ca986b6f8d0d722e6e05a373054e84a2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3137 zcmX|Ed3+Pq7Cw_nGHuh+Lia+O+l>~1wsfHi*xt!Z3sta?76dA0l62aRq%$!yE#0I+ zRz+Egvbj)rBKlBVL4lt-WmN=4c)|#338o-_WANu zuPkT~ffCF<#q0JVY#I+Quwe)cI^Hx6sI4PIq!4Bq5%H!X*co~h!*%kYOQ3>A4}~o6 zHR!BG)vz{bC{Srtl6hBZL9hK{g6w{q`46jpTD5zsC9c zC-DENkKhkHH-#^#OyDCdgWUEHBYEb<)MS2w^cQF3K7f7puIe5x?eI-5W!Dbw?LFZ< zzVamQx5e`XN2?sSM%j2{Ol|bx6%7Bx2AY5In<)OdtHA49^*4;%TDFYYs8;fcYreqx z-+e=jF;f|cu(2DTdV|$3>39{uXi=m#bOS+%A_;K;Ng-i=F|Cs<}1E>$OEnvcE;k_eXD9LJPQMwLu9q!%(CcrUaAJ*oXq$yxuq%XM~p#h$_PgMpzjXhGgMC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8c`LokQ1HGR?CiM8tl8;SB7xQ=Sfqz04hOpH)C8 z-0UPZd9WA2grbQvhM)uhOdDk0R1^a=qH!i9le78_&cSoYnVX00z@Xtc5yD7oCaJOv zIgg(cZ6gB|L1ajid>FzZ1UZPl&0}ukP=Ylu>^6_Rjd29Mq&|l16K-Q7K^2mE8N3sB zLJAqR6NZzvP8dNjw8&E8_zYwwS%}8{WIQ{v;Vo=F-eO7*y}{9X5#*v+$RyoG_!r0` z-3Li^WeASEjX8+Xi*!ImRQD(piO=AVv4X$FlksSS`55j%qw#(iO)Tv&1~DuHV|y8L z7|er%gWY*3#-Qui(MEY4mKg?FMn z3vnFehN0nh=zC@U`{bqjt9Z6{_R@h3XXMibNk_}O_pEEEI-@Eo+SJZAn?@U=dz1Pq#YWwr>~fsy|*|l5_OZHs>fWno@Y+gbh%v!|UEz*LDuS$R52oOTD@(!=%S|f7mZ{99(&1u{|ky_wQ%+ zS5v{BtBXGEd5G~`h&{1t?Xo3{O|T;O%fn0TRYRTgsPLwbc2w$#Z-#fKg)hMC&d)7g zc;eM#eLHT>*lB+;P7H(Rc6VN!v2&9AUWwAY_qCrFY@t9ajON=B zb?C#d>`VJ|;_iue@4PFp{--uQck{A^mpe9Hso|5%5Exs z;$AB{QNOpn$5yaw=4%gb*>mrN(x^wyTVfmEJvVsW&OTl1T`bKN#i+ISB(J`9CVxW$ zdu!n_eq2vfto!6wkJyX$Yn1i$tPu-I)NY)RoatOJ31He|lRp^(+GC$JjJCgAG>9G4 z_NTf#y5tSj8o)2wthLV9`^%u<{jimT%OiEy(2P#!-cEL1VtMhR|Md+34c f-KX9WHap|dXsD{VkKg4G9wou)tZ{Nq^5^0I2yP%Q diff --git a/old/misc/instancing/engine.cfg b/old/misc/instancing/engine.cfg deleted file mode 100644 index 76b0c977..00000000 --- a/old/misc/instancing/engine.cfg +++ /dev/null @@ -1,9 +0,0 @@ -[application] - -name="Scene Instancing Demo" -main_scene="res://container.scn" -icon="res://icon.png" - -[physics_2d] - -default_gravity=300 diff --git a/old/misc/joysticks/engine.cfg b/old/misc/joysticks/engine.cfg deleted file mode 100644 index 28d14382..00000000 --- a/old/misc/joysticks/engine.cfg +++ /dev/null @@ -1,10 +0,0 @@ -[application] - -name="Joysticks" -main_scene="res://joysticks.tscn" -icon="res://icon.png" - -[display] - -height=450 -width=550 diff --git a/old/misc/joysticks/joysticks.tscn b/old/misc/joysticks/joysticks.tscn deleted file mode 100644 index 76a00782..00000000 --- a/old/misc/joysticks/joysticks.tscn +++ /dev/null @@ -1,854 +0,0 @@ -[gd_scene load_steps=3 format=1] - -[ext_resource path="res://joysticks.gd" type="Script" id=1] -[ext_resource path="res://jsdiagram.tscn" type="PackedScene" id=2] - -[node name="joysticks" type="Node2D"] - -script/script = ExtResource( 1 ) -__meta__ = { "__editor_plugin_screen__":"Script" } - -[node name="label_buttons" type="Label" parent="."] - -focus/ignore_mouse = true -focus/stop_mouse = true -size_flags/horizontal = 2 -margin/left = 10.0 -margin/top = 235.0 -margin/right = 65.0 -margin/bottom = 248.0 -text = "Buttons:" -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 - -[node name="btn0" type="Label" parent="."] - -focus/ignore_mouse = true -focus/stop_mouse = true -size_flags/horizontal = 2 -margin/left = 20.0 -margin/top = 255.0 -margin/right = 45.0 -margin/bottom = 268.0 -text = "0" -align = 1 -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 - -[node name="btn1" type="Label" parent="."] - -focus/ignore_mouse = true -focus/stop_mouse = true -size_flags/horizontal = 2 -margin/left = 45.0 -margin/top = 255.0 -margin/right = 70.0 -margin/bottom = 268.0 -text = "1" -align = 1 -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 - -[node name="btn2" type="Label" parent="."] - -focus/ignore_mouse = true -focus/stop_mouse = true -size_flags/horizontal = 2 -margin/left = 70.0 -margin/top = 255.0 -margin/right = 95.0 -margin/bottom = 268.0 -text = "2" -align = 1 -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 - -[node name="btn3" type="Label" parent="."] - -focus/ignore_mouse = true -focus/stop_mouse = true -size_flags/horizontal = 2 -margin/left = 95.0 -margin/top = 255.0 -margin/right = 120.0 -margin/bottom = 268.0 -text = "3" -align = 1 -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 - -[node name="btn4" type="Label" parent="."] - -focus/ignore_mouse = true -focus/stop_mouse = true -size_flags/horizontal = 2 -margin/left = 120.0 -margin/top = 255.0 -margin/right = 145.0 -margin/bottom = 268.0 -text = "4" -align = 1 -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 - -[node name="btn5" type="Label" parent="."] - -focus/ignore_mouse = true -focus/stop_mouse = true -size_flags/horizontal = 2 -margin/left = 145.0 -margin/top = 255.0 -margin/right = 170.0 -margin/bottom = 268.0 -text = "5" -align = 1 -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 - -[node name="btn6" type="Label" parent="."] - -focus/ignore_mouse = true -focus/stop_mouse = true -size_flags/horizontal = 2 -margin/left = 170.0 -margin/top = 255.0 -margin/right = 195.0 -margin/bottom = 268.0 -text = "6" -align = 1 -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 - -[node name="btn7" type="Label" parent="."] - -focus/ignore_mouse = true -focus/stop_mouse = true -size_flags/horizontal = 2 -margin/left = 195.0 -margin/top = 255.0 -margin/right = 220.0 -margin/bottom = 268.0 -text = "7" -align = 1 -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 - -[node name="btn8" type="Label" parent="."] - -focus/ignore_mouse = true -focus/stop_mouse = true -size_flags/horizontal = 2 -margin/left = 220.0 -margin/top = 255.0 -margin/right = 245.0 -margin/bottom = 268.0 -text = "8" -align = 1 -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 - -[node name="btn9" type="Label" parent="."] - -focus/ignore_mouse = true -focus/stop_mouse = true -size_flags/horizontal = 2 -margin/left = 20.0 -margin/top = 275.0 -margin/right = 45.0 -margin/bottom = 288.0 -text = "9" -align = 1 -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 - -[node name="btn10" type="Label" parent="."] - -focus/ignore_mouse = true -focus/stop_mouse = true -size_flags/horizontal = 2 -margin/left = 45.0 -margin/top = 275.0 -margin/right = 70.0 -margin/bottom = 288.0 -text = "10" -align = 1 -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 - -[node name="btn11" type="Label" parent="."] - -focus/ignore_mouse = true -focus/stop_mouse = true -size_flags/horizontal = 2 -margin/left = 70.0 -margin/top = 275.0 -margin/right = 95.0 -margin/bottom = 288.0 -text = "11" -align = 1 -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 - -[node name="btn12" type="Label" parent="."] - -focus/ignore_mouse = true -focus/stop_mouse = true -size_flags/horizontal = 2 -margin/left = 95.0 -margin/top = 275.0 -margin/right = 120.0 -margin/bottom = 288.0 -text = "12" -align = 1 -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 - -[node name="btn13" type="Label" parent="."] - -focus/ignore_mouse = true -focus/stop_mouse = true -size_flags/horizontal = 2 -margin/left = 120.0 -margin/top = 275.0 -margin/right = 145.0 -margin/bottom = 288.0 -text = "13" -align = 1 -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 - -[node name="btn14" type="Label" parent="."] - -focus/ignore_mouse = true -focus/stop_mouse = true -size_flags/horizontal = 2 -margin/left = 145.0 -margin/top = 275.0 -margin/right = 170.0 -margin/bottom = 288.0 -text = "14" -align = 1 -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 - -[node name="btn15" type="Label" parent="."] - -focus/ignore_mouse = true -focus/stop_mouse = true -size_flags/horizontal = 2 -margin/left = 170.0 -margin/top = 275.0 -margin/right = 195.0 -margin/bottom = 288.0 -text = "15" -align = 1 -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 - -[node name="axis_prog0" type="ProgressBar" parent="."] - -focus/ignore_mouse = false -focus/stop_mouse = true -size_flags/horizontal = 2 -margin/left = 50.0 -margin/top = 60.0 -margin/right = 250.0 -margin/bottom = 76.0 -range/min = -100.0 -range/max = 100.0 -range/step = 0.0001 -range/page = 0.0 -range/value = 0.0 -range/exp_edit = false -range/rounded = false -percent/visible = false - -[node name="axis_prog1" type="ProgressBar" parent="."] - -focus/ignore_mouse = false -focus/stop_mouse = true -size_flags/horizontal = 2 -margin/left = 50.0 -margin/top = 80.0 -margin/right = 250.0 -margin/bottom = 96.0 -range/min = -100.0 -range/max = 100.0 -range/step = 0.0001 -range/page = 0.0 -range/value = 0.0 -range/exp_edit = false -range/rounded = false -percent/visible = false - -[node name="axis_prog2" type="ProgressBar" parent="."] - -focus/ignore_mouse = false -focus/stop_mouse = true -size_flags/horizontal = 2 -margin/left = 50.0 -margin/top = 100.0 -margin/right = 250.0 -margin/bottom = 116.0 -range/min = -100.0 -range/max = 100.0 -range/step = 0.0001 -range/page = 0.0 -range/value = 0.0 -range/exp_edit = false -range/rounded = false -percent/visible = false - -[node name="axis_prog3" type="ProgressBar" parent="."] - -focus/ignore_mouse = false -focus/stop_mouse = true -size_flags/horizontal = 2 -margin/left = 50.0 -margin/top = 120.0 -margin/right = 250.0 -margin/bottom = 136.0 -range/min = -100.0 -range/max = 100.0 -range/step = 0.0001 -range/page = 0.0 -range/value = 0.0 -range/exp_edit = false -range/rounded = false -percent/visible = false - -[node name="axis_prog4" type="ProgressBar" parent="."] - -focus/ignore_mouse = false -focus/stop_mouse = true -size_flags/horizontal = 2 -margin/left = 50.0 -margin/top = 140.0 -margin/right = 250.0 -margin/bottom = 156.0 -range/min = -100.0 -range/max = 100.0 -range/step = 0.0001 -range/page = 0.0 -range/value = 0.0 -range/exp_edit = false -range/rounded = false -percent/visible = false - -[node name="axis_prog5" type="ProgressBar" parent="."] - -focus/ignore_mouse = false -focus/stop_mouse = true -size_flags/horizontal = 2 -margin/left = 50.0 -margin/top = 160.0 -margin/right = 250.0 -margin/bottom = 176.0 -range/min = -100.0 -range/max = 100.0 -range/step = 0.0001 -range/page = 0.0 -range/value = 0.0 -range/exp_edit = false -range/rounded = false -percent/visible = false - -[node name="axis_prog6" type="ProgressBar" parent="."] - -focus/ignore_mouse = false -focus/stop_mouse = true -size_flags/horizontal = 2 -margin/left = 50.0 -margin/top = 180.0 -margin/right = 250.0 -margin/bottom = 196.0 -range/min = -100.0 -range/max = 100.0 -range/step = 0.0001 -range/page = 0.0 -range/value = 0.0 -range/exp_edit = false -range/rounded = false -percent/visible = false - -[node name="axis_prog7" type="ProgressBar" parent="."] - -focus/ignore_mouse = false -focus/stop_mouse = true -size_flags/horizontal = 2 -margin/left = 50.0 -margin/top = 200.0 -margin/right = 250.0 -margin/bottom = 216.0 -range/min = -100.0 -range/max = 100.0 -range/step = 0.0001 -range/page = 0.0 -range/value = 0.0 -range/exp_edit = false -range/rounded = false -percent/visible = false - -[node name="axis_val0" type="Label" parent="."] - -focus/ignore_mouse = true -focus/stop_mouse = true -size_flags/horizontal = 2 -margin/left = 50.0 -margin/top = 60.0 -margin/right = 250.0 -margin/bottom = 75.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="."] - -focus/ignore_mouse = true -focus/stop_mouse = true -size_flags/horizontal = 2 -margin/left = 50.0 -margin/top = 80.0 -margin/right = 250.0 -margin/bottom = 95.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="."] - -focus/ignore_mouse = true -focus/stop_mouse = true -size_flags/horizontal = 2 -margin/left = 50.0 -margin/top = 100.0 -margin/right = 250.0 -margin/bottom = 115.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="."] - -focus/ignore_mouse = true -focus/stop_mouse = true -size_flags/horizontal = 2 -margin/left = 50.0 -margin/top = 120.0 -margin/right = 250.0 -margin/bottom = 135.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="."] - -focus/ignore_mouse = true -focus/stop_mouse = true -size_flags/horizontal = 2 -margin/left = 50.0 -margin/top = 140.0 -margin/right = 250.0 -margin/bottom = 155.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="."] - -focus/ignore_mouse = true -focus/stop_mouse = true -size_flags/horizontal = 2 -margin/left = 50.0 -margin/top = 160.0 -margin/right = 250.0 -margin/bottom = 175.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="."] - -focus/ignore_mouse = true -focus/stop_mouse = true -size_flags/horizontal = 2 -margin/left = 50.0 -margin/top = 180.0 -margin/right = 250.0 -margin/bottom = 195.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="."] - -focus/ignore_mouse = true -focus/stop_mouse = true -size_flags/horizontal = 2 -margin/left = 50.0 -margin/top = 200.0 -margin/right = 250.0 -margin/bottom = 215.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="."] - -focus/ignore_mouse = true -focus/stop_mouse = true -size_flags/horizontal = 2 -margin/left = 10.0 -margin/top = 60.0 -margin/right = 51.0 -margin/bottom = 75.0 -text = "Axis 0" -valign = 1 -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 - -[node name="label_axis1" type="Label" parent="."] - -focus/ignore_mouse = true -focus/stop_mouse = true -size_flags/horizontal = 2 -margin/left = 10.0 -margin/top = 80.0 -margin/right = 51.0 -margin/bottom = 95.0 -text = "Axis 1" -valign = 1 -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 - -[node name="label_axis2" type="Label" parent="."] - -focus/ignore_mouse = true -focus/stop_mouse = true -size_flags/horizontal = 2 -margin/left = 10.0 -margin/top = 100.0 -margin/right = 51.0 -margin/bottom = 115.0 -text = "Axis 2" -valign = 1 -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 - -[node name="label_axis3" type="Label" parent="."] - -focus/ignore_mouse = true -focus/stop_mouse = true -size_flags/horizontal = 2 -margin/left = 10.0 -margin/top = 120.0 -margin/right = 51.0 -margin/bottom = 135.0 -text = "Axis 3" -valign = 1 -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 - -[node name="label_axis4" type="Label" parent="."] - -focus/ignore_mouse = true -focus/stop_mouse = true -size_flags/horizontal = 2 -margin/left = 10.0 -margin/top = 140.0 -margin/right = 51.0 -margin/bottom = 155.0 -text = "Axis 4" -valign = 1 -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 - -[node name="label_axis5" type="Label" parent="."] - -focus/ignore_mouse = true -focus/stop_mouse = true -size_flags/horizontal = 2 -margin/left = 10.0 -margin/top = 160.0 -margin/right = 51.0 -margin/bottom = 175.0 -text = "Axis 5" -valign = 1 -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 - -[node name="label_axis6" type="Label" parent="."] - -focus/ignore_mouse = true -focus/stop_mouse = true -size_flags/horizontal = 2 -margin/left = 10.0 -margin/top = 180.0 -margin/right = 51.0 -margin/bottom = 195.0 -text = "Axis 6" -valign = 1 -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 - -[node name="label_axis7" type="Label" parent="."] - -focus/ignore_mouse = true -focus/stop_mouse = true -size_flags/horizontal = 2 -margin/left = 10.0 -margin/top = 200.0 -margin/right = 51.0 -margin/bottom = 215.0 -text = "Axis 7" -valign = 2 -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 - -[node name="label_device" type="Label" parent="."] - -focus/ignore_mouse = true -focus/stop_mouse = true -size_flags/horizontal = 2 -margin/left = 10.0 -margin/top = 10.0 -margin/right = 60.0 -margin/bottom = 30.0 -text = "Device" -valign = 1 -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 - -[node name="joy_num" type="SpinBox" parent="."] - -focus/ignore_mouse = false -focus/stop_mouse = true -size_flags/horizontal = 2 -size_flags/vertical = 2 -margin/left = 65.0 -margin/top = 10.0 -margin/right = 127.0 -margin/bottom = 33.0 -range/min = 0.0 -range/max = 16.0 -range/step = 1.0 -range/page = 0.0 -range/value = 0.0 -range/exp_edit = false -range/rounded = false -editable = true -prefix = "" -suffix = "" - -[node name="joy_name" type="Label" parent="."] - -focus/ignore_mouse = true -focus/stop_mouse = true -size_flags/horizontal = 2 -margin/left = 10.0 -margin/top = 35.0 -margin/right = 250.0 -margin/bottom = 50.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="Vibration_weak_value" type="SpinBox" parent="."] - -focus/ignore_mouse = false -focus/stop_mouse = true -size_flags/horizontal = 2 -size_flags/vertical = 2 -margin/left = 163.0 -margin/top = 324.0 -margin/right = 237.0 -margin/bottom = 348.0 -range/min = 0.0 -range/max = 1.0 -range/step = 0.05 -range/page = 0.0 -range/value = 1.0 -range/exp_edit = false -range/rounded = false -editable = true -prefix = "" -suffix = "" - -[node name="Vibration_strong_value" type="SpinBox" parent="."] - -focus/ignore_mouse = false -focus/stop_mouse = true -size_flags/horizontal = 2 -size_flags/vertical = 2 -margin/left = 163.0 -margin/top = 362.0 -margin/right = 237.0 -margin/bottom = 386.0 -range/min = 0.0 -range/max = 1.0 -range/step = 0.05 -range/page = 0.0 -range/value = 1.0 -range/exp_edit = false -range/rounded = false -editable = true -prefix = "" -suffix = "" - -[node name="Vibration_duration_value" type="SpinBox" parent="."] - -focus/ignore_mouse = false -focus/stop_mouse = true -size_flags/horizontal = 2 -size_flags/vertical = 2 -margin/left = 163.0 -margin/top = 403.0 -margin/right = 237.0 -margin/bottom = 427.0 -range/min = 0.0 -range/max = 10.0 -range/step = 0.1 -range/page = 0.0 -range/value = 1.0 -range/exp_edit = false -range/rounded = false -editable = true -prefix = "" -suffix = "" - -[node name="start_vibration" type="Button" parent="."] - -focus/ignore_mouse = false -focus/stop_mouse = true -size_flags/horizontal = 2 -size_flags/vertical = 2 -margin/left = 288.0 -margin/top = 352.0 -margin/right = 389.0 -margin/bottom = 372.0 -toggle_mode = false -click_on_press = true -enabled_focus_mode = 0 -shortcut = null -text = "Start Vibration" -flat = false - -[node name="stop_vibration" type="Button" parent="."] - -focus/ignore_mouse = false -focus/stop_mouse = true -size_flags/horizontal = 2 -size_flags/vertical = 2 -margin/left = 406.0 -margin/top = 352.0 -margin/right = 507.0 -margin/bottom = 372.0 -toggle_mode = false -click_on_press = true -enabled_focus_mode = 2 -shortcut = null -text = "Stop Vibration" -flat = false - -[node name="Weak_label" type="Label" parent="."] - -focus/ignore_mouse = true -focus/stop_mouse = true -size_flags/horizontal = 2 -margin/left = 8.0 -margin/top = 329.0 -margin/right = 150.0 -margin/bottom = 343.0 -text = "Vibration Weak Motor:" -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 - -[node name="Strong_label" type="Label" parent="."] - -focus/ignore_mouse = true -focus/stop_mouse = true -size_flags/horizontal = 2 -margin/left = 8.0 -margin/top = 367.0 -margin/right = 150.0 -margin/bottom = 381.0 -text = "Vibration Strong Motor:" -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 - -[node name="Duration_label" type="Label" parent="."] - -focus/ignore_mouse = true -focus/stop_mouse = true -size_flags/horizontal = 2 -margin/left = 8.0 -margin/top = 408.0 -margin/right = 155.0 -margin/bottom = 439.0 -text = "Vibration Duration:" -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 - -[node name="diagram" parent="." instance=ExtResource( 2 )] - -transform/pos = Vector2( 403.304, 161.318 ) - -[connection signal="pressed" from="start_vibration" to="." method="_on_start_vibration_pressed"] - -[connection signal="pressed" from="stop_vibration" to="." method="_on_stop_vibration_pressed"] - - diff --git a/old/misc/pause/engine.cfg b/old/misc/pause/engine.cfg deleted file mode 100644 index a5cb20cc..00000000 --- a/old/misc/pause/engine.cfg +++ /dev/null @@ -1,5 +0,0 @@ -[application] - -name="Pause" -main_scene="res://spinpause.scn" -icon="res://icon.png" diff --git a/old/misc/pause/spinpause.scn b/old/misc/pause/spinpause.scn deleted file mode 100644 index 2cbe85ec9a2d1ef99a8339b9f165d745436da29d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5399 zcmY*dc~}!y*T0iV2m%7K2)NA+AfU1+6tOCBld!nr0=QwFnIw}CNiuOJ0RflbuGnJL zzU~^Kb>Au#R21UYx|G%~Zq>d{D{iez-K|>vF7|o<_;{Xsa_`K&=bSm`p5OUBjLp|- zLHl1I0Ehyhz#D+AegF^vxCkI~c@cnsB=Cb|$I-05gfrypIU5J=hQUB7832Dc2#}B@ z5)+vz1W-Uyp?B&y5DdLLIRw@w8hOE*B=8Q_Vdia2lE1)-yi?F~NjBEX0VRx6SU8)> zQOpb`Ej({$yh+i)*_lL`-9cX>CiP8nl-oH;(TT9LFckzsB!MWo+2-H`$t#U4;mSoO z%}dk^X1gP)-PaB2A^#fP$;RknXRtZz#GN_IV9Clh(wbZZxo^c0IIz})h?8e zmZC7S_1kaL(E!vJQSwsO;^den&>1G6UZ_Mp2U(C31p{B$6?B0lQlk$MN$PoKZ^03|7)+tDP4dG;>_T z{T6V;i?(tOmZsU+AU`r$W@asnQMVOIN()=g2_onO3uGpahY7wyc~YraH0vxJ=qiyR zs?!7~zziRnFXaTmY~VnsME3C0v!a6*i&+C-1|lRfTp@6J&RhzQFkOKtDN^HCg^fW5iU1y zc1N*l9AM!+_3sjxwV9C9W*g1I61l+hR&3;ARH%&BvC+eow8d;Hc7SdY`9zY1d(jSV zI&C(v*X0GA=+I_C^>m<*286(#I97EEBr+;qDYP4RZR0nqsY1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C{A)T$xw(64*N`?Zo^we30$uMKH}mvrQa6{uD|Holq+EdTkV6m5$E3# z#rbZP%y%yp=FkSghg;Lv+?Uud^tyHg`*8;M;g6lxap5J5rSf>!+U0IF0p5pOht^gv zW24=ftPaZfw!5|zn+LCeyy$gaQnl%``+ww0vzpamDPR>Ur7=xbix8s`_$wv80~^*4 zHU^^D;b|NmN{!GtUUWGxuEQL8`}p{qv?2Dwa7x&;W%}#0%LAvDg;E>UyEgBd#%15$ z{KoZ`d!O5JEVgCsugE*k(g&t@{xf=Ye*NWp#veR=A^4v=xnh8g!sC4G!mK}BxOVgQ zlmGha%7?~>x9q)9K2g1Y_iN`qy7I(`as9j4*RS37$^GS5$4^xIW`4g$Nb|X;0z=>4 zc^rP|J#j;I>8>zb{pCwvbsp(|{J(ooR7cX=|Ni1^ERIoF=YSjx+gG{gp9@`VKKYAR Y=_`#ee8>9K%SrZg7#STAN8EqsfA{+kJpcdz diff --git a/old/misc/scene_changer/scene_b.gd b/old/misc/scene_changer/scene_b.gd deleted file mode 100644 index 9ed13cf2..00000000 --- a/old/misc/scene_changer/scene_b.gd +++ /dev/null @@ -1,16 +0,0 @@ - -extends Panel - -# Member variables here, example: -# var a=2 -# var b="textvar" - - -func _ready(): - # Initalization here - pass - - -func _on_goto_scene_pressed(): - get_tree().change_scene("res://scene_a.scn") - pass # Replace with function body diff --git a/old/misc/scene_changer/scene_b.scn b/old/misc/scene_changer/scene_b.scn deleted file mode 100644 index 4cdb03e90e13215689f77574a7c761b3fe9d8879..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1639 zcmW+%YitzP6+Sa}-|NSMy%=x&xVtvSylgPERw0EmJBy8JA;g9>ErGeSyLWd--ksUb z%sR%QVM*iyl}Oc)M77mMo3x=QN+P9hm8ea_#A4&eS?t>1! z(sz%}mF{;w-S6Cc$0uYN?u-b)Py@g{J^%rrDu7t^2_R4c4U{w{qZVmQ+yYCq5y9~<;&mhtqa8R6Ug`%QC3r@(AV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