Worked on building layout editor
This commit is contained in:
@@ -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