Fixed tile growing
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
element_types={
|
||||
"corner1": {
|
||||
"name": "corner1",
|
||||
"sockets": [ Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 2, 0, -2 ), Transform( 7.54979e-08, 0, -1, 0, 1, 0, 1, 0, 7.54979e-08, 2, 0, -4 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 2, 0, -2 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 2, 0, -2 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ) ]
|
||||
"sockets": [ Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 7.54979e-08, 0, -1, 0, 1, 0, 1, 0, 7.54979e-08, 0, 0, -2 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ) ]
|
||||
},
|
||||
"e1": {
|
||||
"name": "e1",
|
||||
@@ -15,11 +15,11 @@ element_types={
|
||||
},
|
||||
"just_floor": {
|
||||
"name": "just_floor",
|
||||
"sockets": [ Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ) ]
|
||||
"sockets": [ Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -2, 0, 2 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ) ]
|
||||
},
|
||||
"side_wall": {
|
||||
"name": "side_wall",
|
||||
"sockets": [ Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -2 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -2 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ) ]
|
||||
"sockets": [ Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -2, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -2, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ) ]
|
||||
}
|
||||
}
|
||||
elements={
|
||||
@@ -384,9 +384,9 @@ grid_layouts={
|
||||
"index": 78,
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"element": "corner",
|
||||
"index": 79,
|
||||
"rotation": 0
|
||||
"rotation": 1
|
||||
}, {
|
||||
"element": "empty",
|
||||
"index": 80,
|
||||
@@ -1159,11 +1159,11 @@ grid_layouts={
|
||||
"index": 28,
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"element": "normal_floor",
|
||||
"index": 29,
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"element": "normal_floor",
|
||||
"index": 30,
|
||||
"rotation": 0
|
||||
}, {
|
||||
@@ -1359,9 +1359,9 @@ grid_layouts={
|
||||
"index": 78,
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"element": "corner",
|
||||
"index": 79,
|
||||
"rotation": 0
|
||||
"rotation": 1
|
||||
}, {
|
||||
"element": "empty",
|
||||
"index": 80,
|
||||
@@ -1432,13 +1432,13 @@ grid_layouts={
|
||||
"index": 15,
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"element": "side_wall",
|
||||
"index": 16,
|
||||
"rotation": 0
|
||||
"rotation": 2
|
||||
}, {
|
||||
"element": "empty",
|
||||
"element": "corner",
|
||||
"index": 17,
|
||||
"rotation": 0
|
||||
"rotation": 2
|
||||
}, {
|
||||
"element": "empty",
|
||||
"index": 18,
|
||||
@@ -1504,9 +1504,9 @@ grid_layouts={
|
||||
"index": 33,
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"element": "normal_floor",
|
||||
"index": 34,
|
||||
"rotation": 0
|
||||
"rotation": 2
|
||||
}, {
|
||||
"element": "empty",
|
||||
"index": 35,
|
||||
@@ -1612,9 +1612,9 @@ grid_layouts={
|
||||
"index": 60,
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"element": "side_wall",
|
||||
"index": 61,
|
||||
"rotation": 0
|
||||
"rotation": 1
|
||||
}, {
|
||||
"element": "empty",
|
||||
"index": 62,
|
||||
@@ -1646,15 +1646,15 @@ grid_layouts={
|
||||
}, {
|
||||
"element": "empty",
|
||||
"index": 69,
|
||||
"rotation": 0
|
||||
"rotation": 1
|
||||
}, {
|
||||
"element": "empty",
|
||||
"element": "side_window",
|
||||
"index": 70,
|
||||
"rotation": 0
|
||||
"rotation": 1
|
||||
}, {
|
||||
"element": "empty",
|
||||
"index": 71,
|
||||
"rotation": 0
|
||||
"rotation": 3
|
||||
}, {
|
||||
"element": "corner",
|
||||
"index": 72,
|
||||
@@ -1684,9 +1684,9 @@ grid_layouts={
|
||||
"index": 78,
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"element": "corner",
|
||||
"index": 79,
|
||||
"rotation": 0
|
||||
"rotation": 1
|
||||
}, {
|
||||
"element": "empty",
|
||||
"index": 80,
|
||||
|
||||
@@ -330,43 +330,89 @@ columns = 2
|
||||
unique_name_in_owner = true
|
||||
margin_top = 719.0
|
||||
margin_right = 314.0
|
||||
margin_bottom = 847.0
|
||||
margin_bottom = 999.0
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="VBoxContainer/layout_editor"]
|
||||
margin_left = 7.0
|
||||
margin_top = 7.0
|
||||
margin_right = 307.0
|
||||
margin_bottom = 121.0
|
||||
margin_bottom = 273.0
|
||||
|
||||
[node name="grid_elements" type="OptionButton" parent="VBoxContainer/layout_editor/VBoxContainer"]
|
||||
unique_name_in_owner = true
|
||||
margin_right = 300.0
|
||||
margin_bottom = 20.0
|
||||
|
||||
[node name="clear_grid_cell" type="Button" parent="VBoxContainer/layout_editor/VBoxContainer"]
|
||||
[node name="select_rotation" type="OptionButton" parent="VBoxContainer/layout_editor/VBoxContainer"]
|
||||
unique_name_in_owner = true
|
||||
margin_top = 24.0
|
||||
margin_right = 300.0
|
||||
margin_bottom = 44.0
|
||||
text = "Clear cell"
|
||||
text = "0"
|
||||
items = [ "0", null, false, 0, null, "90", null, false, 1, null, "180", null, false, 2, null, "270", null, false, 3, null ]
|
||||
selected = 0
|
||||
|
||||
[node name="Label" type="Label" parent="VBoxContainer/layout_editor/VBoxContainer"]
|
||||
[node name="clear_grid_cell" type="Button" parent="VBoxContainer/layout_editor/VBoxContainer"]
|
||||
unique_name_in_owner = true
|
||||
margin_top = 48.0
|
||||
margin_right = 300.0
|
||||
margin_bottom = 62.0
|
||||
margin_bottom = 68.0
|
||||
text = "Clear cell"
|
||||
|
||||
[node name="grow_cell_button" type="Button" parent="VBoxContainer/layout_editor/VBoxContainer"]
|
||||
unique_name_in_owner = true
|
||||
margin_top = 72.0
|
||||
margin_right = 300.0
|
||||
margin_bottom = 92.0
|
||||
text = "Grow"
|
||||
|
||||
[node name="HSeparator" type="HSeparator" parent="VBoxContainer/layout_editor/VBoxContainer"]
|
||||
margin_top = 96.0
|
||||
margin_right = 300.0
|
||||
margin_bottom = 100.0
|
||||
|
||||
[node name="grid_elements_corner" type="OptionButton" parent="VBoxContainer/layout_editor/VBoxContainer"]
|
||||
unique_name_in_owner = true
|
||||
margin_top = 104.0
|
||||
margin_right = 300.0
|
||||
margin_bottom = 124.0
|
||||
|
||||
[node name="grid_elements_side" type="OptionButton" parent="VBoxContainer/layout_editor/VBoxContainer"]
|
||||
unique_name_in_owner = true
|
||||
margin_top = 128.0
|
||||
margin_right = 300.0
|
||||
margin_bottom = 148.0
|
||||
|
||||
[node name="grid_elements_floor" type="OptionButton" parent="VBoxContainer/layout_editor/VBoxContainer"]
|
||||
unique_name_in_owner = true
|
||||
margin_top = 152.0
|
||||
margin_right = 300.0
|
||||
margin_bottom = 172.0
|
||||
|
||||
[node name="make_room_button" type="Button" parent="VBoxContainer/layout_editor/VBoxContainer"]
|
||||
unique_name_in_owner = true
|
||||
margin_top = 176.0
|
||||
margin_right = 300.0
|
||||
margin_bottom = 196.0
|
||||
text = "Make Room"
|
||||
|
||||
[node name="Label" type="Label" parent="VBoxContainer/layout_editor/VBoxContainer"]
|
||||
margin_top = 200.0
|
||||
margin_right = 300.0
|
||||
margin_bottom = 214.0
|
||||
text = "Level"
|
||||
|
||||
[node name="level_value" type="SpinBox" parent="VBoxContainer/layout_editor/VBoxContainer"]
|
||||
unique_name_in_owner = true
|
||||
margin_top = 66.0
|
||||
margin_top = 218.0
|
||||
margin_right = 300.0
|
||||
margin_bottom = 90.0
|
||||
margin_bottom = 242.0
|
||||
|
||||
[node name="layout_selector" type="OptionButton" parent="VBoxContainer/layout_editor/VBoxContainer"]
|
||||
unique_name_in_owner = true
|
||||
margin_top = 94.0
|
||||
margin_top = 246.0
|
||||
margin_right = 300.0
|
||||
margin_bottom = 114.0
|
||||
margin_bottom = 266.0
|
||||
|
||||
[node name="BuildingLayoutEditor" type="BuildingLayoutEditor" parent="."]
|
||||
source = ExtResource( 2 )
|
||||
@@ -375,7 +421,7 @@ source = ExtResource( 2 )
|
||||
unique_name_in_owner = true
|
||||
|
||||
[node name="refcube" type="MeshInstance" parent="refcube"]
|
||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 2, 4, -2 )
|
||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 4, 0 )
|
||||
mesh = SubResource( 3 )
|
||||
skeleton = NodePath("../..")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user