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 #2936

Merged
merged 67 commits into from
Jan 16, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
72ddc50
Fland Reporters Room (#34408)
SlimmSlamm Jan 12, 2025
8bc4c35
Automatic changelog update
PJBot Jan 12, 2025
606e452
Add a high-capacity water tank to the janitor's closet of Oasis (#34366)
Booblesnoot42 Jan 12, 2025
91bc1f8
Darkened Service job interface icons for better contrast (#34270)
frobnic8 Jan 13, 2025
5fff6bb
Amber Station - Moved Vents Around (#34410)
southbridge-fur Jan 13, 2025
b00bf40
Insuls Spawner (#34407)
southbridge-fur Jan 13, 2025
ac0a8d1
Manual Valves Resprite (#34378)
Deerstop Jan 13, 2025
f2cd615
Automatic changelog update
PJBot Jan 13, 2025
9cf4cba
loop station door access fixes and air sink (#34414)
TytosB Jan 13, 2025
182f0c0
Raise syndicate kobold reinforcement HP crit threshold from 75 to 100…
hyperDelegate Jan 13, 2025
423e48a
Anomaly dragging exploit fix and QOL changes (#34280)
JustinWinningham Jan 13, 2025
25a01b0
Fixed doors being blocked with mousetraps, and other Collidable items…
zHonys Jan 13, 2025
de78bed
Fixed Jazz Instrument for Electric Guitars (#33363)
Coolsurf6 Jan 13, 2025
b308589
Automatic changelog update
PJBot Jan 13, 2025
6c41d96
Porting Pride-O-Mat to Upstream (#34412)
southbridge-fur Jan 13, 2025
2bebaa7
Automatic changelog update
PJBot Jan 13, 2025
8e7f440
Oasis Power Rebalance + Misc fixes (#34425)
ArtisticRoomba Jan 14, 2025
13edd30
Fix IPIntel causing frequent errors with the cleanup job. (#34428)
VasilisThePikachu Jan 14, 2025
786d4d5
craftable pet carrier (#34431)
Killerqu00 Jan 14, 2025
198dd82
Automatic changelog update
PJBot Jan 14, 2025
a967fc7
Adds omnisexual pin (#34439)
juliangiebel Jan 14, 2025
ca96aeb
Fix bad Rider analysis error in AccessOverriderWindow.xaml.cs (#34213)
PJB3005 Jan 14, 2025
47042cc
Disable meta-atlas for big rare RSIs (#33643)
PJB3005 Jan 14, 2025
c2e050c
Persist deadmin to database, add admin suspension system (#34048)
PJB3005 Jan 14, 2025
99580e0
Automatic changelog update
PJBot Jan 14, 2025
2dead48
STAThread client content start (#34212)
PJB3005 Jan 15, 2025
e885a8f
Minor client packaging changes (#33787)
PJB3005 Jan 15, 2025
771278d
Fix muzzle accent (#34419)
themias Jan 15, 2025
bb1a3c4
Automatic changelog update
PJBot Jan 15, 2025
8777925
Add Discord webhook on watchlist connection (#33483)
Palladinium Jan 15, 2025
9d5ef57
Automatic changelog update
PJBot Jan 15, 2025
332fc18
Fixed Thief starting gear failing on specific bag inventories. (#34430)
Alpha-Two Jan 15, 2025
e446889
Added missing details from worn capes to head of department beadsheet…
Alpaccalypse Jan 15, 2025
d83b5ac
Replace ERT Medic's Advanced Medkits with 2 Combat Medkits (#34380)
Alpha-Two Jan 15, 2025
e752561
Fix nonsensical RegEx for name restriction (#34375)
HyperB1 Jan 15, 2025
922251a
Remove the ability to print the station anchor circuit board (#34358)
ArtisticRoomba Jan 15, 2025
4d1581d
Automatic changelog update
PJBot Jan 15, 2025
d86bf06
Meta hotfix (#34306)
Nox38 Jan 15, 2025
33c421b
Merge Meta hotfix (#34306) into master (#34451)
ScarKy0 Jan 15, 2025
d6e55ed
Make Mime PDA interactions silent (#34426)
ArtisticRoomba Jan 15, 2025
c4c00cd
Automatic changelog update
PJBot Jan 15, 2025
3cac75f
Smite vending machine (#34420)
Alpaccalypse Jan 15, 2025
2691071
Automatic changelog update
PJBot Jan 15, 2025
3dd9307
Printable bedsheets (#34034)
kosticia Jan 15, 2025
9ede1f3
Automatic changelog update
PJBot Jan 15, 2025
fdb2f16
Update RT to v239.0.1 (#34454)
PJB3005 Jan 15, 2025
484af25
Remove christmas anomaly spawn (#34053)
TheShuEd Jan 15, 2025
c6dbdc9
Automatic changelog update
PJBot Jan 15, 2025
6041c82
Remove baby jail (#34443)
VasilisThePikachu Jan 15, 2025
40fc499
Add a CCVar to allow from hiding admins in the reported player count.…
VasilisThePikachu Jan 15, 2025
a7d5c8f
Automatic changelog update
PJBot Jan 15, 2025
c92c52f
Fix Mixed puddles not updating slips when evap (#34303)
poklj Jan 15, 2025
f01db3f
Automatic changelog update
PJBot Jan 15, 2025
59a14b5
WizDen config update for IPIntel (#34457)
PJB3005 Jan 15, 2025
6d218f2
Fix DNA scrambler updating station record (#34091)
themias Jan 15, 2025
e094b79
Automatic changelog update
PJBot Jan 15, 2025
87ff3a2
New and Modified Map Spawners (#34424)
southbridge-fur Jan 16, 2025
d0a2d7b
Elkridge Depot Fixes Again (#34461)
Deerstop Jan 16, 2025
0c1608d
Space Ruins Variant (#34445)
SlimmSlamm Jan 16, 2025
d0b2e46
Plasma Station (#33991)
Compilatron144 Jan 16, 2025
37bde33
Automatic changelog update
PJBot Jan 16, 2025
83eb5dc
Plasma station population tweak (#34462)
Compilatron144 Jan 16, 2025
85b9f91
Automatic changelog update
PJBot Jan 16, 2025
996b761
Merge remote-tracking branch 'wizards/master' into upstream-sync
Morb0 Jan 16, 2025
1dffb09
Update locale
Morb0 Jan 16, 2025
d29ea9b
Update locale
Morb0 Jan 16, 2025
671c52d
Disable lawyer on Plasma map
Morb0 Jan 16, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Content.Client/Access/UI/AccessOverriderWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,9 @@ public void UpdateState(IPrototypeManager protoManager, AccessOverriderBoundUser
button.Disabled = !interfaceEnabled;
if (interfaceEnabled)
{
button.Pressed = state.TargetAccessReaderIdAccessList?.Contains(accessName) ?? false;
button.Disabled = (!state.AllowedModifyAccessList?.Contains(accessName)) ?? true;
// Explicit cast because Rider gives a false error otherwise.
button.Pressed = state.TargetAccessReaderIdAccessList?.Contains((ProtoId<AccessLevelPrototype>) accessName) ?? false;
button.Disabled = (!state.AllowedModifyAccessList?.Contains((ProtoId<AccessLevelPrototype>) accessName)) ?? true;
}
}
}
Expand Down
4 changes: 1 addition & 3 deletions Content.Client/Administration/UI/AdminMenuWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,14 @@
xmlns:tabs="clr-namespace:Content.Client.Administration.UI.Tabs"
xmlns:playerTab="clr-namespace:Content.Client.Administration.UI.Tabs.PlayerTab"
xmlns:objectsTab="clr-namespace:Content.Client.Administration.UI.Tabs.ObjectsTab"
xmlns:panic="clr-namespace:Content.Client.Administration.UI.Tabs.PanicBunkerTab"
xmlns:baby="clr-namespace:Content.Client.Administration.UI.Tabs.BabyJailTab">
xmlns:panic="clr-namespace:Content.Client.Administration.UI.Tabs.PanicBunkerTab">
<TabContainer Name="MasterTabContainer">
<adminTab:AdminTab />
<adminbusTab:AdminbusTab />
<atmosTab:AtmosTab />
<tabs:RoundTab />
<tabs:ServerTab />
<panic:PanicBunkerTab Name="PanicBunkerControl" Access="Public" />
<baby:BabyJailTab Name="BabyJailControl" Access="Public" />
<playerTab:PlayerTab Name="PlayerTabControl" Access="Public" />
<objectsTab:ObjectsTab Name="ObjectsTabControl" Access="Public" />
</TabContainer>
Expand Down
5 changes: 0 additions & 5 deletions Content.Client/Administration/UI/AdminMenuWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ public AdminMenuWindow()
MasterTabContainer.SetTabTitle((int) TabIndex.Round, Loc.GetString("admin-menu-round-tab"));
MasterTabContainer.SetTabTitle((int) TabIndex.Server, Loc.GetString("admin-menu-server-tab"));
MasterTabContainer.SetTabTitle((int) TabIndex.PanicBunker, Loc.GetString("admin-menu-panic-bunker-tab"));
/*
* TODO: Remove baby jail code once a more mature gateway process is established. This code is only being issued as a stopgap to help with potential tiding in the immediate future.
*/
MasterTabContainer.SetTabTitle((int) TabIndex.BabyJail, Loc.GetString("admin-menu-baby-jail-tab"));
MasterTabContainer.SetTabTitle((int) TabIndex.Players, Loc.GetString("admin-menu-players-tab"));
MasterTabContainer.SetTabTitle((int) TabIndex.Objects, Loc.GetString("admin-menu-objects-tab"));
MasterTabContainer.OnTabChanged += OnTabChanged;
Expand Down Expand Up @@ -52,7 +48,6 @@ private enum TabIndex
Round,
Server,
PanicBunker,
BabyJail,
Players,
Objects,
}
Expand Down
19 changes: 15 additions & 4 deletions Content.Client/Administration/UI/PermissionsEui.cs
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ private void SaveAdminPressed(EditAdminWindow popup)
}

var title = string.IsNullOrWhiteSpace(popup.TitleEdit.Text) ? null : popup.TitleEdit.Text;
var suspended = popup.SuspendedCheckbox.Pressed;

if (popup.SourceData is { } src)
{
Expand All @@ -139,7 +140,8 @@ private void SaveAdminPressed(EditAdminWindow popup)
Title = title,
PosFlags = pos,
NegFlags = neg,
RankId = rank
RankId = rank,
Suspended = suspended,
});
}
else
Expand All @@ -152,7 +154,8 @@ private void SaveAdminPressed(EditAdminWindow popup)
Title = title,
PosFlags = pos,
NegFlags = neg,
RankId = rank
RankId = rank,
Suspended = suspended,
});
}

Expand All @@ -171,7 +174,7 @@ private void SaveAdminRankPressed(EditAdminRankWindow popup)
{
Id = src,
Flags = flags,
Name = name
Name = name,
});
}
else
Expand Down Expand Up @@ -351,6 +354,7 @@ private sealed class EditAdminWindow : DefaultWindow
public readonly OptionButton RankButton;
public readonly Button SaveButton;
public readonly Button? RemoveButton;
public readonly CheckBox SuspendedCheckbox;

public readonly Dictionary<AdminFlags, (Button inherit, Button sub, Button plus)> FlagButtons
= new();
Expand Down Expand Up @@ -381,6 +385,12 @@ public EditAdminWindow(PermissionsEui ui, PermissionsEuiState.AdminData? data)
RankButton = new OptionButton();
SaveButton = new Button { Text = Loc.GetString("permissions-eui-edit-admin-window-save-button"), HorizontalAlignment = HAlignment.Right };

SuspendedCheckbox = new CheckBox
{
Text = Loc.GetString("permissions-eui-edit-admin-window-suspended"),
Pressed = data?.Suspended ?? false,
};

RankButton.AddItem(Loc.GetString("permissions-eui-edit-admin-window-no-rank-button"), NoRank);
foreach (var (rId, rank) in ui._ranks)
{
Expand Down Expand Up @@ -488,7 +498,8 @@ public EditAdminWindow(PermissionsEui ui, PermissionsEuiState.AdminData? data)
{
nameControl,
TitleEdit,
RankButton
RankButton,
SuspendedCheckbox,
}
},
permGrid
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

1 change: 1 addition & 0 deletions Content.Client/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ namespace Content.Client
{
internal static class Program
{
[STAThread]
public static void Main(string[] args)
{
ContentStart.Start(args);
Expand Down
22 changes: 0 additions & 22 deletions Content.Client/UserInterface/Systems/Admin/AdminUIController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using Content.Client.Administration.UI;
using Content.Client.Administration.UI.Tabs.ObjectsTab;
using Content.Client.Administration.UI.Tabs.PanicBunkerTab;
using Content.Client.Administration.UI.Tabs.BabyJailTab;
using Content.Client.Administration.UI.Tabs.PlayerTab;
using Content.Client.Gameplay;
using Content.Client.Lobby;
Expand Down Expand Up @@ -38,13 +37,11 @@ public sealed class AdminUIController : UIController,
private AdminMenuWindow? _window;
private MenuButton? AdminButton => UIManager.GetActiveUIWidgetOrNull<MenuBar.Widgets.GameTopMenuBar>()?.AdminButton;
private PanicBunkerStatus? _panicBunker;
private BabyJailStatus? _babyJail;

public override void Initialize()
{
base.Initialize();
SubscribeNetworkEvent<PanicBunkerChangedEvent>(OnPanicBunkerUpdated);
SubscribeNetworkEvent<BabyJailChangedEvent>(OnBabyJailUpdated);
}

private void OnPanicBunkerUpdated(PanicBunkerChangedEvent msg, EntitySessionEventArgs args)
Expand All @@ -59,18 +56,6 @@ private void OnPanicBunkerUpdated(PanicBunkerChangedEvent msg, EntitySessionEven
}
}

private void OnBabyJailUpdated(BabyJailChangedEvent msg, EntitySessionEventArgs args)
{
var showDialog = _babyJail == null && msg.Status.Enabled;
_babyJail = msg.Status;
_window?.BabyJailControl.UpdateStatus(msg.Status);

if (showDialog)
{
UIManager.CreateWindow<BabyJailStatusWindow>().OpenCentered();
}
}

public void OnStateEntered(GameplayState state)
{
EnsureWindow();
Expand Down Expand Up @@ -116,13 +101,6 @@ private void EnsureWindow()
if (_panicBunker != null)
_window.PanicBunkerControl.UpdateStatus(_panicBunker);

/*
* TODO: Remove baby jail code once a more mature gateway process is established. This code is only being issued as a stopgap to help with potential tiding in the immediate future.
*/

if (_babyJail != null)
_window.BabyJailControl.UpdateStatus(_babyJail);

_window.PlayerTabControl.OnEntryKeyBindDown += PlayerTabEntryKeyBindDown;
_window.ObjectsTabControl.OnEntryKeyBindDown += ObjectsTabEntryKeyBindDown;
_window.OnOpen += OnWindowOpen;
Expand Down
3 changes: 1 addition & 2 deletions Content.IntegrationTests/Tests/PostMapInitTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,8 @@ public sealed class PostMapInitTest
"Gate",
"Amber",
"Loop",
"Plasma",
"Elkridge"


};

/// <summary>
Expand Down
10 changes: 8 additions & 2 deletions Content.Packaging/ClientPackaging.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,13 @@ public static async Task WriteResources(
var graph = new RobustClientAssetGraph();
pass.Dependencies.Add(new AssetPassDependency(graph.Output.Name));

AssetGraph.CalculateGraph(graph.AllPasses.Append(pass).ToArray(), logger);
var dropSvgPass = new AssetPassFilterDrop(f => f.Path.EndsWith(".svg"))
{
Name = "DropSvgPass",
};
dropSvgPass.AddDependency(graph.Input).AddBefore(graph.PresetPasses);

AssetGraph.CalculateGraph([pass, dropSvgPass, ..graph.AllPasses], logger);

var inputPass = graph.Input;

Expand All @@ -97,7 +103,7 @@ await RobustSharedPackaging.WriteContentAssemblies(
assemblies, // Corvax-Secrets
cancel: cancel);

await WriteClientResources(contentDir, pass, cancel); // Corvax-Secrets: Support content resource ignore to ignore server-only prototypes
await WriteClientResources(contentDir, inputPass, cancel); // Corvax-Secrets: Support content resource ignore to ignore server-only prototypes

inputPass.InjectFinished();
}
Expand Down
Loading
Loading