172 lines
5.1 KiB
Text
172 lines
5.1 KiB
Text
[gd_scene load_steps=8 format=3]
|
|
|
|
[ext_resource type="Script" path="res://ui/message_bottle_reader.gd" id="1_reader"]
|
|
[ext_resource type="Theme" path="res://ui/game_theme.tres" id="2_theme"]
|
|
[ext_resource type="Texture2D" path="res://messages/assets/parchment.png" id="3_parchment"]
|
|
|
|
[sub_resource type="StyleBoxFlat" id="StyleBox_parchment"]
|
|
content_margin_left = 0.0
|
|
content_margin_top = 0.0
|
|
content_margin_right = 0.0
|
|
content_margin_bottom = 0.0
|
|
bg_color = Color(0.88, 0.76, 0.49, 1)
|
|
border_width_left = 3
|
|
border_width_top = 3
|
|
border_width_right = 3
|
|
border_width_bottom = 3
|
|
border_color = Color(0.29, 0.19, 0.09, 1)
|
|
corner_radius_top_left = 18
|
|
corner_radius_top_right = 18
|
|
corner_radius_bottom_right = 18
|
|
corner_radius_bottom_left = 18
|
|
|
|
[sub_resource type="StyleBoxFlat" id="StyleBox_button_normal"]
|
|
content_margin_left = 22.0
|
|
content_margin_top = 8.0
|
|
content_margin_right = 22.0
|
|
content_margin_bottom = 8.0
|
|
bg_color = Color(0.29, 0.19, 0.09, 1)
|
|
corner_radius_top_left = 8
|
|
corner_radius_top_right = 8
|
|
corner_radius_bottom_right = 8
|
|
corner_radius_bottom_left = 8
|
|
|
|
[sub_resource type="StyleBoxFlat" id="StyleBox_button_hover"]
|
|
content_margin_left = 22.0
|
|
content_margin_top = 8.0
|
|
content_margin_right = 22.0
|
|
content_margin_bottom = 8.0
|
|
bg_color = Color(0.42, 0.28, 0.12, 1)
|
|
border_width_left = 2
|
|
border_width_top = 2
|
|
border_width_right = 2
|
|
border_width_bottom = 2
|
|
border_color = Color(0.98, 0.9, 0.66, 1)
|
|
corner_radius_top_left = 8
|
|
corner_radius_top_right = 8
|
|
corner_radius_bottom_right = 8
|
|
corner_radius_bottom_left = 8
|
|
|
|
[sub_resource type="StyleBoxFlat" id="StyleBox_button_pressed"]
|
|
content_margin_left = 22.0
|
|
content_margin_top = 8.0
|
|
content_margin_right = 22.0
|
|
content_margin_bottom = 8.0
|
|
bg_color = Color(0.2, 0.13, 0.06, 1)
|
|
corner_radius_top_left = 8
|
|
corner_radius_top_right = 8
|
|
corner_radius_bottom_right = 8
|
|
corner_radius_bottom_left = 8
|
|
|
|
[node name="MessageBottleReader" type="Control"]
|
|
visible = false
|
|
process_mode = 3
|
|
z_index = 250
|
|
layout_mode = 3
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
mouse_filter = 0
|
|
theme = ExtResource("2_theme")
|
|
script = ExtResource("1_reader")
|
|
parchment_texture = ExtResource("3_parchment")
|
|
|
|
[node name="Center" type="CenterContainer" parent="."]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
mouse_filter = 2
|
|
|
|
[node name="ParchmentSurface" type="Control" parent="Center"]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(680, 420)
|
|
layout_mode = 2
|
|
mouse_filter = 1
|
|
|
|
[node name="FallbackPanel" type="PanelContainer" parent="Center/ParchmentSurface"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
mouse_filter = 2
|
|
theme_override_styles/panel = SubResource("StyleBox_parchment")
|
|
|
|
[node name="ParchmentArt" type="TextureRect" parent="Center/ParchmentSurface"]
|
|
unique_name_in_owner = true
|
|
visible = false
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
mouse_filter = 2
|
|
texture_filter = 1
|
|
expand_mode = 1
|
|
stretch_mode = 0
|
|
|
|
[node name="ContentMargin" type="MarginContainer" parent="Center/ParchmentSurface"]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
mouse_filter = 2
|
|
theme_override_constants/margin_left = 70
|
|
theme_override_constants/margin_top = 44
|
|
theme_override_constants/margin_right = 70
|
|
theme_override_constants/margin_bottom = 44
|
|
|
|
[node name="Layout" type="VBoxContainer" parent="Center/ParchmentSurface/ContentMargin"]
|
|
layout_mode = 2
|
|
mouse_filter = 2
|
|
theme_override_constants/separation = 12
|
|
|
|
[node name="MessageScroll" type="ScrollContainer" parent="Center/ParchmentSurface/ContentMargin/Layout"]
|
|
layout_mode = 2
|
|
size_flags_vertical = 3
|
|
mouse_filter = 0
|
|
horizontal_scroll_mode = 0
|
|
|
|
[node name="MessageLabel" type="Label" parent="Center/ParchmentSurface/ContentMargin/Layout/MessageScroll"]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(0, 140)
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
size_flags_vertical = 3
|
|
mouse_filter = 2
|
|
theme_override_colors/font_color = Color(0.22, 0.13, 0.055, 1)
|
|
theme_override_font_sizes/font_size = 24
|
|
text = "it's as simple as pushing squares"
|
|
horizontal_alignment = 1
|
|
vertical_alignment = 1
|
|
autowrap_mode = 3
|
|
|
|
[node name="ButtonCenter" type="CenterContainer" parent="Center/ParchmentSurface/ContentMargin/Layout"]
|
|
layout_mode = 2
|
|
mouse_filter = 2
|
|
|
|
[node name="CloseButton" type="Button" parent="Center/ParchmentSurface/ContentMargin/Layout/ButtonCenter"]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(120, 44)
|
|
layout_mode = 2
|
|
focus_mode = 2
|
|
mouse_default_cursor_shape = 2
|
|
theme_override_colors/font_color = Color(0.98, 0.9, 0.66, 1)
|
|
theme_override_colors/font_hover_color = Color(1, 0.95, 0.8, 1)
|
|
theme_override_colors/font_pressed_color = Color(1, 0.95, 0.8, 1)
|
|
theme_override_font_sizes/font_size = 22
|
|
theme_override_styles/normal = SubResource("StyleBox_button_normal")
|
|
theme_override_styles/hover = SubResource("StyleBox_button_hover")
|
|
theme_override_styles/focus = SubResource("StyleBox_button_hover")
|
|
theme_override_styles/pressed = SubResource("StyleBox_button_pressed")
|
|
text = "close"
|