Worked on building layout editor
This commit is contained in:
312
godot/astream/blayout.conf
Normal file
312
godot/astream/blayout.conf
Normal file
@@ -0,0 +1,312 @@
|
||||
[buildings_layout]
|
||||
|
||||
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 ) ]
|
||||
},
|
||||
"e1": {
|
||||
"name": "e1",
|
||||
"sockets": [ Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ), Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -1, 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 ) ]
|
||||
},
|
||||
"e2": {
|
||||
"name": "e2",
|
||||
"sockets": [ Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -1, 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 ) ]
|
||||
},
|
||||
"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 ) ]
|
||||
},
|
||||
"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 ) ]
|
||||
}
|
||||
}
|
||||
elements={
|
||||
"corner": {
|
||||
"mesh_names": [ "exterior_floor3", "exterior_wall2", "", "", "exterior_wall2", "exterior_corner2", "", "", "", "", "", "", "", "", "", "" ],
|
||||
"name": "corner",
|
||||
"type": "corner1"
|
||||
},
|
||||
"f1": {
|
||||
"mesh_names": [ "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "" ],
|
||||
"name": "f1",
|
||||
"type": "e1"
|
||||
},
|
||||
"f2": {
|
||||
"mesh_names": [ "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "" ],
|
||||
"name": "f2",
|
||||
"type": "e1"
|
||||
},
|
||||
"normal_floor": {
|
||||
"mesh_names": [ "exterior_floor", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "" ],
|
||||
"name": "normal_floor",
|
||||
"type": "just_floor"
|
||||
},
|
||||
"side_door": {
|
||||
"mesh_names": [ "exterior_floor2", "", "", "", "exterior_door1", "", "", "", "", "", "", "", "", "", "", "" ],
|
||||
"name": "side_door",
|
||||
"type": "side_wall"
|
||||
},
|
||||
"side_wall": {
|
||||
"mesh_names": [ "exterior_floor2", "", "", "", "exterior_wall1", "", "", "", "", "", "", "", "", "", "", "" ],
|
||||
"name": "side_wall",
|
||||
"type": "side_wall"
|
||||
},
|
||||
"side_window": {
|
||||
"mesh_names": [ "exterior_floor2", "", "", "", "exterior_window1", "", "", "", "", "", "", "", "", "", "", "" ],
|
||||
"name": "side_window",
|
||||
"type": "side_wall"
|
||||
},
|
||||
"test_element": {
|
||||
"mesh_names": [ "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "" ],
|
||||
"name": "test_element",
|
||||
"type": "e1"
|
||||
}
|
||||
}
|
||||
exterior_grid={
|
||||
"default": [ {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
}, {
|
||||
"element": "empty",
|
||||
"rotation": 0
|
||||
} ]
|
||||
}
|
||||
Binary file not shown.
BIN
godot/astream/building-layouts/material_atlas_73934_1.material
Normal file
BIN
godot/astream/building-layouts/material_atlas_73934_1.material
Normal file
Binary file not shown.
@@ -1,11 +1,25 @@
|
||||
[gd_scene load_steps=4 format=2]
|
||||
[gd_scene load_steps=7 format=2]
|
||||
|
||||
[ext_resource path="res://main/building_layout_editor.gd" type="Script" id=1]
|
||||
[ext_resource path="res://astream/building-layouts/building-elements.glb" type="PackedScene" id=2]
|
||||
|
||||
[sub_resource type="SpatialMaterial" id=4]
|
||||
flags_transparent = true
|
||||
albedo_color = Color( 1, 1, 1, 0.654902 )
|
||||
|
||||
[sub_resource type="CubeMesh" id=1]
|
||||
material = SubResource( 4 )
|
||||
size = Vector3( 40, 1, 40 )
|
||||
|
||||
[sub_resource type="SpatialMaterial" id=2]
|
||||
flags_transparent = true
|
||||
flags_unshaded = true
|
||||
albedo_color = Color( 0.745098, 0.105882, 0.105882, 0.192157 )
|
||||
|
||||
[sub_resource type="CubeMesh" id=3]
|
||||
material = SubResource( 2 )
|
||||
size = Vector3( 4, 8, 4 )
|
||||
|
||||
[node name="building_layout_editor" type="Spatial"]
|
||||
script = ExtResource( 1 )
|
||||
|
||||
@@ -46,7 +60,8 @@ focus_mode = 2
|
||||
text = "Interior"
|
||||
switch_on_hover = true
|
||||
|
||||
[node name="MeshInstance" type="MeshInstance" parent="."]
|
||||
[node name="bg_floor" type="MeshInstance" parent="."]
|
||||
unique_name_in_owner = true
|
||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.5, 0 )
|
||||
mesh = SubResource( 1 )
|
||||
|
||||
@@ -97,13 +112,13 @@ size_flags_vertical = 3
|
||||
unique_name_in_owner = true
|
||||
margin_top = 138.0
|
||||
margin_right = 314.0
|
||||
margin_bottom = 420.0
|
||||
margin_bottom = 444.0
|
||||
|
||||
[node name="v" type="VBoxContainer" parent="VBoxContainer/socket_editor"]
|
||||
margin_left = 7.0
|
||||
margin_top = 7.0
|
||||
margin_right = 307.0
|
||||
margin_bottom = 275.0
|
||||
margin_bottom = 299.0
|
||||
|
||||
[node name="socket_new_element" type="Button" parent="VBoxContainer/socket_editor/v"]
|
||||
unique_name_in_owner = true
|
||||
@@ -250,11 +265,17 @@ margin_right = 299.0
|
||||
margin_bottom = 24.0
|
||||
text = "Set"
|
||||
|
||||
[node name="test_element" type="OptionButton" parent="VBoxContainer/socket_editor/v"]
|
||||
unique_name_in_owner = true
|
||||
margin_top = 272.0
|
||||
margin_right = 300.0
|
||||
margin_bottom = 292.0
|
||||
|
||||
[node name="element_editor" type="PanelContainer" parent="VBoxContainer"]
|
||||
unique_name_in_owner = true
|
||||
margin_top = 424.0
|
||||
margin_top = 448.0
|
||||
margin_right = 314.0
|
||||
margin_bottom = 691.0
|
||||
margin_bottom = 715.0
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="VBoxContainer/element_editor"]
|
||||
margin_left = 7.0
|
||||
@@ -304,3 +325,11 @@ columns = 2
|
||||
|
||||
[node name="BuildingLayoutEditor" type="BuildingLayoutEditor" parent="."]
|
||||
source = ExtResource( 2 )
|
||||
|
||||
[node name="refcube" type="Spatial" parent="."]
|
||||
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 )
|
||||
mesh = SubResource( 3 )
|
||||
skeleton = NodePath("../..")
|
||||
|
||||
Reference in New Issue
Block a user