Convert demos to Godot 4 using regular expressions in a script

This commit is contained in:
Aaron Franke
2022-03-26 05:00:50 -05:00
parent 410d783126
commit bbe50fc9da
1095 changed files with 13628 additions and 13557 deletions

View File

@@ -1,8 +1,8 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/diagram.png-1621ff3c0b6dad34000ac99354b64701.stex"
type="StreamTexture2D"
path="res://.godot/imported/diagram.png-1621ff3c0b6dad34000ac99354b64701.stex"
metadata={
"vram_texture": false
}
@@ -10,7 +10,7 @@ metadata={
[deps]
source_file="res://diagram.png"
dest_files=[ "res://.import/diagram.png-1621ff3c0b6dad34000ac99354b64701.stex" ]
dest_files=["res://.godot/imported/diagram.png-1621ff3c0b6dad34000ac99354b64701.stex"]
[params]

View File

@@ -1,8 +1,8 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex"
type="StreamTexture2D"
path="res://.godot/imported/icon.png-487276ed1e3a0c39cad0279d744ee560.stex"
metadata={
"vram_texture": false
}
@@ -10,7 +10,7 @@ metadata={
[deps]
source_file="res://icon.png"
dest_files=[ "res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" ]
dest_files=["res://.godot/imported/icon.png-487276ed1e3a0c39cad0279d744ee560.stex"]
[params]

View File

@@ -1,8 +1,8 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/indicators.png-b2d98522e44d4529354ba542a9970360.stex"
type="StreamTexture2D"
path="res://.godot/imported/indicators.png-b2d98522e44d4529354ba542a9970360.stex"
metadata={
"vram_texture": false
}
@@ -10,7 +10,7 @@ metadata={
[deps]
source_file="res://indicators.png"
dest_files=[ "res://.import/indicators.png-b2d98522e44d4529354ba542a9970360.stex" ]
dest_files=["res://.godot/imported/indicators.png-b2d98522e44d4529354ba542a9970360.stex"]
[params]

View File

@@ -1,195 +1,195 @@
[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]
[ext_resource path="res://diagram.png" type="Texture2D" id=1]
[ext_resource path="res://indicators.png" type="Texture2D" id=2]
[node name="JoypadDiagram" type="Sprite"]
position = Vector2( 368.635, 155.289 )
scale = Vector2( 0.432859, 0.446287 )
[node name="JoypadDiagram" type="Sprite2D"]
position = Vector2(368.635, 155.289)
scale = Vector2(0.432859, 0.446287)
texture = ExtResource( 1 )
[node name="Buttons" type="Node2D" parent="."]
[node name="0" type="Sprite" parent="Buttons"]
position = Vector2( 147.73, 120.925 )
scale = Vector2( 0.9, 0.9 )
[node name="0" type="Sprite2D" parent="Buttons"]
position = Vector2(147.73, 120.925)
scale = Vector2(0.9, 0.9)
texture = ExtResource( 2 )
region_enabled = true
region_rect = Rect2( 0, 0, 45, 45 )
region_rect = Rect2(0, 0, 45, 45)
[node name="1" type="Sprite" parent="Buttons"]
position = Vector2( 185.769, 82.4874 )
scale = Vector2( 0.9, 0.9 )
[node name="1" type="Sprite2D" parent="Buttons"]
position = Vector2(185.769, 82.4874)
scale = Vector2(0.9, 0.9)
texture = ExtResource( 2 )
region_enabled = true
region_rect = Rect2( 0, 0, 45, 45 )
region_rect = Rect2(0, 0, 45, 45)
[node name="2" type="Sprite" parent="Buttons"]
position = Vector2( 112.377, 82.4874 )
scale = Vector2( 0.9, 0.9 )
[node name="2" type="Sprite2D" parent="Buttons"]
position = Vector2(112.377, 82.4874)
scale = Vector2(0.9, 0.9)
texture = ExtResource( 2 )
region_enabled = true
region_rect = Rect2( 0, 0, 45, 45 )
region_rect = Rect2(0, 0, 45, 45)
[node name="3" type="Sprite" parent="Buttons"]
position = Vector2( 149.073, 47.3293 )
scale = Vector2( 0.9, 0.9 )
[node name="3" type="Sprite2D" parent="Buttons"]
position = Vector2(149.073, 47.3293)
scale = Vector2(0.9, 0.9)
texture = ExtResource( 2 )
region_enabled = true
region_rect = Rect2( 0, 0, 45, 45 )
region_rect = Rect2(0, 0, 45, 45)
[node name="4" type="Sprite" parent="Buttons"]
position = Vector2( -161.038, -158.037 )
scale = Vector2( 5.3348, 3.35512 )
[node name="4" type="Sprite2D" parent="Buttons"]
position = Vector2(-161.038, -158.037)
scale = Vector2(5.3348, 3.35512)
texture = ExtResource( 2 )
region_enabled = true
region_rect = Rect2( 10, 10, 10, 10 )
region_rect = Rect2(10, 10, 10, 10)
[node name="5" type="Sprite" parent="Buttons"]
position = Vector2( 159.362, -156.977 )
scale = Vector2( 5.3348, 3.35512 )
[node name="5" type="Sprite2D" parent="Buttons"]
position = Vector2(159.362, -156.977)
scale = Vector2(5.3348, 3.35512)
texture = ExtResource( 2 )
region_enabled = true
region_rect = Rect2( 10, 10, 10, 10 )
region_rect = Rect2(10, 10, 10, 10)
[node name="6" type="Sprite" parent="Buttons"]
position = Vector2( -159.349, -221.878 )
scale = Vector2( 1.0458, 2.16952 )
[node name="6" type="Sprite2D" parent="Buttons"]
position = Vector2(-159.349, -221.878)
scale = Vector2(1.0458, 2.16952)
texture = ExtResource( 2 )
flip_h = true
region_enabled = true
region_rect = Rect2( 0, 0, 45, 22 )
region_rect = Rect2(0, 0, 45, 22)
[node name="7" type="Sprite" parent="Buttons"]
position = Vector2( 156.677, -220.11 )
scale = Vector2( 1.0458, 2.16952 )
[node name="7" type="Sprite2D" parent="Buttons"]
position = Vector2(156.677, -220.11)
scale = Vector2(1.0458, 2.16952)
texture = ExtResource( 2 )
region_enabled = true
region_rect = Rect2( 0, 0, 45, 22 )
region_rect = Rect2(0, 0, 45, 22)
[node name="8" type="Sprite" parent="Buttons"]
position = Vector2( -67.5308, 164.422 )
scale = Vector2( 0.9, 0.9 )
[node name="8" type="Sprite2D" parent="Buttons"]
position = Vector2(-67.5308, 164.422)
scale = Vector2(0.9, 0.9)
texture = ExtResource( 2 )
region_enabled = true
region_rect = Rect2( 0, 0, 45, 45 )
region_rect = Rect2(0, 0, 45, 45)
[node name="9" type="Sprite" parent="Buttons"]
position = Vector2( 75.8825, 167.363 )
scale = Vector2( 0.9, 0.9 )
[node name="9" type="Sprite2D" parent="Buttons"]
position = Vector2(75.8825, 167.363)
scale = Vector2(0.9, 0.9)
texture = ExtResource( 2 )
region_enabled = true
region_rect = Rect2( 0, 0, 45, 45 )
region_rect = Rect2(0, 0, 45, 45)
[node name="10" type="Sprite" parent="Buttons"]
position = Vector2( -46.6707, 52.702 )
scale = Vector2( 0.810497, 0.57205 )
[node name="10" type="Sprite2D" parent="Buttons"]
position = Vector2(-46.6707, 52.702)
scale = Vector2(0.810497, 0.57205)
texture = ExtResource( 2 )
region_enabled = true
region_rect = Rect2( 0, 0, 45, 45 )
region_rect = Rect2(0, 0, 45, 45)
[node name="11" type="Sprite" parent="Buttons"]
position = Vector2( 56.2581, 54.4382 )
scale = Vector2( 0.810497, 0.57205 )
[node name="11" type="Sprite2D" parent="Buttons"]
position = Vector2(56.2581, 54.4382)
scale = Vector2(0.810497, 0.57205)
texture = ExtResource( 2 )
region_enabled = true
region_rect = Rect2( 0, 0, 45, 45 )
region_rect = Rect2(0, 0, 45, 45)
[node name="12" type="Sprite" parent="Buttons"]
position = Vector2( -139.402, 46.8295 )
scale = Vector2( 0.9, 0.9 )
[node name="12" type="Sprite2D" parent="Buttons"]
position = Vector2(-139.402, 46.8295)
scale = Vector2(0.9, 0.9)
texture = ExtResource( 2 )
region_enabled = true
region_rect = Rect2( 50, 0, 54, 14 )
region_rect = Rect2(50, 0, 54, 14)
[node name="13" type="Sprite" parent="Buttons"]
position = Vector2( -139.838, 115.789 )
scale = Vector2( 0.9, 0.9 )
[node name="13" type="Sprite2D" parent="Buttons"]
position = Vector2(-139.838, 115.789)
scale = Vector2(0.9, 0.9)
texture = ExtResource( 2 )
flip_v = true
region_enabled = true
region_rect = Rect2( 50, 0, 54, 14 )
region_rect = Rect2(50, 0, 54, 14)
[node name="14" type="Sprite" parent="Buttons"]
position = Vector2( -172.262, 81.8793 )
scale = Vector2( 0.9, 0.9 )
[node name="14" type="Sprite2D" parent="Buttons"]
position = Vector2(-172.262, 81.8793)
scale = Vector2(0.9, 0.9)
texture = ExtResource( 2 )
region_enabled = true
region_rect = Rect2( 50, 0, 14, 54 )
region_rect = Rect2(50, 0, 14, 54)
[node name="15" type="Sprite" parent="Buttons"]
position = Vector2( -105.085, 81.0326 )
scale = Vector2( 0.9, 0.9 )
[node name="15" type="Sprite2D" parent="Buttons"]
position = Vector2(-105.085, 81.0326)
scale = Vector2(0.9, 0.9)
texture = ExtResource( 2 )
flip_h = true
region_enabled = true
region_rect = Rect2( 50, 0, 14, 54 )
region_rect = Rect2(50, 0, 14, 54)
[node name="16" type="Sprite" parent="Buttons"]
position = Vector2( 4, 64 )
scale = Vector2( 0.9, 0.9 )
[node name="16" type="Sprite2D" parent="Buttons"]
position = Vector2(4, 64)
scale = Vector2(0.9, 0.9)
texture = ExtResource( 2 )
region_enabled = true
region_rect = Rect2( 0, 0, 45, 45 )
region_rect = Rect2(0, 0, 45, 45)
[node name="Axes" type="Node2D" parent="."]
[node name="0-" type="Sprite" parent="Axes"]
position = Vector2( -94.4295, 164.932 )
scale = Vector2( 0.9, 0.9 )
[node name="0-" type="Sprite2D" parent="Axes"]
position = Vector2(-94.4295, 164.932)
scale = Vector2(0.9, 0.9)
texture = ExtResource( 2 )
region_enabled = true
region_rect = Rect2( 50, 0, 14, 54 )
region_rect = Rect2(50, 0, 14, 54)
[node name="0+" type="Sprite" parent="Axes"]
position = Vector2( -40.3475, 164.509 )
scale = Vector2( 0.9, 0.9 )
[node name="0+" type="Sprite2D" parent="Axes"]
position = Vector2(-40.3475, 164.509)
scale = Vector2(0.9, 0.9)
texture = ExtResource( 2 )
flip_h = true
region_enabled = true
region_rect = Rect2( 50, 0, 14, 54 )
region_rect = Rect2(50, 0, 14, 54)
[node name="1-" type="Sprite" parent="Axes"]
position = Vector2( -67.6802, 137.926 )
scale = Vector2( 0.9, 0.9 )
[node name="1-" type="Sprite2D" parent="Axes"]
position = Vector2(-67.6802, 137.926)
scale = Vector2(0.9, 0.9)
texture = ExtResource( 2 )
region_enabled = true
region_rect = Rect2( 50, 0, 54, 14 )
region_rect = Rect2(50, 0, 54, 14)
[node name="1+" type="Sprite" parent="Axes"]
position = Vector2( -67.4618, 192.915 )
scale = Vector2( 0.9, 0.9 )
[node name="1+" type="Sprite2D" parent="Axes"]
position = Vector2(-67.4618, 192.915)
scale = Vector2(0.9, 0.9)
texture = ExtResource( 2 )
flip_v = true
region_enabled = true
region_rect = Rect2( 50, 0, 54, 14 )
region_rect = Rect2(50, 0, 54, 14)
[node name="2-" type="Sprite" parent="Axes"]
position = Vector2( 48.8152, 167.145 )
scale = Vector2( 0.9, 0.9 )
[node name="2-" type="Sprite2D" parent="Axes"]
position = Vector2(48.8152, 167.145)
scale = Vector2(0.9, 0.9)
texture = ExtResource( 2 )
region_enabled = true
region_rect = Rect2( 50, 0, 14, 54 )
region_rect = Rect2(50, 0, 14, 54)
[node name="2+" type="Sprite" parent="Axes"]
position = Vector2( 102.899, 167.857 )
scale = Vector2( 0.9, 0.9 )
[node name="2+" type="Sprite2D" parent="Axes"]
position = Vector2(102.899, 167.857)
scale = Vector2(0.9, 0.9)
texture = ExtResource( 2 )
flip_h = true
region_enabled = true
region_rect = Rect2( 50, 0, 14, 54 )
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 )
[node name="3-" type="Sprite2D" 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 )
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 )
[node name="3+" type="Sprite2D" 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 )
region_rect = Rect2(50, 0, 54, 14)

View File

@@ -9,22 +9,22 @@ extends Control
const DEADZONE = 0.2
const FONT_COLOR_DEFAULT = Color(1.0, 1.0, 1.0, 0.5)
const FONT_COLOR_ACTIVE = Color.white
const FONT_COLOR_ACTIVE = Color.WHITE
var joy_num
var cur_joy = -1
var axis_value
onready var axes = $Axes
onready var button_grid = $Buttons/ButtonGrid
onready var joypad_axes = $JoypadDiagram/Axes
onready var joypad_buttons = $JoypadDiagram/Buttons
onready var joypad_name = $DeviceInfo/JoyName
onready var joypad_number = $DeviceInfo/JoyNumber
@onready var axes = $Axes
@onready var button_grid = $Buttons/ButtonGrid
@onready var joypad_axes = $JoypadDiagram/Axes
@onready var joypad_buttons = $JoypadDiagram/Buttons
@onready var joypad_name = $DeviceInfo/JoyName
@onready var joypad_number = $DeviceInfo/JoyNumber
func _ready():
set_physics_process(true)
Input.connect("joy_connection_changed", self, "_on_joy_connection_changed")
Input.connect(&"joy_connection_changed", self._on_joy_connection_changed)
# Guide button, not supported <= 3.2.3, so manually hide to account for that case.
joypad_buttons.get_child(16).hide()
@@ -41,8 +41,8 @@ func _process(_delta):
# Loop through the axes and show their current values.
for axis in range(int(min(JOY_AXIS_MAX, 11))):
axis_value = Input.get_joy_axis(joy_num, axis)
axes.get_node("Axis" + str(axis) + "/ProgressBar").set_value(100 * axis_value)
axes.get_node("Axis" + str(axis) + "/ProgressBar/Value").set_text(str(axis_value))
axes.get_node(^"Axis" + str(axis) + "/ProgressBar").set_value(100 * axis_value)
axes.get_node(^"Axis" + str(axis) + "/ProgressBar/Value").set_text(str(axis_value))
# Scaled value used for alpha channel using valid range rather than including unusable deadzone values.
var scaled_alpha_value = (abs(axis_value) - DEADZONE) / (1.0 - DEADZONE)
# Show joypad direction indicators
@@ -76,9 +76,9 @@ func _process(_delta):
joypad_buttons.get_child(JOY_ANALOG_R2).self_modulate.a = scaled_alpha_value
# Highlight axis labels that are within the "active" value range. Simular to the button highlighting for loop below.
axes.get_node("Axis" + str(axis) + "/Label").add_color_override("font_color", FONT_COLOR_DEFAULT)
axes.get_node(^"Axis" + str(axis) + "/Label").add_color_override("font_color", FONT_COLOR_DEFAULT)
if abs(axis_value) >= DEADZONE:
axes.get_node("Axis" + str(axis) + "/Label").add_color_override("font_color", FONT_COLOR_ACTIVE)
axes.get_node(^"Axis" + str(axis) + "/Label").add_color_override("font_color", FONT_COLOR_ACTIVE)
# Loop through the buttons and highlight the ones that are pressed.
for btn in range(JOY_BUTTON_0, int(min(JOY_BUTTON_MAX, 24))):
@@ -118,7 +118,7 @@ func _on_Remap_pressed():
func _on_Clear_pressed():
var guid = Input.get_joy_guid(cur_joy)
if guid.empty():
if guid.is_empty():
printerr("No gamepad selected")
return
Input.remove_joy_mapping(guid)

File diff suppressed because it is too large Load Diff

View File

@@ -8,12 +8,12 @@
config_version=4
_global_script_classes=[ {
_global_script_classes=[{
"base": "Reference",
"class": "JoyMapping",
"language": "GDScript",
"class": &"JoyMapping",
"language": &"GDScript",
"path": "res://remap/joy_mapping.gd"
} ]
}]
_global_script_class_icons={
"JoyMapping": ""
}
@@ -39,7 +39,7 @@ window/stretch/aspect="expand"
[gdnative]
singletons=[ ]
singletons=[]
[rendering]

View File

@@ -1,4 +1,4 @@
extends Reference
extends RefCounted
class_name JoyMapping

View File

@@ -11,11 +11,11 @@ var cur_step = -1
var cur_mapping = {}
var last_mapping = ""
onready var joy_buttons = $Mapping/Margin/VBox/ViewportContainer/Viewport/JoypadDiagram/Buttons
onready var joy_axes = $Mapping/Margin/VBox/ViewportContainer/Viewport/JoypadDiagram/Axes
onready var joy_mapping_text = $Mapping/Margin/VBox/Info/Text/Value
onready var joy_mapping_full_axis = $Mapping/Margin/VBox/Info/Extra/FullAxis
onready var joy_mapping_axis_invert = $Mapping/Margin/VBox/Info/Extra/InvertAxis
@onready var joy_buttons = $Mapping/Margin/VBox/SubViewportContainer/SubViewport/JoypadDiagram/Buttons
@onready var joy_axes = $Mapping/Margin/VBox/SubViewportContainer/SubViewport/JoypadDiagram/Axes
@onready var joy_mapping_text = $Mapping/Margin/VBox/Info/Text/Value
@onready var joy_mapping_full_axis = $Mapping/Margin/VBox/Info/Extra/FullAxis
@onready var joy_mapping_axis_invert = $Mapping/Margin/VBox/Info/Extra/InvertAxis
func _input(event):
@@ -60,7 +60,7 @@ func create_mapping_string(mapping):
func start(idx):
joy_guid = Input.get_joy_guid(idx)
joy_name = Input.get_joy_name(idx)
if joy_guid.empty():
if joy_guid.is_empty():
printerr("Unable to find controller")
return
if OS.get_name() == "HTML5":

View File

@@ -11,10 +11,10 @@ anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -128.0
margin_top = -96.0
margin_right = 128.0
margin_bottom = 96.0
offset_left = -128.0
offset_top = -96.0
offset_right = 128.0
offset_bottom = 96.0
__meta__ = {
"_edit_use_anchors_": false
}
@@ -22,19 +22,19 @@ __meta__ = {
[node name="Margin" type="MarginContainer" parent="Start"]
anchor_right = 1.0
anchor_bottom = 1.0
custom_constants/margin_right = 12
custom_constants/margin_top = 12
custom_constants/margin_left = 12
custom_constants/margin_bottom = 12
custom_constants/offset_right = 12
custom_constants/offset_top = 12
custom_constants/offset_left = 12
custom_constants/offset_bottom = 12
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Layout" type="VBoxContainer" parent="Start/Margin"]
margin_left = 12.0
margin_top = 12.0
margin_right = 244.0
margin_bottom = 180.0
offset_left = 12.0
offset_top = 12.0
offset_right = 244.0
offset_bottom = 180.0
custom_constants/separation = 20
alignment = 1
__meta__ = {
@@ -42,69 +42,69 @@ __meta__ = {
}
[node name="HTML5" type="VBoxContainer" parent="Start/Margin/Layout"]
margin_top = 28.0
margin_right = 232.0
margin_bottom = 66.0
offset_top = 28.0
offset_right = 232.0
offset_bottom = 66.0
[node name="Label" type="Label" parent="Start/Margin/Layout/HTML5"]
margin_right = 232.0
margin_bottom = 14.0
offset_right = 232.0
offset_bottom = 14.0
text = "Try a common mapping:"
[node name="known" type="HBoxContainer" parent="Start/Margin/Layout/HTML5"]
margin_top = 18.0
margin_right = 232.0
margin_bottom = 38.0
offset_top = 18.0
offset_right = 232.0
offset_bottom = 38.0
custom_constants/separation = 20
alignment = 1
[node name="Xbox" type="Button" parent="Start/Margin/Layout/HTML5/known"]
margin_left = 44.0
margin_right = 87.0
margin_bottom = 20.0
offset_left = 44.0
offset_right = 87.0
offset_bottom = 20.0
text = "Xbox"
[node name="XboxOSX" type="Button" parent="Start/Margin/Layout/HTML5/known"]
margin_left = 107.0
margin_right = 188.0
margin_bottom = 20.0
offset_left = 107.0
offset_right = 188.0
offset_bottom = 20.0
text = "Xbox (OSX)"
[node name="Label" type="Label" parent="Start/Margin/Layout"]
margin_top = 86.0
margin_right = 232.0
margin_bottom = 100.0
offset_top = 86.0
offset_right = 232.0
offset_bottom = 100.0
text = "Or start the wizard"
[node name="Buttons" type="HBoxContainer" parent="Start/Margin/Layout"]
margin_top = 120.0
margin_right = 232.0
margin_bottom = 140.0
offset_top = 120.0
offset_right = 232.0
offset_bottom = 140.0
[node name="Cancel" type="Button" parent="Start/Margin/Layout/Buttons"]
margin_right = 54.0
margin_bottom = 20.0
offset_right = 54.0
offset_bottom = 20.0
text = "Cancel"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Control" type="Control" parent="Start/Margin/Layout/Buttons"]
margin_left = 58.0
margin_right = 172.0
margin_bottom = 20.0
offset_left = 58.0
offset_right = 172.0
offset_bottom = 20.0
size_flags_horizontal = 3
[node name="Wizard" type="Button" parent="Start/Margin/Layout/Buttons"]
margin_left = 176.0
margin_right = 232.0
margin_bottom = 20.0
offset_left = 176.0
offset_right = 232.0
offset_bottom = 20.0
text = "Wizard"
[node name="Mapping" type="WindowDialog" parent="."]
margin_right = 305.0
margin_bottom = 437.0
rect_min_size = Vector2( 330, 440 )
offset_right = 305.0
offset_bottom = 437.0
rect_min_size = Vector2(330, 440)
popup_exclusive = true
__meta__ = {
"_edit_use_anchors_": false
@@ -113,123 +113,123 @@ __meta__ = {
[node name="Margin" type="MarginContainer" parent="Mapping"]
anchor_right = 1.0
anchor_bottom = 1.0
custom_constants/margin_right = 12
custom_constants/margin_top = 12
custom_constants/margin_left = 12
custom_constants/margin_bottom = 12
custom_constants/offset_right = 12
custom_constants/offset_top = 12
custom_constants/offset_left = 12
custom_constants/offset_bottom = 12
__meta__ = {
"_edit_use_anchors_": false
}
[node name="VBox" type="VBoxContainer" parent="Mapping/Margin"]
margin_left = 12.0
margin_top = 12.0
margin_right = 318.0
margin_bottom = 428.0
offset_left = 12.0
offset_top = 12.0
offset_right = 318.0
offset_bottom = 428.0
custom_constants/separation = 5
[node name="ViewportContainer" type="ViewportContainer" parent="Mapping/Margin/VBox"]
margin_right = 306.0
margin_bottom = 305.0
rect_min_size = Vector2( 305, 305 )
[node name="SubViewportContainer" type="SubViewportContainer" parent="Mapping/Margin/VBox"]
offset_right = 306.0
offset_bottom = 305.0
rect_min_size = Vector2(305, 305)
stretch = true
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Viewport" type="Viewport" parent="Mapping/Margin/VBox/ViewportContainer"]
size = Vector2( 306, 305 )
[node name="SubViewport" type="SubViewport" parent="Mapping/Margin/VBox/SubViewportContainer"]
size = Vector2(306, 305)
handle_input_locally = false
render_target_update_mode = 0
[node name="JoypadDiagram" parent="Mapping/Margin/VBox/ViewportContainer/Viewport" instance=ExtResource( 2 )]
position = Vector2( 0, 0 )
[node name="JoypadDiagram" parent="Mapping/Margin/VBox/SubViewportContainer/SubViewport" instance=ExtResource( 2 )]
position = Vector2(0, 0)
[node name="Camera2D" type="Camera2D" parent="Mapping/Margin/VBox/ViewportContainer/Viewport"]
[node name="Camera2D" type="Camera2D" parent="Mapping/Margin/VBox/SubViewportContainer/SubViewport"]
current = true
[node name="Info" type="VBoxContainer" parent="Mapping/Margin/VBox"]
margin_top = 310.0
margin_right = 306.0
margin_bottom = 408.0
offset_top = 310.0
offset_right = 306.0
offset_bottom = 408.0
custom_constants/separation = 20
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Text" type="HBoxContainer" parent="Mapping/Margin/VBox/Info"]
margin_right = 306.0
margin_bottom = 14.0
offset_right = 306.0
offset_bottom = 14.0
[node name="Text" type="Label" parent="Mapping/Margin/VBox/Info/Text"]
margin_right = 125.0
margin_bottom = 14.0
offset_right = 125.0
offset_bottom = 14.0
text = "Currently selected: "
[node name="Value" type="Label" parent="Mapping/Margin/VBox/Info/Text"]
margin_left = 129.0
margin_right = 129.0
margin_bottom = 14.0
offset_left = 129.0
offset_right = 129.0
offset_bottom = 14.0
[node name="Extra" type="HBoxContainer" parent="Mapping/Margin/VBox/Info"]
margin_top = 34.0
margin_right = 306.0
margin_bottom = 58.0
offset_top = 34.0
offset_right = 306.0
offset_bottom = 58.0
[node name="FullAxis" type="CheckBox" parent="Mapping/Margin/VBox/Info/Extra"]
margin_right = 80.0
margin_bottom = 24.0
offset_right = 80.0
offset_bottom = 24.0
hint_tooltip = "Check this if the sign of the axis keep changing from + to - when pressing and releasing.
Do not check it otherwise"
text = "Full axis"
[node name="InvertAxis" type="CheckBox" parent="Mapping/Margin/VBox/Info/Extra"]
margin_left = 84.0
margin_right = 181.0
margin_bottom = 24.0
offset_left = 84.0
offset_right = 181.0
offset_bottom = 24.0
hint_tooltip = "Check this if you think the axis should be inverted"
text = "Invert Axis"
[node name="Buttons" type="HBoxContainer" parent="Mapping/Margin/VBox/Info"]
margin_top = 78.0
margin_right = 306.0
margin_bottom = 98.0
offset_top = 78.0
offset_right = 306.0
offset_bottom = 98.0
[node name="Prev" type="Button" parent="Mapping/Margin/VBox/Info/Buttons"]
margin_right = 67.0
margin_bottom = 20.0
offset_right = 67.0
offset_bottom = 20.0
text = "Previous"
[node name="Control" type="Control" parent="Mapping/Margin/VBox/Info/Buttons"]
margin_left = 71.0
margin_right = 142.0
margin_bottom = 20.0
offset_left = 71.0
offset_right = 142.0
offset_bottom = 20.0
size_flags_horizontal = 3
[node name="Skip" type="Button" parent="Mapping/Margin/VBox/Info/Buttons"]
margin_left = 146.0
margin_right = 184.0
margin_bottom = 20.0
offset_left = 146.0
offset_right = 184.0
offset_bottom = 20.0
text = "Skip"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Control2" type="Control" parent="Mapping/Margin/VBox/Info/Buttons"]
margin_left = 188.0
margin_right = 260.0
margin_bottom = 20.0
offset_left = 188.0
offset_right = 260.0
offset_bottom = 20.0
size_flags_horizontal = 3
[node name="Next" type="Button" parent="Mapping/Margin/VBox/Info/Buttons"]
margin_left = 264.0
margin_right = 306.0
margin_bottom = 20.0
offset_left = 264.0
offset_right = 306.0
offset_bottom = 20.0
text = "Next"
[node name="MapWindow" type="WindowDialog" parent="."]
margin_right = 400.0
margin_bottom = 200.0
offset_right = 400.0
offset_bottom = 200.0
popup_exclusive = true
__meta__ = {
"_edit_use_anchors_": false
@@ -238,29 +238,29 @@ __meta__ = {
[node name="Margin" type="MarginContainer" parent="MapWindow"]
anchor_right = 1.0
anchor_bottom = 1.0
custom_constants/margin_right = 12
custom_constants/margin_top = 12
custom_constants/margin_left = 12
custom_constants/margin_bottom = 12
custom_constants/offset_right = 12
custom_constants/offset_top = 12
custom_constants/offset_left = 12
custom_constants/offset_bottom = 12
[node name="VBoxContainer" type="VBoxContainer" parent="MapWindow/Margin"]
margin_left = 12.0
margin_top = 12.0
margin_right = 388.0
margin_bottom = 188.0
offset_left = 12.0
offset_top = 12.0
offset_right = 388.0
offset_bottom = 188.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Label" type="Label" parent="MapWindow/Margin/VBoxContainer"]
margin_right = 376.0
margin_bottom = 14.0
offset_right = 376.0
offset_bottom = 14.0
text = "This is the resulting remap string:"
[node name="TextEdit" type="TextEdit" parent="MapWindow/Margin/VBoxContainer"]
margin_top = 18.0
margin_right = 376.0
margin_bottom = 176.0
offset_top = 18.0
offset_right = 376.0
offset_bottom = 176.0
size_flags_vertical = 3
readonly = true
wrap_enabled = true