[MIRROR] tgui core 3.1.2 (#10697)

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-04-21 12:30:07 -07:00
committed by GitHub
parent e1524b09e6
commit f7eddc1071
10 changed files with 40 additions and 49 deletions

View File

@@ -37,8 +37,7 @@
/obj/effect/accelerated_particle/Initialize(mapload, dir = 2) /obj/effect/accelerated_particle/Initialize(mapload, dir = 2)
. = ..() . = ..()
set_dir(dir) set_dir(dir)
addtimer(CALLBACK(src, PROC_REF(move)), 0.1 SECONDS) move(0.1 SECONDS)
/obj/effect/accelerated_particle/Bump(atom/A) /obj/effect/accelerated_particle/Bump(atom/A)
if (A) if (A)

View File

@@ -11,7 +11,7 @@
"react": "^19.1.0", "react": "^19.1.0",
"react-dom": "^19.1.0", "react-dom": "^19.1.0",
"tgui": "workspace:*", "tgui": "workspace:*",
"tgui-core": "^3.0.5" "tgui-core": "^3.1.2"
}, },
"devDependencies": { "devDependencies": {
"@types/react": "^19.1.0", "@types/react": "^19.1.0",

View File

@@ -8,7 +8,7 @@
"react": "^19.1.0", "react": "^19.1.0",
"react-dom": "^19.1.0", "react-dom": "^19.1.0",
"tgui": "workspace:*", "tgui": "workspace:*",
"tgui-core": "^3.0.5", "tgui-core": "^3.1.2",
"tgui-dev-server": "workspace:*" "tgui-dev-server": "workspace:*"
}, },
"devDependencies": { "devDependencies": {

View File

@@ -7,7 +7,7 @@
"react": "^19.1.0", "react": "^19.1.0",
"react-dom": "^19.1.0", "react-dom": "^19.1.0",
"tgui": "workspace:*", "tgui": "workspace:*",
"tgui-core": "^3.0.5" "tgui-core": "^3.1.2"
}, },
"devDependencies": { "devDependencies": {
"@types/react": "^19.1.0", "@types/react": "^19.1.0",

View File

@@ -170,12 +170,11 @@ const FileTable = (props: {
<> <>
<Button.Input <Button.Input
width="80%" width="80%"
currentValue={file.name} buttonText={file.name}
value={file.name}
tooltip="Rename" tooltip="Rename"
onCommit={(e, value) => onRename(file.uid, value)} onCommit={(value) => onRename(file.uid, value)}
> />
{file.name}
</Button.Input>
<Button onClick={() => onOpen(file.uid)}>Open</Button> <Button onClick={() => onOpen(file.uid)}>Open</Button>
</> </>
) : ( ) : (

View File

@@ -49,14 +49,13 @@ export const NtosNetChat = (props) => {
<Box height="560px" overflowY="scroll"> <Box height="560px" overflowY="scroll">
<Button.Input <Button.Input
fluid fluid
onCommit={(e, value) => buttonText="New Channel..."
onCommit={(value) =>
act('PRG_newchannel', { act('PRG_newchannel', {
new_channel_name: value, new_channel_name: value,
}) })
} }
> />
New Channel...
</Button.Input>
{all_channels.map((channel) => ( {all_channels.map((channel) => (
<Button <Button
fluid fluid
@@ -76,15 +75,14 @@ export const NtosNetChat = (props) => {
<Button.Input <Button.Input
fluid fluid
mt={1} mt={1}
currentValue={username} buttonText={username + '...'}
onCommit={(e, value) => value={username}
onCommit={(value) =>
act('PRG_changename', { act('PRG_changename', {
new_name: value, new_name: value,
}) })
} }
> />
{username + '...'}
</Button.Input>
{!!can_admin && ( {!!can_admin && (
<Button <Button
fluid fluid
@@ -143,15 +141,14 @@ export const NtosNetChat = (props) => {
<> <>
<Button.Input <Button.Input
fluid fluid
defaultValue="new_log" buttonText="Save log..."
onCommit={(e, value) => value="new_log"
onCommit={(value) =>
act('PRG_savelog', { act('PRG_savelog', {
log_name: value, log_name: value,
}) })
} }
> />
Save log...
</Button.Input>
<Button.Confirm <Button.Confirm
fluid fluid
onClick={() => act('PRG_leavechannel')} onClick={() => act('PRG_leavechannel')}
@@ -170,24 +167,22 @@ export const NtosNetChat = (props) => {
</Button.Confirm> </Button.Confirm>
<Button.Input <Button.Input
fluid fluid
onCommit={(e, value) => buttonText="Rename Channel..."
onCommit={(value) =>
act('PRG_renamechannel', { act('PRG_renamechannel', {
new_name: value, new_name: value,
}) })
} }
> />
Rename Channel...
</Button.Input>
<Button.Input <Button.Input
fluid fluid
onCommit={(e, value) => buttonText="Set Password..."
onCommit={(value) =>
act('PRG_setpassword', { act('PRG_setpassword', {
new_password: value, new_password: value,
}) })
} }
> />
Set Password...
</Button.Input>
</> </>
)} )}
</Table.Cell> </Table.Cell>

View File

@@ -16,15 +16,14 @@ export const NtosRevelation = (props) => {
<Section> <Section>
<Button.Input <Button.Input
fluid fluid
onCommit={(e, value) => buttonText="Obfuscate Name..."
onCommit={(value) =>
act('PRG_obfuscate', { act('PRG_obfuscate', {
new_name: value, new_name: value,
}) })
} }
mb={1} mb={1}
> />
Obfuscate Name...
</Button.Input>
<LabeledList> <LabeledList>
<LabeledList.Item <LabeledList.Item
label="Payload Status" label="Payload Status"

View File

@@ -34,14 +34,13 @@ export const PlayerNotes = (props) => {
</Button> </Button>
<Divider /> <Divider />
<Button.Input <Button.Input
onCommit={(e, value) => buttonText="CKEY to Open"
onCommit={(value) =>
act('show_player_info', { act('show_player_info', {
name: value, name: value,
}) })
} }
> />
CKEY to Open
</Button.Input>
<Divider vertical /> <Divider vertical />
<Button color="green" onClick={() => act('clear_player_info_filter')}> <Button color="green" onClick={() => act('clear_player_info_filter')}>
{filter} {filter}

View File

@@ -14,7 +14,7 @@
"marked": "^4.3.0", "marked": "^4.3.0",
"react": "^19.1.0", "react": "^19.1.0",
"react-dom": "^19.1.0", "react-dom": "^19.1.0",
"tgui-core": "^3.0.5", "tgui-core": "^3.1.2",
"tgui-dev-server": "workspace:*" "tgui-dev-server": "workspace:*"
}, },
"devDependencies": { "devDependencies": {

View File

@@ -19885,19 +19885,19 @@ __metadata:
react: "npm:^19.1.0" react: "npm:^19.1.0"
react-dom: "npm:^19.1.0" react-dom: "npm:^19.1.0"
tgui: "workspace:*" tgui: "workspace:*"
tgui-core: "npm:^3.0.5" tgui-core: "npm:^3.1.2"
languageName: unknown languageName: unknown
linkType: soft linkType: soft
"tgui-core@npm:^3.0.5": "tgui-core@npm:^3.1.2":
version: 3.0.5 version: 3.1.2
resolution: "tgui-core@npm:3.0.5" resolution: "tgui-core@npm:3.1.2"
dependencies: dependencies:
"@floating-ui/react": "npm:^0.27.6" "@floating-ui/react": "npm:^0.27.6"
peerDependencies: peerDependencies:
react: ^19.1.0 react: ^19.1.0
react-dom: ^19.1.0 react-dom: ^19.1.0
checksum: 10c0/1916fba12154098c774954a3a98b5ba2ee9770b348fec233c1af4e2bd1e1e8e9910cdbf391b3ef2b7a6ed8cdf1ca8f9c3322ee48e9e018fb44543cc8887f1817 checksum: 10c0/bac08177a0509f52e8cb1912d85727c27b70de7dd0ca9c8fd3a863c81aca4b3ca52f09a65f75a4f9a0957f9d9ece0f2b0a16861ab05802fcc3375b2695c361bc
languageName: node languageName: node
linkType: hard linkType: hard
@@ -19925,7 +19925,7 @@ __metadata:
react: "npm:^19.1.0" react: "npm:^19.1.0"
react-dom: "npm:^19.1.0" react-dom: "npm:^19.1.0"
tgui: "workspace:*" tgui: "workspace:*"
tgui-core: "npm:^3.0.5" tgui-core: "npm:^3.1.2"
tgui-dev-server: "workspace:*" tgui-dev-server: "workspace:*"
languageName: unknown languageName: unknown
linkType: soft linkType: soft
@@ -19940,7 +19940,7 @@ __metadata:
react: "npm:^19.1.0" react: "npm:^19.1.0"
react-dom: "npm:^19.1.0" react-dom: "npm:^19.1.0"
tgui: "workspace:*" tgui: "workspace:*"
tgui-core: "npm:^3.0.5" tgui-core: "npm:^3.1.2"
vitest: "npm:^3.1.1" vitest: "npm:^3.1.1"
languageName: unknown languageName: unknown
linkType: soft linkType: soft
@@ -20002,7 +20002,7 @@ __metadata:
marked: "npm:^4.3.0" marked: "npm:^4.3.0"
react: "npm:^19.1.0" react: "npm:^19.1.0"
react-dom: "npm:^19.1.0" react-dom: "npm:^19.1.0"
tgui-core: "npm:^3.0.5" tgui-core: "npm:^3.1.2"
tgui-dev-server: "workspace:*" tgui-dev-server: "workspace:*"
vitest: "npm:^3.1.1" vitest: "npm:^3.1.1"
languageName: unknown languageName: unknown