From 65a5e0a614ca8b094164bfdc75abefb7fa970c4e Mon Sep 17 00:00:00 2001 From: CHOMPStation2StaffMirrorBot <94713762+CHOMPStation2StaffMirrorBot@users.noreply.github.com> Date: Sun, 21 Sep 2025 16:34:50 -0700 Subject: [PATCH] [MIRROR] fixes one of my first ever coding sins here (#11720) Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com> --- code/__defines/misc.dm | 2 + code/datums/browser.dm | 13 +- code/datums/colormate.dm | 223 ------------ code/datums/status_effects/_status_effect.dm | 10 +- code/game/machinery/painter_vr.dm | 22 +- .../preference_setup/loadout/02_loadout.dm | 6 +- .../preference_setup/loadout/gear_tweaks.dm | 21 +- .../modules/mob/living/silicon/robot/robot.dm | 8 +- .../mob/living/simple_mob/simple_mob.dm | 8 +- code/modules/tgui_input/matrix.dm | 336 ++++++++++++++++++ modular_chomp/code/_onclick/hud/alert.dm | 13 +- .../tgui/interfaces/ColorMate/index.tsx | 219 +++++++----- .../tgui/interfaces/ColorMate/types.ts | 7 +- vorestation.dme | 2 +- 14 files changed, 525 insertions(+), 365 deletions(-) delete mode 100644 code/datums/colormate.dm create mode 100644 code/modules/tgui_input/matrix.dm diff --git a/code/__defines/misc.dm b/code/__defines/misc.dm index 939ff6f513..041333d1fe 100644 --- a/code/__defines/misc.dm +++ b/code/__defines/misc.dm @@ -533,6 +533,8 @@ GLOBAL_LIST_INIT(all_volume_channels, list( #define COLORMATE_HSV 2 #define COLORMATE_MATRIX 3 +#define DEFAULT_COLORMATRIX list(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0) + #define DEPARTMENT_OFFDUTY "Off-Duty" #define ANNOUNCER_NAME "Facility PA" diff --git a/code/datums/browser.dm b/code/datums/browser.dm index c66ddb4be5..de153f9113 100644 --- a/code/datums/browser.dm +++ b/code/datums/browser.dm @@ -508,8 +508,8 @@ if(!user) return if(!values) - values = list(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0) - if(values.len < 12) + values = DEFAULT_COLORMATRIX + if(length(values) < 12) values.len = 12 var/list/output = list() output += "