Skip to content

Commit

Permalink
final final final v45?
Browse files Browse the repository at this point in the history
  • Loading branch information
Veth-s committed Jan 15, 2025
1 parent 42c67a6 commit 277096f
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 41 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -378,33 +378,38 @@ the client/var/selectedPlayerCkey is used to hold the selected player ckey for m
"mob" = REF(M),
"admin_token" = usr.client.holder.href_token
))
ui.send_update

Check failure on line 381 in monkestation/code/modules/veth_misc_items/veth_player_panel/veth_player_panel.dm

View workflow job for this annotation

GitHub Actions / Run Linters

undefined field: "send_update" on /datum/tgui

Check failure on line 381 in monkestation/code/modules/veth_misc_items/veth_player_panel/veth_player_panel.dm

View workflow job for this annotation

GitHub Actions / Run Linters

OD0404: Unknown identifier "send_update"
return
if("makehuman")
usr.client.holder.Topic(null, list(
"simplemake" = "human",
"mob" = REF(M),
"admin_token" = usr.client.holder.href_token
))
ui.send_update()
return
if("makemonkey")
usr.client.holder.Topic(null, list(
"simplemake" = "monkey",
"mob" = REF(M),
"admin_token" = usr.client.holder.href_token
))
ui.send_update()
return
if("makeborg")
usr.client.holder.Topic(null, list(
"simplemake" = "robot",
"mob" = REF(M),
"admin_token" = usr.client.holder.href_token
))
ui.send_update()
return
if("makeai")
usr.client.holder.Topic(null, list(
"makeai" = REF(M),
"admin_token" = usr.client.holder.href_token
))
ui.send_update()
return
//health section
if("healthscan")
Expand All @@ -422,6 +427,7 @@ the client/var/selectedPlayerCkey is used to hold the selected player ckey for m
"revive" = REF(M),
"admin_token" = usr.client.holder.href_token
))
to_chat(usr, "Adminhealed [M.ckey].", confidential = TRUE)
return
if("giveDisease")
if(!check_rights(NONE))
Expand Down
13 changes: 6 additions & 7 deletions tgui/packages/tgui/interfaces/VUAP_personal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -440,8 +440,8 @@ export const VUAP_personal = (props) => {
/>
<Button
fluid
content="CURE ALL BAD DISEASES"
onClick={() => handleAction('cureAllDiseases')}
content="CHEMSCAN"
onClick={() => handleAction('chemscan')}
/>
<Button
fluid
Expand All @@ -450,8 +450,8 @@ export const VUAP_personal = (props) => {
/>
<Button
fluid
content="MODIFY TRAITS"
onClick={() => handleAction('modifytraits')}
content="CURE ALL BAD DISEASES"
onClick={() => handleAction('cureAllDiseases')}
/>
</Grid.Column>
<Grid.Column size={6}>
Expand All @@ -463,9 +463,8 @@ export const VUAP_personal = (props) => {
/>
<Button
fluid
icon="shield-alt"
content="CHEMSCAN"
onClick={() => handleAction('chemscan')}
content="MODIFY TRAITS"
onClick={() => handleAction('modifytraits')}
/>
<Button
fluid
Expand Down
98 changes: 64 additions & 34 deletions tgui/packages/tgui/interfaces/VethPlayerPanel.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useBackend, useLocalState } from '../backend';
import { Box, Button, Section, Table, TextArea } from '../components';
import { Box, Button, Section, Table, TextArea, Grid } from '../components';
import { Window } from '../layouts';

type PlayerData = {
Expand Down Expand Up @@ -49,43 +49,73 @@ export const VethPlayerPanel = (_props) => {
<Window.Content>
<Section>
<Button
fluid
icon="refresh"
content="Refresh"
onClick={() => handleAction('refresh')}
/>
<Button content="Old PP" onClick={() => handleAction('oldPP')} />
<Button
content="Check Players"
onClick={() => handleAction('checkPlayers')}
/>
<Button
content="Check Antags"
onClick={() => handleAction('checkAntags')}
/>
<Button
content="Fax Panel"
onClick={() => handleAction('faxPanel')}
/>
<Button
content="Game Panel"
onClick={() => handleAction('gamePanel')}
/>
<Button
content="Combo HUD"
onClick={() => handleAction('comboHUD')}
/>
<Button
content="Admin VOX"
onClick={() => handleAction('adminVOX')}
/>
<Button
content="Generate Code"
onClick={() => handleAction('generateCode')}
/>
<Button
content="View Opfors"
onClick={() => handleAction('viewOpfors')}
/>
</Section>
<Section>
<Grid>
<Grid.Column>
<Button
fluid
content="Check Players"
onClick={() => handleAction('checkPlayers')}
/>
<Button
fluid
content="Game Panel"
onClick={() => handleAction('gamePanel')}
/>
</Grid.Column>
<Grid.Column>
<Button
fluid
content="Old PP"
onClick={() => handleAction('oldPP')}
/>
<Button
fluid
content="Check Antags"
onClick={() => handleAction('checkAntags')}
/>
<Button
fluid
content="Combo HUD"
onClick={() => handleAction('comboHUD')}
/>
</Grid.Column>
<Grid.Column>
<Button
fluid
content="Fax Panel"
onClick={() => handleAction('faxPanel')}
/>
<Button
fluid
content="Admin VOX"
onClick={() => handleAction('adminVOX')}
/>
<Button
fluid
content="Generate Code"
onClick={() => handleAction('generateCode')}
/>
</Grid.Column>
<Grid.Column>
<Button
fluid
content="View Opfors"
onClick={() => handleAction('viewOpfors')}
/>
<Button
fluid
content="Create Command Report"
onClick={() => handleAction('createCommandReport')}
/>
</Grid.Column>
</Grid>
</Section>

<Section title="Search Players">
Expand Down

0 comments on commit 277096f

Please sign in to comment.