Skip to content

Commit

Permalink
Cleanup 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Crowbar764 committed Jul 8, 2024
1 parent a35dfca commit ac17218
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
5 changes: 2 additions & 3 deletions modular_zzplurt/code/modules/admin/player_panel.dm
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ GLOBAL_LIST_INIT(pp_limbs, list(

ui = SStgui.try_update_ui(user, src, ui)
if (!ui)
ui = new(user, src, "PlayerPanel", "[targetMob.name] Player Panel")
ui = new(user, src, "PlayerPanel", "[targetMob.real_name] Player Panel")
ui.open()

/datum/player_panel/ui_state(mob/user)
Expand Down Expand Up @@ -110,7 +110,7 @@ GLOBAL_LIST_INIT(pp_limbs, list(
var/client/adminClient = adminMob.client

if(. || !check_rights_for(adminClient, R_ADMIN))
message_admins(span_adminhelp("WARNING: NON-ADMIN [ADMIN_LOOKUPFLW(adminMob)] ATTEMPTED TO ACCESS ADMIN PANEL. WARN Casper3044."))
message_admins(span_adminhelp("WARNING: NON-ADMIN [ADMIN_LOOKUPFLW(adminMob)] ATTEMPTED TO ACCESS ADMIN PANEL. NOTIFY Casper3044."))
to_chat(adminClient, "Error: you are not an admin!")
return

Expand Down Expand Up @@ -414,7 +414,6 @@ GLOBAL_LIST_INIT(pp_limbs, list(
var/mob/living/L = targetMob
if(!isnull(params["new_scale"]) && istype(L))
L.vv_edit_var("current_size", params["new_scale"])
// mobSize = params["new_scale"]

if ("explode")
var/power = text2num(params["power"])
Expand Down
22 changes: 12 additions & 10 deletions tgui/packages/tgui/interfaces/PlayerPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export const PlayerPanel = () => {
} = data;

return (
<Window title={`${mob_name} Player Panel`} width={600} height={500}>
<Window title={`${mob_name} Player Panel`} width={650} height={500}>
<Window.Content scrollable>
<Section>
<Flex>
Expand Down Expand Up @@ -468,15 +468,15 @@ const PhysicalActions = () => {
<Button
width="100%"
icon="lightbulb"
onClick={(e) => act('skill_panel')}
onClick={() => act('skill_panel')}
>
Skills
</Button>
<Button
width="100%"
height="100%"
icon="comment-dots"
onClick={(e) => act('languages')}
onClick={() => act('languages')}
>
Languages
</Button>
Expand Down Expand Up @@ -1069,7 +1069,7 @@ const FunActions = () => {
p=".5rem"
textAlign="center"
disabled={!narrateMessage}
onClick={(e) =>
onClick={() =>
act('narrate', {
message: narrateMessage,
classes: narrateStyles,
Expand Down Expand Up @@ -1109,7 +1109,7 @@ const OtherActions = () => {
mb=".5rem"
textAlign="center"
disabled={!client_ckey}
onClick={(e) => act('traitor_panel')}
onClick={() => act('traitor_panel')}
>
Traitor Panel
</Button>
Expand All @@ -1119,7 +1119,7 @@ const OtherActions = () => {
mb=".5rem"
textAlign="center"
disabled={!client_ckey}
onClick={(e) => act('job_exemption_panel')}
onClick={() => act('job_exemption_panel')}
>
Job Exemption Panel
</Button>
Expand All @@ -1129,7 +1129,7 @@ const OtherActions = () => {
mb=".5rem"
textAlign="center"
disabled={!client_ckey}
onClick={(e) => act('commend')}
onClick={() => act('commend')}
>
Commend Behavior
</Button>
Expand All @@ -1139,7 +1139,7 @@ const OtherActions = () => {
mb=".5rem"
textAlign="center"
disabled={!client_ckey}
onClick={(e) => act('play_sound_to')}
onClick={() => act('play_sound_to')}
>
Play Sound To
</Button>
Expand All @@ -1148,8 +1148,10 @@ const OtherActions = () => {
p=".5rem"
mb=".5rem"
textAlign="center"
disabled={!client_ckey}
onClick={(e) => act('apply_client_quirks')}
disabled={
!client_ckey || !mob_type.includes('/mob/living/carbon/human')
}
onClick={() => act('apply_client_quirks')}
>
Apply Client Quirks
</Button>
Expand Down

0 comments on commit ac17218

Please sign in to comment.