polished
This commit is contained in:
		
							
								
								
									
										201
									
								
								scenes/menus/util/dialog.tscn
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										201
									
								
								scenes/menus/util/dialog.tscn
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,201 @@ | ||||
| [gd_scene load_steps=11 format=3 uid="uid://c5wjwnlubyich"] | ||||
|  | ||||
| [ext_resource type="PackedScene" uid="uid://ckvgyvclnwggo" path="res://addons/dialogue_manager/dialogue_label.tscn" id="1_ms3k6"] | ||||
| [ext_resource type="Script" uid="uid://cky2m61jgkbsi" path="res://scripts/menus/util/dialog.gd" id="1_o34ae"] | ||||
| [ext_resource type="Texture2D" uid="uid://dcnjviy00bral" path="res://assets/textures/ui.png" id="2_8mfvc"] | ||||
| [ext_resource type="Script" uid="uid://bb52rsfwhkxbn" path="res://addons/dialogue_manager/dialogue_responses_menu.gd" id="2_o34ae"] | ||||
|  | ||||
| [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_spyqn"] | ||||
| bg_color = Color(0, 0, 0, 1) | ||||
| border_width_left = 3 | ||||
| border_width_top = 3 | ||||
| border_width_right = 3 | ||||
| border_width_bottom = 3 | ||||
| border_color = Color(0.329412, 0.329412, 0.329412, 1) | ||||
| corner_radius_top_left = 5 | ||||
| corner_radius_top_right = 5 | ||||
| corner_radius_bottom_right = 5 | ||||
| corner_radius_bottom_left = 5 | ||||
|  | ||||
| [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_ri4m3"] | ||||
| bg_color = Color(0.121569, 0.121569, 0.121569, 1) | ||||
| border_width_left = 3 | ||||
| border_width_top = 3 | ||||
| border_width_right = 3 | ||||
| border_width_bottom = 3 | ||||
| border_color = Color(1, 1, 1, 1) | ||||
| corner_radius_top_left = 5 | ||||
| corner_radius_top_right = 5 | ||||
| corner_radius_bottom_right = 5 | ||||
| corner_radius_bottom_left = 5 | ||||
|  | ||||
| [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_e0njw"] | ||||
| bg_color = Color(0, 0, 0, 1) | ||||
| border_width_left = 3 | ||||
| border_width_top = 3 | ||||
| border_width_right = 3 | ||||
| border_width_bottom = 3 | ||||
| border_color = Color(0.6, 0.6, 0.6, 1) | ||||
| corner_radius_top_left = 5 | ||||
| corner_radius_top_right = 5 | ||||
| corner_radius_bottom_right = 5 | ||||
| corner_radius_bottom_left = 5 | ||||
|  | ||||
| [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_qkmqt"] | ||||
| bg_color = Color(0, 0, 0, 1) | ||||
| border_width_left = 3 | ||||
| border_width_top = 3 | ||||
| border_width_right = 3 | ||||
| border_width_bottom = 3 | ||||
| corner_radius_top_left = 5 | ||||
| corner_radius_top_right = 5 | ||||
| corner_radius_bottom_right = 5 | ||||
| corner_radius_bottom_left = 5 | ||||
|  | ||||
| [sub_resource type="Theme" id="Theme_8mfvc"] | ||||
| default_font_size = 20 | ||||
| Button/styles/disabled = SubResource("StyleBoxFlat_spyqn") | ||||
| Button/styles/focus = SubResource("StyleBoxFlat_ri4m3") | ||||
| Button/styles/hover = SubResource("StyleBoxFlat_e0njw") | ||||
| Button/styles/normal = SubResource("StyleBoxFlat_e0njw") | ||||
| MarginContainer/constants/margin_bottom = 15 | ||||
| MarginContainer/constants/margin_left = 30 | ||||
| MarginContainer/constants/margin_right = 30 | ||||
| MarginContainer/constants/margin_top = 15 | ||||
| PanelContainer/styles/panel = SubResource("StyleBoxFlat_qkmqt") | ||||
|  | ||||
| [sub_resource type="StyleBoxTexture" id="StyleBoxTexture_8mfvc"] | ||||
| texture = ExtResource("2_8mfvc") | ||||
| region_rect = Rect2(17, 17, 78, 30) | ||||
|  | ||||
| [node name="Dialogue" type="Control"] | ||||
| layout_mode = 3 | ||||
| anchors_preset = 15 | ||||
| anchor_right = 1.0 | ||||
| anchor_bottom = 1.0 | ||||
| grow_horizontal = 2 | ||||
| grow_vertical = 2 | ||||
| script = ExtResource("1_o34ae") | ||||
|  | ||||
| [node name="Balloon" type="Control" parent="."] | ||||
| unique_name_in_owner = true | ||||
| layout_mode = 1 | ||||
| anchors_preset = 15 | ||||
| anchor_right = 1.0 | ||||
| anchor_bottom = 1.0 | ||||
| offset_top = -2.0 | ||||
| grow_horizontal = 2 | ||||
| grow_vertical = 2 | ||||
| theme = SubResource("Theme_8mfvc") | ||||
|  | ||||
| [node name="MarginContainer" type="MarginContainer" parent="Balloon"] | ||||
| layout_mode = 1 | ||||
| anchors_preset = 12 | ||||
| anchor_top = 1.0 | ||||
| anchor_right = 1.0 | ||||
| anchor_bottom = 1.0 | ||||
| offset_top = -104.0 | ||||
| grow_horizontal = 2 | ||||
| grow_vertical = 0 | ||||
|  | ||||
| [node name="PanelContainer" type="PanelContainer" parent="Balloon/MarginContainer"] | ||||
| clip_children = 2 | ||||
| layout_mode = 2 | ||||
| mouse_filter = 1 | ||||
| theme_override_styles/panel = SubResource("StyleBoxTexture_8mfvc") | ||||
|  | ||||
| [node name="MarginContainer" type="MarginContainer" parent="Balloon/MarginContainer/PanelContainer"] | ||||
| layout_mode = 2 | ||||
| size_flags_vertical = 8 | ||||
|  | ||||
| [node name="VBoxContainer" type="VBoxContainer" parent="Balloon/MarginContainer/PanelContainer/MarginContainer"] | ||||
| layout_mode = 2 | ||||
|  | ||||
| [node name="CharacterLabel" type="RichTextLabel" parent="Balloon/MarginContainer/PanelContainer/MarginContainer/VBoxContainer"] | ||||
| unique_name_in_owner = true | ||||
| modulate = Color(1, 1, 1, 0.501961) | ||||
| layout_mode = 2 | ||||
| mouse_filter = 1 | ||||
| bbcode_enabled = true | ||||
| fit_content = true | ||||
| scroll_active = false | ||||
|  | ||||
| [node name="DialogueLabel" parent="Balloon/MarginContainer/PanelContainer/MarginContainer/VBoxContainer" instance=ExtResource("1_ms3k6")] | ||||
| unique_name_in_owner = true | ||||
| layout_mode = 2 | ||||
| size_flags_vertical = 3 | ||||
|  | ||||
| [node name="PanelContainer2" type="PanelContainer" parent="Balloon/MarginContainer"] | ||||
| clip_children = 2 | ||||
| layout_mode = 2 | ||||
| mouse_filter = 1 | ||||
| theme_override_styles/panel = SubResource("StyleBoxTexture_8mfvc") | ||||
|  | ||||
| [node name="MarginContainer" type="MarginContainer" parent="Balloon/MarginContainer/PanelContainer2"] | ||||
| layout_mode = 2 | ||||
| size_flags_vertical = 8 | ||||
|  | ||||
| [node name="VBoxContainer" type="VBoxContainer" parent="Balloon/MarginContainer/PanelContainer2/MarginContainer"] | ||||
| layout_mode = 2 | ||||
|  | ||||
| [node name="CharacterLabel" type="RichTextLabel" parent="Balloon/MarginContainer/PanelContainer2/MarginContainer/VBoxContainer"] | ||||
| modulate = Color(1, 1, 1, 0.501961) | ||||
| layout_mode = 2 | ||||
| mouse_filter = 1 | ||||
| bbcode_enabled = true | ||||
| fit_content = true | ||||
| scroll_active = false | ||||
|  | ||||
| [node name="DialogueLabel" parent="Balloon/MarginContainer/PanelContainer2/MarginContainer/VBoxContainer" instance=ExtResource("1_ms3k6")] | ||||
| layout_mode = 2 | ||||
| size_flags_vertical = 3 | ||||
|  | ||||
| [node name="PanelContainer3" type="PanelContainer" parent="Balloon/MarginContainer"] | ||||
| clip_children = 2 | ||||
| layout_mode = 2 | ||||
| mouse_filter = 1 | ||||
| theme_override_styles/panel = SubResource("StyleBoxTexture_8mfvc") | ||||
|  | ||||
| [node name="MarginContainer" type="MarginContainer" parent="Balloon/MarginContainer/PanelContainer3"] | ||||
| layout_mode = 2 | ||||
| size_flags_vertical = 8 | ||||
|  | ||||
| [node name="VBoxContainer" type="VBoxContainer" parent="Balloon/MarginContainer/PanelContainer3/MarginContainer"] | ||||
| layout_mode = 2 | ||||
|  | ||||
| [node name="CharacterLabel" type="RichTextLabel" parent="Balloon/MarginContainer/PanelContainer3/MarginContainer/VBoxContainer"] | ||||
| modulate = Color(1, 1, 1, 0.501961) | ||||
| layout_mode = 2 | ||||
| mouse_filter = 1 | ||||
| bbcode_enabled = true | ||||
| fit_content = true | ||||
| scroll_active = false | ||||
|  | ||||
| [node name="DialogueLabel" parent="Balloon/MarginContainer/PanelContainer3/MarginContainer/VBoxContainer" instance=ExtResource("1_ms3k6")] | ||||
| layout_mode = 2 | ||||
| size_flags_vertical = 3 | ||||
|  | ||||
| [node name="ResponsesMenu" type="VBoxContainer" parent="Balloon" node_paths=PackedStringArray("response_template")] | ||||
| unique_name_in_owner = true | ||||
| visible = false | ||||
| layout_mode = 1 | ||||
| anchors_preset = 8 | ||||
| anchor_left = 0.5 | ||||
| anchor_top = 0.5 | ||||
| anchor_right = 0.5 | ||||
| anchor_bottom = 0.5 | ||||
| offset_left = -290.5 | ||||
| offset_top = -35.0 | ||||
| offset_right = 290.5 | ||||
| offset_bottom = 35.0 | ||||
| grow_horizontal = 2 | ||||
| grow_vertical = 2 | ||||
| size_flags_vertical = 8 | ||||
| theme_override_constants/separation = 2 | ||||
| alignment = 1 | ||||
| script = ExtResource("2_o34ae") | ||||
| response_template = NodePath("ResponseExample") | ||||
|  | ||||
| [node name="ResponseExample" type="Button" parent="Balloon/ResponsesMenu"] | ||||
| layout_mode = 2 | ||||
| text = "Response example" | ||||
		Reference in New Issue
	
	Block a user