Records Computer Tweaks (#21840)

I got annoyed one too many rounds in a row that I had to print the
medical records to get the medical records, and did not know until
writing this PR that you have to click where it says "medical" to view
said records. So I have tweaked a bunch of things about the records, so
that they now automatically open to the appropriate tab matching their
records type, EG Medical Records opens by default to Medical Records.

<img width="903" height="661" alt="image"
src="https://github.com/user-attachments/assets/abea1c4b-c78d-4716-ada5-13a100a3316e"
/>

---------

Signed-off-by: VMSolidus <evilexecutive@gmail.com>
Co-authored-by: Casper3667 <8396443+Casper3667@users.noreply.github.com>
This commit is contained in:
VMSolidus
2026-02-17 10:40:22 -05:00
committed by GitHub
parent cf861efefd
commit a1dda72a1c
6 changed files with 16 additions and 123 deletions
@@ -22,7 +22,7 @@
var/datum/record/virus/active_virus
var/listener/record/rconsole/listener
var/authenticated = FALSE
var/default_screen = "general"
var/default_screen = "General"
var/record_prefix = ""
var/typechoices = list(
"physical_status" = list("Active", "*Deceased*", "*SSD*", "*Missing*", "Physically Unfit", "Disabled"),
@@ -53,7 +53,7 @@
records_type = RECORD_MEDICAL | RECORD_VIRUS
edit_type = RECORD_MEDICAL
default_screen = "medical"
default_screen = "Medical"
program_icon_state = "medical_record"
program_key_icon_state = "teal_key"
color = LIGHT_COLOR_CYAN
@@ -70,7 +70,7 @@
records_type = RECORD_SECURITY
edit_type = RECORD_SECURITY
default_screen = "security"
default_screen = "Security"
program_icon_state = "security_record"
program_key_icon_state = "yellow_key"
color = LIGHT_COLOR_YELLOW
@@ -88,6 +88,7 @@
records_type = RECORD_GENERAL | RECORD_SECURITY
edit_type = RECORD_GENERAL
default_screen = "General"
program_icon_state = "employment_record"
program_key_icon_state = "lightblue_key"
color = LIGHT_COLOR_BLUE
@@ -267,12 +268,6 @@
if("medical")
if(!(edit_type & RECORD_MEDICAL))
return FALSE
if("diseases")
if(!(edit_type & RECORD_MEDICAL))
return FALSE
if("allergies")
if(!(edit_type & RECORD_MEDICAL))
return FALSE
if("blood_type")
if(!(edit_type & RECORD_MEDICAL) || (edit_type & RECORD_SECURITY))
return FALSE