Removed script from editor

This commit is contained in:
2024-09-20 16:06:27 +03:00
parent 43c312e371
commit 9ad8bb2620
8 changed files with 336 additions and 97 deletions

View File

@@ -1,6 +1,5 @@
[gd_scene load_steps=16 format=2]
[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]
@@ -48,7 +47,6 @@ size = Vector3( 4, 4, 120 )
size = Vector3( 3, 60, 3 )
[node name="editor" type="Spatial"]
script = ExtResource( 1 )
[node name="WorldEditor" type="WorldEditor" parent="."]
@@ -124,7 +122,7 @@ text = "NPC Mode"
unique_name_in_owner = true
margin_top = 206.0
margin_right = 248.0
margin_bottom = 374.0
margin_bottom = 482.0
[node name="HSeparator" type="HSeparator" parent="VBoxContainer/v_buildings"]
margin_right = 248.0
@@ -184,11 +182,26 @@ margin_right = 248.0
margin_bottom = 168.0
text = "Save Buildings"
[node name="lines_list_building" type="ItemList" parent="VBoxContainer/v_buildings"]
unique_name_in_owner = true
margin_top = 172.0
margin_right = 248.0
margin_bottom = 252.0
rect_min_size = Vector2( 0, 80 )
size_flags_horizontal = 3
[node name="buildings_assign_to_line" type="Button" parent="VBoxContainer/v_buildings"]
unique_name_in_owner = true
margin_top = 256.0
margin_right = 248.0
margin_bottom = 276.0
text = "Assign To Line"
[node name="v_navigation" type="VBoxContainer" parent="VBoxContainer"]
unique_name_in_owner = true
margin_top = 378.0
margin_top = 486.0
margin_right = 248.0
margin_bottom = 400.0
margin_bottom = 508.0
[node name="HSeparator" type="HSeparator" parent="VBoxContainer/v_navigation"]
margin_right = 248.0
@@ -202,9 +215,9 @@ text = "Navigation mode"
[node name="v_poi" type="VBoxContainer" parent="VBoxContainer"]
unique_name_in_owner = true
margin_top = 404.0
margin_top = 512.0
margin_right = 248.0
margin_bottom = 426.0
margin_bottom = 534.0
[node name="HSeparator" type="HSeparator" parent="VBoxContainer/v_poi"]
margin_right = 248.0
@@ -218,9 +231,9 @@ text = "POI mode"
[node name="v_road_lines" type="VBoxContainer" parent="VBoxContainer"]
unique_name_in_owner = true
margin_top = 430.0
margin_top = 538.0
margin_right = 248.0
margin_bottom = 1080.0
margin_bottom = 1188.0
[node name="HSeparator" type="HSeparator" parent="VBoxContainer/v_road_lines"]
margin_right = 248.0
@@ -270,7 +283,7 @@ margin_left = 79.0
margin_right = 124.0
margin_bottom = 20.0
text = "Point"
items = [ "", null, 0, false, false, 0, 0, null, "", true, "Create", null, 0, false, false, 11, 0, null, "", false, "Remove", null, 0, false, false, 12, 0, null, "", false, "", null, 0, false, false, 3, 0, null, "", true, "Point To Cursor", null, 0, false, false, 51, 0, null, "", false, "Cursor To Point", null, 0, false, false, 52, 0, null, "", false, "Item 6", null, 0, false, false, 6, 0, null, "", false, "Item 7", null, 0, false, false, 7, 0, null, "", false ]
items = [ "", null, 0, false, false, 0, 0, null, "", true, "Create", null, 0, false, false, 11, 0, null, "", false, "Remove", null, 0, false, false, 12, 0, null, "", false, "", null, 0, false, false, 3, 0, null, "", true, "Point To Cursor", null, 0, false, false, 51, 0, null, "", false, "Cursor To Point", null, 0, false, false, 52, 0, null, "", false, "Item 6", null, 0, false, true, 6, 0, null, "", false, "Item 7", null, 0, false, true, 7, 0, null, "", false ]
switch_on_hover = true
[node name="road_lines_line_menu" type="MenuButton" parent="VBoxContainer/v_road_lines/road_lines_base/VBoxContainer/road_lines_menu_block"]
@@ -506,9 +519,9 @@ margin_bottom = 418.0
[node name="v_npc" type="VBoxContainer" parent="VBoxContainer"]
unique_name_in_owner = true
margin_top = 1084.0
margin_top = 1192.0
margin_right = 248.0
margin_bottom = 1106.0
margin_bottom = 1214.0
[node name="HSeparator" type="HSeparator" parent="VBoxContainer/v_npc"]
margin_right = 248.0
@@ -540,12 +553,13 @@ far = 1000.0
[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="."]
[node name="selection_area" type="Area" parent="."]
unique_name_in_owner = true
collision_layer = 32768
collision_mask = 32768
monitoring = false
[node name="CollisionShape" type="CollisionShape" parent="Area"]
[node name="CollisionShape" type="CollisionShape" parent="selection_area"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.1, 0 )
shape = SubResource( 9 )