test-client-godot/scenes/GUI/HUD/HUD.tscn

548 lines
14 KiB
Text
Raw Normal View History

2018-08-18 08:22:19 +00:00
[gd_scene load_steps=11 format=2]
2018-07-25 07:36:19 +00:00
[ext_resource path="res://scenes/GUI/HUD/HUD.gd" type="Script" id=1]
[ext_resource path="res://scenes/GUI/HUD/Windows.gd" type="Script" id=2]
2018-08-18 08:22:19 +00:00
[ext_resource path="res://addons/ui_window/ui_window.gd" type="Script" id=3]
[ext_resource path="res://addons/ui_window/icon.png" type="Texture" id=4]
[ext_resource path="res://scenes/GUI/HUD/chat_lines.gd" type="Script" id=5]
[ext_resource path="res://scenes/GUI/HUD/rich_text_label.gd" type="Script" id=6]
[ext_resource path="res://scenes/GUI/MusicControls/MusicControls.tscn" type="PackedScene" id=7]
[ext_resource path="res://scenes/GUI/HUD/oubli.gd" type="Script" id=8]
[ext_resource path="res://scenes/GUI/HUD/trauma.gd" type="Script" id=9]
[ext_resource path="res://scenes/GUI/HUD/douleur.gd" type="Script" id=10]
[node name="HUD" type="MarginContainer" index="0"]
2018-07-25 07:36:19 +00:00
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 1.0
anchor_bottom = 1.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
2018-07-30 14:00:37 +00:00
mouse_filter = 1
2018-07-25 07:36:19 +00:00
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 1
custom_constants/margin_right = 0
custom_constants/margin_top = 0
custom_constants/margin_left = 0
custom_constants/margin_bottom = 0
script = ExtResource( 1 )
_sections_unfolded = [ "Margin", "Mouse", "Rect", "Size Flags", "Theme", "Visibility", "custom_constants" ]
[node name="overlay_oubli" type="Panel" parent="." index="0"]
modulate = Color( 0, 0, 0, 0 )
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_right = 1024.0
margin_bottom = 600.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
2018-07-29 16:00:08 +00:00
mouse_filter = 2
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 1
2018-07-29 16:00:08 +00:00
_sections_unfolded = [ "Mouse", "Visibility" ]
[node name="overlay_douleur" type="Panel" parent="." index="1"]
2018-07-25 07:36:19 +00:00
modulate = Color( 1, 0, 0, 0 )
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_right = 1024.0
margin_bottom = 600.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
2018-07-29 16:00:08 +00:00
mouse_filter = 2
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 1
2018-07-29 16:00:08 +00:00
_sections_unfolded = [ "Mouse", "Visibility" ]
[node name="Windows" type="ReferenceRect" parent="." index="2"]
2018-07-25 07:36:19 +00:00
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_right = 1024.0
margin_bottom = 600.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
2018-07-27 14:13:54 +00:00
mouse_filter = 1
2018-07-25 07:36:19 +00:00
mouse_default_cursor_shape = 0
size_flags_horizontal = 3
size_flags_vertical = 3
script = ExtResource( 2 )
_sections_unfolded = [ "Mouse", "Size Flags", "Theme", "Visibility", "custom_styles" ]
2018-07-25 07:36:19 +00:00
2018-08-18 08:22:19 +00:00
[node name="ui_window" type="MarginContainer" parent="Windows" index="0"]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_left = 759.0
margin_top = 89.0
margin_right = 997.0
margin_bottom = 228.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
2018-08-18 08:22:19 +00:00
script = ExtResource( 3 )
_sections_unfolded = [ "Theme", "Visibility", "custom_constants" ]
__meta__ = {
2018-08-18 08:22:19 +00:00
"_editor_icon": ExtResource( 4 )
}
is_movable = true
is_resizable = true
is_borderless = false
title = "Test window plugin"
background_color = Color( 0.808594, 0.808594, 0.808594, 1 )
2018-08-18 08:22:19 +00:00
background_texture = "res://assets/GUI/images/bg2.jpg"
2018-08-18 08:22:19 +00:00
[node name="chat" type="MarginContainer" parent="Windows" index="1"]
2018-08-17 18:41:03 +00:00
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_left = 20.0
margin_top = 435.0
margin_right = 258.0
margin_bottom = 574.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
2018-08-18 08:22:19 +00:00
script = ExtResource( 3 )
2018-08-17 18:41:03 +00:00
_sections_unfolded = [ "custom_constants" ]
__meta__ = {
2018-08-18 08:22:19 +00:00
"_editor_icon": ExtResource( 4 )
2018-08-17 18:41:03 +00:00
}
is_movable = true
is_resizable = true
is_borderless = true
title = "Test Chat"
background_color = Color( 0.808594, 0.808594, 0.808594, 1 )
background_texture = "res://assets/GUI/images/background_test.png"
2018-08-18 08:22:19 +00:00
[node name="chat_lines" type="VBoxContainer" parent="Windows/chat" index="0"]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_left = 8.0
margin_right = 238.0
2018-08-18 08:22:19 +00:00
margin_bottom = 139.0
2018-08-17 18:41:03 +00:00
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
mouse_filter = 1
mouse_default_cursor_shape = 0
size_flags_horizontal = 3
size_flags_vertical = 3
alignment = 0
2018-08-18 08:22:19 +00:00
script = ExtResource( 5 )
2018-08-17 18:41:03 +00:00
_sections_unfolded = [ "Size Flags" ]
2018-08-18 08:22:19 +00:00
[node name="label" type="Label" parent="Windows/chat/chat_lines" index="0"]
2018-08-17 18:41:03 +00:00
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_right = 230.0
2018-08-18 08:22:19 +00:00
margin_bottom = 31.0
2018-08-17 18:41:03 +00:00
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
mouse_filter = 2
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 4
2018-08-18 08:22:19 +00:00
custom_colors/font_color = Color( 0.164063, 0.31427, 1, 1 )
text = "MDJ: Bienvenue sur Khanat, rêvez bien !"
autowrap = true
2018-08-17 18:41:03 +00:00
percent_visible = 1.0
lines_skipped = 0
max_lines_visible = -1
2018-08-18 08:22:19 +00:00
_sections_unfolded = [ "custom_colors" ]
2018-08-17 18:41:03 +00:00
2018-08-18 08:22:19 +00:00
[node name="rich_text_label" type="RichTextLabel" parent="Windows/chat/chat_lines" index="1"]
2018-08-17 18:41:03 +00:00
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
2018-08-18 08:22:19 +00:00
margin_top = 35.0
2018-08-17 18:41:03 +00:00
margin_right = 230.0
2018-08-18 08:22:19 +00:00
margin_bottom = 35.0
2018-08-17 18:41:03 +00:00
rect_pivot_offset = Vector2( 0, 0 )
2018-08-18 08:22:19 +00:00
rect_clip_content = true
focus_mode = 2
mouse_filter = 1
2018-08-17 18:41:03 +00:00
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
2018-08-18 08:22:19 +00:00
size_flags_vertical = 1
bbcode_enabled = true
bbcode_text = "Ceci est un test en [color=red]couleur[/color]."
visible_characters = -1
2018-08-17 18:41:03 +00:00
percent_visible = 1.0
2018-08-18 08:22:19 +00:00
meta_underlined = true
tab_size = 4
text = "Ceci est un test en couleur."
scroll_active = false
scroll_following = false
selection_enabled = true
override_selected_font_color = false
script = ExtResource( 6 )
_sections_unfolded = [ "BBCode", "Mouse", "Size Flags", "custom_constants" ]
2018-08-17 18:41:03 +00:00
2018-08-18 08:22:19 +00:00
[node name="rich_text_label2" type="RichTextLabel" parent="Windows/chat/chat_lines" index="2"]
2018-08-17 18:41:03 +00:00
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
2018-08-18 08:22:19 +00:00
margin_top = 39.0
2018-08-17 18:41:03 +00:00
margin_right = 230.0
2018-08-18 08:22:19 +00:00
margin_bottom = 39.0
2018-08-17 18:41:03 +00:00
rect_pivot_offset = Vector2( 0, 0 )
2018-08-18 08:22:19 +00:00
rect_clip_content = true
focus_mode = 2
mouse_filter = 1
2018-08-17 18:41:03 +00:00
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
2018-08-18 08:22:19 +00:00
size_flags_vertical = 1
bbcode_enabled = true
bbcode_text = "Ceci est un test en [url=\"test@test.io\"]ligne[/url]."
visible_characters = -1
2018-08-17 18:41:03 +00:00
percent_visible = 1.0
2018-08-18 08:22:19 +00:00
meta_underlined = true
tab_size = 4
text = "Ceci est un test en ligne."
scroll_active = false
scroll_following = false
selection_enabled = true
override_selected_font_color = false
script = ExtResource( 6 )
_sections_unfolded = [ "BBCode", "Mouse", "Size Flags" ]
2018-08-17 18:41:03 +00:00
[node name="footer_line_edit" type="LineEdit" parent="Windows/chat" index="1"]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_left = 8.0
2018-08-18 08:22:19 +00:00
margin_top = 115.0
2018-08-17 18:41:03 +00:00
margin_right = 238.0
2018-08-18 08:22:19 +00:00
margin_bottom = 139.0
2018-08-17 18:41:03 +00:00
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
focus_mode = 2
mouse_filter = 0
mouse_default_cursor_shape = 1
size_flags_horizontal = 3
size_flags_vertical = 10
focus_mode = 2
context_menu_enabled = true
placeholder_alpha = 0.6
2018-08-18 08:22:19 +00:00
caret_blink = true
2018-08-17 18:41:03 +00:00
caret_blink_speed = 0.65
caret_position = 0
2018-08-18 08:22:19 +00:00
_sections_unfolded = [ "Caret", "Placeholder", "Size Flags" ]
2018-08-17 18:41:03 +00:00
2018-08-18 08:22:19 +00:00
[node name="Music" parent="." index="3" instance=ExtResource( 7 )]
2018-07-25 07:36:19 +00:00
margin_left = 942.0
margin_right = 1024.0
margin_bottom = 66.0
size_flags_horizontal = 8
size_flags_vertical = 2
[node name="Jauges" type="VBoxContainer" parent="." index="4"]
2018-07-25 07:36:19 +00:00
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_left = 420.0
margin_top = 544.0
margin_right = 603.0
margin_bottom = 600.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
mouse_filter = 1
mouse_default_cursor_shape = 0
size_flags_horizontal = 6
size_flags_vertical = 10
alignment = 0
_sections_unfolded = [ "Size Flags" ]
[node name="oubli" type="HBoxContainer" parent="Jauges" index="0"]
2018-07-25 07:36:19 +00:00
modulate = Color( 1, 1, 1, 0 )
2018-07-25 07:36:19 +00:00
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_right = 167.0
2018-07-25 07:36:19 +00:00
margin_bottom = 16.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
mouse_filter = 1
mouse_default_cursor_shape = 0
size_flags_horizontal = 0
size_flags_vertical = 9
alignment = 0
2018-08-18 08:22:19 +00:00
script = ExtResource( 8 )
_sections_unfolded = [ "Size Flags", "Visibility" ]
2018-07-25 07:36:19 +00:00
[node name="ProgressBar" type="ProgressBar" parent="Jauges/oubli" index="0"]
2018-07-25 07:36:19 +00:00
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_right = 128.0
margin_bottom = 16.0
rect_min_size = Vector2( 128, 8 )
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 = 0
min_value = 0.0
max_value = 100.0
step = 1.0
page = 0.0
value = 0.0
exp_edit = false
rounded = false
percent_visible = false
_sections_unfolded = [ "Material", "Percent", "Rect", "Size Flags" ]
2018-07-25 07:36:19 +00:00
[node name="Label" type="Label" parent="Jauges/oubli" index="1"]
2018-07-25 07:36:19 +00:00
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_left = 132.0
margin_top = 1.0
margin_right = 167.0
2018-07-25 07:36:19 +00:00
margin_bottom = 15.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
mouse_filter = 2
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 4
text = "Oubli"
2018-07-25 07:36:19 +00:00
percent_visible = 1.0
lines_skipped = 0
max_lines_visible = -1
[node name="trauma" type="HBoxContainer" parent="Jauges" index="1"]
modulate = Color( 1, 1, 1, 0 )
2018-07-25 07:36:19 +00:00
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_top = 20.0
margin_right = 179.0
margin_bottom = 36.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
mouse_filter = 1
mouse_default_cursor_shape = 0
size_flags_horizontal = 0
size_flags_vertical = 9
alignment = 0
2018-08-18 08:22:19 +00:00
script = ExtResource( 9 )
_sections_unfolded = [ "Size Flags", "Visibility" ]
2018-07-25 07:36:19 +00:00
[node name="ProgressBar" type="ProgressBar" parent="Jauges/trauma" index="0"]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_right = 128.0
margin_bottom = 16.0
rect_min_size = Vector2( 128, 8 )
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 = 0
min_value = 0.0
max_value = 100.0
step = 1.0
page = 0.0
value = 0.0
exp_edit = false
rounded = false
percent_visible = false
2018-07-25 07:36:19 +00:00
_sections_unfolded = [ "Percent", "Rect", "Size Flags" ]
[node name="Label" type="Label" parent="Jauges/trauma" index="1"]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_left = 132.0
margin_top = 1.0
margin_right = 179.0
margin_bottom = 15.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
mouse_filter = 2
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 4
text = "Trauma"
percent_visible = 1.0
lines_skipped = 0
max_lines_visible = -1
[node name="douleur" type="HBoxContainer" parent="Jauges" index="2"]
2018-07-25 07:36:19 +00:00
modulate = Color( 1, 1, 1, 0 )
2018-07-25 07:36:19 +00:00
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_top = 40.0
margin_right = 183.0
2018-07-25 07:36:19 +00:00
margin_bottom = 56.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
mouse_filter = 1
mouse_default_cursor_shape = 0
size_flags_horizontal = 0
size_flags_vertical = 9
alignment = 0
2018-08-18 08:22:19 +00:00
script = ExtResource( 10 )
_sections_unfolded = [ "Size Flags", "Visibility" ]
2018-07-25 07:36:19 +00:00
[node name="ProgressBar" type="ProgressBar" parent="Jauges/douleur" index="0"]
2018-07-25 07:36:19 +00:00
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_right = 128.0
margin_bottom = 16.0
rect_min_size = Vector2( 128, 8 )
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 = 0
min_value = 0.0
max_value = 100.0
step = 1.0
page = 0.0
value = 0.0
exp_edit = false
rounded = false
percent_visible = false
2018-07-25 07:36:19 +00:00
_sections_unfolded = [ "Percent", "Rect", "Size Flags" ]
[node name="Label" type="Label" parent="Jauges/douleur" index="1"]
2018-07-25 07:36:19 +00:00
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_left = 132.0
margin_top = 1.0
margin_right = 183.0
2018-07-25 07:36:19 +00:00
margin_bottom = 15.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
mouse_filter = 2
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 4
text = "Douleur"
2018-07-25 07:36:19 +00:00
percent_visible = 1.0
lines_skipped = 0
max_lines_visible = -1
[node name="SaveHUD" type="Button" parent="." index="5"]
2018-07-25 07:36:19 +00:00
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_left = 799.0
margin_top = 580.0
margin_right = 1024.0
margin_bottom = 600.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 = 10
size_flags_vertical = 10
toggle_mode = false
enabled_focus_mode = 2
shortcut = null
group = null
text = "Save HUD windows layout in file."
flat = false
align = 1
_sections_unfolded = [ "Size Flags" ]
2018-08-18 08:22:19 +00:00
[node name="scroll_container" type="ScrollContainer" parent="." index="6"]
2018-07-25 07:36:19 +00:00
2018-08-18 08:22:19 +00:00
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_right = 1024.0
margin_bottom = 600.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = true
mouse_filter = 2
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 1
scroll_horizontal_enabled = true
scroll_horizontal = 0
scroll_vertical_enabled = true
scroll_vertical = 0
scroll_deadzone = 0
_sections_unfolded = [ "Focus", "Mouse", "Scroll", "Size Flags" ]
2018-07-25 07:36:19 +00:00
2018-08-18 08:22:19 +00:00
[connection signal="gui_input" from="Windows/chat/footer_line_edit" to="Windows/chat/chat_lines" method="_on_footer_line_edit_gui_input"]
2018-07-25 07:36:19 +00:00
[connection signal="value_changed" from="Jauges/oubli/ProgressBar" to="Jauges/oubli" method="_on_ProgressBar_value_changed"]
[connection signal="value_changed" from="Jauges/trauma/ProgressBar" to="Jauges/trauma" method="_on_ProgressBar_value_changed"]
[connection signal="value_changed" from="Jauges/douleur/ProgressBar" to="Jauges/douleur" method="_on_ProgressBar_value_changed"]
2018-07-25 07:36:19 +00:00
[connection signal="pressed" from="SaveHUD" to="." method="_on_SaveHUD_pressed"]