diff options
Diffstat (limited to 'client')
-rw-r--r-- | client/game.gd | 2 | ||||
-rw-r--r-- | client/menu/overlay.tscn | 8 | ||||
-rw-r--r-- | client/menu/setup_menu.gd | 6 | ||||
-rw-r--r-- | client/menu/setup_menu.tscn | 225 | ||||
-rw-r--r-- | client/menu/theme/paper.tres | 81 |
5 files changed, 317 insertions, 5 deletions
diff --git a/client/game.gd b/client/game.gd index 0922e04c..799b987b 100644 --- a/client/game.gd +++ b/client/game.gd @@ -177,7 +177,7 @@ func _ready(): map.autobake = false await transition.fade_out() ) - + mp.score.connect($Overlay.update) func _process(delta): diff --git a/client/menu/overlay.tscn b/client/menu/overlay.tscn index ed377635..d0f002db 100644 --- a/client/menu/overlay.tscn +++ b/client/menu/overlay.tscn @@ -40,10 +40,10 @@ layout_mode = 1 anchors_preset = 2 anchor_top = 1.0 anchor_bottom = 1.0 -offset_left = -42.0 -offset_top = -412.0 -offset_right = 470.0 -offset_bottom = 100.0 +offset_left = -88.0 +offset_top = -397.0 +offset_right = 424.0 +offset_bottom = 115.0 grow_vertical = 0 rotation = 0.0610865 texture = SubResource("NoiseTexture2D_jq3d3") diff --git a/client/menu/setup_menu.gd b/client/menu/setup_menu.gd new file mode 100644 index 00000000..5310329e --- /dev/null +++ b/client/menu/setup_menu.gd @@ -0,0 +1,6 @@ +extends Control + +@onready var anim: AnimationPlayer = $AnimationPlayer + +func _ready(): + anim.play("paper_slide") diff --git a/client/menu/setup_menu.tscn b/client/menu/setup_menu.tscn new file mode 100644 index 00000000..e08bd1de --- /dev/null +++ b/client/menu/setup_menu.tscn @@ -0,0 +1,225 @@ +[gd_scene load_steps=11 format=3 uid="uid://ddl3efikvqp66"] + +[ext_resource type="Script" path="res://menu/setup_menu.gd" id="1_mo46n"] +[ext_resource type="Theme" uid="uid://ci2qajdoa1an1" path="res://menu/theme/paper.tres" id="1_yq0aa"] + +[sub_resource type="Animation" id="Animation_s1to2"] +resource_name = "paper_slide" +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("ScrollContainer:position") +tracks/0/interp = 2 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0, 1), +"transitions": PackedFloat32Array(1, 1), +"update": 0, +"values": [Vector2(0, 600), Vector2(0, 0)] +} + +[sub_resource type="Animation" id="Animation_m4a1a"] +length = 0.001 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("ScrollContainer:position") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 0, +"values": [Vector2(0, 0)] +} + +[sub_resource type="AnimationLibrary" id="AnimationLibrary_wjgak"] +_data = { +"RESET": SubResource("Animation_m4a1a"), +"paper_slide": SubResource("Animation_s1to2") +} + +[sub_resource type="Gradient" id="Gradient_nsc3h"] +colors = PackedColorArray(0.941084, 0.949219, 0.918643, 1, 1, 1, 1, 1) + +[sub_resource type="FastNoiseLite" id="FastNoiseLite_amioi"] + +[sub_resource type="NoiseTexture2D" id="NoiseTexture2D_bvvl7"] +color_ramp = SubResource("Gradient_nsc3h") +noise = SubResource("FastNoiseLite_amioi") + +[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_e7xn5"] +bg_color = Color(0.196078, 0.196078, 0.235294, 1) +corner_radius_top_left = 10 +corner_radius_top_right = 10 +corner_radius_bottom_right = 10 +corner_radius_bottom_left = 10 + +[sub_resource type="ButtonGroup" id="ButtonGroup_8p5im"] + +[node name="SetupMenu" 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_mo46n") + +[node name="ColorRect" type="ColorRect" parent="."] +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +color = Color(0.196078, 0.196078, 0.235294, 1) + +[node name="AnimationPlayer" type="AnimationPlayer" parent="."] +libraries = { +"": SubResource("AnimationLibrary_wjgak") +} +speed_scale = 2.0 + +[node name="ScrollContainer" type="ScrollContainer" parent="."] +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +offset_right = 1152.0 +offset_bottom = 648.0 +grow_horizontal = 2 +grow_vertical = 2 +horizontal_scroll_mode = 0 + +[node name="Control" type="Control" parent="ScrollContainer"] +custom_minimum_size = Vector2(0, 1500) +layout_mode = 2 +size_flags_horizontal = 3 +size_flags_vertical = 3 + +[node name="TextureRect" type="TextureRect" parent="ScrollContainer/Control"] +layout_mode = 1 +anchors_preset = 8 +anchor_left = 0.5 +anchor_top = 0.5 +anchor_right = 0.5 +anchor_bottom = 0.5 +offset_left = -400.0 +offset_top = -559.57 +offset_right = 400.0 +offset_bottom = 571.801 +grow_horizontal = 2 +grow_vertical = 2 +rotation = 0.0174533 +theme = ExtResource("1_yq0aa") +texture = SubResource("NoiseTexture2D_bvvl7") + +[node name="Panel" type="Panel" parent="ScrollContainer/Control/TextureRect"] +layout_mode = 1 +anchors_preset = 8 +anchor_left = 0.5 +anchor_top = 0.5 +anchor_right = 0.5 +anchor_bottom = 0.5 +offset_left = -365.0 +offset_top = -189.686 +offset_right = -345.0 +offset_bottom = -169.686 +grow_horizontal = 2 +grow_vertical = 2 +theme_override_styles/panel = SubResource("StyleBoxFlat_e7xn5") + +[node name="Panel2" type="Panel" parent="ScrollContainer/Control/TextureRect"] +layout_mode = 1 +anchors_preset = 8 +anchor_left = 0.5 +anchor_top = 0.5 +anchor_right = 0.5 +anchor_bottom = 0.5 +offset_left = -365.0 +offset_top = 130.314 +offset_right = -345.0 +offset_bottom = 150.314 +grow_horizontal = 2 +grow_vertical = 2 +theme_override_styles/panel = SubResource("StyleBoxFlat_e7xn5") + +[node name="MarginContainer" type="MarginContainer" parent="ScrollContainer/Control/TextureRect"] +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 + +[node name="VBoxContainer" type="VBoxContainer" parent="ScrollContainer/Control/TextureRect/MarginContainer"] +layout_mode = 2 + +[node name="Title" type="Label" parent="ScrollContainer/Control/TextureRect/MarginContainer/VBoxContainer"] +layout_mode = 2 +size_flags_horizontal = 4 +theme_override_font_sizes/font_size = 30 +text = "EMPLOYMENT CONTRACT" + +[node name="Sep" type="HSeparator" parent="ScrollContainer/Control/TextureRect/MarginContainer/VBoxContainer"] +layout_mode = 2 + +[node name="Name" type="RichTextLabel" parent="ScrollContainer/Control/TextureRect/MarginContainer/VBoxContainer"] +layout_mode = 2 +bbcode_enabled = true +text = "1. [b]Name of the Employee[/b]" +fit_content = true +scroll_active = false + +[node name="NameEntry" type="HBoxContainer" parent="ScrollContainer/Control/TextureRect/MarginContainer/VBoxContainer"] +layout_mode = 2 + +[node name="LineEdit" type="LineEdit" parent="ScrollContainer/Control/TextureRect/MarginContainer/VBoxContainer/NameEntry"] +custom_minimum_size = Vector2(300, 30) +layout_mode = 2 +text = "J́ohn Doe" + +[node name="Control" type="Control" parent="ScrollContainer/Control/TextureRect/MarginContainer/VBoxContainer/NameEntry"] +layout_mode = 2 + +[node name="Uniform" type="RichTextLabel" parent="ScrollContainer/Control/TextureRect/MarginContainer/VBoxContainer"] +layout_mode = 2 +bbcode_enabled = true +text = "2. [b]Working Uniform.[/b] You must always have one of the following hairstyles." +fit_content = true +scroll_active = false + +[node name="VBoxContainer" type="VBoxContainer" parent="ScrollContainer/Control/TextureRect/MarginContainer/VBoxContainer"] +layout_mode = 2 + +[node name="CheckBox" type="CheckBox" parent="ScrollContainer/Control/TextureRect/MarginContainer/VBoxContainer/VBoxContainer"] +layout_mode = 2 +button_group = SubResource("ButtonGroup_8p5im") +text = "Hairstyle 1" + +[node name="CheckBox2" type="CheckBox" parent="ScrollContainer/Control/TextureRect/MarginContainer/VBoxContainer/VBoxContainer"] +layout_mode = 2 +button_group = SubResource("ButtonGroup_8p5im") +text = "Hairstyle 2" + +[node name="CheckBox3" type="CheckBox" parent="ScrollContainer/Control/TextureRect/MarginContainer/VBoxContainer/VBoxContainer"] +layout_mode = 2 +button_group = SubResource("ButtonGroup_8p5im") +text = "Hairstyle 3" + +[node name="Duties" type="RichTextLabel" parent="ScrollContainer/Control/TextureRect/MarginContainer/VBoxContainer"] +layout_mode = 2 +bbcode_enabled = true +text = "2. [b]Duties.[/b] It is your duty to serve customers the meal or item that they request. +" +fit_content = true +scroll_active = false + +[node name="Terms" type="RichTextLabel" parent="ScrollContainer/Control/TextureRect/MarginContainer/VBoxContainer"] +layout_mode = 2 +bbcode_enabled = true +text = "3. [b]Additional Terms.[/b] You shall not duplicate plates. (That is [u]NOT[/u] possible!) +" +fit_content = true +scroll_active = false diff --git a/client/menu/theme/paper.tres b/client/menu/theme/paper.tres new file mode 100644 index 00000000..a3514818 --- /dev/null +++ b/client/menu/theme/paper.tres @@ -0,0 +1,81 @@ +[gd_resource type="Theme" load_steps=12 format=3 uid="uid://ci2qajdoa1an1"] + +[ext_resource type="FontFile" uid="uid://bo4vh5xkpvrh1" path="res://menu/theme/font-sansita-swashed.woff2" id="1_koj1m"] + +[sub_resource type="SystemFont" id="SystemFont_3j83h"] + +[sub_resource type="FontVariation" id="FontVariation_8qr07"] +base_font = SubResource("SystemFont_3j83h") +variation_embolden = -0.44 + +[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_rq65v"] +content_margin_left = 10.0 +bg_color = Color(1, 1, 1, 0) + +[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_st08c"] +content_margin_left = 10.0 +bg_color = Color(0, 0, 0, 0) +border_width_left = 1 +border_width_top = 1 +border_width_right = 1 +border_width_bottom = 1 +border_color = Color(0.300781, 0.300781, 0.300781, 1) +corner_radius_top_left = 5 +corner_radius_top_right = 5 +corner_radius_bottom_right = 5 +corner_radius_bottom_left = 5 + +[sub_resource type="StyleBoxLine" id="StyleBoxLine_8q7ob"] +thickness = 3 + +[sub_resource type="FontVariation" id="FontVariation_cx2xx"] +base_font = ExtResource("1_koj1m") + +[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_huhkg"] +content_margin_left = 10.0 +bg_color = Color(0.6, 0.6, 0.6, 0) +border_width_bottom = 2 +border_color = Color(0, 0, 0, 1) + +[sub_resource type="SystemFont" id="SystemFont_c2823"] + +[sub_resource type="FontVariation" id="FontVariation_c3ws0"] +base_font = SubResource("SystemFont_c2823") +variation_embolden = 0.53 + +[sub_resource type="FontVariation" id="FontVariation_ex8wc"] +base_font = SubResource("SystemFont_3j83h") +variation_embolden = -0.44 + +[resource] +CheckBox/colors/font_color = Color(0, 0, 0, 1) +CheckBox/colors/font_focus_color = Color(0, 0, 0, 1) +CheckBox/colors/font_hover_color = Color(0, 0, 0, 1) +CheckBox/colors/font_hover_pressed_color = Color(0, 0, 0, 1) +CheckBox/colors/font_pressed_color = Color(0, 0, 0, 1) +CheckBox/constants/h_separation = 4 +CheckBox/fonts/font = SubResource("FontVariation_8qr07") +CheckBox/styles/disabled = SubResource("StyleBoxFlat_rq65v") +CheckBox/styles/focus = SubResource("StyleBoxFlat_st08c") +CheckBox/styles/hover = SubResource("StyleBoxFlat_rq65v") +CheckBox/styles/hover_pressed = SubResource("StyleBoxFlat_rq65v") +CheckBox/styles/normal = SubResource("StyleBoxFlat_rq65v") +CheckBox/styles/pressed = SubResource("StyleBoxFlat_rq65v") +HSeparator/constants/separation = 6 +HSeparator/styles/separator = SubResource("StyleBoxLine_8q7ob") +Label/colors/font_color = Color(0, 0, 0, 1) +LineEdit/colors/caret_color = Color(0, 0.0209808, 0.414062, 1) +LineEdit/colors/font_color = Color(0, 0.0196078, 0.415686, 1) +LineEdit/fonts/font = SubResource("FontVariation_cx2xx") +LineEdit/styles/focus = SubResource("StyleBoxFlat_huhkg") +LineEdit/styles/normal = SubResource("StyleBoxFlat_huhkg") +MarginContainer/constants/margin_bottom = 30 +MarginContainer/constants/margin_left = 70 +MarginContainer/constants/margin_right = 30 +MarginContainer/constants/margin_top = 30 +RichTextLabel/colors/default_color = Color(0, 0, 0, 1) +RichTextLabel/fonts/bold_font = SubResource("FontVariation_c3ws0") +RichTextLabel/fonts/bold_italics_font = null +RichTextLabel/fonts/italics_font = null +RichTextLabel/fonts/mono_font = null +RichTextLabel/fonts/normal_font = SubResource("FontVariation_ex8wc") |