This repository has been archived on 2020-09-30. You can view files and clone it, but cannot push or open issues or pull requests.
odyssey-old/Scenes/MapEditor.tscn

444 lines
12 KiB
Text
Raw Permalink Normal View History

2020-09-22 08:06:17 +00:00
[gd_scene load_steps=28 format=2]
2020-09-11 09:29:06 +00:00
[ext_resource path="res://Graphics/deepspace_mat.tres" type="Material" id=1]
[ext_resource path="res://Scenes/InEditorMap.gd" type="Script" id=2]
[ext_resource path="res://Graphics/tgstation/walls.tres" type="TileSet" id=3]
2020-09-17 23:47:16 +00:00
[ext_resource path="res://Graphics/UI/editor-icons.png" type="Texture" id=4]
2020-09-11 09:29:06 +00:00
[ext_resource path="res://Graphics/tgstation/base.tres" type="TileSet" id=5]
[ext_resource path="res://Graphics/tgstation/floor.tres" type="TileSet" id=6]
[ext_resource path="res://Graphics/tgstation/cables.tres" type="TileSet" id=7]
[ext_resource path="res://Scenes/Rendering/MapTiles.gd" type="Script" id=8]
[ext_resource path="res://Graphics/UI/uifont.tres" type="DynamicFont" id=9]
[ext_resource path="res://Scenes/MapEditor.gd" type="Script" id=10]
[ext_resource path="res://Graphics/UI/grid.png" type="Texture" id=11]
2020-09-15 23:24:15 +00:00
[ext_resource path="res://Graphics/UI/ui_theme.tres" type="Theme" id=12]
2020-09-17 23:47:16 +00:00
[ext_resource path="res://Scenes/Editor/ToolButtonTheme.tres" type="Theme" id=13]
2020-09-11 09:29:06 +00:00
[sub_resource type="StyleBoxFlat" id=1]
content_margin_left = 15.0
content_margin_right = 15.0
content_margin_top = 5.0
content_margin_bottom = 5.0
bg_color = Color( 0.0588235, 0.0627451, 0.105882, 0.784314 )
corner_radius_top_left = 10
corner_radius_top_right = 10
corner_radius_bottom_right = 10
corner_radius_bottom_left = 10
[sub_resource type="StyleBoxFlat" id=2]
content_margin_left = 10.0
content_margin_right = 10.0
bg_color = Color( 0.364706, 0.45098, 0.607843, 0.392157 )
corner_radius_top_left = 3
corner_radius_top_right = 3
corner_radius_bottom_right = 3
corner_radius_bottom_left = 3
[sub_resource type="StyleBoxFlat" id=3]
content_margin_left = 10.0
content_margin_right = 10.0
bg_color = Color( 0.305882, 0.368627, 0.576471, 0.784314 )
corner_radius_top_left = 3
corner_radius_top_right = 3
corner_radius_bottom_right = 3
corner_radius_bottom_left = 3
[sub_resource type="StyleBoxEmpty" id=4]
content_margin_left = 10.0
content_margin_right = 10.0
2020-09-17 23:47:16 +00:00
[sub_resource type="ButtonGroup" id=5]
[sub_resource type="AtlasTexture" id=6]
atlas = ExtResource( 4 )
region = Rect2( 0, 0, 16, 16 )
[sub_resource type="AtlasTexture" id=7]
atlas = ExtResource( 4 )
region = Rect2( 16, 0, 16, 16 )
[sub_resource type="ButtonGroup" id=8]
[sub_resource type="AtlasTexture" id=9]
atlas = ExtResource( 4 )
region = Rect2( 0, 16, 16, 16 )
2020-09-22 08:06:17 +00:00
[sub_resource type="AtlasTexture" id=10]
2020-09-17 23:47:16 +00:00
atlas = ExtResource( 4 )
region = Rect2( 32, 16, 16, 16 )
2020-09-22 08:06:17 +00:00
[sub_resource type="AtlasTexture" id=11]
2020-09-17 23:47:16 +00:00
atlas = ExtResource( 4 )
region = Rect2( 16, 16, 16, 16 )
2020-09-22 08:06:17 +00:00
[sub_resource type="AtlasTexture" id=12]
atlas = ExtResource( 4 )
region = Rect2( 0, 32, 16, 16 )
[sub_resource type="AtlasTexture" id=13]
atlas = ExtResource( 4 )
region = Rect2( 16, 32, 16, 16 )
[sub_resource type="AtlasTexture" id=14]
atlas = ExtResource( 4 )
region = Rect2( 32, 32, 16, 16 )
2020-09-11 09:29:06 +00:00
[node name="Control" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
script = ExtResource( 10 )
__meta__ = {
"_edit_lock_": true,
"_edit_use_anchors_": false
}
[node name="background" type="ColorRect" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
2020-09-15 23:24:15 +00:00
color = Color( 0, 0, 0, 0 )
2020-09-11 09:29:06 +00:00
__meta__ = {
"_edit_lock_": true,
"_edit_use_anchors_": false
}
[node name="map" type="Node2D" parent="."]
2020-09-15 23:24:15 +00:00
z_index = -5
z_as_relative = false
2020-09-11 09:29:06 +00:00
script = ExtResource( 2 )
2020-09-15 23:24:15 +00:00
[node name="background" type="Sprite" parent="map"]
material = ExtResource( 1 )
position = Vector2( -2560, -2784 )
texture = ExtResource( 11 )
2020-09-11 09:29:06 +00:00
centered = false
2020-09-15 23:24:15 +00:00
region_enabled = true
region_rect = Rect2( 0, 0, 6400, 6400 )
__meta__ = {
"_edit_lock_": true
}
2020-09-11 09:29:06 +00:00
[node name="grid" type="Sprite" parent="map"]
2020-09-15 23:24:15 +00:00
position = Vector2( -2560, -2784 )
2020-09-11 09:29:06 +00:00
texture = ExtResource( 11 )
centered = false
region_enabled = true
region_rect = Rect2( 0, 0, 6400, 6400 )
__meta__ = {
"_edit_lock_": true
}
[node name="tiles" type="Node2D" parent="map"]
[node name="base" type="TileMap" parent="map/tiles"]
z_index = 1
tile_set = ExtResource( 5 )
cell_size = Vector2( 32, 32 )
cell_quadrant_size = 32
occluder_light_mask = -2147483647
format = 1
[node name="cables" type="TileMap" parent="map/tiles"]
z_index = 2
tile_set = ExtResource( 7 )
cell_size = Vector2( 32, 32 )
cell_quadrant_size = 32
occluder_light_mask = -2147483647
format = 1
[node name="floor" type="TileMap" parent="map/tiles"]
z_index = 3
tile_set = ExtResource( 6 )
cell_size = Vector2( 32, 32 )
cell_quadrant_size = 32
occluder_light_mask = -2147483647
format = 1
[node name="walls" type="TileMap" parent="map/tiles"]
z_index = 4
tile_set = ExtResource( 3 )
cell_size = Vector2( 32, 32 )
cell_quadrant_size = 32
occluder_light_mask = -2147483647
format = 1
script = ExtResource( 8 )
[node name="engines" type="Node2D" parent="map"]
modulate = Color( 0.980392, 0.980392, 0.980392, 1 )
__meta__ = {
"_edit_group_": true,
"_edit_lock_": true
}
[node name="objects" type="Node2D" parent="map"]
z_index = 10
__meta__ = {
"_editor_description_": ""
}
[node name="sockets" type="Node2D" parent="map"]
z_index = 2
z_as_relative = false
[node name="lights" type="Node2D" parent="map"]
modulate = Color( 0.980392, 0.980392, 0.980392, 1 )
z_index = 11
__meta__ = {
"_edit_group_": true,
"_edit_lock_": true
}
[node name="pois" type="Node2D" parent="map"]
z_index = 999
[node name="areas" type="Node2D" parent="map"]
2020-09-15 23:24:15 +00:00
[node name="cursor" type="Node2D" parent="map"]
[node name="preview" type="Sprite" parent="map/cursor"]
modulate = Color( 1, 1, 1, 0.666667 )
z_index = 5
centered = false
2020-09-11 09:29:06 +00:00
[node name="menu" type="PanelContainer" parent="."]
margin_left = 5.0
margin_top = 5.0
margin_right = 1275.0
margin_bottom = 43.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Label" type="Label" parent="menu"]
margin_left = 526.0
margin_top = 5.0
margin_right = 744.0
margin_bottom = 33.0
size_flags_horizontal = 4
size_flags_vertical = 6
custom_styles/normal = SubResource( 1 )
custom_fonts/font = ExtResource( 9 )
text = "- Untitled (untitled.omd) -"
align = 1
[node name="menubar" type="HBoxContainer" parent="menu"]
margin_left = 4.0
margin_top = 4.0
margin_right = 1266.0
margin_bottom = 34.0
rect_min_size = Vector2( 0, 30 )
size_flags_horizontal = 3
size_flags_vertical = 3
[node name="MapMenu" type="MenuButton" parent="menu/menubar"]
margin_right = 46.0
margin_bottom = 30.0
custom_styles/hover = SubResource( 2 )
custom_styles/pressed = SubResource( 3 )
custom_styles/normal = SubResource( 4 )
custom_fonts/font = ExtResource( 9 )
text = "Map"
flat = false
switch_on_hover = true
[node name="PlayMenu" type="MenuButton" parent="menu/menubar"]
visible = false
margin_left = 50.0
margin_right = 98.0
margin_bottom = 30.0
custom_styles/hover = SubResource( 2 )
custom_styles/pressed = SubResource( 3 )
custom_styles/normal = SubResource( 4 )
custom_fonts/font = ExtResource( 9 )
text = "Play"
flat = false
2020-09-17 23:47:16 +00:00
[node name="tools" type="HBoxContainer" parent="."]
margin_left = 9.0
margin_top = 54.0
margin_right = 35.0
margin_bottom = 140.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="toolsPanel" type="PanelContainer" parent="tools"]
margin_right = 55.0
margin_bottom = 64.0
size_flags_vertical = 0
[node name="tools" type="VBoxContainer" parent="tools/toolsPanel"]
margin_left = 4.0
margin_top = 4.0
margin_right = 51.0
margin_bottom = 60.0
[node name="placeTile" type="ToolButton" parent="tools/toolsPanel/tools"]
margin_right = 47.0
margin_bottom = 26.0
theme = ExtResource( 13 )
toggle_mode = true
group = SubResource( 5 )
text = "tile"
icon = SubResource( 6 )
flat = false
align = 0
[node name="placeObject" type="ToolButton" parent="tools/toolsPanel/tools"]
margin_top = 30.0
margin_right = 47.0
margin_bottom = 56.0
theme = ExtResource( 13 )
toggle_mode = true
group = SubResource( 5 )
text = "obj"
icon = SubResource( 7 )
flat = false
align = 0
[node name="brushPanel" type="PanelContainer" parent="tools"]
visible = false
margin_left = 59.0
margin_right = 93.0
margin_bottom = 94.0
size_flags_vertical = 0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="brush" type="VBoxContainer" parent="tools/brushPanel"]
margin_left = 4.0
margin_top = 4.0
margin_right = 30.0
margin_bottom = 90.0
[node name="FreeHand" type="ToolButton" parent="tools/brushPanel/brush"]
margin_right = 26.0
margin_bottom = 26.0
theme = ExtResource( 13 )
toggle_mode = true
group = SubResource( 8 )
icon = SubResource( 9 )
flat = false
[node name="Rect" type="ToolButton" parent="tools/brushPanel/brush"]
margin_top = 30.0
margin_right = 26.0
margin_bottom = 56.0
theme = ExtResource( 13 )
toggle_mode = true
group = SubResource( 8 )
2020-09-22 08:06:17 +00:00
icon = SubResource( 10 )
2020-09-17 23:47:16 +00:00
flat = false
[node name="Fill" type="ToolButton" parent="tools/brushPanel/brush"]
margin_top = 60.0
margin_right = 26.0
margin_bottom = 86.0
theme = ExtResource( 13 )
toggle_mode = true
group = SubResource( 8 )
2020-09-22 08:06:17 +00:00
icon = SubResource( 11 )
flat = false
[node name="objPanel" type="PanelContainer" parent="tools"]
visible = false
margin_left = 59.0
margin_right = 93.0
margin_bottom = 94.0
size_flags_vertical = 0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="brush" type="VBoxContainer" parent="tools/objPanel"]
margin_left = 4.0
margin_top = 4.0
margin_right = 30.0
margin_bottom = 90.0
[node name="add" type="ToolButton" parent="tools/objPanel/brush"]
margin_right = 26.0
margin_bottom = 26.0
theme = ExtResource( 13 )
toggle_mode = true
group = SubResource( 8 )
icon = SubResource( 12 )
flat = false
[node name="edit" type="ToolButton" parent="tools/objPanel/brush"]
margin_top = 30.0
margin_right = 26.0
margin_bottom = 56.0
theme = ExtResource( 13 )
toggle_mode = true
group = SubResource( 8 )
icon = SubResource( 13 )
flat = false
[node name="remove" type="ToolButton" parent="tools/objPanel/brush"]
margin_top = 60.0
margin_right = 26.0
margin_bottom = 86.0
theme = ExtResource( 13 )
toggle_mode = true
group = SubResource( 8 )
icon = SubResource( 14 )
2020-09-17 23:47:16 +00:00
flat = false
2020-09-15 23:24:15 +00:00
[node name="layers" type="MarginContainer" parent="."]
2020-09-17 23:47:16 +00:00
visible = false
2020-09-11 09:29:06 +00:00
anchor_top = 1.0
2020-09-15 23:24:15 +00:00
anchor_right = 1.0
2020-09-11 09:29:06 +00:00
anchor_bottom = 1.0
margin_left = 5.0
2020-09-15 23:24:15 +00:00
margin_top = -90.0
margin_right = -5.0
margin_bottom = -5.44409
2020-09-11 09:29:06 +00:00
size_flags_vertical = 13
__meta__ = {
"_edit_use_anchors_": false
}
2020-09-15 23:24:15 +00:00
[node name="tabs" type="TabContainer" parent="layers"]
margin_right = 1270.0
margin_bottom = 84.0
rect_min_size = Vector2( 0, 80 )
theme = ExtResource( 12 )
tab_align = 0
2020-09-17 23:47:16 +00:00
__meta__ = {
"_edit_use_anchors_": false
}
2020-09-22 08:06:17 +00:00
[node name="objects" type="MarginContainer" parent="."]
visible = false
anchor_top = 1.0
anchor_bottom = 1.0
margin_left = 5.0
2020-09-24 10:57:00 +00:00
margin_top = -256.0
margin_right = 239.0
2020-09-22 08:06:17 +00:00
margin_bottom = -5.0
size_flags_vertical = 13
__meta__ = {
"_edit_use_anchors_": false
}
[node name="tabs" type="TabContainer" parent="objects"]
2020-09-24 10:57:00 +00:00
margin_right = 234.0
margin_bottom = 251.0
2020-09-22 08:06:17 +00:00
rect_min_size = Vector2( 0, 80 )
theme = ExtResource( 12 )
tab_align = 0
__meta__ = {
"_edit_use_anchors_": false
}
2020-09-15 23:24:15 +00:00
[connection signal="mouse_entered" from="background" to="." method="_toggle_tile_input" binds= [ true ]]
[connection signal="mouse_exited" from="background" to="." method="_toggle_tile_input" binds= [ false ]]
2020-09-17 23:47:16 +00:00
[connection signal="pressed" from="tools/toolsPanel/tools/placeTile" to="." method="_tool_selected" binds= [ "tile" ]]
[connection signal="pressed" from="tools/toolsPanel/tools/placeObject" to="." method="_tool_selected" binds= [ "obj" ]]
[connection signal="pressed" from="tools/brushPanel/brush/FreeHand" to="." method="_set_brush" binds= [ "freehand" ]]
[connection signal="pressed" from="tools/brushPanel/brush/Rect" to="." method="_set_brush" binds= [ "rect" ]]
[connection signal="pressed" from="tools/brushPanel/brush/Fill" to="." method="_set_brush" binds= [ "fill" ]]
2020-09-22 08:06:17 +00:00
[connection signal="pressed" from="tools/objPanel/brush/add" to="." method="_set_obj_action" binds= [ "add" ]]
[connection signal="pressed" from="tools/objPanel/brush/edit" to="." method="_set_obj_action" binds= [ "edit" ]]
[connection signal="pressed" from="tools/objPanel/brush/remove" to="." method="_set_obj_action" binds= [ "remove" ]]