Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upstream merge #1636

Merged
merged 115 commits into from
Aug 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
115 commits
Select commit Hold shift + click to select a range
fcfffeb
uncomment grappling gun
Aug 16, 2024
a7f6659
Remove rest of Geras files (#30912)
Killerqu00 Aug 11, 2024
de03bed
tweak(AgeRequirement): Make the requiredAge more sensible (#30913)
Brandon-Huu Aug 11, 2024
e17d71d
chrore(ageRequirement): fix grammar. atleast -> at least (#30914)
Brandon-Huu Aug 11, 2024
40115e1
Minor sprite fix to inhand med hardsuits and HoS turtleneck jumpsuit …
Magicalus Aug 11, 2024
a5627e7
Add execution component to all energy sword weapons (#30909)
Plykiya Aug 11, 2024
63fb1f2
Automatic changelog update
PJBot Aug 11, 2024
6f8f215
chore(grammar): correct some mistakes (#30916)
Brandon-Huu Aug 11, 2024
0f3139b
Add diamond mining drills, buff regular mining drills (#30814)
Blackern5000 Aug 12, 2024
7635e35
Automatic changelog update
PJBot Aug 12, 2024
96a5e16
give trash a reusable entity table (#30921)
EmoGarbage404 Aug 12, 2024
898fec4
Contraband marking & examining (#28688)
mirrorcult Aug 12, 2024
5f2aaf2
Automatic changelog update
PJBot Aug 12, 2024
4b752d4
Automatic changelog update
PJBot Aug 12, 2024
f786519
Removes variant cube migration (#30934)
UbaserB Aug 12, 2024
5004c75
First Review Pass Contraband Fixes (#30930)
Plykiya Aug 12, 2024
bb0b89d
Add conducting gloves to the maintenance loot table (#30904)
UbaserB Aug 12, 2024
4b324f7
Fix DoDrop to DropNextTo in container cases (#30911)
TokenStyle Aug 12, 2024
b3b0226
Fix Reagent Fire Stacks (#30766)
Cojoke-dot Aug 12, 2024
4b5ea78
Lines 88 and 89, updated 'narsie' and 'ratvar' to 'Nar'Sie' and Ratva…
LeoSantich Aug 12, 2024
8a8146e
Automatic changelog update
PJBot Aug 12, 2024
fe939f9
Fix permission check for whitelists in player panel (#30948)
nikthechampiongr Aug 12, 2024
a1fa41e
Automatic changelog update
PJBot Aug 12, 2024
f30c332
Grey mantle in winterdrobe (#29774)
Sadie-silly Aug 13, 2024
ccb631a
Automatic changelog update
PJBot Aug 13, 2024
bb50a9c
Sliceable doAfter (#30824)
TheShuEd Aug 13, 2024
469f3e3
Automatic changelog update
PJBot Aug 13, 2024
5ed1394
Add capfruit, a gatfruit mutation. (#30850)
UbaserB Aug 13, 2024
820dcca
Automatic changelog update
PJBot Aug 13, 2024
5b8a095
Fixes the grey mantle (#30971)
Sadie-silly Aug 13, 2024
6e692c8
Add keybinds for rotating and flipping objects (#30540)
slarticodefast Aug 13, 2024
21dbf05
Automatic changelog update
PJBot Aug 13, 2024
8654437
tweak(Shuttle_honki): Remove DeviceQuantumSpinInverter from honki shu…
Brandon-Huu Aug 13, 2024
bba1add
Make the Borgs Names Appear When they Make an Announcement (#30107)
Cojoke-dot Aug 13, 2024
29da44e
Automatic changelog update
PJBot Aug 13, 2024
5ab581b
disable contraband examine
Aug 16, 2024
ee2fa71
rename our SliceFoodEvent
Aug 16, 2024
b461207
Throngler Plushie Sprite (#30969)
PoorMansDreams Aug 13, 2024
9607f46
Fix bug with rotating shelves (#30978)
IgorAnt028 Aug 13, 2024
d1d1cc4
No weather on concrete tiles (#30952)
NotSoDana Aug 13, 2024
dc8edc0
development build ghostrole lottery changes (#30980)
Errant-4 Aug 14, 2024
fc04c74
Automatic changelog update
PJBot Aug 14, 2024
c69edf2
Add a saline syringe to the combat medical kit (#29954)
Blackern5000 Aug 14, 2024
c359c98
Automatic changelog update
PJBot Aug 14, 2024
e04396e
fix the admin verbs trying to kill players by filling their lungs wit…
slarticodefast Aug 14, 2024
de58d04
Custom Taco & Kebabs - FoodSequence 2 (#30905)
TheShuEd Aug 14, 2024
dc9e5d5
Automatic changelog update
PJBot Aug 14, 2024
191fb8e
Fix popups not working properly with an eye offset (#30990)
DrSmugleaf Aug 14, 2024
a1b4a7d
Adds a random smokable spawner (#30870)
IamVelcroboy Aug 14, 2024
d745ba1
Fix lizards being unable to eat custom burgers (#31005)
themias Aug 14, 2024
f97518f
Automatic changelog update
PJBot Aug 14, 2024
b5a1e8a
Sedin (#27110)
Erisfiregamer1 Aug 15, 2024
6921b40
Automatic changelog update
PJBot Aug 15, 2024
cd252fc
Adds a Dinky Star Sticker for security officers (#29767)
PoorMansDreams Aug 15, 2024
3d81d56
Automatic changelog update
PJBot Aug 15, 2024
67582e5
tweak(hospital): Reduce diamond stack from 30 to 1 (#31027)
Brandon-Huu Aug 15, 2024
dcc1244
tweak(experiment): Reduce diamond stack from 30 to 1 (#31025)
Brandon-Huu Aug 15, 2024
df304ec
replace mapped diamond stacks with single
Aug 16, 2024
ebf4193
Figurine voicelines (#30865)
FATFSAAM2 Aug 15, 2024
586de6d
Automatic changelog update
PJBot Aug 15, 2024
99cbfdd
Adding shock collar and electropack (#30529)
chavonadelal Aug 15, 2024
8d5335f
Automatic changelog update
PJBot Aug 15, 2024
d6a19c8
Greatly improve the usability of the Gas Analyzer. (#30763)
Mervill Aug 15, 2024
8e463b6
Automatic changelog update
PJBot Aug 15, 2024
efa6ab7
Fix false and true in player-panel.ftl (#31043)
IgorAnt028 Aug 15, 2024
7b28fde
Contra Review Passs - Round 2 (#30942)
Plykiya Aug 15, 2024
f742d84
Namespace cleanup around Mind Roles (#30965)
Errant-4 Aug 15, 2024
54dfc22
Contraband Review Pass - The Threequel (#30970)
Plykiya Aug 15, 2024
431ba01
Golden toilet (#31049)
Nimfar11 Aug 15, 2024
d945180
Automatic changelog update
PJBot Aug 15, 2024
ef86c90
Salvage Spawners (#31020)
EmoGarbage404 Aug 15, 2024
1954da8
remove nyano shock collar code
Aug 16, 2024
1d80ddb
Event scheduler setting tweaks (#31018)
IProduceWidgets Aug 15, 2024
6df14bc
Automatic changelog update
PJBot Aug 15, 2024
d616c5b
remove meteor swarms rule for a moment
Aug 16, 2024
232670e
Revamped Meteor Swarm (#28974)
EmoGarbage404 Jun 15, 2024
267c7bc
Missing meteor presets (#29044)
EmoGarbage404 Jun 16, 2024
bc8a0ef
Meteors now leave behind a bit of ore (#30419)
Plykiya Aug 1, 2024
a971975
refactor event schedulers to use explicit game rules (#29320)
IProduceWidgets Aug 14, 2024
2e4c249
Event scheduler setting tweaks (#31018)
IProduceWidgets Aug 15, 2024
6634cd1
Automatic changelog update
PJBot Aug 16, 2024
a360a7c
remove(NukeopsRuleComponent): Remove a trap from the component file (…
Brandon-Huu Aug 16, 2024
ebe56a4
Fix bug with holding objects (#31009)
IgorAnt028 Aug 16, 2024
bf036a2
Automatic changelog update
PJBot Aug 16, 2024
7f7f3ce
Replace obsolete map functions in IconSmoothSystem (#30958)
Mervill Aug 16, 2024
15757e7
Automatic changelog update
PJBot Aug 16, 2024
1ecb9ce
Fix reagents with ReagentData being duplicated (#30983)
SlamBamActionman Aug 16, 2024
b660f08
:trollface:
Aug 16, 2024
c09f1b4
:trollface:
Aug 16, 2024
8c4caeb
actually untroll
Aug 16, 2024
ef8abb9
a
Aug 16, 2024
7dfd820
50 burger
Aug 16, 2024
9a52e40
add back old meteor code
Aug 16, 2024
4a9fc13
fix
Aug 16, 2024
2407352
use some live config options in dev
Aug 16, 2024
13d2699
remove old shock collar icon
Aug 16, 2024
8776729
make ammo more consistent and work more
Aug 16, 2024
d32b0cb
clean up lathes diff to upstream
Cojoke-dot Jun 13, 2024
2b2be95
a
Aug 16, 2024
f3b1b03
move rubber bullets to deltav folder
Plykiya Apr 27, 2024
93135c5
a
Aug 16, 2024
088b17c
untroll
Aug 16, 2024
c7f16e2
more untrolls
Aug 17, 2024
6fe6e2b
more untrolls
Aug 17, 2024
c00ed51
untroll
Aug 17, 2024
3f63c0d
:trollface:
Aug 17, 2024
80e4cc6
a
Aug 18, 2024
4ac8594
b
Aug 18, 2024
f65ddec
remove it for real
Aug 18, 2024
adfff32
add missing lathe recipes
Aug 18, 2024
85b8e1e
replace cvars with component field
Aug 18, 2024
584669f
remove taco from roboisseur
Aug 18, 2024
7fa1776
migrate cardboard box with smg mags
Aug 18, 2024
ed345f2
remove kebabs
Aug 18, 2024
f2e417c
a
Aug 18, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
95 changes: 47 additions & 48 deletions Content.Client/Administration/AdminNameOverlay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,67 +7,66 @@
using Robust.Shared.IoC;
using Robust.Shared.Maths;

namespace Content.Client.Administration
namespace Content.Client.Administration;

internal sealed class AdminNameOverlay : Overlay
{
internal sealed class AdminNameOverlay : Overlay
private readonly AdminSystem _system;
private readonly IEntityManager _entityManager;
private readonly IEyeManager _eyeManager;
private readonly EntityLookupSystem _entityLookup;
private readonly Font _font;

public AdminNameOverlay(AdminSystem system, IEntityManager entityManager, IEyeManager eyeManager, IResourceCache resourceCache, EntityLookupSystem entityLookup)
{
private readonly AdminSystem _system;
private readonly IEntityManager _entityManager;
private readonly IEyeManager _eyeManager;
private readonly EntityLookupSystem _entityLookup;
private readonly Font _font;
_system = system;
_entityManager = entityManager;
_eyeManager = eyeManager;
_entityLookup = entityLookup;
ZIndex = 200;
_font = new VectorFont(resourceCache.GetResource<FontResource>("/Fonts/NotoSans/NotoSans-Regular.ttf"), 10);
}

public AdminNameOverlay(AdminSystem system, IEntityManager entityManager, IEyeManager eyeManager, IResourceCache resourceCache, EntityLookupSystem entityLookup)
{
_system = system;
_entityManager = entityManager;
_eyeManager = eyeManager;
_entityLookup = entityLookup;
ZIndex = 200;
_font = new VectorFont(resourceCache.GetResource<FontResource>("/Fonts/NotoSans/NotoSans-Regular.ttf"), 10);
}
public override OverlaySpace Space => OverlaySpace.ScreenSpace;

public override OverlaySpace Space => OverlaySpace.ScreenSpace;
protected override void Draw(in OverlayDrawArgs args)
{
var viewport = args.WorldAABB;

protected override void Draw(in OverlayDrawArgs args)
foreach (var playerInfo in _system.PlayerList)
{
var viewport = args.WorldAABB;
var entity = _entityManager.GetEntity(playerInfo.NetEntity);

foreach (var playerInfo in _system.PlayerList)
// Otherwise the entity can not exist yet
if (entity == null || !_entityManager.EntityExists(entity))
{
var entity = _entityManager.GetEntity(playerInfo.NetEntity);

// Otherwise the entity can not exist yet
if (entity == null || !_entityManager.EntityExists(entity))
{
continue;
}
continue;
}

// if not on the same map, continue
if (_entityManager.GetComponent<TransformComponent>(entity.Value).MapID != args.MapId)
{
continue;
}
// if not on the same map, continue
if (_entityManager.GetComponent<TransformComponent>(entity.Value).MapID != args.MapId)
{
continue;
}

var aabb = _entityLookup.GetWorldAABB(entity.Value);
var aabb = _entityLookup.GetWorldAABB(entity.Value);

// if not on screen, continue
if (!aabb.Intersects(in viewport))
{
continue;
}
// if not on screen, continue
if (!aabb.Intersects(in viewport))
{
continue;
}

var lineoffset = new Vector2(0f, 11f);
var screenCoordinates = _eyeManager.WorldToScreen(aabb.Center +
new Angle(-_eyeManager.CurrentEye.Rotation).RotateVec(
aabb.TopRight - aabb.Center)) + new Vector2(1f, 7f);
if (playerInfo.Antag)
{
args.ScreenHandle.DrawString(_font, screenCoordinates + (lineoffset * 2), "ANTAG", Color.OrangeRed);
}
args.ScreenHandle.DrawString(_font, screenCoordinates+lineoffset, playerInfo.Username, playerInfo.Connected ? Color.Yellow : Color.White);
args.ScreenHandle.DrawString(_font, screenCoordinates, playerInfo.CharacterName, playerInfo.Connected ? Color.Aquamarine : Color.White);
var lineoffset = new Vector2(0f, 11f);
var screenCoordinates = _eyeManager.WorldToScreen(aabb.Center +
new Angle(-_eyeManager.CurrentEye.Rotation).RotateVec(
aabb.TopRight - aabb.Center)) + new Vector2(1f, 7f);
if (playerInfo.Antag)
{
args.ScreenHandle.DrawString(_font, screenCoordinates + (lineoffset * 2), "ANTAG", Color.OrangeRed);
}
args.ScreenHandle.DrawString(_font, screenCoordinates+lineoffset, playerInfo.Username, playerInfo.Connected ? Color.Yellow : Color.White);
args.ScreenHandle.DrawString(_font, screenCoordinates, playerInfo.CharacterName, playerInfo.Connected ? Color.Aquamarine : Color.White);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public void SetWhitelisted(bool? whitelisted)
else
{
Whitelisted.Text = Loc.GetString("player-panel-whitelisted");
WhitelistToggle.Text = whitelisted.Value.ToString();
WhitelistToggle.Text = whitelisted.Value ? Loc.GetString("player-panel-true") : Loc.GetString("player-panel-false");
WhitelistToggle.Visible = true;
_isWhitelisted = whitelisted.Value;
}
Expand Down Expand Up @@ -124,7 +124,7 @@ public void SetButtons()
NotesButton.Disabled = !_adminManager.CanCommand("adminnotes");
ShowBansButton.Disabled = !_adminManager.CanCommand("banlist");
WhitelistToggle.Disabled =
!(_adminManager.CanCommand("addwhitelist") && _adminManager.CanCommand("removewhitelist"));
!(_adminManager.CanCommand("whitelistadd") && _adminManager.CanCommand("whitelistremove"));
LogsButton.Disabled = !_adminManager.CanCommand("adminlogs");
RejuvenateButton.Disabled = !_adminManager.HasFlag(AdminFlags.Debug);
DeleteButton.Disabled = !_adminManager.HasFlag(AdminFlags.Debug);
Expand Down
Loading
Loading