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 sync #2498

Merged
merged 108 commits into from
Aug 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
108 commits
Select commit Hold shift + click to select a range
691e37c
Update space law for contraband upate (#30937)
Chief-Engineer Aug 12, 2024
d4c0155
Fix DoDrop to DropNextTo in container cases (#30911)
TokenStyle Aug 12, 2024
0c1cfe8
Fix Reagent Fire Stacks (#30766)
Cojoke-dot Aug 12, 2024
c9366b8
Lines 88 and 89, updated 'narsie' and 'ratvar' to 'Nar'Sie' and Ratva…
LeoSantich Aug 12, 2024
ab16133
Automatic changelog update
PJBot Aug 12, 2024
dcc1187
Fix permission check for whitelists in player panel (#30948)
nikthechampiongr Aug 12, 2024
d49d78c
Automatic changelog update
PJBot Aug 12, 2024
329a0a8
Grey mantle in winterdrobe (#29774)
Sadie-silly Aug 13, 2024
bf7c327
Automatic changelog update
PJBot Aug 13, 2024
cc180e5
Sliceable doAfter (#30824)
TheShuEd Aug 13, 2024
0998645
Automatic changelog update
PJBot Aug 13, 2024
135d524
Add capfruit, a gatfruit mutation. (#30850)
UbaserB Aug 13, 2024
79315c2
Automatic changelog update
PJBot Aug 13, 2024
7153e43
Fixes the grey mantle (#30971)
Sadie-silly Aug 13, 2024
6a46222
Add keybinds for rotating and flipping objects (#30540)
slarticodefast Aug 13, 2024
c729079
Automatic changelog update
PJBot Aug 13, 2024
dba0ea7
tweak(Shuttle_honki): Remove DeviceQuantumSpinInverter from honki shu…
Brandon-Huu Aug 13, 2024
5d6baea
Make the Borgs Names Appear When they Make an Announcement (#30107)
Cojoke-dot Aug 13, 2024
14dfeab
Automatic changelog update
PJBot Aug 13, 2024
208b1d2
Added Cog(map) and its own evac shuttle (#30840)
Spessmann Aug 13, 2024
44db0bf
Automatic changelog update
PJBot Aug 13, 2024
02521d5
Throngler Plushie Sprite (#30969)
PoorMansDreams Aug 13, 2024
0d5d9f9
Automatic changelog update
PJBot Aug 13, 2024
a186b91
cog update (#30982)
Emisse Aug 13, 2024
1e029ef
cleaning up bounty descriptions (#30981)
TheWaffleJesus Aug 13, 2024
204f3e6
Fix bug with rotating shelves (#30978)
IgorAnt028 Aug 13, 2024
381e0d6
No weather on concrete tiles (#30952)
NotSoDana Aug 13, 2024
9de922a
development build ghostrole lottery changes (#30980)
Errant-4 Aug 14, 2024
58a33b2
Various cog fixes (#30987)
Spessmann Aug 14, 2024
07ec00e
refactor event schedulers to use explicit game rules (#29320)
IProduceWidgets Aug 14, 2024
452be33
Automatic changelog update
PJBot Aug 14, 2024
1ded394
Add a saline syringe to the combat medical kit (#29954)
Blackern5000 Aug 14, 2024
600d5bf
Automatic changelog update
PJBot Aug 14, 2024
8cb2cfc
fix the admin verbs trying to kill players by filling their lungs wit…
slarticodefast Aug 14, 2024
059e3ef
Update submodule to v230.0.1 (#30973)
PJB3005 Aug 14, 2024
12b6cf5
Make ahelp.admin_prefix default false (#30994)
DrSmugleaf Aug 14, 2024
8ac0246
Enable worldgen by default in non-wizden config (#30996)
PJB3005 Aug 14, 2024
e659eb9
Custom Taco & Kebabs - FoodSequence 2 (#30905)
TheShuEd Aug 14, 2024
07451eb
Automatic changelog update
PJBot Aug 14, 2024
1fb03e9
Fix popups not working properly with an eye offset (#30990)
DrSmugleaf Aug 14, 2024
890c0ee
Adds a random smokable spawner (#30870)
IamVelcroboy Aug 14, 2024
cd8bd90
Fix lizards being unable to eat custom burgers (#31005)
themias Aug 14, 2024
84f229a
Automatic changelog update
PJBot Aug 14, 2024
6c008be
Fix creator prefix for Cog (#30995)
PJB3005 Aug 14, 2024
dc2c02c
fix(origin): Make medbay exit button functional (#31001)
Brandon-Huu Aug 14, 2024
b48ac84
Localization of the slot (#31008)
chavonadelal Aug 15, 2024
e5d2738
Sedin (#27110)
Erisfiregamer1 Aug 15, 2024
df82c0a
Automatic changelog update
PJBot Aug 15, 2024
793eb87
Adds a Dinky Star Sticker for security officers (#29767)
PoorMansDreams Aug 15, 2024
20334f9
Automatic changelog update
PJBot Aug 15, 2024
1bde7f3
packed update (#31024)
Emisse Aug 15, 2024
0fd7b69
Cog fixes (again) (#31030)
Spessmann Aug 15, 2024
bc5bc37
Fix top bun desc (#31019)
lzk228 Aug 15, 2024
b53ed58
tweak(hospital): Reduce diamond stack from 30 to 1 (#31027)
Brandon-Huu Aug 15, 2024
c1d4126
tweak(experiment): Reduce diamond stack from 30 to 1 (#31025)
Brandon-Huu Aug 15, 2024
54d42ac
bagel update (#31033)
Emisse Aug 15, 2024
19e8c2e
fland update (#31034)
Emisse Aug 15, 2024
caece14
update lox (#31035)
Emisse Aug 15, 2024
d752702
meta update (#31037)
Emisse Aug 15, 2024
af01d8f
Correct relay mover entity (#31040)
Plykiya Aug 15, 2024
b17f1c3
Figurine voicelines (#30865)
FATFSAAM2 Aug 15, 2024
02eed07
Automatic changelog update
PJBot Aug 15, 2024
6567fa3
Adding shock collar and electropack (#30529)
chavonadelal Aug 15, 2024
25074d0
Automatic changelog update
PJBot Aug 15, 2024
2e33657
Greatly improve the usability of the Gas Analyzer. (#30763)
Mervill Aug 15, 2024
5da2b32
Automatic changelog update
PJBot Aug 15, 2024
84f9dd0
Fix false and true in player-panel.ftl (#31043)
IgorAnt028 Aug 15, 2024
f523df8
Contra Review Passs - Round 2 (#30942)
Plykiya Aug 15, 2024
40b9fd4
Namespace cleanup around Mind Roles (#30965)
Errant-4 Aug 15, 2024
dc66386
Contraband Review Pass - The Threequel (#30970)
Plykiya Aug 15, 2024
03f9dee
Packed Engi Solar Controller (#31042)
JustCone14 Aug 15, 2024
84af71e
Golden toilet (#31049)
Nimfar11 Aug 15, 2024
49fd12a
Automatic changelog update
PJBot Aug 15, 2024
c41fe93
Salvage Spawners (#31020)
EmoGarbage404 Aug 15, 2024
796287d
fix(box): Make medbay exit button functional (#31003)
Brandon-Huu Aug 15, 2024
f06176a
Cook-able cutlets for kebabs/tacos (#31048)
themias Aug 15, 2024
6c6ee27
Automatic changelog update
PJBot Aug 15, 2024
0ae5426
Event scheduler setting tweaks (#31018)
IProduceWidgets Aug 15, 2024
8161402
Automatic changelog update
PJBot Aug 15, 2024
18259d1
evac lox update (#31052)
Emisse Aug 15, 2024
cf4f8b6
bagel update (#31053)
Emisse Aug 15, 2024
17b4ede
Marathon Update (#31054)
Emisse Aug 15, 2024
53e2dfd
box update (#31056)
Emisse Aug 15, 2024
8cdc8d7
fland update (#31057)
Emisse Aug 15, 2024
9c1b8c1
remove atlas, cluster, europa, saltern (#31058)
Emisse Aug 15, 2024
a17498e
Automatic changelog update
PJBot Aug 15, 2024
af2ee4a
remove origin (#31059)
Emisse Aug 15, 2024
28f41e1
Automatic changelog update
PJBot Aug 15, 2024
42316f8
Add German accent (#30541)
Psychpsyo Aug 15, 2024
921ed4e
Automatic changelog update
PJBot Aug 15, 2024
3cdd62b
Mining Rebalance (#30920)
EmoGarbage404 Aug 16, 2024
7de5156
Automatic changelog update
PJBot Aug 16, 2024
c9bffa8
updated cogmap's evac shuttle (#31071)
Spessmann Aug 16, 2024
c43323d
Fix mains wire light (#31066)
metalgearsloth Aug 16, 2024
4c523b1
Automatic changelog update
PJBot Aug 16, 2024
0a9535e
remove(NukeopsRuleComponent): Remove a trap from the component file (…
Brandon-Huu Aug 16, 2024
1d2c72d
Fix bug with holding objects (#31009)
IgorAnt028 Aug 16, 2024
4ecc2c8
Automatic changelog update
PJBot Aug 16, 2024
61a3562
Replace obsolete map functions in IconSmoothSystem (#30958)
Mervill Aug 16, 2024
0b1eae3
packed update (#31078)
Emisse Aug 16, 2024
99bc389
omega update (#31079)
Emisse Aug 16, 2024
49dd17d
Fix reagents with ReagentData being duplicated (#30983)
SlamBamActionman Aug 16, 2024
f1f1680
Automatic changelog update
PJBot Aug 16, 2024
a0bce91
Merge remote-tracking branch 'refs/remotes/upstream/master' into upst…
Morb0 Aug 16, 2024
92b31a4
Fix upstream
Morb0 Aug 16, 2024
5a59ce6
Update locale
Morb0 Aug 16, 2024
a0eccf1
Fix upstream maps
Morb0 Aug 16, 2024
00a2df5
Merge remote-tracking branch 'refs/remotes/syndie/master' into upstre…
Morb0 Aug 16, 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
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion Content.Benchmarks/MapLoadBenchmark.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public async Task Cleanup()
PoolManager.Shutdown();
}

public static readonly string[] MapsSource = { "Empty", "Box", "Bagel", "Dev", "CentComm", "Atlas", "Core", "TestTeg", "Saltern", "Packed", "Omega", "Cluster", "Reach", "Origin", "Meta", "Marathon", "Europa", "MeteorArena", "Fland", "Barratry", "Oasis" };
public static readonly string[] MapsSource = { "Empty", "Satlern", "Box", "Bagel", "Dev", "CentComm", "Core", "TestTeg", "Packed", "Omega", "Reach", "Meta", "Marathon", "MeteorArena", "Fland", "Oasis", "Cog" };

[ParamsSource(nameof(MapsSource))]
public string Map;
Expand Down
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