One_Eleven_Android/scenes/Map.tscn
2024-11-10 17:40:59 +03:00

545 lines
18 KiB
Text

[gd_scene load_steps=60 format=2]
[ext_resource path="res://scripts/Map.gd" type="Script" id=1]
[ext_resource path="res://resources/graphics/GUI/Map/Inside/disabled/exit.webp" type="Texture" id=2]
[ext_resource path="res://resources/effects/blur.gdshader" type="Shader" id=3]
[ext_resource path="res://resources/graphics/GUI/Map/Inside/disabled/garage.webp" type="Texture" id=4]
[ext_resource path="res://resources/graphics/GUI/Map/man2.webp" type="Texture" id=5]
[ext_resource path="res://resources/graphics/GUI/Map/Outside/karta.webp" type="Texture" id=6]
[ext_resource path="res://resources/graphics/GUI/Map/Outside/ravine_disabled.webp" type="Texture" id=7]
[ext_resource path="res://resources/graphics/GUI/Map/Outside/front_door_disabled.webp" type="Texture" id=8]
[ext_resource path="res://resources/graphics/GUI/Map/Outside/front_door.webp" type="Texture" id=9]
[ext_resource path="res://resources/graphics/GUI/Map/Outside/ravine.webp" type="Texture" id=10]
[ext_resource path="res://resources/graphics/GUI/Map/Outside/smoking_area.webp" type="Texture" id=11]
[ext_resource path="res://resources/graphics/GUI/Map/Outside/smoking_area_disabled.webp" type="Texture" id=12]
[ext_resource path="res://resources/graphics/GUI/Map/Outside/restaurants.webp" type="Texture" id=13]
[ext_resource path="res://resources/graphics/GUI/Map/Outside/restaurants_disabled.webp" type="Texture" id=14]
[ext_resource path="res://resources/graphics/GUI/Map/Outside/lighthouse.webp" type="Texture" id=15]
[ext_resource path="res://resources/graphics/GUI/Map/Outside/lighthouse_disabled.webp" type="Texture" id=16]
[ext_resource path="res://resources/graphics/GUI/Map/Outside/sarai.webp" type="Texture" id=17]
[ext_resource path="res://resources/graphics/GUI/Map/Outside/sarai_disabled.webp" type="Texture" id=18]
[ext_resource path="res://resources/graphics/GUI/Map/Outside/parking.webp" type="Texture" id=19]
[ext_resource path="res://resources/graphics/GUI/Map/Outside/garage_disabled.webp" type="Texture" id=20]
[ext_resource path="res://resources/graphics/GUI/Map/Outside/garage.webp" type="Texture" id=21]
[ext_resource path="res://resources/graphics/GUI/Map/Outside/dock_pier.webp" type="Texture" id=22]
[ext_resource path="res://resources/graphics/GUI/Map/Outside/dock_pier_disabled.webp" type="Texture" id=23]
[ext_resource path="res://resources/graphics/GUI/Map/Inside/disabled/basement.webp" type="Texture" id=25]
[ext_resource path="res://resources/graphics/GUI/Map/Inside/active/3rdFloor_active.webp" type="Texture" id=26]
[ext_resource path="res://resources/graphics/GUI/Map/Inside/active/garage_active.webp" type="Texture" id=27]
[ext_resource path="res://resources/graphics/GUI/Map/Inside/active/room4_active.webp" type="Texture" id=28]
[ext_resource path="res://resources/graphics/GUI/Map/Inside/disabled/room3.webp" type="Texture" id=29]
[ext_resource path="res://resources/graphics/GUI/Map/Inside/active/office_active.webp" type="Texture" id=30]
[ext_resource path="res://resources/graphics/GUI/Map/Inside/active/kitchen_active.webp" type="Texture" id=31]
[ext_resource path="res://resources/graphics/GUI/Map/Inside/disabled/rest.webp" type="Texture" id=32]
[ext_resource path="res://resources/graphics/GUI/Map/Inside/active/smoking_active.webp" type="Texture" id=33]
[ext_resource path="res://resources/graphics/GUI/Map/Inside/map.webp" type="Texture" id=34]
[ext_resource path="res://resources/graphics/GUI/Map/Inside/disabled/kitchen.webp" type="Texture" id=35]
[ext_resource path="res://resources/graphics/GUI/Map/Inside/disabled/room5.webp" type="Texture" id=36]
[ext_resource path="res://resources/graphics/GUI/Map/Inside/active/room3_active.webp" type="Texture" id=37]
[ext_resource path="res://resources/graphics/GUI/Map/Inside/disabled/room2.webp" type="Texture" id=38]
[ext_resource path="res://resources/graphics/GUI/Map/Inside/disabled/smoking.webp" type="Texture" id=39]
[ext_resource path="res://resources/graphics/GUI/Map/Inside/disabled/room1.webp" type="Texture" id=40]
[ext_resource path="res://resources/graphics/GUI/Map/Inside/disabled/room4.webp" type="Texture" id=41]
[ext_resource path="res://resources/graphics/GUI/Map/Inside/active/room5_active.webp" type="Texture" id=42]
[ext_resource path="res://resources/graphics/GUI/Map/Inside/active/2ndFloor_active.webp" type="Texture" id=43]
[ext_resource path="res://resources/graphics/GUI/Map/Inside/disabled/office.webp" type="Texture" id=44]
[ext_resource path="res://resources/graphics/GUI/Map/Inside/disabled/2ndFloor.webp" type="Texture" id=45]
[ext_resource path="res://resources/graphics/GUI/Map/Inside/disabled/3rdFloor.webp" type="Texture" id=46]
[ext_resource path="res://resources/graphics/GUI/Map/Inside/active/exit_active.webp" type="Texture" id=47]
[ext_resource path="res://resources/graphics/GUI/Map/Inside/active/basement_active.webp" type="Texture" id=48]
[ext_resource path="res://resources/graphics/GUI/Map/Inside/active/rest_active.webp" type="Texture" id=49]
[ext_resource path="res://resources/graphics/GUI/Map/Inside/active/room1_active.webp" type="Texture" id=50]
[ext_resource path="res://resources/graphics/GUI/Map/Inside/active/room2_active.webp" type="Texture" id=51]
[ext_resource path="res://resources/fonts/OneEleven.ttf" type="DynamicFontData" id=52]
[ext_resource path="res://resources/Themes/EmptyFocusTheme.tres" type="StyleBox" id=53]
[sub_resource type="ShaderMaterial" id=3]
shader = ExtResource( 3 )
shader_param/blur_amount = 2.0
[sub_resource type="DynamicFont" id=6]
size = 100
font_data = ExtResource( 52 )
[sub_resource type="DynamicFont" id=8]
size = 150
font_data = ExtResource( 52 )
[sub_resource type="DynamicFont" id=7]
size = 75
font_data = ExtResource( 52 )
[sub_resource type="DynamicFont" id=9]
size = 150
font_data = ExtResource( 52 )
[sub_resource type="DynamicFont" id=5]
size = 59
font_data = ExtResource( 52 )
[sub_resource type="DynamicFont" id=4]
size = 35
outline_size = 2
outline_color = Color( 0, 0, 0, 1 )
font_data = ExtResource( 52 )
[node name="Map" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
margin_top = 1.0
margin_bottom = 1.0
script = ExtResource( 1 )
[node name="Blur" type="Polygon2D" parent="."]
material = SubResource( 3 )
z_index = 1
polygon = PoolVector2Array( 0, 0, 0, 1080, 0, 1080, 200, 1080, 200, 1020, 268, 1020, 268, 1080, 1205, 1080, 1205, 1020, 1650, 1020, 1650, 1080, 1920, 1080, 1920, 0 )
[node name="CloseButton" type="Button" parent="."]
margin_right = 1920.0
margin_bottom = 1080.0
flat = true
[node name="Map" type="Node2D" parent="."]
z_index = 1
[node name="Inside" type="Control" parent="Map"]
margin_right = 40.0
margin_bottom = 40.0
[node name="MapInside" type="TextureRect" parent="Map/Inside"]
margin_left = 192.0
margin_top = 108.0
margin_right = 4032.0
margin_bottom = 2268.0
rect_scale = Vector2( 0.4, 0.4 )
texture = ExtResource( 34 )
[node name="Places" type="Control" parent="Map/Inside"]
margin_right = 40.0
margin_bottom = 40.0
[node name="Gl-Rest" type="TextureButton" parent="Map/Inside/Places"]
margin_left = 416.0
margin_top = 259.0
margin_right = 1598.0
margin_bottom = 1679.0
rect_scale = Vector2( 0.4, 0.4 )
disabled = true
texture_normal = ExtResource( 49 )
texture_disabled = ExtResource( 32 )
[node name="Label" type="Label" parent="Map/Inside/Places/Gl-Rest"]
margin_left = 320.0
margin_top = 670.0
margin_right = 873.0
margin_bottom = 792.0
custom_colors/font_color = Color( 0, 0, 0, 1 )
custom_fonts/font = SubResource( 6 )
text = "Общий зал"
align = 1
valign = 1
[node name="Exit" type="TextureButton" parent="Map/Inside/Places"]
margin_left = 535.0
margin_top = 140.0
margin_right = 1095.0
margin_bottom = 378.0
rect_scale = Vector2( 0.4, 0.4 )
disabled = true
texture_normal = ExtResource( 47 )
texture_disabled = ExtResource( 2 )
[node name="Label" type="Label" parent="Map/Inside/Places/Exit"]
margin_top = 87.5
margin_right = 553.0
margin_bottom = 273.5
custom_colors/font_color = Color( 0, 0, 0, 1 )
custom_fonts/font = SubResource( 8 )
text = "Улица"
align = 1
valign = 1
[node name="Garage" type="TextureButton" parent="Map/Inside/Places"]
margin_left = 215.0
margin_top = 411.0
margin_right = 753.0
margin_bottom = 1011.0
rect_scale = Vector2( 0.4, 0.4 )
disabled = true
texture_normal = ExtResource( 27 )
texture_disabled = ExtResource( 4 )
[node name="Label" type="Label" parent="Map/Inside/Places/Garage"]
margin_left = -7.5
margin_top = 232.5
margin_right = 545.5
margin_bottom = 354.5
custom_colors/font_color = Color( 0, 0, 0, 1 )
custom_fonts/font = SubResource( 6 )
text = "Гараж"
align = 1
valign = 1
[node name="Kitchen" type="TextureButton" parent="Map/Inside/Places"]
margin_left = 875.0
margin_top = 259.0
margin_right = 1487.0
margin_bottom = 920.0
rect_scale = Vector2( 0.4, 0.4 )
disabled = true
texture_normal = ExtResource( 31 )
texture_disabled = ExtResource( 35 )
[node name="Label" type="Label" parent="Map/Inside/Places/Kitchen"]
margin_left = 27.5
margin_top = 265.0
margin_right = 580.5
margin_bottom = 387.0
custom_colors/font_color = Color( 0, 0, 0, 1 )
custom_fonts/font = SubResource( 6 )
text = "Кухня"
align = 1
valign = 1
[node name="OfficeH" type="TextureButton" parent="Map/Inside/Places"]
margin_left = 1445.0
margin_top = 355.0
margin_right = 1902.0
margin_bottom = 775.0
rect_scale = Vector2( 0.4, 0.4 )
disabled = true
texture_normal = ExtResource( 30 )
texture_disabled = ExtResource( 44 )
[node name="Label" type="Label" parent="Map/Inside/Places/OfficeH"]
margin_left = 67.5
margin_top = 137.5
margin_right = 417.5
margin_bottom = 259.5
custom_colors/font_color = Color( 0, 0, 0, 1 )
custom_fonts/font = SubResource( 6 )
text = "Office"
align = 1
valign = 1
[node name="Basement" type="TextureButton" parent="Map/Inside/Places"]
margin_left = 874.0
margin_top = 588.0
margin_right = 1486.0
margin_bottom = 1184.0
rect_scale = Vector2( 0.4, 0.4 )
disabled = true
texture_normal = ExtResource( 48 )
texture_disabled = ExtResource( 25 )
[node name="Label" type="Label" parent="Map/Inside/Places/Basement"]
margin_left = 95.0
margin_top = 232.5
margin_right = 516.0
margin_bottom = 354.5
custom_colors/font_color = Color( 0, 0, 0, 1 )
custom_fonts/font = SubResource( 6 )
text = "Подвал"
align = 1
valign = 1
[node name="2ndFloor" type="TextureButton" parent="Map/Inside/Places"]
margin_left = 806.0
margin_top = 509.0
margin_right = 1555.0
margin_bottom = 744.0
rect_scale = Vector2( 0.4, 0.4 )
disabled = true
texture_normal = ExtResource( 43 )
texture_disabled = ExtResource( 45 )
[node name="3rdFloor" type="TextureButton" parent="Map/Inside/Places"]
margin_left = 1105.0
margin_top = 599.0
margin_right = 1301.0
margin_bottom = 995.0
rect_scale = Vector2( 0.4, 0.4 )
disabled = true
texture_normal = ExtResource( 26 )
texture_disabled = ExtResource( 46 )
[node name="Room1" type="TextureButton" parent="Map/Inside/Places"]
margin_left = 1105.0
margin_top = 355.0
margin_right = 1564.0
margin_bottom = 775.0
rect_scale = Vector2( 0.4, 0.4 )
disabled = true
texture_normal = ExtResource( 50 )
texture_disabled = ExtResource( 40 )
[node name="Label" type="Label" parent="Map/Inside/Places/Room1"]
margin_left = 52.5
margin_top = 142.5
margin_right = 412.5
margin_bottom = 264.5
custom_colors/font_color = Color( 0, 0, 0, 1 )
custom_fonts/font = SubResource( 7 )
text = "Комната 1"
align = 1
valign = 1
[node name="Room2" type="TextureButton" parent="Map/Inside/Places"]
margin_left = 1274.0
margin_top = 355.0
margin_right = 1732.0
margin_bottom = 775.0
rect_scale = Vector2( 0.4, 0.4 )
disabled = true
texture_normal = ExtResource( 51 )
texture_disabled = ExtResource( 38 )
[node name="Label" type="Label" parent="Map/Inside/Places/Room2"]
margin_left = 52.5
margin_top = 142.5
margin_right = 412.5
margin_bottom = 264.5
custom_colors/font_color = Color( 0, 0, 0, 1 )
custom_fonts/font = SubResource( 7 )
text = "Room 2"
align = 1
valign = 1
[node name="Room3" type="TextureButton" parent="Map/Inside/Places"]
margin_left = 1169.0
margin_top = 588.0
margin_right = 1627.0
margin_bottom = 1008.0
rect_scale = Vector2( 0.4, 0.4 )
disabled = true
texture_normal = ExtResource( 37 )
texture_disabled = ExtResource( 29 )
[node name="Label" type="Label" parent="Map/Inside/Places/Room3"]
margin_left = 50.0
margin_top = 162.5
margin_right = 410.0
margin_bottom = 284.5
custom_colors/font_color = Color( 0, 0, 0, 1 )
custom_fonts/font = SubResource( 7 )
text = "Room 3"
align = 1
valign = 1
[node name="Room4" type="TextureButton" parent="Map/Inside/Places"]
margin_left = 1338.0
margin_top = 588.0
margin_right = 1797.0
margin_bottom = 1008.0
rect_scale = Vector2( 0.4, 0.4 )
disabled = true
texture_normal = ExtResource( 28 )
texture_disabled = ExtResource( 41 )
[node name="Label" type="Label" parent="Map/Inside/Places/Room4"]
margin_left = 50.0
margin_top = 162.5
margin_right = 410.0
margin_bottom = 284.5
custom_colors/font_color = Color( 0, 0, 0, 1 )
custom_fonts/font = SubResource( 7 )
text = "Room 4"
align = 1
valign = 1
[node name="Room5" type="TextureButton" parent="Map/Inside/Places"]
margin_left = 1507.0
margin_top = 588.0
margin_right = 1966.0
margin_bottom = 1008.0
rect_scale = Vector2( 0.4, 0.4 )
disabled = true
texture_normal = ExtResource( 42 )
texture_disabled = ExtResource( 36 )
[node name="Label" type="Label" parent="Map/Inside/Places/Room5"]
margin_left = 52.5
margin_top = 162.5
margin_right = 412.5
margin_bottom = 284.5
custom_colors/font_color = Color( 0, 0, 0, 1 )
custom_fonts/font = SubResource( 7 )
text = "Room 5"
align = 1
valign = 1
[node name="Smoking" type="TextureButton" parent="Map/Inside/Places"]
margin_left = 495.0
margin_top = 840.0
margin_right = 1242.0
margin_bottom = 1063.0
rect_scale = Vector2( 0.4, 0.4 )
disabled = true
texture_normal = ExtResource( 33 )
texture_disabled = ExtResource( 39 )
[node name="Label" type="Label" parent="Map/Inside/Places/Smoking"]
margin_left = -7.5
margin_top = 20.0
margin_right = 742.5
margin_bottom = 206.0
custom_colors/font_color = Color( 0, 0, 0, 1 )
custom_fonts/font = SubResource( 9 )
text = "Курилка"
align = 1
valign = 1
[node name="Second" type="Label" parent="Map/Inside/Places"]
margin_left = 1184.0
margin_top = 282.0
margin_right = 1528.0
margin_bottom = 355.0
custom_colors/font_color = Color( 0, 0, 0, 1 )
custom_fonts/font = SubResource( 5 )
text = "Второй этаж"
align = 1
valign = 1
[node name="Third" type="Label" parent="Map/Inside/Places"]
margin_left = 1177.0
margin_top = 843.0
margin_right = 1521.0
margin_bottom = 916.0
custom_colors/font_color = Color( 0, 0, 0, 1 )
custom_fonts/font = SubResource( 5 )
text = "Третий этаж"
align = 1
valign = 1
[node name="Outside" type="Control" parent="Map"]
visible = false
margin_right = 40.0
margin_bottom = 40.0
[node name="MapOutside" type="TextureRect" parent="Map/Outside"]
margin_left = 192.0
margin_top = 108.0
margin_right = 4032.0
margin_bottom = 2268.0
rect_scale = Vector2( 0.4, 0.4 )
texture = ExtResource( 6 )
[node name="Places" type="Control" parent="Map/Outside"]
margin_right = 40.0
margin_bottom = 40.0
[node name="Front" type="TextureButton" parent="Map/Outside/Places"]
margin_left = 1190.0
margin_top = 529.0
margin_right = 1587.0
margin_bottom = 700.0
rect_rotation = -5.9
rect_scale = Vector2( 0.4, 0.4 )
disabled = true
texture_normal = ExtResource( 9 )
texture_disabled = ExtResource( 8 )
[node name="Ravine" type="TextureButton" parent="Map/Outside/Places"]
margin_left = 1490.0
margin_top = 444.0
margin_right = 1712.0
margin_bottom = 710.0
rect_scale = Vector2( 0.4, 0.4 )
texture_normal = ExtResource( 10 )
texture_disabled = ExtResource( 7 )
[node name="Smoking" type="TextureButton" parent="Map/Outside/Places"]
margin_left = 1148.0
margin_top = 369.0
margin_right = 1658.0
margin_bottom = 683.0
rect_rotation = -5.9
rect_scale = Vector2( 0.4, 0.4 )
texture_normal = ExtResource( 11 )
texture_disabled = ExtResource( 12 )
[node name="Restaurant" type="TextureButton" parent="Map/Outside/Places"]
margin_left = 1182.0
margin_top = 450.0
margin_right = 1485.0
margin_bottom = 651.0
rect_rotation = -5.9
rect_scale = Vector2( 0.4, 0.4 )
texture_normal = ExtResource( 13 )
texture_disabled = ExtResource( 14 )
[node name="LightHouse" type="TextureButton" parent="Map/Outside/Places"]
margin_left = 1558.0
margin_top = 182.0
margin_right = 1821.0
margin_bottom = 450.0
rect_scale = Vector2( 0.4, 0.4 )
texture_normal = ExtResource( 15 )
texture_disabled = ExtResource( 16 )
[node name="Sarai" type="TextureButton" parent="Map/Outside/Places"]
margin_left = 1242.0
margin_top = 770.0
margin_right = 1434.0
margin_bottom = 957.0
rect_scale = Vector2( 0.4, 0.4 )
texture_normal = ExtResource( 17 )
texture_disabled = ExtResource( 18 )
[node name="Parking" type="TextureButton" parent="Map/Outside/Places"]
margin_left = 416.0
margin_top = 671.0
margin_right = 813.0
margin_bottom = 1002.0
rect_scale = Vector2( 0.4, 0.4 )
texture_normal = ExtResource( 19 )
[node name="Garage" type="TextureButton" parent="Map/Outside/Places"]
margin_left = 1115.0
margin_top = 456.0
margin_right = 1288.0
margin_bottom = 804.0
rect_rotation = -5.9
rect_scale = Vector2( 0.4, 0.4 )
texture_normal = ExtResource( 21 )
texture_disabled = ExtResource( 20 )
[node name="Pier" type="TextureButton" parent="Map/Outside/Places"]
margin_left = 1326.0
margin_top = 813.0
margin_right = 1518.0
margin_bottom = 1169.0
rect_scale = Vector2( 0.4, 0.4 )
texture_normal = ExtResource( 22 )
texture_disabled = ExtResource( 23 )
[node name="Bridge" type="TextureButton" parent="Map/Outside/Places"]
margin_left = 302.0
margin_top = 768.0
margin_right = 559.0
margin_bottom = 998.0
rect_scale = Vector2( 0.4, 0.4 )
[node name="PlayerPosition" type="TextureRect" parent="Map"]
self_modulate = Color( 1, 0, 0, 1 )
margin_right = 400.0
margin_bottom = 550.0
rect_scale = Vector2( 0.15, 0.15 )
mouse_filter = 0
texture = ExtResource( 5 )
[node name="SwitchButton" type="Button" parent="Map"]
margin_left = 1377.0
margin_top = 42.0
margin_right = 1612.0
margin_bottom = 91.0
rect_scale = Vector2( 1.5, 1.5 )
custom_fonts/font = SubResource( 4 )
custom_styles/focus = ExtResource( 53 )
text = "SWITCH MAP"
flat = true
align = 2
[connection signal="button_up" from="CloseButton" to="." method="_on_CloseButton_button_up"]
[connection signal="pressed" from="Map/SwitchButton" to="." method="_on_SwitchButton_pressed"]