Bookmarks WIP

This commit is contained in:
Maurane
2026-03-11 16:55:34 +01:00
parent 2af650d885
commit a368821a65
12 changed files with 414 additions and 40 deletions
+3 -2
View File
@@ -1,6 +1,6 @@
extends CanvasLayer
@onready var journal_symptoms = $JournalOpen/JournalMargin/PageArea/RightPage/Symptoms
@onready var journal_symptoms = $Boundaries/VBoxContainer/Journal/MarginContainer/Symptoms/RightPage/Symptoms
#Journal Settings
var symptoms_detailed: Array[Array] = [
@@ -25,7 +25,8 @@ var symptoms_detailed: Array[Array] = [
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
$JournalOpen/JournalMargin/PageArea/LeftPage/CloseManual.pressed.connect(self._on_close_manual_pressed)
$Boundaries/VBoxContainer/Journal/MarginContainer/Rules/LeftPage/CloseManual.pressed.connect(self._on_close_manual_pressed)
$Boundaries/VBoxContainer/Journal/MarginContainer/Symptoms/LeftPage/CloseManual.pressed.connect(self._on_close_manual_pressed)
hide()
func _on_close_manual_pressed():
+251 -38
View File
@@ -1,14 +1,17 @@
[gd_scene load_steps=60 format=3 uid="uid://chytk2cctjk3x"]
[gd_scene load_steps=65 format=3 uid="uid://chytk2cctjk3x"]
[ext_resource type="Script" uid="uid://b3ms0imu0umn8" path="res://Scenes/screening_desk/screening_desk.gd" id="1_1s7k3"]
[ext_resource type="Script" uid="uid://dcax2vggaexnr" path="res://Scenes/screening_desk/journal_layer.gd" id="3_8gteb"]
[ext_resource type="Script" uid="uid://vjvnh47s4akq" path="res://Scenes/screening_desk/patient.gd" id="4_43vqp"]
[ext_resource type="Texture2D" uid="uid://do601isxss20y" path="res://Art/Rooms/screening_room/bookmark_unpressed.png" id="4_auw4h"]
[ext_resource type="Shader" uid="uid://dwepb0lm1veje" path="res://Scenes/screening_desk/supervisor.gdshader" id="4_qsin6"]
[ext_resource type="Texture2D" uid="uid://c3je4gir1qlot" path="res://Art/BlackScreen.png" id="4_ysguw"]
[ext_resource type="Texture2D" uid="uid://diln53wxa3oep" path="res://Art/Rooms/screening_room/journal_open.png" id="5_31hpe"]
[ext_resource type="Script" uid="uid://cdkbyikbjqlsh" path="res://Scenes/screening_desk/supervisor.gd" id="5_43vqp"]
[ext_resource type="Texture2D" uid="uid://dxo6ub74dhixq" path="res://Art/Rooms/screening_room/bookmark_pressed.png" id="5_vrfmd"]
[ext_resource type="Texture2D" uid="uid://cci0pb12chlps" path="res://Art/Rooms/screening_room/computer.png" id="6_6a8ar"]
[ext_resource type="Texture2D" uid="uid://wm5ht6ktonff" path="res://Art/Subjects/Patients/patient_51/patient_51_neutral.png" id="6_7jdsc"]
[ext_resource type="Texture2D" uid="uid://dogommjgk3cn2" path="res://Art/Rooms/screening_room/bookmark_hover.png" id="6_255ay"]
[ext_resource type="Texture2D" uid="uid://jychpkygmjib" path="res://Art/Rooms/screening_room/desk.png" id="7_dp545"]
[ext_resource type="Theme" uid="uid://3k7sqw211ncl" path="res://Art/UI/button_theme.tres" id="8_hxrv4"]
[ext_resource type="Texture2D" uid="uid://c3frxq4vyu0pr" path="res://Art/Rooms/screening_room/console_screen.png" id="9_68gp8"]
@@ -44,6 +47,13 @@
[sub_resource type="Theme" id="Theme_63o5x"]
RichTextLabel/fonts/normal_font = ExtResource("14_0pvwy")
[sub_resource type="Theme" id="Theme_x8y1p"]
RichTextLabel/fonts/normal_font = ExtResource("14_0pvwy")
[sub_resource type="Theme" id="Theme_w4r3h"]
RichTextLabel/colors/default_color = Color(0.1764706, 0.1764706, 0.1764706, 1)
RichTextLabel/font_sizes/normal_font_size = 25
[sub_resource type="Theme" id="Theme_074om"]
default_font = ExtResource("14_0pvwy")
RichTextLabel/colors/default_color = Color(0, 0, 0, 1)
@@ -331,11 +341,24 @@ script = ExtResource("1_1s7k3")
[node name="JournalLayer" type="CanvasLayer" parent="."]
layer = 110
visible = false
script = ExtResource("3_8gteb")
[node name="JournalOpen" type="Control" parent="JournalLayer"]
z_index = 8
[node name="Mask" type="TextureRect" parent="JournalLayer"]
modulate = Color(1, 1, 1, 0.52549)
custom_minimum_size = Vector2(2000, 2000)
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -40.0
offset_top = -422.5
offset_right = 40.0
offset_bottom = 497.5
grow_horizontal = 2
grow_vertical = 2
texture = ExtResource("4_ysguw")
expand_mode = 1
[node name="Boundaries" type="Control" parent="JournalLayer"]
layout_mode = 3
anchors_preset = 8
anchor_left = 0.5
@@ -343,27 +366,147 @@ anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -825.0
offset_top = -450.0
offset_top = -487.5
offset_right = 825.0
offset_bottom = 450.0
offset_bottom = 487.5
grow_horizontal = 2
grow_vertical = 2
theme = SubResource("Theme_074om")
theme = SubResource("Theme_x8y1p")
[node name="Shader" type="TextureRect" parent="JournalLayer/JournalOpen"]
modulate = Color(1, 1, 1, 0.52549)
z_index = 2
custom_minimum_size = Vector2(2000, 2000)
[node name="VBoxContainer" type="VBoxContainer" parent="JournalLayer/Boundaries"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
texture = ExtResource("4_ysguw")
expand_mode = 1
theme_override_constants/separation = 0
[node name="JournalOpenTexture" type="TextureRect" parent="JournalLayer/JournalOpen"]
[node name="Bookmarks" type="MarginContainer" parent="JournalLayer/Boundaries/VBoxContainer"]
layout_mode = 2
theme = SubResource("Theme_w4r3h")
theme_override_constants/margin_left = 60
theme_override_constants/margin_right = 60
[node name="HBoxContainer" type="HBoxContainer" parent="JournalLayer/Boundaries/VBoxContainer/Bookmarks"]
layout_mode = 2
[node name="HBoxContainer" type="HBoxContainer" parent="JournalLayer/Boundaries/VBoxContainer/Bookmarks/HBoxContainer"]
custom_minimum_size = Vector2(0, 75)
layout_direction = 3
layout_mode = 2
size_flags_stretch_ratio = 0.24
theme_override_constants/separation = -35
[node name="Entities" type="Control" parent="JournalLayer/Boundaries/VBoxContainer/Bookmarks/HBoxContainer/HBoxContainer"]
custom_minimum_size = Vector2(240, 75)
layout_mode = 2
mouse_filter = 2
[node name="Bookmark" type="TextureButton" parent="JournalLayer/Boundaries/VBoxContainer/Bookmarks/HBoxContainer/HBoxContainer/Entities"]
z_index = 1
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
size_flags_vertical = 8
toggle_mode = true
texture_normal = ExtResource("4_auw4h")
texture_pressed = ExtResource("5_vrfmd")
texture_hover = ExtResource("6_255ay")
texture_disabled = ExtResource("4_auw4h")
[node name="Text" type="RichTextLabel" parent="JournalLayer/Boundaries/VBoxContainer/Bookmarks/HBoxContainer/HBoxContainer/Entities"]
z_index = 1
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2
bbcode_enabled = true
text = "ENTITIES"
horizontal_alignment = 1
vertical_alignment = 1
[node name="Symptoms" type="Control" parent="JournalLayer/Boundaries/VBoxContainer/Bookmarks/HBoxContainer/HBoxContainer"]
custom_minimum_size = Vector2(240, 75)
layout_mode = 2
mouse_filter = 2
[node name="Bookmark" type="TextureButton" parent="JournalLayer/Boundaries/VBoxContainer/Bookmarks/HBoxContainer/HBoxContainer/Symptoms"]
z_index = 1
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
size_flags_vertical = 8
toggle_mode = true
texture_normal = ExtResource("4_auw4h")
texture_pressed = ExtResource("5_vrfmd")
texture_hover = ExtResource("6_255ay")
texture_disabled = ExtResource("4_auw4h")
[node name="Text" type="RichTextLabel" parent="JournalLayer/Boundaries/VBoxContainer/Bookmarks/HBoxContainer/HBoxContainer/Symptoms"]
z_index = 1
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2
bbcode_enabled = true
text = "SYMPTOMS"
horizontal_alignment = 1
vertical_alignment = 1
[node name="Rules" type="Control" parent="JournalLayer/Boundaries/VBoxContainer/Bookmarks/HBoxContainer/HBoxContainer"]
custom_minimum_size = Vector2(240, 75)
layout_mode = 2
mouse_filter = 2
[node name="Bookmark" type="TextureButton" parent="JournalLayer/Boundaries/VBoxContainer/Bookmarks/HBoxContainer/HBoxContainer/Rules"]
z_index = 1
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
size_flags_vertical = 8
toggle_mode = true
texture_normal = ExtResource("4_auw4h")
texture_pressed = ExtResource("5_vrfmd")
texture_hover = ExtResource("6_255ay")
texture_disabled = ExtResource("4_auw4h")
[node name="Text" type="RichTextLabel" parent="JournalLayer/Boundaries/VBoxContainer/Bookmarks/HBoxContainer/HBoxContainer/Rules"]
z_index = 1
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2
bbcode_enabled = true
text = "RULES"
horizontal_alignment = 1
vertical_alignment = 1
[node name="Journal" type="Control" parent="JournalLayer/Boundaries/VBoxContainer"]
custom_minimum_size = Vector2(0, 900)
layout_mode = 2
size_flags_vertical = 6
theme = SubResource("Theme_074om")
[node name="TextureRect" type="TextureRect" parent="JournalLayer/Boundaries/VBoxContainer/Journal"]
z_index = 2
layout_mode = 1
anchors_preset = 8
@@ -380,7 +523,7 @@ grow_vertical = 2
texture = ExtResource("5_31hpe")
stretch_mode = 3
[node name="JournalMargin" type="MarginContainer" parent="JournalLayer/JournalOpen"]
[node name="MarginContainer" type="MarginContainer" parent="JournalLayer/Boundaries/VBoxContainer/Journal"]
z_index = 2
layout_mode = 1
anchors_preset = 15
@@ -393,40 +536,41 @@ theme_override_constants/margin_top = 30
theme_override_constants/margin_right = 70
theme_override_constants/margin_bottom = 50
[node name="VBoxContainer" type="VBoxContainer" parent="JournalLayer/JournalOpen/JournalMargin"]
layout_mode = 2
[node name="PageArea" type="HBoxContainer" parent="JournalLayer/JournalOpen/JournalMargin/VBoxContainer"]
[node name="Rules" type="HBoxContainer" parent="JournalLayer/Boundaries/VBoxContainer/Journal/MarginContainer"]
layout_mode = 2
size_flags_vertical = 3
theme_override_constants/separation = 90
[node name="LeftPage" type="VBoxContainer" parent="JournalLayer/JournalOpen/JournalMargin/VBoxContainer/PageArea"]
[node name="LeftPage" type="VBoxContainer" parent="JournalLayer/Boundaries/VBoxContainer/Journal/MarginContainer/Rules"]
layout_mode = 2
size_flags_horizontal = 3
[node name="PageTitle" type="RichTextLabel" parent="JournalLayer/JournalOpen/JournalMargin/VBoxContainer/PageArea/LeftPage"]
custom_minimum_size = Vector2(0, 200)
[node name="PageTitle" type="RichTextLabel" parent="JournalLayer/Boundaries/VBoxContainer/Journal/MarginContainer/Rules/LeftPage"]
custom_minimum_size = Vector2(0, 150)
layout_mode = 2
size_flags_stretch_ratio = 0.1
theme_override_font_sizes/normal_font_size = 28
bbcode_enabled = true
text = "
[center]EMPLOYEES' MANUAL[/center]"
[center]EMPLOYEE DIRECTIVES[/center]"
[node name="Instructions" type="RichTextLabel" parent="JournalLayer/JournalOpen/JournalMargin/VBoxContainer/PageArea/LeftPage"]
custom_minimum_size = Vector2(0, 200)
[node name="Instructions" type="RichTextLabel" parent="JournalLayer/Boundaries/VBoxContainer/Journal/MarginContainer/Rules/LeftPage"]
custom_minimum_size = Vector2(0, 400)
layout_mode = 2
size_flags_vertical = 4
theme_override_constants/line_separation = 20
theme_override_constants/line_separation = 5
theme_override_constants/paragraph_separation = 5
theme_override_font_sizes/normal_font_size = 20
bbcode_enabled = true
text = "THE FOLLOWING [color=orange_red]SYMPTOMS[/color] HAVE BEEN IDENTIFIED AS MARKERS OF ABNORMALITY CONVERSION.
text = "- SUBJECTS HAVE BEEN PRE-SCREENED AND DIAGNOSED WITH [color=orange_red]SYMPTOMS[/color] THAT MAY OR MAY NOT BE MARKERS OF ABNORMALITY.
- ALL [color=orange_red]RELEVANT[/color] SYMPTOMS ARE LISTED ON THE RIGHT.
IF YOU DETECT ONE THAT WAS NOT ASSESSED IN PRE-SCREENING, [color=red]TERMINATE[/color] THE SUBJECT."
- THE LIST MAY BE [color=orange_red]UPDATED[/color] ACCORDING TO LATEST INTEL.
[node name="Slogan" type="RichTextLabel" parent="JournalLayer/JournalOpen/JournalMargin/VBoxContainer/PageArea/LeftPage"]
- IF YOU IDENTIFY A SYMPTOM [color=orange_red]THAT WAS NOT DETECTED BY PRE-SCREENING[/color], [color=red]TERMINATE[/color] THE SUBJECT."
[node name="Slogan" type="RichTextLabel" parent="JournalLayer/Boundaries/VBoxContainer/Journal/MarginContainer/Rules/LeftPage"]
custom_minimum_size = Vector2(0, 100)
layout_mode = 2
size_flags_vertical = 6
@@ -437,7 +581,7 @@ text = "[color=dark_blue]THE REPUBLIC SHELTERS[/color]"
horizontal_alignment = 1
vertical_alignment = 1
[node name="CloseManual" type="Button" parent="JournalLayer/JournalOpen/JournalMargin/VBoxContainer/PageArea/LeftPage"]
[node name="CloseManual" type="Button" parent="JournalLayer/Boundaries/VBoxContainer/Journal/MarginContainer/Rules/LeftPage"]
custom_minimum_size = Vector2(200, 60)
layout_mode = 2
size_flags_horizontal = 4
@@ -445,11 +589,86 @@ size_flags_vertical = 6
theme = SubResource("Theme_cjapy")
text = "Close manual"
[node name="RightPage" type="VBoxContainer" parent="JournalLayer/JournalOpen/JournalMargin/VBoxContainer/PageArea"]
[node name="RightPage" type="VBoxContainer" parent="JournalLayer/Boundaries/VBoxContainer/Journal/MarginContainer/Rules"]
layout_mode = 2
size_flags_horizontal = 3
[node name="Symptoms" type="RichTextLabel" parent="JournalLayer/JournalOpen/JournalMargin/VBoxContainer/PageArea/RightPage"]
[node name="Symptoms" type="RichTextLabel" parent="JournalLayer/Boundaries/VBoxContainer/Journal/MarginContainer/Rules/RightPage"]
layout_mode = 2
size_flags_vertical = 3
theme_override_constants/line_separation = 5
theme_override_constants/paragraph_separation = 5
theme_override_font_sizes/normal_font_size = 20
bbcode_enabled = true
text = "- SUBJECTS HAVE BEEN PRE-SCREENED AND DIAGNOSED WITH [color=orange_red]SYMPTOMS[/color] POSSIBLY RELATED TO ABNORMALITY.
- PRE-SCREENED SYMPTOMS CAN BE ACCESSED WITHIN THE [color=orange_red]SUBJECT FILE[/color] TAB ON YOUR COMPUTER.
- IF YOU IDENTIFY A SYMPTOM [color=orange_red]THAT WAS NOT DETECTED BY PRE-SCREENING[/color], [color=red]TERMINATE[/color] THE SUBJECT.
- ALL SYMPTOMS ARE LISTED IN THE [color=orange_red]SYMPTOMS[/color] SECTION OF THIS MANUAL.
- CONVERSATION WITH CURRENT SUBJECT IS CATALOGUED IN THE [color=orange_red]RECORDING TAB[/color] ON YOUR COMPUTER, TO BE REVIEWED IF NEEDED."
[node name="Symptoms" type="HBoxContainer" parent="JournalLayer/Boundaries/VBoxContainer/Journal/MarginContainer"]
visible = false
layout_mode = 2
size_flags_vertical = 3
theme_override_constants/separation = 90
[node name="LeftPage" type="VBoxContainer" parent="JournalLayer/Boundaries/VBoxContainer/Journal/MarginContainer/Symptoms"]
layout_mode = 2
size_flags_horizontal = 3
[node name="PageTitle" type="RichTextLabel" parent="JournalLayer/Boundaries/VBoxContainer/Journal/MarginContainer/Symptoms/LeftPage"]
custom_minimum_size = Vector2(0, 150)
layout_mode = 2
size_flags_stretch_ratio = 0.1
theme_override_font_sizes/normal_font_size = 28
bbcode_enabled = true
text = "
[center]EMPLOYEE DIRECTIVES[/center]"
[node name="Instructions" type="RichTextLabel" parent="JournalLayer/Boundaries/VBoxContainer/Journal/MarginContainer/Symptoms/LeftPage"]
custom_minimum_size = Vector2(0, 400)
layout_mode = 2
size_flags_vertical = 4
theme_override_constants/line_separation = 5
theme_override_constants/paragraph_separation = 5
theme_override_font_sizes/normal_font_size = 20
bbcode_enabled = true
text = "- SUBJECTS HAVE BEEN PRE-SCREENED AND DIAGNOSED WITH [color=orange_red]SYMPTOMS[/color] THAT MAY OR MAY NOT BE MARKERS OF ABNORMALITY.
- ALL [color=orange_red]RELEVANT[/color] SYMPTOMS ARE LISTED ON THE RIGHT.
- THE LIST MAY BE [color=orange_red]UPDATED[/color] ACCORDING TO LATEST INTEL.
- IF YOU IDENTIFY A SYMPTOM [color=orange_red]THAT WAS NOT DETECTED BY PRE-SCREENING[/color], [color=red]TERMINATE[/color] THE SUBJECT."
[node name="Slogan" type="RichTextLabel" parent="JournalLayer/Boundaries/VBoxContainer/Journal/MarginContainer/Symptoms/LeftPage"]
custom_minimum_size = Vector2(0, 100)
layout_mode = 2
size_flags_vertical = 6
theme_override_constants/line_separation = 20
theme_override_font_sizes/normal_font_size = 28
bbcode_enabled = true
text = "[color=dark_blue]THE REPUBLIC SHELTERS[/color]"
horizontal_alignment = 1
vertical_alignment = 1
[node name="CloseManual" type="Button" parent="JournalLayer/Boundaries/VBoxContainer/Journal/MarginContainer/Symptoms/LeftPage"]
custom_minimum_size = Vector2(200, 60)
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 6
theme = SubResource("Theme_cjapy")
text = "Close manual"
[node name="RightPage" type="VBoxContainer" parent="JournalLayer/Boundaries/VBoxContainer/Journal/MarginContainer/Symptoms"]
layout_mode = 2
size_flags_horizontal = 3
[node name="Symptoms" type="RichTextLabel" parent="JournalLayer/Boundaries/VBoxContainer/Journal/MarginContainer/Symptoms/RightPage"]
layout_mode = 2
size_flags_vertical = 3
theme_override_constants/paragraph_separation = 1
@@ -491,12 +710,6 @@ Deliberate injury to one's own body
HETERO-AGRESSIVE BEHAVIOUR
Hostility, verbal agression, threats"
[node name="HBoxContainer" type="HBoxContainer" parent="JournalLayer/JournalOpen/JournalMargin/VBoxContainer"]
layout_mode = 2
[node name="Button" type="Button" parent="JournalLayer/JournalOpen/JournalMargin/VBoxContainer/HBoxContainer"]
layout_mode = 2
[node name="UpperHalf" type="Control" parent="."]
layout_mode = 1
anchors_preset = 15