diff options
| author | tpart <tpart120@proton.me> | 2024-09-19 14:23:10 +0200 | 
|---|---|---|
| committer | tpart <tpart120@proton.me> | 2024-09-19 14:23:14 +0200 | 
| commit | caacbc208441c82576f336cc9aeec907e9e19e53 (patch) | |
| tree | fc981d8403ed2153c5f51786e3c016befdf90356 /client/menu/popup_message.tscn | |
| parent | a7139cfddd9b072d97a93a030b485d3c0fe241a2 (diff) | |
| download | hurrycurry-caacbc208441c82576f336cc9aeec907e9e19e53.tar hurrycurry-caacbc208441c82576f336cc9aeec907e9e19e53.tar.bz2 hurrycurry-caacbc208441c82576f336cc9aeec907e9e19e53.tar.zst | |
Implement new server hint packet; Implement positional server message logic
Diffstat (limited to 'client/menu/popup_message.tscn')
| -rw-r--r-- | client/menu/popup_message.tscn | 168 | 
1 files changed, 0 insertions, 168 deletions
| diff --git a/client/menu/popup_message.tscn b/client/menu/popup_message.tscn deleted file mode 100644 index 0df38364..00000000 --- a/client/menu/popup_message.tscn +++ /dev/null @@ -1,168 +0,0 @@ -[gd_scene load_steps=12 format=3 uid="uid://b21nrnkygiyjt"] - -[ext_resource type="Theme" uid="uid://b0qmvo504e457" path="res://menu/theme/theme.tres" id="1_a1566"] -[ext_resource type="Script" path="res://menu/popup_message.gd" id="2_sbew6"] -[ext_resource type="Shader" path="res://menu/blur_mix.gdshader" id="3_2vnom"] -[ext_resource type="Script" path="res://menu/blur_setup.gd" id="4_pvwmw"] -[ext_resource type="FontFile" uid="uid://bk704sc5gkrb3" path="res://menu/theme/font-azaret-mono.woff2" id="4_wsrnf"] -[ext_resource type="Texture2D" uid="uid://b2uv5rf0enikf" path="res://menu/hint.svg" id="5_2dxsd"] - -[sub_resource type="ShaderMaterial" id="ShaderMaterial_q3bbd"] -shader = ExtResource("3_2vnom") -shader_parameter/blur_amount = 3.5 -shader_parameter/mix_amount = 0.85 -shader_parameter/mix_amount_no_blur = 0.85 -shader_parameter/color_over = Color(1, 1, 1, 1) -shader_parameter/enable_blur = true - -[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_vq4dg"] -bg_color = Color(1, 1, 1, 0.878431) -corner_radius_top_left = 16 -corner_radius_top_right = 16 -corner_radius_bottom_right = 16 -corner_radius_bottom_left = 16 - -[sub_resource type="FontVariation" id="FontVariation_qfltj"] -base_font = ExtResource("4_wsrnf") -variation_embolden = 0.75 - -[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_3rgop"] -content_margin_left = 32.0 -content_margin_top = 8.0 -content_margin_right = 32.0 -content_margin_bottom = 8.0 - -[sub_resource type="ShaderMaterial" id="ShaderMaterial_k0m35"] -shader = ExtResource("3_2vnom") -shader_parameter/blur_amount = 3.5 -shader_parameter/mix_amount = 0.85 -shader_parameter/mix_amount_no_blur = 1.0 -shader_parameter/color_over = Color(0, 0, 0, 1) -shader_parameter/enable_blur = null - -[node name="PopupMessage" type="MarginContainer"] -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -mouse_filter = 2 -theme = ExtResource("1_a1566") -script = ExtResource("2_sbew6") - -[node name="VBox" type="VBoxContainer" parent="."] -layout_mode = 2 -mouse_filter = 2 - -[node name="ServerMessage" type="PanelContainer" parent="VBox"] -visible = false -material = SubResource("ShaderMaterial_q3bbd") -layout_mode = 2 -size_flags_horizontal = 4 -size_flags_vertical = 0 -mouse_filter = 2 -theme_override_styles/panel = SubResource("StyleBoxFlat_vq4dg") -script = ExtResource("4_pvwmw") - -[node name="CenterContainer" type="CenterContainer" parent="VBox/ServerMessage"] -layout_mode = 2 - -[node name="Label" type="Label" parent="VBox/ServerMessage/CenterContainer"] -layout_mode = 2 -theme_override_colors/font_color = Color(0, 0, 0, 1) -theme_override_fonts/font = SubResource("FontVariation_qfltj") -theme_override_styles/normal = SubResource("StyleBoxEmpty_3rgop") -text = "Server message" - -[node name="HintMessage" type="PanelContainer" parent="VBox"] -visible = false -material = SubResource("ShaderMaterial_k0m35") -layout_mode = 2 -size_flags_vertical = 0 -mouse_filter = 2 -theme_override_styles/panel = SubResource("StyleBoxFlat_vq4dg") -script = ExtResource("4_pvwmw") - -[node name="CenterContainer" type="HBoxContainer" parent="VBox/HintMessage"] -layout_mode = 2 -alignment = 1 - -[node name="MarginContainer" type="MarginContainer" parent="VBox/HintMessage/CenterContainer"] -layout_mode = 2 -theme_override_constants/margin_left = 4 -theme_override_constants/margin_top = 4 -theme_override_constants/margin_right = 4 -theme_override_constants/margin_bottom = 4 - -[node name="TextureRect" type="TextureRect" parent="VBox/HintMessage/CenterContainer/MarginContainer"] -custom_minimum_size = Vector2(28, 28) -layout_mode = 2 -texture = ExtResource("5_2dxsd") -expand_mode = 1 -stretch_mode = 4 - -[node name="Label" type="Label" parent="VBox/HintMessage/CenterContainer"] -layout_mode = 2 -size_flags_horizontal = 3 -theme_override_fonts/font = SubResource("FontVariation_qfltj") -theme_override_styles/normal = SubResource("StyleBoxEmpty_3rgop") -text = "A hint is worth more than a thousand manuals" -autowrap_mode = 3 - -[node name="ServerTimer" type="Timer" parent="."] -wait_time = 5.0 -one_shot = true - -[node name="HintTimer" type="Timer" parent="."] -wait_time = 10.0 -one_shot = true - -[node name="AutoHintTimers" type="Node" parent="."] - -[node name="Move" type="Timer" parent="AutoHintTimers"] -wait_time = 2.0 -one_shot = true - -[node name="Performance" type="Timer" parent="AutoHintTimers"] -wait_time = 20.0 -one_shot = true - -[node name="Boost" type="Timer" parent="AutoHintTimers"] -wait_time = 90.0 -one_shot = true - -[node name="Interact" type="Timer" parent="AutoHintTimers"] -wait_time = 15.0 -one_shot = true - -[node name="RotateCamera" type="Timer" parent="AutoHintTimers"] -wait_time = 120.0 -one_shot = true - -[node name="Zoom" type="Timer" parent="AutoHintTimers"] -wait_time = 135.0 -one_shot = true - -[node name="Nametags" type="Timer" parent="AutoHintTimers"] -wait_time = 160.0 -one_shot = true - -[node name="Reset" type="Timer" parent="."] -wait_time = 10.0 -one_shot = true - -[node name="JoinWhileRunning" type="Timer" parent="."] -wait_time = 5.0 -one_shot = true - -[connection signal="timeout" from="ServerTimer" to="." method="_on_server_timer_timeout"] -[connection signal="timeout" from="HintTimer" to="." method="_on_hint_timer_timeout"] -[connection signal="timeout" from="AutoHintTimers/Move" to="." method="_on_move_timeout"] -[connection signal="timeout" from="AutoHintTimers/Performance" to="." method="_on_performance_timeout"] -[connection signal="timeout" from="AutoHintTimers/Boost" to="." method="_on_boost_timeout"] -[connection signal="timeout" from="AutoHintTimers/Interact" to="." method="_on_interact_timeout"] -[connection signal="timeout" from="AutoHintTimers/RotateCamera" to="." method="_on_rotate_camera_timeout"] -[connection signal="timeout" from="AutoHintTimers/Zoom" to="." method="_on_zoom_timeout"] -[connection signal="timeout" from="AutoHintTimers/Nametags" to="." method="_on_nametags_timeout"] -[connection signal="timeout" from="Reset" to="." method="_on_reset_timeout"] -[connection signal="timeout" from="JoinWhileRunning" to="." method="_on_join_while_running_timeout"] | 
