Files
streaming_world/godot/main/editor.tscn
2024-08-19 18:30:02 +03:00

289 lines
8.0 KiB
Plaintext

[gd_scene load_steps=15 format=2]
[ext_resource path="res://main/editor.gd" type="Script" id=1]
[ext_resource path="res://terrain/terrain_draw.png" type="Image" id=2]
[ext_resource path="res://terrain/terrain.png" type="Image" id=3]
[ext_resource path="res://terrain/terrain_edit.png" type="Image" id=4]
[sub_resource type="VoxelGeneratorImgMapper" id=5]
height_start = -150.0
height_range = 300.0
image_bg = ExtResource( 3 )
image_overlay = ExtResource( 4 )
image_draw = ExtResource( 2 )
[sub_resource type="VoxelMesherTransvoxel" id=6]
[sub_resource type="ORMSpatialMaterial" id=7]
albedo_color = Color( 0.254902, 0.886275, 0.101961, 1 )
[sub_resource type="ProceduralSky" id=4]
[sub_resource type="Environment" id=8]
background_mode = 2
background_sky = SubResource( 4 )
[sub_resource type="BoxShape" id=9]
extents = Vector3( 550, 0.1, 550 )
[sub_resource type="CubeMesh" id=10]
size = Vector3( 5, 120, 5 )
[sub_resource type="SpatialMaterial" id=11]
flags_transparent = true
albedo_color = Color( 0.698039, 0.192157, 0.101961, 0.427451 )
emission_enabled = true
emission = Color( 0.894118, 0.0980392, 0.0980392, 1 )
emission_energy = 1.0
emission_operator = 0
emission_on_uv2 = false
[sub_resource type="BoxShape" id=12]
extents = Vector3( 50, 1, 50 )
[sub_resource type="CubeMesh" id=13]
size = Vector3( 4, 4, 120 )
[node name="editor" type="Spatial"]
script = ExtResource( 1 )
[node name="WorldEditor" type="WorldEditor" parent="."]
[node name="VBoxContainer" type="VBoxContainer" parent="."]
anchor_left = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = -160.0
[node name="ColorRect" type="ColorRect" parent="VBoxContainer"]
margin_right = 160.0
margin_bottom = 30.0
rect_min_size = Vector2( 160, 30 )
size_flags_horizontal = 3
size_flags_vertical = 5
color = Color( 0.25098, 0.25098, 0.25098, 1 )
[node name="Label" type="Label" parent="VBoxContainer/ColorRect"]
margin_left = 39.0
margin_top = 8.0
margin_right = 118.0
margin_bottom = 22.0
size_flags_horizontal = 3
size_flags_vertical = 7
text = "Mode select"
align = 1
valign = 1
[node name="select_buildings" type="Button" parent="VBoxContainer"]
unique_name_in_owner = true
margin_top = 34.0
margin_right = 160.0
margin_bottom = 54.0
text = "Buildings Mode"
[node name="select_navigation" type="Button" parent="VBoxContainer"]
unique_name_in_owner = true
margin_top = 58.0
margin_right = 160.0
margin_bottom = 78.0
text = "Navigation Mode"
[node name="select_poi" type="Button" parent="VBoxContainer"]
unique_name_in_owner = true
margin_top = 82.0
margin_right = 160.0
margin_bottom = 102.0
text = "POI Mode"
[node name="select_road_lines" type="Button" parent="VBoxContainer"]
unique_name_in_owner = true
margin_top = 106.0
margin_right = 160.0
margin_bottom = 126.0
text = "Road Lines Mode"
[node name="select_npc" type="Button" parent="VBoxContainer"]
unique_name_in_owner = true
margin_top = 130.0
margin_right = 160.0
margin_bottom = 150.0
text = "NPC Mode"
[node name="v_buildings" type="VBoxContainer" parent="VBoxContainer"]
unique_name_in_owner = true
margin_top = 154.0
margin_right = 160.0
margin_bottom = 274.0
[node name="HSeparator" type="HSeparator" parent="VBoxContainer/v_buildings"]
margin_right = 160.0
margin_bottom = 4.0
[node name="Label" type="Label" parent="VBoxContainer/v_buildings"]
margin_top = 8.0
margin_right = 160.0
margin_bottom = 22.0
text = "Buildings mode"
[node name="buildings_edit_mode" type="OptionButton" parent="VBoxContainer/v_buildings"]
unique_name_in_owner = true
margin_top = 26.0
margin_right = 160.0
margin_bottom = 46.0
text = "Select"
items = [ "Select", null, false, 0, null, "Move", null, false, 1, null, "Rotate", null, false, 2, null ]
selected = 0
[node name="Label2" type="Label" parent="VBoxContainer/v_buildings"]
margin_top = 50.0
margin_right = 160.0
margin_bottom = 64.0
text = "Building type"
[node name="building_type" type="OptionButton" parent="VBoxContainer/v_buildings"]
unique_name_in_owner = true
margin_top = 68.0
margin_right = 160.0
margin_bottom = 88.0
text = "Building Type"
[node name="HSeparator2" type="HSeparator" parent="VBoxContainer/v_buildings"]
margin_top = 92.0
margin_right = 160.0
margin_bottom = 96.0
[node name="buildings_save" type="Button" parent="VBoxContainer/v_buildings"]
unique_name_in_owner = true
margin_top = 100.0
margin_right = 160.0
margin_bottom = 120.0
text = "Save Buildings"
[node name="v_navigation" type="VBoxContainer" parent="VBoxContainer"]
unique_name_in_owner = true
margin_top = 278.0
margin_right = 160.0
margin_bottom = 300.0
[node name="HSeparator" type="HSeparator" parent="VBoxContainer/v_navigation"]
margin_right = 160.0
margin_bottom = 4.0
[node name="Label" type="Label" parent="VBoxContainer/v_navigation"]
margin_top = 8.0
margin_right = 160.0
margin_bottom = 22.0
text = "Navigation mode"
[node name="v_poi" type="VBoxContainer" parent="VBoxContainer"]
unique_name_in_owner = true
margin_top = 304.0
margin_right = 160.0
margin_bottom = 326.0
[node name="HSeparator" type="HSeparator" parent="VBoxContainer/v_poi"]
margin_right = 160.0
margin_bottom = 4.0
[node name="Label" type="Label" parent="VBoxContainer/v_poi"]
margin_top = 8.0
margin_right = 160.0
margin_bottom = 22.0
text = "POI mode"
[node name="v_road_lines" type="VBoxContainer" parent="VBoxContainer"]
unique_name_in_owner = true
margin_top = 330.0
margin_right = 160.0
margin_bottom = 356.0
[node name="HSeparator" type="HSeparator" parent="VBoxContainer/v_road_lines"]
margin_right = 160.0
margin_bottom = 4.0
[node name="Label" type="Label" parent="VBoxContainer/v_road_lines"]
margin_top = 8.0
margin_right = 160.0
margin_bottom = 22.0
text = "Road Lines mode"
[node name="lines_list" type="ItemList" parent="VBoxContainer/v_road_lines"]
unique_name_in_owner = true
margin_top = 26.0
margin_right = 160.0
margin_bottom = 26.0
[node name="v_npc" type="VBoxContainer" parent="VBoxContainer"]
unique_name_in_owner = true
margin_top = 360.0
margin_right = 160.0
margin_bottom = 382.0
[node name="HSeparator" type="HSeparator" parent="VBoxContainer/v_npc"]
margin_right = 160.0
margin_bottom = 4.0
[node name="Label" type="Label" parent="VBoxContainer/v_npc"]
margin_top = 8.0
margin_right = 160.0
margin_bottom = 22.0
text = "NPC mode"
[node name="StreamWorld" type="StreamWorld" parent="."]
[node name="VoxelLodTerrain" type="VoxelLodTerrain" parent="."]
generator = SubResource( 5 )
mesher = SubResource( 6 )
voxel_bounds = AABB( -5.36871e+08, -2048, -5.36871e+08, 1.07374e+09, 4096, 1.07374e+09 )
lod_count = 5
material = SubResource( 7 )
[node name="Camera" type="Camera" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0 )
environment = SubResource( 8 )
far = 1000.0
[node name="VoxelViewer" type="VoxelViewer" parent="Camera"]
[node name="DirectionalLight" type="DirectionalLight" parent="."]
transform = Transform( 1, 0, 0, 0, 0.707107, 0.707107, 0, -0.707107, 0.707107, 0, 2, 0 )
[node name="Area" type="Area" parent="."]
collision_layer = 32768
collision_mask = 32768
monitoring = false
[node name="CollisionShape" type="CollisionShape" parent="Area"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.1, 0 )
shape = SubResource( 9 )
[node name="building_cursor" type="MeshInstance" parent="."]
mesh = SubResource( 10 )
material/0 = SubResource( 11 )
[node name="Area" type="Area" parent="building_cursor"]
collision_layer = 32768
collision_mask = 32768
monitoring = false
[node name="CollisionShape" type="CollisionShape" parent="building_cursor/Area"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -2, 0 )
shape = SubResource( 12 )
[node name="building_rot_cursor" type="Spatial" parent="."]
[node name="building_rot_cursor" type="MeshInstance" parent="building_rot_cursor"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -60 )
mesh = SubResource( 13 )
skeleton = NodePath("../..")
material/0 = SubResource( 11 )
[node name="Area" type="Area" parent="building_rot_cursor/building_rot_cursor"]
collision_layer = 32768
collision_mask = 32768
monitoring = false
[node name="CollisionShape" type="CollisionShape" parent="building_rot_cursor/building_rot_cursor/Area"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -2, 0 )
shape = SubResource( 12 )