mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2026-01-07 16:30:06 +01:00
closes #263 - Rename dialog to dialogue - Give meaningful name to generic actors - Move combat screen content to turn_combat folder - Add new icon.png and .svg - Change combat UI to not emit a signal from its parent, instead pass parameters to a function and let the combat work on them there - Remove UI accessing deep layers on the hierarchy (get_parent().get_node("../etc/etc../etc...") - Fix defend() stacking, making the player invulnerable, now evey turn the Health.armor resets to a base_armor value - Remove useless Inventory button (maybe added again in the future when an inventory is added to the demo)
109 lines
2.3 KiB
Plaintext
109 lines
2.3 KiB
Plaintext
[gd_scene load_steps=3 format=2]
|
|
|
|
[ext_resource path="res://theme/theme.tres" type="Theme" id=1]
|
|
[ext_resource path="res://dialogue/interface/Interface.gd" type="Script" id=2]
|
|
|
|
|
|
[node name="Dialogue" type="Panel"]
|
|
|
|
anchor_left = 0.0
|
|
anchor_top = 0.0
|
|
anchor_right = 0.0
|
|
anchor_bottom = 0.0
|
|
margin_top = 544.0
|
|
margin_right = 1280.0
|
|
margin_bottom = 720.0
|
|
rect_pivot_offset = Vector2( 0, 0 )
|
|
rect_clip_content = false
|
|
mouse_filter = 0
|
|
mouse_default_cursor_shape = 0
|
|
size_flags_horizontal = 1
|
|
size_flags_vertical = 1
|
|
theme = ExtResource( 1 )
|
|
script = ExtResource( 2 )
|
|
|
|
[node name="Name" type="RichTextLabel" parent="." index="0"]
|
|
|
|
anchor_left = 0.0
|
|
anchor_top = 0.0
|
|
anchor_right = 0.0
|
|
anchor_bottom = 0.0
|
|
margin_left = 40.0
|
|
margin_top = 16.0
|
|
margin_right = 1072.0
|
|
margin_bottom = 56.0
|
|
rect_pivot_offset = Vector2( 0, 0 )
|
|
rect_clip_content = true
|
|
mouse_filter = 0
|
|
mouse_default_cursor_shape = 0
|
|
size_flags_horizontal = 1
|
|
size_flags_vertical = 1
|
|
bbcode_enabled = false
|
|
bbcode_text = ""
|
|
visible_characters = -1
|
|
percent_visible = 1.0
|
|
meta_underlined = true
|
|
tab_size = 4
|
|
text = "Name"
|
|
scroll_active = false
|
|
scroll_following = false
|
|
selection_enabled = false
|
|
override_selected_font_color = false
|
|
|
|
[node name="Text" type="RichTextLabel" parent="." index="1"]
|
|
|
|
anchor_left = 0.0
|
|
anchor_top = 0.0
|
|
anchor_right = 0.0
|
|
anchor_bottom = 0.0
|
|
margin_left = 40.0
|
|
margin_top = 64.0
|
|
margin_right = 1064.0
|
|
margin_bottom = 152.0
|
|
rect_pivot_offset = Vector2( 0, 0 )
|
|
rect_clip_content = true
|
|
mouse_filter = 0
|
|
mouse_default_cursor_shape = 0
|
|
size_flags_horizontal = 1
|
|
size_flags_vertical = 1
|
|
bbcode_enabled = false
|
|
bbcode_text = ""
|
|
visible_characters = -1
|
|
percent_visible = 1.0
|
|
meta_underlined = true
|
|
tab_size = 4
|
|
text = "Dialogue Text"
|
|
scroll_active = true
|
|
scroll_following = false
|
|
selection_enabled = false
|
|
override_selected_font_color = false
|
|
|
|
[node name="Button" type="Button" parent="." index="2"]
|
|
|
|
anchor_left = 0.0
|
|
anchor_top = 0.0
|
|
anchor_right = 0.0
|
|
anchor_bottom = 0.0
|
|
margin_left = 1104.0
|
|
margin_top = 32.0
|
|
margin_right = 1264.0
|
|
margin_bottom = 151.0
|
|
rect_pivot_offset = Vector2( 0, 0 )
|
|
rect_clip_content = false
|
|
focus_mode = 2
|
|
mouse_filter = 0
|
|
mouse_default_cursor_shape = 0
|
|
size_flags_horizontal = 1
|
|
size_flags_vertical = 1
|
|
toggle_mode = false
|
|
enabled_focus_mode = 2
|
|
shortcut = null
|
|
group = null
|
|
text = "Next"
|
|
flat = false
|
|
align = 1
|
|
|
|
[connection signal="button_up" from="Button" to="." method="_on_Button_button_up"]
|
|
|
|
|