From 0448e8c0b283e98c38f0f519703d08dee942ad8e Mon Sep 17 00:00:00 2001 From: CHOMPStation2StaffMirrorBot <94713762+CHOMPStation2StaffMirrorBot@users.noreply.github.com> Date: Fri, 25 Apr 2025 16:36:20 -0700 Subject: [PATCH] [MIRROR] bunch of fixes (#10742) Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com> --- code/game/gamemodes/game_mode.dm | 2 +- tgui/packages/tgui-say/styles/styles.scss | 9 ++++- .../interfaces/RobotChoose/IconSection.tsx | 33 ++++++------------- 3 files changed, 19 insertions(+), 25 deletions(-) diff --git a/code/game/gamemodes/game_mode.dm b/code/game/gamemodes/game_mode.dm index c026b9a805..3b7ff3f3c7 100644 --- a/code/game/gamemodes/game_mode.dm +++ b/code/game/gamemodes/game_mode.dm @@ -325,7 +325,7 @@ GLOBAL_LIST_EMPTY(additional_antag_types) escaped_humans++ if(M.stat != DEAD) surviving_total++ - if(M_area_type in escape_locations) + if(is_path_in_list(M_area_type, escape_locations)) escaped_total++ if(M_area_type == /area/shuttle/escape/centcom) diff --git a/tgui/packages/tgui-say/styles/styles.scss b/tgui/packages/tgui-say/styles/styles.scss index 9f4b02916c..27eec086aa 100644 --- a/tgui/packages/tgui-say/styles/styles.scss +++ b/tgui/packages/tgui-say/styles/styles.scss @@ -2,7 +2,7 @@ @use './colors.scss'; .window { - background-color: black; + background-color: white; position: relative; overflow: hidden; } @@ -27,6 +27,7 @@ } .window-lightMode { + background-color: black; background-color: colors.$lightMode; border: 2px solid colors.$lightBorder; } @@ -128,6 +129,7 @@ } .button { + color: white; background-color: colors.$button; border-radius: 0.3rem; border: none; @@ -159,6 +161,7 @@ } .textarea { + color: white; background: transparent; border: none; font-family: inherit; @@ -178,3 +181,7 @@ .textarea-large { overflow-y: scroll; } + +.textarea-lightMode { + color: black; +} diff --git a/tgui/packages/tgui/interfaces/RobotChoose/IconSection.tsx b/tgui/packages/tgui/interfaces/RobotChoose/IconSection.tsx index bee554fac8..273f1e7fc6 100644 --- a/tgui/packages/tgui/interfaces/RobotChoose/IconSection.tsx +++ b/tgui/packages/tgui/interfaces/RobotChoose/IconSection.tsx @@ -1,13 +1,5 @@ -import { useState } from 'react'; import { useBackend } from 'tgui/backend'; -import { - Box, - Button, - Input, - Section, - Stack, - Tooltip, -} from 'tgui-core/components'; +import { Box, Button, Input, Section, Stack } from 'tgui-core/components'; import { classes } from 'tgui-core/react'; export const IconSection = (props: { @@ -19,7 +11,6 @@ export const IconSection = (props: { }) => { const { act } = useBackend(); const { currentName, mindName, isDefaultName, sprite, size } = props; - const [robotName, setRobotName] = useState(currentName); return (
Name: - - { - act('rename', { value }); - setRobotName(value); - }} - maxLength={52} - textColor={isDefaultName ? 'red' : undefined} - /> - + { + act('rename', { value }); + }} + maxLength={52} + textColor={isDefaultName ? 'red' : undefined} + />