Browse Source

Port some misc demos to 3.0

autoload, instancing, joypads, pause, regex, scene_changer
Rémi Verschelde 8 years ago
parent
commit
634d45a280
59 changed files with 1836 additions and 1080 deletions
  1. 6 9
      misc/autoload/global.gd
  2. 13 0
      misc/autoload/project.godot
  3. 4 0
      misc/autoload/scene_a.gd
  4. 48 0
      misc/autoload/scene_a.tscn
  5. 4 0
      misc/autoload/scene_b.gd
  6. 48 0
      misc/autoload/scene_b.tscn
  7. 39 0
      misc/instancing/ball.tscn
  8. 0 0
      misc/instancing/bowling_ball.png
  9. 23 0
      misc/instancing/bowling_ball.png.import
  10. 0 0
      misc/instancing/container.png
  11. 23 0
      misc/instancing/container.png.import
  12. 69 0
      misc/instancing/container.tscn
  13. 0 0
      misc/instancing/icon.png
  14. 23 0
      misc/instancing/icon.png.import
  15. 10 0
      misc/instancing/project.godot
  16. 0 0
      misc/joypads/diagram.png
  17. 23 0
      misc/joypads/diagram.png.import
  18. 0 0
      misc/joypads/icon.png
  19. 23 0
      misc/joypads/icon.png.import
  20. 0 0
      misc/joypads/indicators.png
  21. 23 0
      misc/joypads/indicators.png.import
  22. 19 20
      misc/joypads/joypads.gd
  23. 931 0
      misc/joypads/joypads.tscn
  24. 88 87
      misc/joypads/jsdiagram.tscn
  25. 11 0
      misc/joypads/project.godot
  26. 0 0
      misc/pause/icon.png
  27. 23 0
      misc/pause/icon.png.import
  28. 6 0
      misc/pause/project.godot
  29. 0 3
      misc/pause/spinpause.gd
  30. 165 0
      misc/pause/spinpause.tscn
  31. 0 0
      misc/regex/icon.png
  32. 23 0
      misc/regex/icon.png.import
  33. 1 1
      misc/regex/project.godot
  34. 22 0
      misc/regex/regex.gd
  35. 59 0
      misc/regex/regex.tscn
  36. 5 0
      misc/scene_changer/project.godot
  37. 4 0
      misc/scene_changer/scene_a.gd
  38. 48 0
      misc/scene_changer/scene_a.tscn
  39. 4 0
      misc/scene_changer/scene_b.gd
  40. 48 0
      misc/scene_changer/scene_b.tscn
  41. 0 8
      old/misc/autoload/engine.cfg
  42. 0 5
      old/misc/autoload/scene_a.gd
  43. BIN
      old/misc/autoload/scene_a.scn
  44. 0 5
      old/misc/autoload/scene_b.gd
  45. BIN
      old/misc/autoload/scene_b.scn
  46. BIN
      old/misc/instancing/ball.scn
  47. BIN
      old/misc/instancing/container.scn
  48. 0 9
      old/misc/instancing/engine.cfg
  49. 0 10
      old/misc/joysticks/engine.cfg
  50. 0 854
      old/misc/joysticks/joysticks.tscn
  51. 0 5
      old/misc/pause/engine.cfg
  52. BIN
      old/misc/pause/spinpause.scn
  53. 0 28
      old/misc/regex/regex.gd
  54. BIN
      old/misc/regex/regex.scn
  55. 0 4
      old/misc/scene_changer/engine.cfg
  56. 0 16
      old/misc/scene_changer/scene_a.gd
  57. BIN
      old/misc/scene_changer/scene_a.scn
  58. 0 16
      old/misc/scene_changer/scene_b.gd
  59. BIN
      old/misc/scene_changer/scene_b.scn

+ 6 - 9
old/misc/autoload/global.gd → 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)

+ 13 - 0
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

+ 4 - 0
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")

+ 48 - 0
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"]
+
+

+ 4 - 0
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")

+ 48 - 0
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"]
+
+

+ 39 - 0
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 )
+
+

+ 0 - 0
old/misc/instancing/bowling_ball.png → misc/instancing/bowling_ball.png


+ 23 - 0
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

+ 0 - 0
old/misc/instancing/container.png → misc/instancing/container.png


+ 23 - 0
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

+ 69 - 0
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 )
+
+

+ 0 - 0
old/misc/instancing/icon.png → misc/instancing/icon.png


+ 23 - 0
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

+ 10 - 0
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
+

+ 0 - 0
old/misc/joysticks/diagram.png → misc/joypads/diagram.png


+ 23 - 0
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

+ 0 - 0
old/misc/joysticks/icon.png → misc/joypads/icon.png


+ 23 - 0
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

+ 0 - 0
old/misc/joysticks/indicators.png → misc/joypads/indicators.png


+ 23 - 0
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

+ 19 - 20
old/misc/joysticks/joysticks.gd → misc/joypads/joypads.gd

@@ -1,9 +1,8 @@
-
 extends Node2D
 
-# Joysticks demo, written by Dana Olson <[email protected]>
+# Joypads demo, written by Dana Olson <[email protected]>
 #
-# 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)
 

+ 931 - 0
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"]
+
+

+ 88 - 87
old/misc/joysticks/jsdiagram.tscn → 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_enabled = true
 region_rect = Rect2( 50, 0, 54, 14 )
 
-[node name="3-" type="Sprite" parent="axes"]
+[node name="2-" type="Sprite" parent="axes"]
 
-transform/pos = Vector2( 76.6557, 140.986 )
-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_rect = Rect2( 50, 0, 54, 14 )
+region_enabled = true
+region_rect = Rect2( 50, 0, 14, 54 )
 
-[node name="3+" type="Sprite" parent="axes"]
+[node name="2+" type="Sprite" parent="axes"]
 
-transform/pos = Vector2( 76.0009, 195.339 )
-transform/scale = Vector2( 0.9, 0.9 )
+position = Vector2( 102.899, 167.857 )
+scale = Vector2( 0.9, 0.9 )
 texture = ExtResource( 2 )
-flip_v = true
-region = true
-region_rect = Rect2( 50, 0, 54, 14 )
+flip_h = true
+region_enabled = true
+region_rect = Rect2( 50, 0, 14, 54 )
 
-[node name="2-" type="Sprite" parent="axes"]
+[node name="3-" type="Sprite" parent="axes"]
 
-transform/pos = Vector2( 48.8152, 167.145 )
-transform/scale = Vector2( 0.9, 0.9 )
+position = Vector2( 76.6557, 140.986 )
+scale = Vector2( 0.9, 0.9 )
 texture = ExtResource( 2 )
-region = true
-region_rect = Rect2( 50, 0, 14, 54 )
+region_enabled = true
+region_rect = Rect2( 50, 0, 54, 14 )
 
-[node name="2+" type="Sprite" parent="axes"]
+[node name="3+" type="Sprite" parent="axes"]
 
-transform/pos = Vector2( 102.899, 167.857 )
-transform/scale = Vector2( 0.9, 0.9 )
+position = Vector2( 76.0009, 195.339 )
+scale = Vector2( 0.9, 0.9 )
 texture = ExtResource( 2 )
-flip_h = true
-region = true
-region_rect = Rect2( 50, 0, 14, 54 )
+flip_v = true
+region_enabled = true
+region_rect = Rect2( 50, 0, 54, 14 )
 
 

+ 11 - 0
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
+

+ 0 - 0
old/misc/pause/icon.png → misc/pause/icon.png


+ 23 - 0
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

+ 6 - 0
misc/pause/project.godot

@@ -0,0 +1,6 @@
+[application]
+
+icon = "res://icon.png"
+main_scene = "res://spinpause.tscn"
+name = "Pause"
+

+ 0 - 3
old/misc/pause/spinpause.gd → 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)

+ 165 - 0
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"]
+
+

+ 0 - 0
old/misc/regex/icon.png → misc/regex/icon.png


+ 23 - 0
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

+ 1 - 1
old/misc/regex/engine.cfg → 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"

+ 22 - 0
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)

+ 59 - 0
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"]
+
+

+ 5 - 0
misc/scene_changer/project.godot

@@ -0,0 +1,5 @@
+[application]
+
+main_scene = "res://scene_a.tscn"
+name = "Scene Changer"
+

+ 4 - 0
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")

+ 48 - 0
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"]
+
+

+ 4 - 0
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")

+ 48 - 0
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"]
+
+

+ 0 - 8
old/misc/autoload/engine.cfg

@@ -1,8 +0,0 @@
-[application]
-
-name="Autoload (Singletons)"
-main_scene="res://scene_a.scn"
-
-[autoload]
-
-global="res://global.gd"

+ 0 - 5
old/misc/autoload/scene_a.gd

@@ -1,5 +0,0 @@
-extends Panel
-
-
-func _on_goto_scene_pressed():
-	get_node("/root/global").goto_scene("res://scene_b.scn")

BIN
old/misc/autoload/scene_a.scn


+ 0 - 5
old/misc/autoload/scene_b.gd

@@ -1,5 +0,0 @@
-extends Panel
-
-
-func _on_goto_scene_pressed():
-	get_node("/root/global").goto_scene("res://scene_a.scn")

BIN
old/misc/autoload/scene_b.scn


BIN
old/misc/instancing/ball.scn


BIN
old/misc/instancing/container.scn


+ 0 - 9
old/misc/instancing/engine.cfg

@@ -1,9 +0,0 @@
-[application]
-
-name="Scene Instancing Demo"
-main_scene="res://container.scn"
-icon="res://icon.png"
-
-[physics_2d]
-
-default_gravity=300

+ 0 - 10
old/misc/joysticks/engine.cfg

@@ -1,10 +0,0 @@
-[application]
-
-name="Joysticks"
-main_scene="res://joysticks.tscn"
-icon="res://icon.png"
-
-[display]
-
-height=450
-width=550

+ 0 - 854
old/misc/joysticks/joysticks.tscn

@@ -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"]
-
-

+ 0 - 5
old/misc/pause/engine.cfg

@@ -1,5 +0,0 @@
-[application]
-
-name="Pause"
-main_scene="res://spinpause.scn"
-icon="res://icon.png"

BIN
old/misc/pause/spinpause.scn


+ 0 - 28
old/misc/regex/regex.gd

@@ -1,28 +0,0 @@
-
-extends VBoxContainer
-
-# Member variables
-var regex = RegEx.new()
-
-
-func update_expression(text):
-	regex.compile(text)
-	update_text()
-
-
-func update_text():
-	var text = get_node("Text").get_text()
-	var list = get_node("List")
-	for child in list.get_children():
-		child.queue_free()
-	if regex.is_valid():
-		regex.find(text)
-		for res in regex.get_captures():
-			var label = Label.new()
-			label.set_text(res)
-			list.add_child(label)
-
-
-func _ready():
-	get_node("Text").set_text("They asked me \"What's going on \\\"in the manor\\\"?\"")
-	update_expression(get_node("Expression").get_text())

BIN
old/misc/regex/regex.scn


+ 0 - 4
old/misc/scene_changer/engine.cfg

@@ -1,4 +0,0 @@
-[application]
-
-name="Scene Changer"
-main_scene="res://scene_a.scn"

+ 0 - 16
old/misc/scene_changer/scene_a.gd

@@ -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_b.scn")
-	pass # Replace with function body

BIN
old/misc/scene_changer/scene_a.scn


+ 0 - 16
old/misc/scene_changer/scene_b.gd

@@ -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

BIN
old/misc/scene_changer/scene_b.scn