From f7eddc107125d968cf5d66b6999d28e4fc13e3aa Mon Sep 17 00:00:00 2001
From: CHOMPStation2StaffMirrorBot
<94713762+CHOMPStation2StaffMirrorBot@users.noreply.github.com>
Date: Mon, 21 Apr 2025 12:30:07 -0700
Subject: [PATCH] [MIRROR] tgui core 3.1.2 (#10697)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
---
.../particle_accelerator/particle.dm | 3 +-
tgui/packages/tgui-bench/package.json | 2 +-
tgui/packages/tgui-panel/package.json | 2 +-
tgui/packages/tgui-say/package.json | 2 +-
.../tgui/interfaces/NtosFileManager.tsx | 9 ++---
tgui/packages/tgui/interfaces/NtosNetChat.tsx | 39 ++++++++-----------
.../tgui/interfaces/NtosRevelation.tsx | 7 ++--
tgui/packages/tgui/interfaces/PlayerNotes.tsx | 7 ++--
tgui/packages/tgui/package.json | 2 +-
tgui/yarn.lock | 16 ++++----
10 files changed, 40 insertions(+), 49 deletions(-)
diff --git a/code/modules/power/singularity/particle_accelerator/particle.dm b/code/modules/power/singularity/particle_accelerator/particle.dm
index b935f1409c..c188d2be46 100644
--- a/code/modules/power/singularity/particle_accelerator/particle.dm
+++ b/code/modules/power/singularity/particle_accelerator/particle.dm
@@ -37,8 +37,7 @@
/obj/effect/accelerated_particle/Initialize(mapload, dir = 2)
. = ..()
set_dir(dir)
- addtimer(CALLBACK(src, PROC_REF(move)), 0.1 SECONDS)
-
+ move(0.1 SECONDS)
/obj/effect/accelerated_particle/Bump(atom/A)
if (A)
diff --git a/tgui/packages/tgui-bench/package.json b/tgui/packages/tgui-bench/package.json
index 34f4c9d97d..22d0033fc7 100644
--- a/tgui/packages/tgui-bench/package.json
+++ b/tgui/packages/tgui-bench/package.json
@@ -11,7 +11,7 @@
"react": "^19.1.0",
"react-dom": "^19.1.0",
"tgui": "workspace:*",
- "tgui-core": "^3.0.5"
+ "tgui-core": "^3.1.2"
},
"devDependencies": {
"@types/react": "^19.1.0",
diff --git a/tgui/packages/tgui-panel/package.json b/tgui/packages/tgui-panel/package.json
index fa7f4c87a1..ab9629f353 100644
--- a/tgui/packages/tgui-panel/package.json
+++ b/tgui/packages/tgui-panel/package.json
@@ -8,7 +8,7 @@
"react": "^19.1.0",
"react-dom": "^19.1.0",
"tgui": "workspace:*",
- "tgui-core": "^3.0.5",
+ "tgui-core": "^3.1.2",
"tgui-dev-server": "workspace:*"
},
"devDependencies": {
diff --git a/tgui/packages/tgui-say/package.json b/tgui/packages/tgui-say/package.json
index 268a7ee34a..53fc2dce9e 100644
--- a/tgui/packages/tgui-say/package.json
+++ b/tgui/packages/tgui-say/package.json
@@ -7,7 +7,7 @@
"react": "^19.1.0",
"react-dom": "^19.1.0",
"tgui": "workspace:*",
- "tgui-core": "^3.0.5"
+ "tgui-core": "^3.1.2"
},
"devDependencies": {
"@types/react": "^19.1.0",
diff --git a/tgui/packages/tgui/interfaces/NtosFileManager.tsx b/tgui/packages/tgui/interfaces/NtosFileManager.tsx
index 0e03095d71..447a65a0f6 100644
--- a/tgui/packages/tgui/interfaces/NtosFileManager.tsx
+++ b/tgui/packages/tgui/interfaces/NtosFileManager.tsx
@@ -170,12 +170,11 @@ const FileTable = (props: {
<>
onRename(file.uid, value)}
- >
- {file.name}
-
+ onCommit={(value) => onRename(file.uid, value)}
+ />
>
) : (
diff --git a/tgui/packages/tgui/interfaces/NtosNetChat.tsx b/tgui/packages/tgui/interfaces/NtosNetChat.tsx
index 4ffa2f0074..6a2639a9d6 100644
--- a/tgui/packages/tgui/interfaces/NtosNetChat.tsx
+++ b/tgui/packages/tgui/interfaces/NtosNetChat.tsx
@@ -49,14 +49,13 @@ export const NtosNetChat = (props) => {
+ buttonText="New Channel..."
+ onCommit={(value) =>
act('PRG_newchannel', {
new_channel_name: value,
})
}
- >
- New Channel...
-
+ />
{all_channels.map((channel) => (